md5, sha1, sha256, sha512: fix compile error in c++ mode
[gnulib.git] / ChangeLog
1 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
2
3         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
4         * lib/gl_openssl.h: Cast void pointers to a specific type.
5
6 2013-12-07  Pádraig Brady <P@draigBrady.com>
7
8         open-tests: fix build failure with -Werror=old-style-declaration
9         * tests/test-open.h: Reorder the inline to avoid the issue.
10
11 2013-12-07  Pádraig Brady <P@draigBrady.com>
12
13         md5, sha1, sha256, sha512: fix link error with partial libcrypto
14         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
15         init time, so that if early checks find crypto routines,
16         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
17         avoiding link failures.
18
19 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20
21         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
22         This provides a new way to specify the default for
23         gl_CRYPTO_CHECK, one that is reflected in the --help message.
24         Emacs uses this, as well as the old way.
25         This attempts to implement a suggestion by Pádraig Brady in
26         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
27         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
28         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
29
30         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
31         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
32         Add support for a new option, --with-openssl=auto, which causes
33         the library to be used if available and silently ignored if not.
34         Add support to allow allow configure.ac to specify its own
35         default, by setting with_openssl_default before invoking gl_INIT.
36
37 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38
39         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
40         Problem reported by Daiki Ueno in:
41         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
42         * tests/test-open.h (__always_inline):
43         New macro, if not already defined.
44         (test_open): Use it.
45
46 2013-12-04  Eric Blake  <eblake@redhat.com>
47
48         include_next: minimize code duplication
49         * modules/include_next (Depends-on): Add absolute-header.
50         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
51         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
52
53 2013-12-04  Pádraig Brady <P@draigBrady.com>
54
55         getcwd: fix compile error in configure check
56         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
57
58 2013-12-04  Pádraig Brady <P@draigBrady.com>
59
60         regex: suppress core dumps from detection code
61         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
62         to suppress core dumps that may well occur on glibc systems.
63         These core dumps might not be cleaned up automatically, or could
64         trigger some system core dump handling logic.
65
66 2013-12-03  Pádraig Brady <P@draigBrady.com>
67
68         md5, sha1, sha256, sha512: support mandating use of openssl
69         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
70         description, to list the now 3 separate options.  also don't
71         mention the default=no, since this is implicit given the option
72         is described as --with-openssl rather than --without-openssl.
73         If projects change the default they're free to document that.
74         with --with-openssl[=yes] we now error out when the specified
75         hash algorithm is not available in libcrypto.
76
77 2013-12-03  Ivailo  <xakepa10@gmail.com>
78
79         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
80         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
81         -Wformat-nonliteral checks, as these edge cases are part of the test.
82
83 2013-12-03  Eric Blake  <eblake@redhat.com>
84
85         regex: avoid glibc deadlock during configure
86         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
87         glibc bug 15078 in turn triggers bug 16159.
88         Reported by Michal Privoznik.
89
90 2013-12-02  Pádraig Brady <P@draigBrady.com>
91
92         md5, sha1, sha256, sha512: use openssl routines if available.
93         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
94         routines will be used if available, requiring apps to link @LIB_CRYPTO@
95         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
96         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
97         in the standard system location.
98         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
99         * m4/sha256.m4: Likewise with SHA256.
100         * m4/sha512.m4: Likewise with SHA512.
101         * m4/md5.m4: Likewise with MD5.
102         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
103         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
104         * lib/sha256.h: Likewise with SHA256.
105         * lib/sha512.h: Likewise with SHA512.
106         * lib/md5.h: Likewise with MD5.
107         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
108         * lib/sha256.c: Likewise with SHA256.
109         * lib/sha512.c: Likewise with SHA512.
110         * lib/md5.c: Likewise with MD5.
111         * modules/crypto/sha1 (Link:): Add the new optional lib.
112         (Depends-on:): Add dependency on extern-inline.
113         * modules/crypto/sha256: Likewise.
114         * modules/crypto/sha512: Likewise.
115         * modules/crypto/md5: Likewise.
116         * modules/crypto/sha1-tests: Reference the lib here too.
117         * modules/crypto/md5-tests: Likewise.
118         * modules/crypto/gc-des-tests: Likewise.
119         * modules/crypto/gc-hmac-md5-tests: Likewise.
120         * modules/crypto/gc-hmac-sha1-tests: Likewise.
121         * modules/crypto/gc-hmac-sha256-tests: Likewise.
122         * modules/crypto/gc-hmac-sha512-tests: Likewise.
123         * modules/crypto/gc-md5-tests: Likewise.
124         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
125         * modules/crypto/gc-sha1-tests: Likewise.
126         * modules/crypto/gc-tests: Likewise.
127         * modules/crypto/hmac-md5-tests: Likewise.
128         * modules/crypto/hmac-sha1-tests: Likewise.
129         * modules/crypto/hmac-sha256-tests: Likewise.
130         * modules/crypto/hmac-sha512-tests: Likewise.
131
132 2013-11-29  RV1971  <rv1971@web.de>
133
134         base64: (trivial) fix compilation regression on some compilers
135         * lib/base64.c: Don't return the void function,
136         instead split to a separate return statement.
137
138 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
139
140         ignore-value: revert previous code change
141         * lib/ignore-value.h (ignore_value): Use __extension__ and
142         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
143         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
144         Change the comment to try to explain this better.
145
146 2013-11-27  Pádraig Brady <P@draigBrady.com>
147
148         selinux-h: improve stub types and add more stub functions
149
150         * lib/se-selinux.in.h: Change security_context_t to a typedef
151         rather than a define, as it's a pointer type and so is better
152         as a typedef to avoid issues declaring multiple variables
153         with the comma operator.  Also add stub for string_to_security_class().
154         * lib/se-context.in.h: Add stub functions for
155         context_{type,range,role,user}_get().
156
157 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
158
159         ignore-value: prefer GCC version back through 2.0
160         The code didn't match the comments, so I did a bit of software
161         archaeology.  GCC 2.0 seems to support __extension__ and
162         __typeof__, so fix both code and comments to use 2.0.
163         * lib/ignore-value.h (ignore_value): Use __extension__ and
164         __typeof__ for GCC 2.0 through 3.3, too.
165
166 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
167
168         pty: Activate the signature wrapper of forkpty.
169         The intended preprocessor macro HAVE_FORKPTY is
170         never defined, yet `lib/forkpty.c' depends on it.
171
172         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
173         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
174         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
175
176 2013-11-18  Jim Meyering  <meyering@fb.com>
177         and Paul Eggert  <eggert@cs.ucla.edu>
178
179         quotearg: don't attempt to store 1 << 31 into an "int"
180         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
181         gcc's new -fsanitize=undefined and running its tests triggered some
182         new test failures due to undefined behavior, all with this diagnostic:
183           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
184             cannot be represented in type int
185         Rather than shifting "1" left to form a mask, shift the bits right and
186         simply use "1" as the mask.
187
188 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
189
190         error: depend on stdio
191         Problem reported by Nikos Mavrogiannopoulos in
192         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
193         * modules/error (Depends-on): Add stdio.
194
195 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
196
197         * doc/relocatable-maint.texi (Supporting Relocation): Improve
198         wording.
199         Reported by Reuben Thomas <rrt@sc3d.org>.
200
201 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
202
203         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
204         New function and macro, to work around _DARWIN_C_SOURCE problem.
205         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
206
207 2013-11-11  Pádraig Brady <P@draigBrady.com>
208
209         base64: provide a fast path for encoding well sized buffers
210         Avoid conditionals in the base64 encoding loop,
211         which was seen to give 60% better throughput.
212         * lib/base64.c (base64_encode_fast): A new function to be called
213         when we don't want to NUL terminate, and we have enough space
214         in the output to encode the given input.
215         (base64_encode): Call the _fast() version when appropriate.
216         Also remove a redundant mask with 0x3F on the first encoded byte.
217
218 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
219
220         extern-inline: port better to OS X 10.9
221         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
222         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
223         OS X 10.9, except for g++ where the bug is still present.
224         See <http://trac.macports.org/ticket/41033>.
225
226 2013-11-08  Eric Blake  <eblake@redhat.com>
227
228         fpending: fix regression on DragonFly BSD
229         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
230         * lib/fpending.h (__fpending): Don't declare twice.
231         Reported by GW in
232         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
233
234 2013-11-05  Jim Meyering  <meyering@fb.com>
235
236         hash: relax license to LGPLv2+, for libguestfs
237         * modules/hash (License): Change from GPL to LGPLv2+.
238
239 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
240
241         intprops: port to Oracle Studio c99
242         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
243         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
244
245 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
246
247         obstack: pacify HP C
248         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
249         warning "conversion from pointer to smaller integer" from HP
250         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
251         C89 or later nowadays, so cast to void instead of int.  Privately
252         reported by H.Merijn Brand.  Also, change header to match glibc's,
253         to make checking against glibc easier.
254
255 2013-10-29  Jim Meyering  <meyering@fb.com>
256
257         maint.mk: prefer gpgv2 over gpgv
258         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
259         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
260         Reported by Gary Vaughan.
261
262 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
263
264         isnan: port to VAX
265         Reported by John Klos for NetBSD-5/VAX in
266         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
267         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
268         (FUNC): Use it.
269
270 2013-10-28  Jim Meyering  <meyering@fb.com>
271
272         gnulib-tool: protect against CDPATH
273         * gnulib-tool: Many "cd" built-in functions print a directory name
274         to stdout when CDPATH is set, e.g.,
275           $ bash -c 'CDPATH=/; cd tmp'
276           /tmp
277         Unset it, when possible.  Prompted by a comment from Bruce Korb.
278
279         maint.mk: restore functionality removed by recent change...
280         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
281         the context of a shallow-cloned gnulib repository: "git describe"
282         would fail in such a directory.  However, that change made it so
283         the reported gnulib revision no longer includes the version number
284         or a commit count, even when run from a full clone.
285         * top/maint.mk (gnulib-version): Use the full "git describe"
286         output when possible, e.g., the form above, rather than the
287         abbreviated, no-tag, no-commit-count string, and fall back to
288         using a 10-byte hash, rather than the default minimal-length
289         hash prefix, since while the minimal-length one may be fine today,
290         it is likely not to be unique for very long.
291
292 2013-10-26  Jim Meyering  <meyering@fb.com>
293
294         maint.mk: fix "release" target to build _version
295         This fixes a bug in README-release whereby following the outlined
296         steps, one would publish a tarball whose programs would report
297         --version output not consistent with the package version number.
298         This bug caused grep-2.15 to produce a grep program whose
299         --version option made it print 2.14.56-1e3d rather than 2.15.
300         * top/maint.mk (release): Making this target build "_version"
301         ensures that the new version number is reflected in configure.
302
303 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
304
305         install-reloc: Support multi-binary installation.
306         * build-aux/install-reloc: Support installing multiple programs in
307         one invocation, as done by Automake starting with commit
308         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
309         Haible <bruno@clisp.org>, archived at
310         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
311         Reported by Sylvain <beuc@gnu.org>.
312
313 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
314
315         selinux-h: Really build without selinux when library is missing.
316         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
317         continue without selinux, as already told in the warning message.
318
319 2013-10-21  Jim Meyering  <meyering@fb.com>
320
321         regex: also remove dependency on HAVE_WCSCOLL
322         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
323
324 2013-10-21  Reuben Thomas <rrt@sc3d.org>
325
326         xfreopen: Fix typo. s/frepoen/freopen/
327         * lib/xfreopen.c: Fix description.
328         * modules/xfreopen: Likewise.
329
330 2013-10-21  Jim Meyering  <meyering@fb.com>
331
332         regex: don't depend on wcscoll
333         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
334         It is no longer used.
335
336 2013-10-20  Jim Meyering  <meyering@fb.com>
337
338         error: add the printf attribute to a static function
339         * lib/error.c (error_tail): Add the printf attribute, to placate
340         gcc's -Werror=suggest-attribute=format option.
341
342 2013-09-30  Jim Meyering  <meyering@fb.com>
343
344         fpending, obstack, strerror-override: use pure+const function attrs
345         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
346         * lib/obstack.c (_obstack_allocated_p): Likewise.
347         * lib/obstack.h (_obstack_memory_used): Likewise.
348         (_obstack_memory_used): Likewise.
349         * lib/strerror-override.h (strerror_override): Declare with
350         the "const" attribute.
351
352 2013-10-18  Eric Blake  <eblake@redhat.com>
353
354         extern-inline: make safe for -Wundef usage
355         Reported by Vladimir 'phcoder' Serbinenko in
356         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
357         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
358
359 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
360
361         mkfifo-tests, etc.: allow HP-UX 11.11 bug
362         Problem reported by Daniel Richard G. in
363         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
364         * doc/posix-functions/mkfifo.texi (mkfifo):
365         * doc/posix-functions/mkfifoat.texi (mkfifoat):
366         * doc/posix-functions/mknod.texi (mknod):
367         * doc/posix-functions/mknodat.texi (mknodat):
368         Document the HP-UX 11.11 bug.
369         * tests/test-mkfifo.h (test_mkfifo):
370         Allow the HP-UX 11.11 bug.
371
372 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
373
374         acl: allow cross-compilation to Gentoo
375         Problem reported by Gabriel Marcano in
376         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
377         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
378         test only whether it links.
379
380 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
381
382         mgetgroups: remove dependency on realloc-gnu
383         The dependency violates the comment in realloc-gnu, which
384         says that tests can't depend on realloc-gnu; some tests depend
385         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
386         Problem reported by Daniel Richard G. in
387         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
388         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
389         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
390         not realloc-gnu.
391
392 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
393
394         regex-tests: port to HP-UX 11.11
395         Problem reported by Daniel Richard G. in
396         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
397         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
398
399 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
400
401         verify: document some 'assume' pitfalls
402         * doc/verify.texi (Compile-time Assertions):
403         Mention that 'assume (E)' can sometimes slow things down.
404         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
405
406 2013-10-10  Eric Blake  <eblake@redhat.com>
407
408         strtoumax: fix typo in previous commit.
409         * modules/strtoumax (Depends-on): Fix typo.
410         * modules/strtoimax (Depends-on): Likewise.
411
412 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
413
414         strtoumax: port to Solaris 8
415         This problem was introduced in the recent HP-UX patch.
416         Reported by Tom G. Christensen in
417         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
418         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
419         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
420
421 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
422
423         strtoimax, strtoumax: port to HP-UX 11.11
424         Problem reported by Daniel Richard G. in
425         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
426         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
427         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
428         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
429         REPLACE_STRTOUMAX.
430         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
431         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
432         Replace the function if defined as a macro but not as a function.
433         * modules/inttypes-incomplete (inttypes.h): Substitute
434         REPLACE_STRTOUMAX.
435         * modules/strtoumax (configure.ac): Replace strtoumax if
436         REPLACE_STRTOUMAX.
437
438 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
439
440         strtoimax: port to HP-UX 11.11
441         Problem reported by Daniel Richard G.
442         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
443         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
444         they might clash with inttypes.h.
445
446 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
447
448         New module 'count-trailing-zeros'.
449         * MODULES.html.sh: Mention it.
450         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
451         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
452         * modules/count-trailing-zeros-tests:
453         * tests/test-count-trailing-zeros.c:
454         New files.
455
456         count-leading-zeros: port to MSC; support types wider than 64 bits
457         The ideas behind the MSC port are stolen from Emacs.
458         * lib/count-leading-zeros.h:
459         Don't include verify.h: it's no longer needed, as types wider than
460         64 bits are now supported.
461         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
462         performance with MSC.  All uses changed.  Do not assume that TYPE
463         has at most 64 bits.
464         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
465         All uses changed.  Fold the subtraction from 31 into the table.
466
467         count-one-bits: port to MSC; support types wider than 64 bits
468         The ideas behind the MSC port are stolen from Emacs.
469         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
470         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
471         Don't include verify.h: it's no longer needed, as types wider than
472         64 bits are now supported.
473         (COUNT_ONE_BITS_GENERIC): New macro.
474         (popcount_supported) [_MSC_VER]: New inline function.
475         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
476         performance with MSC.  All uses changed.  Do not assume that TYPE
477         has at most 64 bits.
478         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
479
480 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
481
482         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
483         * lib/mountlist.c (read_file_system_list): fix leak of directory
484         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
485
486 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
487
488         tests: improve diagnostic when an assertion fails
489         * tests/macros.h (ASSERT): Report the assertion that failed.
490
491 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
492
493         verify: new macro 'assume'
494         This is taken from Emacs, and should be generally useful.
495         * doc/verify.texi (assume): Document it.
496         * lib/verify.h (assume): New macro.
497         (__has_builtin): Expand to 0 if not defined.
498
499 2013-09-26  Eric Blake  <eblake@redhat.com>
500
501         dup2, dup3: work around another cygwin crasher
502         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
503         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
504         * tests/test-dup2.c (main): Likewise.
505         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
506         * lib/dup3.c (dup3): Likewise.
507         * doc/posix-functions/dup2.texi (dup2): Document it.
508         * doc/glibc-functions/dup3.texi (dup3): Likewise.
509
510         getdtablesize: work around cygwin issue
511         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
512         * modules/getdtablesize (configure.ac): Build replacement.
513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
514         * modules/unistd (Makefile.am): Expose the witness.
515         * lib/unistd.in.h (getdtablesize): Declare replacement.
516         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
517         * tests/test-getdtablesize.c (main): Test it.
518         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
519
520 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
521
522         pmccabe2html: escaping of special characters
523         Escape all '<', '>', and '&' in HTML output.
524         * build-aux/pmccabe2html (html_fnc): Call gsub()
525         instead of sub() to capture all '<', '>', and '&'.
526         Neither of '<' and '>' is special in a regexp,
527         so first arguments to gsub() are corrected. Also,
528         in replacement strings, ampersand must be escaped.
529         Finally, '&' must be handled first, then '<' and '>'.
530
531 2013-09-24  Eric Blake  <eblake@redhat.com>
532
533         manywarnings: enable nicer gcc warning messages
534         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
535         some -f options for optimal warnings.
536
537 2013-09-21  Jim Meyering  <meyering@fb.com>
538
539         timespec: use the new TIMESPEC_RESOLUTION in a few more places
540         * lib/timespec-add.c (timespec_add): Also replace 999999999
541         with TIMESPEC_RESOLUTION - 1.
542         * lib/timespec-sub.c (timespec_sub): Likewise.
543
544 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
545
546         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
547         Problem reported by Dagobert Michelsen via Eric Blake in
548         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
549         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
550         not AC_COMPILE_IFELSE.
551
552 2013-09-23  Eric Blake  <eblake@redhat.com>
553
554         configmake: support new --runstatedir option
555         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
556         even if autoconf was too old to provide the command line option.
557         * modules/configmake (Makefile.am): Propagate it to .h file.
558
559 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
560
561         ctype, string: depend on extern-inline
562         This is needed to complete the recent OS X fixes.
563         Also, fix related documentation as suggested by Eric Blake.
564         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
565         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
566         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
567         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
568         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
569         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
570         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
571         * doc/posix-functions/toupper.texi:
572         List the 'ctype' gnulib module.
573         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
574         * doc/posix-functions/strncpy.texi:
575         List the 'string' gnulib module.
576         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
577         Add string.
578         * modules/ctype, modules/string (Depends-on): Add extern-inline.
579
580 2013-09-19  Pádraig Brady  <P@draigBrady.com>
581
582         userspec: support optional parameters to parse_user_spec()
583         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
584         then avoid group processing and treat the full spec as a user.
585         (parse_with_separator): Allow the USERNAME and GROUPNAME to
586         be optional params (NULL), in which case they're ignored.
587
588 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
589
590         timespec: new function make_timespec, and new constants
591         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
592         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
593         (make_timespec): New function.
594         * lib/dtotimespec.c (dtotimespec):
595         * lib/timespec-add.c (timespec_add):
596         * lib/timespec-sub.c (timespec_sub):
597         * lib/utimens.c (validate_timespec):
598         * lib/utimensat.c (rpl_utimensat):
599         Use these new constants and functions.
600
601         stdio: OS X port of putc_unlocked + extern inline
602         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
603         * doc/posix-functions/putc_unlocked.texi:
604         * doc/posix-functions/putchar_unlocked.texi:
605         Document this portability problem.
606
607         signal: OS X port of sigaddset etc. + extern inline
608         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
609         (sigismember): #undef on problematic Apple platforms.
610         * doc/posix-functions/sigaddset.texi:
611         * doc/posix-functions/sigdelset.texi:
612         * doc/posix-functions/sigemptyset.texi:
613         * doc/posix-functions/sigfillset.texi:
614         * doc/posix-functions/sigismember.texi:
615         Document this portability problem.
616
617         extern-inline: do not always suppress extern inline on OS X
618         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
619         extern inline on Apple only if the particular compile-time
620         configuration is known to have the problem.
621         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
622         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
623         other Gnulib modules.
624
625         extern-inline: document fixes for ctype and wctype macros
626         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
627         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
628         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
629         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
630         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
631         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
632         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
633         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
634         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
635         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
636         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
637         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
638         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
639         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
640         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
641         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
642         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
643         * doc/posix-functions/strncpy.texi:
644         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
645         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
646         Document that Gnulib fixes portability problems with these
647         functions on OS X 10.8 and earlier when called from plain inline
648         or extern inline functions.
649
650 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
651
652         fflush, freadahead, fseeko: Fix for Android
653         Suggested by Bruno Haible in:
654         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
655         * lib/stdio-impl.h: Use local __sfileext definition.
656
657 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
658
659         pmccabe2html: Portability to other awk versions.
660         The functions systime() and strftime() are available
661         in Gawk only.  Properly close two HTML-tags 'style'
662         and 'span'.
663         * build-aux/pmccabe2html (BEGIN): Store timing
664         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
665         systime() in HTML_COMMENT.
666         (html_header): Correctly close tag 'style'.
667         (END): Replace strftime() by CHRONOS_TIME.  Close
668         tag 'span' correctly, not as 'div'.
669
670 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
671
672         getgroups: statement without effect
673         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
674         Change equality conditional to expected assignment.
675
676 2013-09-09  Eric Blake  <eblake@redhat.com>
677
678         glob: fix compilation
679         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
680
681 2013-09-07  Eric Blake  <eblake@redhat.com>
682
683         glob: fix build for platforms without __THROW
684         * lib/glob.in.h (__THROW): Add definition again.
685
686 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
687
688         regex-quote: fix buffer access out of bounds
689         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
690         * lib/regex-quote.c (regex_quote_spec_pcre):
691         Fix typo that resulted in an out-of-bounds read.
692
693 2013-09-04  Eric Blake  <eblake@redhat.com>
694
695         glob: avoid -Wattribute warnings on glibc
696         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
697         __THROWNL, not __THROW, on static functions.
698         * lib/glob.in.h (__THROW): Adjust...
699         (__THROWNL): ...accordingly.
700
701 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
702
703         headers: check that _GL_INLINE_HEADER_BEGIN is defined
704         Suggested by Bruce Korb in:
705         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
706         * doc/extern-inline.texi (extern inline):
707         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
708         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
709         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
710         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
711         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
712         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
713         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
714         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
715         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
716         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
717         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
718         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
719         * lib/xtime.h:
720         Check that _GL_INLINE_HEADER_BEGIN is defined.
721
722 2013-08-29  Pádraig Brady  <P@draigBrady.com>
723
724         bootstrap: remove the --version requirement from ancillary tools
725         * build-aux/bootstrap (check_exists): A new refactored function to
726         determine if a command exists.
727         (find_tool): Use the new function which does not require the
728         --version option to be supported.
729         (check_versions): Use the new function.
730
731 2013-08-26  Simon Josefsson  <simon@josefsson.org>
732
733         gc: support HMAC-SHA256 and HMAC-SHA512.
734         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
735         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
736         functions.
737         (gc_hmac_md5): Use symbolic constant.
738         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
739         (gc_hmac_sha256, gc_hmac_sha512): New functions.
740         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
741         * m4/sha256.m4: Protect against empty expansion.
742         * m4/sha512.m4: Likewise.
743         * lib/hmac-sha256.c: New file.
744         * lib/hmac-sha512.c: Likewise.
745         * m4/gc-hmac-sha256.m4: Likewise.
746         * m4/gc-hmac-sha512.m4: Likewise.
747         * m4/gc-sha256.m4: Likewise.
748         * m4/gc-sha512.m4: Likewise.
749         * modules/crypto/gc-hmac-sha256: Likewise.
750         * modules/crypto/gc-hmac-sha256-tests: Likewise.
751         * modules/crypto/gc-hmac-sha512: Likewise.
752         * modules/crypto/gc-hmac-sha512-tests: Likewise.
753         * modules/crypto/hmac-sha256: Likewise.
754         * modules/crypto/hmac-sha256-tests: Likewise.
755         * modules/crypto/hmac-sha512: Likewise.
756         * modules/crypto/hmac-sha512-tests: Likewise.
757         * tests/test-gc-hmac-sha256.c: Likewise.
758         * tests/test-gc-hmac-sha512.c: Likewise
759         * tests/test-hmac-sha256.c: Likewise.
760         * tests/test-hmac-sha512.c: Likewise
761
762 2013-08-24  Daiki Ueno  <ueno@gnu.org>
763
764         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
765         of AC_CHECK_DECLS.
766
767 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
768
769         selinux-at: omit unnecessary include
770         * lib/selinux-at.c: Don't include dosname.h; not needed, since
771         this source file doesn't use its macros, and subsidiary files that
772         use the macros already include it.
773
774 2013-08-21  Eric Blake  <eblake@redhat.com>
775
776         d-ino: avoid false negative on symlink
777         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
778         Reported by Stephane Chazelas.
779
780 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
781
782         bootstrap: port to OpenBSD sed
783         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
784         does not interpret `-' as a file argument to mean stdin.
785
786 2013-08-15  Eric Blake  <eblake@redhat.com>
787
788         warnings: minor optimization
789         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
790
791         warnings: check -Wfoo rather than -Wno-foo
792         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
793         -Wno-, test if the compiler recognizes the positive form instead.
794
795 2013-08-15  Karl Berry  <karl@gnu.org>
796
797         * config/srclist-update: add option "doclicense" to placate
798         pulling *.texi files from Emacs.  Write terse usage
799         documentation at the top.
800
801 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
802
803         xvasprintf-tests: port to GCC with hardening flags
804         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
805         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
806         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
807
808 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
809
810         fpending: port to recent Cygwin change to stdio_ext.h
811         Reported by LRN in
812         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
813         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
814         just declare __fpending unless it's a macro.
815         A duplicate decl shouldn't hurt.
816         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
817         call compiles and links, instead of separately checking for
818         decl and lib function.
819         * modules/fpending (configure-ac):
820         Adjust to fpending.m4's renaming of shell variable.
821
822 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
823
824         sys_time: port to OpenBSD
825         * lib/sys_time.in.h: Simply delegate to the system's header
826         in the BSDish cases as well.  Problem reported by Mike Miller in
827         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
828         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
829         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
830         wider than time_t.
831
832 2013-08-09  Pádraig Brady <P@draigBrady.com>
833
834         bootstrap: support checksum utils having -c but not --status
835         * build-aux/bootstrap: Only look for sha1sum if updating po files.
836         Add sha1 to the list of supported checksum utils since it's now
837         supported through adjustments below.
838         (update_po_files): Remove the use of --status
839         in a way that will suppress all error messages, but since this is
840         only used to minimize updates, it shouldn't cause an issue.
841         Exit early if there is a problem updating the po file checksums.
842         (find_tool): Remove the check for --version support as this
843         is optional as per commit 86186b17.  Don't even check for the
844         presence of the command as if that is needed, it's supported
845         through configuring prerequisites in bootstrap.conf.
846         Prompt that when a tool isn't found, one can define an environment
847         variable to add to the hardcoded search list.
848
849 2013-08-05  Jim Meyering  <meyering@fb.com>
850
851         regex: port to non-glibc/lock-using systems
852         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
853         system with GNULIB_LOCK would fail due to absence of the
854         included "glthread/lock.h".  This would affect any package
855         for which the "lock" module is used only by the regex module,
856         and not explicitly used.
857         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
858         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
859         Add a dependency on the "lock" module.
860
861 2013-07-20  Daiki Ueno  <ueno@gnu.org>
862
863         localecharset: make locale_charset thread-safe on Mac OS X
864         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
865         instead of MB_CUR_MAX.
866
867 2013-07-20  Daiki Ueno  <ueno@gnu.org>
868
869         gettext: update to version 0.18.3
870         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
871         require AC_PROG_SED to allow user to specify custom sed command when
872         generating en@quot PO file.
873
874 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
875
876         bootstrap: use correct source when copying build-aux files
877         * build-aux/bootstrap (gnulib_extra_files): This variable is
878         relative to upstream gnulib layout, not downstream.
879
880 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
881
882         tmpdir: fix bug in VMS port
883         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
884         See Steven M. Schweda in
885         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
886
887 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
888
889         tmpdir: port to VMS, to // != /, and to long dirs
890         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
891         __secure_getenv, so that we're more like the glibc version.
892         All uses changed.
893         (path_search): Don't put slash after directory if __VMS.
894         Problem reported by Steven M. Schweda in
895         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
896         Simplify code to add slash; no need for a loop.
897         Do not remove trailing slash from "//".
898         Do not assume dlen <= INT_MAX.
899
900 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
901
902         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
903         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
904         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
905         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
906
907         accept4, dup3, pipe2: port to Cygwin
908         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
909         * lib/accept4.c (accept4) [O_BINARY]:
910         * lib/dup3.c (dup3) [O_BINARY]:
911         * lib/pipe2.c (pipe2) [O_BINARY]:
912         Use set_binary_mode, not setmode.
913         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
914         * modules/binary-io (Depends-on): Remove module indicator.
915         These last two bits undo the previous change to pipe2 and binary-io.
916
917 2013-07-09  Pádraig Brady  <P@draigBrady.com>
918
919         mountlist: add support for deallocating returned list entries
920         * lib/mountlist.c (free_mount_entry): A new exported function
921         to deallocate a mount list entry.
922         (read_file_system_list): Refactor to use the new deallocation function.
923         Suggested by Anton Ovchinnikov.
924
925 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
926
927         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
928         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
929         * lib/stdalign.in.h (_Alignas, _Alignof):
930         Port to FreeBSD 9.1, and to C11 and C++11.
931         (_Alignas): Also support ICC.
932         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
933         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
934
935 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
936
937         fnmatch: don't goto over declaration
938         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
939         undefined behavior for goto over a declaration.
940         Problem reported by Charlie Brown in
941         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
942
943         pipe2: decouple from binary-io a bit
944         This is for Emacs, which needs pipe2 but not binary-io.
945         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
946         * modules/binary-io (Depends-on): Add module indicator.
947
948 2013-07-03  Eric Blake  <eblake@redhat.com>
949
950         mgetgroups: relax license to LGPLv2+
951         * modules/getugroups (License): Change from GPLv3+.
952         * modules/mgetgroups (License): Likewise.
953         * modules/getgroups (License): Change from LGPLv3+.
954
955         xalloc-oversized: relax license to LGPLv2+
956         * modules/xalloc-oversized (License): Change from GPLv3+.
957
958         nproc: relax license to LGPLv2+
959         * modules/nproc (License): Change from LGPLv3+.
960
961         bootstrap: honor --no-git
962         * build-aux/bootstrap: Don't even try to use git when user is
963         pointing to a static checkout.
964
965 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
966
967         ignore-value: port to gcc -pedantic
968         * lib/ignore-value.h (ignore_value):
969         Port to gcc -pedantic, by using __extension__.
970         Reindent as per usual gnulib style nowadays.
971         Simplify GCC version check.
972
973 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
974
975         extern-inline: port to gcc -std=c89
976         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
977         Do not use __gnu_inline__ if pedantic and pre-C99.
978
979 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
980
981         doc: document extern-inline
982         * doc/extern-inline.texi: New file.
983         * doc/gnulib.texi (alloca-opt): Include it.
984         * m4/extern-inline.m4: Move some comments to documentation,
985         and others closer to what they describe.
986
987         doc: chatter less
988         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
989         (updated-stamp): Use it.  This causes 'make' to output just
990         one file name rather than zillions.
991
992         fflush, fseeko: port to musl cross-compiles
993         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
994         on some implementation that (1) is not known to be buggy,
995         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
996         cross-compiled to so we can't easily check for lack of
997         conformance.  This is for cross-compiling to musl.
998         Reported by Rich Felker in
999         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
1000         * m4/fclose.m4 (gl_FUNC_FCLOSE):
1001         * m4/fflush.m4 (gl_FUNC_FFLUSH):
1002         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
1003         Adjust to above change.
1004         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
1005         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
1006         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
1007         known not to work, or unknown.
1008
1009 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1010
1011         msvc-inval: port to mingw-w64
1012         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
1013         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
1014         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
1015
1016 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1017
1018         getcwd-lgpl: port to Tru64
1019         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
1020         Problem reported by Steven M. Schweda in
1021         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
1022
1023         tests: port large-fd POSIX spawn tests to OS X
1024         Problem reported by Daiki Ueno in
1025         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
1026         * tests/test-posix_spawn_file_actions_addclose.c:
1027         * tests/test-posix_spawn_file_actions_adddup2.c:
1028         * tests/test-posix_spawn_file_actions_addopen.c:
1029         Include <limits.h>, for OPEN_MAX, if available.
1030         (big_fd): New static function.
1031         (main): Use it.
1032
1033 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
1034
1035         tests/nap.h: use an adaptive delay to avoid ctime update issues
1036         The recent change in nap.h (5191133e) decreased the probability of lost
1037         races to about a third, however such problems could still be observed
1038         in virtual machines and openSUSE's OBS.
1039         Before, nap() detected the needed time once empirically and then used
1040         that delay (together with a small correction multiplier) in further
1041         calls.  This problem has been reported and discussed several times,
1042         including guesses about possible kernel issues:
1043         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
1044         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
1045         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
1046         http://bugs.gnu.org/12820
1047         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
1048         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
1049         Now, nap() avoids the race alltogether by verifying on a reference
1050         file whether a timestamp difference has happened.
1051         * tests/nap.h (nap_fd): Define file descriptor variable for the
1052         witness file.
1053         (nap_works): Change return value to bool.  Change passing
1054         the old file's status by value instead of by reference as this function
1055         does no longer update that timestamp; rename the function argument from
1056         st to old_st.  Remove the local variables cdiff and mdiff because that
1057         function now returns true/false instead of the precise delay.
1058         (guess_delay): Remove function.
1059         (clear_tmp_file): Add new function to close and unlink the witness file.
1060         (nap): Instead of re-using the delay which has been calculated during
1061         the first call, avoid the race by actually verifying that a timestamp
1062         difference can be observed on the current file system.  Use an adaptive
1063         approach for the delay to minimize execution time.  Assert that the
1064         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
1065         = 2^31 - 1 = 2.1s.
1066         Use atexit to call clear_tmp_file when the process terminates.
1067
1068 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1069
1070         sig2str: port to C++
1071         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
1072         Reported by Daniel J Sebald in
1073         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
1074
1075 2013-05-30  Eric Blake  <eblake@redhat.com>
1076
1077         docs: mention cygwin shortcoming in <sys/un.h>
1078         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1079
1080         vasnprintf: silence mingw compiler warning
1081         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1082
1083 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1086         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1087         This fixes a porting bug I recently reintroduced in regex, and
1088         some other instances that I discovered while testing the fix.
1089         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1090         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1091         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1092         with an empty argument if this is a pedantic pre-C99 GCC.
1093         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1094         pre-C11 GCC.
1095
1096         regex: adapt to locking regime instead of depending on pthread
1097         Instead of depending on pthread, adapt to whatever thread
1098         modules are in use.  Problem reported by Ludovic Courtès in
1099         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1100         and by Mats Erik Andersson in
1101         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1102         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1103         Support either the 'lock' module, or the 'pthread' module, or
1104         no module.
1105         (lock_lock, lock_unlock): New macros.
1106         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1107         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1108         * modules/regex (Depends-on): Remove pthread.
1109
1110 2013-05-22  Eric Blake  <eblake@redhat.com>
1111
1112         getgroups: document portability issues
1113         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1114         multithread safety.
1115         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1116         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1117         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1118         getugroups.
1119         * doc/posix-functions/getgroups.texi (getgroups): Mention
1120         multithread safety and mgetgroups.
1121
1122 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1123
1124         test-lchown, test-chown: also skip test if chown fails with EPERM
1125         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1126         skip this test, to handle FAT file systems.
1127         * tests/test-chown.h (test_chown): Likewise.
1128
1129 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1130
1131         regex: fix dfa race in multithreaded uses
1132         Problem reported by Ludovic Courtès in
1133         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1134         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1135         New macros.  All uses of __libc_lock_define, __libc_lock_init
1136         changed to use the first two of these.
1137         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1138         non-glibc platforms.
1139         (struct re_dfa_t): Define the lock unconditionally.
1140         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1141         '#ifdef _LIBC"s.
1142         * modules/regex (Depends-on): Add pthread, if we use the
1143         included regex.
1144
1145         * lib/regcomp.c: Do actions that are not needed for glibc,
1146         but may be needed elsewhere.
1147         (regfree, re_compile_internal): Destroy the lock.
1148         (re_compile_internal): Check for lock-initialization failure.
1149
1150         malloca: port to compilers that reject size-zero arrays
1151         This fixes a bug introduced in my previous patch.
1152         * lib/malloca.c (struct preliminary_header): Use an int
1153         rather than a character array of size int; that's simpler.
1154         (struct header): Remove, replacing with ...
1155         (union header): New type.  This avoids the need for declaring a
1156         character array of size zero, which is not allowed on some platforms.
1157         All uses changed.
1158
1159 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1160
1161         parse-datetime, tests: don't use "string" + int
1162         Recent versions of 'clang' complain about C source code that
1163         uses expressions of the form '"string literal" + integer',
1164         I guess on the theory that it's confusing for readers who are
1165         used to C++.  On those grounds I suppose it's OK to make this
1166         minor style change.
1167         * lib/parse-datetime.y (parse_datetime):
1168         * tests/test-fchdir.c (main):
1169         * tests/test-snprintf-posix.h (test_function):
1170         * tests/test-snprintf.c (main):
1171         * tests/test-vasnprintf-posix.c (test_function):
1172         * tests/test-vasnprintf.c (test_function):
1173         * tests/test-vsnprintf.c (main):
1174         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1175         Rewrite '"str" + E' to '&"str"[E]'.
1176
1177 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1178
1179         argmatch: port to C++
1180         * lib/argmatch.h [__cplusplus]: Add extern "C".
1181
1182         argp: typo fix
1183         * lib/argp-help.c: Typo in comment.
1184
1185 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1186
1187         manywarnings: update for GCC 4.8.0
1188         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1189         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1190         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1191         -Wmissing-noreturn, as they are duplicates of other warnings.
1192         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1193         was documented to be flaky in earlier versions of GCC.
1194
1195         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1196         * tests/test-spawn.c (main):
1197         * tests/test-sys_socket.c (main):
1198         * tests/test-sys_wait.c (main):
1199         Don't have a switch value that isn't covered by a case.
1200
1201         getaddrinfo-tests: port --enable-gcc-warnings to clang
1202         * tests/test-getaddrinfo.c (simple):
1203         Avoid casts from looser to stricter-aligned pointers.
1204
1205         thread: port --enable-gcc-warnings to clang
1206         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1207         Include <signal.h>, to pacify a warning about pthread_sigmask.
1208
1209         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1210         * lib/stdio.in.h (fwrite):
1211         When working around bug 11959, use __REDIRECT rather than '#define
1212         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1213         fix the -Wunused-value issue with clang, and it works with GCC too.
1214         Problem with targeting reported by Eric Blake in
1215         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1216         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1217         debugging the fwrite issue.
1218
1219         stdio: port --enable-gcc-warnings to clang
1220         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1221         since the GCC workaround for fwrite does not pacify clang.
1222
1223         sig2str: port --enable-gcc-warnings to clang
1224         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1225
1226         obstack: port --enable-gcc-warnings to clang
1227         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1228         Avoid casts from looser to stricter-aligned pointers.
1229
1230         memchr2: port --enable-gcc-warnings to clang
1231         * lib/memchr2.c (memchr2):
1232         Avoid casts from looser to stricter-aligned pointers.
1233
1234         mbsstr: port --enable-gcc-warnings to clang
1235         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1236         Avoid casts from looser to stricter-aligned pointers.
1237
1238         malloca: port --enable-gcc-warnings to clang
1239         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1240         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1241
1242         inttostr: port --enable-gcc-warnings to clang
1243         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1244
1245         warnings: port to clang
1246         Problem reported by Daniel P. Berrange via Eric Blake in
1247         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1248         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1249         (gl_WARN_ADD): Use it.
1250
1251 2013-05-11  Jim Meyering  <meyering@fb.com>
1252
1253         quotearg: do not read beyond end of buffer
1254         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1255         end of an ARG for which no length was specified.  With an N-byte
1256         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1257         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1258         via coreutils' misc/sort-debug-keys.sh test and detected by running
1259         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1260         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1261         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1262         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1263         characters correctly."
1264
1265 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1266
1267         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1268         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1269         compilation target is Mac OS X 10.6.
1270         Problem reported by parafin and Andoni Morales in
1271         <http://savannah.gnu.org/bugs/?37844> and
1272         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1273
1274 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1275
1276         mkdir-p: remove assumptions about umask and mode
1277         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1278         umask is 0, or that MODE is a subset of MODE_BITS.
1279
1280 2013-05-10  Eric Blake  <eblake@redhat.com>
1281
1282         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1283         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1284
1285 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1286
1287         deps: require Automake >= 1.9.6 in generated Makefile fragments
1288
1289         That is the same minimal version required in the DEPENDENCIES file.
1290         Moreover, the old code generated a requirement of Automake >= 1.5,
1291         and that is an insanely outdated version.
1292
1293         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1294         * tests/havelib/rpathlx/Makefile.am: Likewise.
1295         * tests/havelib/rpathly/Makefile.am: Likewise.
1296         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1297         * tests/havelib/rpathlz/Makefile.am: Likewise.
1298         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1299         * tests/havelib/rpathx/Makefile.am: Likewise.
1300         * tests/havelib/rpathy/Makefile.am: Likewise.
1301         * tests/havelib/rpathz/Makefile.am: Likewise.
1302
1303 2013-05-08  Eric Blake  <eblake@redhat.com>
1304
1305         bootstrap: AC_INIT may have more than four parameters
1306         * build-aux/bootstrap (extract_package_name): Correctly extract
1307         non-empty tarname field.  Avoid range in regex.
1308         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1309
1310 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1311
1312         qacl: port to MS-Windows port of GNU Emacs
1313         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1314         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1315         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1316         <http://bugs.gnu.org/14295#14>.
1317
1318 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1319
1320         acl: include quote.h
1321         * lib/copy-acl.c: Include quote.h.
1322         * lib/set-acl.c: Likewise.
1323
1324 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1325
1326         fchownat, renameat, unlinkat: update statat dependencies
1327         These modules use statat and lstatat, not fstatat; so depend on
1328         the statat module, which was split out recently from fstatat.
1329         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1330         * modules/renameat: Likewise.  Also delete fstat.
1331         URL: http://bugs.gentoo.org/468790
1332
1333 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1334
1335         Assume gnulib is checked out from Git, not CVS
1336
1337         In fact, access to the gnulib repository through CVS has been
1338         disabled, or more precisely, got broken and was never restored; see:
1339         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1340
1341         Note that support for CVS is not removed completely and unthinkingly
1342         by this change: only support for CVS checkouts of gnulib itself is
1343         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1344         files and CVS directories, for the benefit of those poor gnulib clients
1345         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1346
1347         * gnulib-tool: Simplify accordingly.
1348         * posix-modules: Likewise.
1349         * MODULES.html.sh: Likewise.
1350         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1351         repository.
1352         * doc/gnulib-intro.texi: Likewise.
1353         * doc/gnulib-readme.texi: Likewise.
1354         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1355         sample '.gitignore' file rather than a sample '.cvsignore'.
1356         * NEWS: Update.
1357         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1358         to "CVS Autoconf" rather than "git Autoconf".
1359
1360 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1361
1362         utimensat-tests, etc.: try to fix some races
1363         Problem reported by Bernhard Voelker in
1364         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1365         I don't know whether this patch fixes that race condition, but it
1366         fixes *some* race conditions, so it should be a win.
1367         * modules/chown-tests (Depends-on):
1368         * modules/fchownat-tests (Depends-on):
1369         * modules/fdutimensat-tests (Depends-on):
1370         * modules/futimens-tests (Depends-on):
1371         * modules/lchown-tests (Depends-on):
1372         * modules/stat-time-tests (Depends-on):
1373         * modules/utimens-tests (Depends-on):
1374         * modules/utimensat-tests (Depends-on):
1375         Depend on nanosleep, not usleep.
1376         * modules/chown-tests (test_chown_LDADD):
1377         * modules/lchown-tests (test_lchown_LDADD):
1378         * modules/stat-time-tests (test_stat_time_LDADD):
1379         New macro.
1380         * modules/fchownat-tests (test_fchownat_LDADD):
1381         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1382         * modules/futimens-tests (test_futimens_LDADD):
1383         * modules/utimens-tests (test_utimens_LDADD):
1384         * modules/utimensat-tests (test_utimensat_LDADD):
1385         Add $(LIB_NANOSLEEP).
1386         * modules/stat-time-tests (Files): Add tests/nap.h.
1387         * tests/nap.h: Include <limits.h>, for INT_MAX.
1388         (lt_mtime): Remove.
1389         (diff_timespec): New function.
1390         (get_stat): Rename from get_mtime.  All callers changed.
1391         (nap_works): Determine the needed delay by inspecting the
1392         file system's timestamp jumps; this should be more reliable.
1393         Look at both mtime and ctime, and take the maximum of the two jumps.
1394         (nap_works, guess_delay):
1395         Return a nanosecond cound, not a microsecond count.
1396         All callers changed.
1397         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1398         failure.
1399         (nap): Multiply the guess by 1.125, to accommodate the case where
1400         the file system's clock is a bit slower than nanosleep's clock.
1401         * tests/test-stat-time.c (BASE): New macro.
1402         Include nap.h.
1403         (nap): Remove; nap.h now defines this.  This removes a duplicate
1404         implementation of 'nap'.
1405
1406         utimens, utimensat: work around Solaris UTIME_OMIT bug
1407         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1408         Linux kernel 2.6.32 does.  Work around it in the same way.
1409         * doc/posix-functions/futimens.texi (futimens):
1410         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1411         * lib/utimens.c (fdutimens, lutimens):
1412         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1413
1414         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1415         Formerly, it was your responsibility to do this for all Makefile.ams
1416         other than Gnulib's.  Now it's your responsibility to do it for
1417         Gnulib's Makefile.am, too.
1418         * NEWS: Document this.
1419         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1420
1421         acl: include errno.h to get errno
1422         Reported by Daiki Ueno in
1423         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1424         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1425
1426 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1427
1428         tests: don't assume getdtablesize () <= 10000000
1429         * modules/cloexec-tests:
1430         * modules/dup2-tests:
1431         * modules/dup3-tests:
1432         * modules/nonblocking-tests:
1433         * modules/posix_spawn_file_actions_addclose-tests:
1434         * modules/posix_spawn_file_actions_adddup2-tests:
1435         * modules/posix_spawn_file_actions_addopen-tests:
1436         * modules/unistd-safer-tests:
1437         Depend on the getdtablesize module.
1438         * tests/test-cloexec.c:
1439         * tests/test-dup-safer.c:
1440         * tests/test-dup2.c:
1441         * tests/test-dup3.c:
1442         * tests/test-fcntl.c:
1443         * tests/test-nonblocking.c:
1444         * tests/test-posix_spawn_file_actions_addclose.c:
1445         * tests/test-posix_spawn_file_actions_adddup2.c:
1446         * tests/test-posix_spawn_file_actions_addopen.c:
1447         Don't assume getdtablesize () <= 10000000.
1448
1449 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1450
1451         extern-inline: work around bug in Sun c99
1452         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1453         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1454
1455 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1456
1457         qacl: new module, broken out from the acl module
1458         This is for GNU Emacs, which wants the acl functions but does
1459         not want 'error' invoked when they fail.
1460         * lib/acl-internal.h: Do not include error.h, quote.h.
1461         (ENOSYS, ENOTSUP): Remove; no longer needed.
1462         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1463         * lib/acl.h: Include <stdbool.h>.
1464         (acl_errno_valid): New function.
1465         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1466         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1467         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1468         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1469         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1470         * lib/file-has-acl.c (file_has_acl):
1471         * lib/qcopy-acl.c (qcopy_acl):
1472         * lib/qset-acl.c (qset_acl):
1473         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1474         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1475         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1476         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1477         Add lib/set-acl.c.
1478         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1479         Add qacl.
1480         (configure.ac): Move gl_FUNC_ACL to qacl module.
1481         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1482         Rename set-mode-acl.c to set-acl.c.
1483         * lib/acl-errno-valid.c: New file.
1484         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1485         copy_acl function remains in copy-acl.c.
1486         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1487         (_): Remove; not needed.
1488         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1489         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1490         * modules/qacl: New file, moved from the old modules/acl.
1491         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1492         Remove set-mode-acl.c, copy-acl.c.
1493         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1494
1495         alignof, intprops, malloca: port better to IBM's C compiler
1496         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1497         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1498         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1499
1500 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1501
1502         wctype-h: fix gettext link error on mingw
1503         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1504         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1505         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1506         rpl_towupper and rpl_towupper.
1507
1508 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1509
1510         regex-tests, regex: allow glibc re_search behavior
1511         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1512         re_search input data to make the multi-character collating element
1513         in it clearly visible, and treat re_search return code 0 as valid.
1514         * m4/regex.m4 (gl_REGEX): Likewise.
1515
1516 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1517
1518         stdalign: doc fix
1519         * doc/posix-headers/stdalign.texi (stdalign.h):
1520         Gnulib doesn't support '_Alignof expr'.
1521
1522 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1523
1524         stdalign: port to stricter ISO C11
1525         ISO C11 says that _Alignof's operand must be a parenthesized type.
1526         Problem reported by Eli Zaretskii in
1527         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1528         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1529         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1530
1531 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1532
1533         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1534         Problem reported by Marco Atzeri in
1535         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1536         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1537         Simply delegate to the system <sys/select.h> in this case too.
1538         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1539         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1540         be needed on Solaris either.
1541         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1542         Simply delegate to the system <sys/time.h> in this case.
1543
1544 2013-03-19  Karl Berry  <karl@gnu.org>
1545
1546         * build-aux/gnupload: check for erroneous (with gnupload) use of
1547         ftp-upload.gnu.org, tweak help.
1548
1549 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1550
1551         copy-file, rpmatch: fix problems found by cppcheck
1552         Reported by Arno Onken in
1553         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1554         * lib/rpmatch.c (try): Fix memory leak.
1555         * lib/copy-file.c: Include "ignore-value.h".
1556         (qcopy_file_preserving): Ignore chown value.
1557         * modules/copy-file (Depends-on): Add ignore-value.
1558
1559 2013-01-27  Jim Meyering  <jim@meyering.net>
1560
1561         prefix-gnulib-mk: give better diagnostics
1562         * build-aux/prefix-gnulib-mk: Don't just "die".
1563         Give better diagnostics upon failure.
1564
1565 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1566
1567         putenv: port to Solaris 10
1568         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1569         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1570         is not what is wanted here.
1571         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1572         declaration, not for its existence.
1573
1574 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1575
1576         mktime: fix configure typo
1577         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1578
1579 2013-03-12  Eric Blake  <eblake@redhat.com>
1580
1581         regex-tests: skip UTF-8 test on mingw
1582         * modules/regex-tests (Depends-on): Add localcharset.
1583         * tests/test-regex.c (main): Use it to skip test on mingw.
1584
1585 2013-03-11  Eric Blake  <eblake@redhat.com>
1586
1587         tests: make it easier to bypass alarm time in debugger
1588         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1589         * tests/test-memmem.c (main): Likewise.
1590         * tests/test-passfd.c (main): Likewise.
1591         * tests/test-ptsname.c (main): Likewise.
1592         * tests/test-ptsname_r.c (main): Likewise.
1593         * tests/test-strcasestr.c (main): Likewise.
1594         * tests/test-strstr.c (main): Likewise.
1595
1596         regex: port to mingw's recent addition of undeclared alarm
1597         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1598         exists but still doesn't work in newer mingw.
1599         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1600         not existence.  Ensure SIGALRM is not trapped.
1601         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1602         * m4/regex.m4 (gl_REGEX): Likewise.
1603         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1604         * tests/test-regex.c (main): Use correct probe for alarm.
1605
1606         putenv: avoid compilation warning on mingw
1607         * lib/putenv.c (_unsetenv): Protect variable declaration.
1608         (putenv): Fix indentation.
1609
1610 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1611
1612         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1613         * lib/unistd.in.h: be careful not to include un-needed system
1614         stdlib.h from here, because that prevents gnulib stdlib.h from
1615         defining rpl_strtod correctly.
1616
1617 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1618
1619         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1620         changesets, but for the 'precision 0' test.
1621         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1622         round-to-even, since POSIX says rounding is implementation-defined
1623         and OS X 10.8.2 rounds 1.51 to 1 here.
1624
1625         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1626         changeset.
1627         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1628         round-to-even, since POSIX says rounding is implementation-defined
1629         and OS X 10.8.2 rounds 1.5 to 1 here.
1630
1631 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1632
1633         vasnprintf-posix-tests: allow rounding 1.5 to 1
1634         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1635         round-to-even, since POSIX says rounding is implementation-defined
1636         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1637         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1638
1639         bootstrap: port to FreeBSD
1640         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1641         that treat '--' differently.  Reported by Mats Erik Andersson in
1642         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1643
1644 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1645
1646         regex: rename remaining __attribute calls to __attribute__.
1647         2012-02-25 changed definition of __attribute, but left some uses
1648         unchanged, preventing compilation of regex module on most non-gcc
1649         environments.
1650         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1651         (lookup_collation_sequence_value, build_range_exp)
1652         (build_collating_symbol): Set attributes with newly renamed
1653         __attribute__ decorator.
1654         * lib/regex_internal.c (re_string_peek_byte_case)
1655         (re_node_set_compare, re_node_set_contains): Likewise.
1656         * lib/regexec.c (acquire_init_state_context): Likewise.
1657
1658 2013-03-06  Bruno Haible  <bruno@clisp.org>
1659
1660         execute: Revert last change, but use a different condition.
1661         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1662         on Windows.
1663
1664 2013-03-05  Eric Blake  <eblake@redhat.com>
1665
1666         execute: drop dead code
1667         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1668
1669 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1670
1671         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1672         * m4/non-recursive-gnulib-prefix-hack.m4
1673         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1674         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1675         <http://bugs.gnu.org/10305#237>.
1676
1677 2013-03-04  Eric Blake  <eblake@redhat.com>
1678
1679         test-getsockopt: avoid compiler warning
1680         * tests/test-getsockopt.c (includes): Ensure close is declared.
1681
1682 2013-03-02  Bruno Haible  <bruno@clisp.org>
1683
1684         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1685         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1686
1687 2013-03-02  Bruno Haible  <bruno@clisp.org>
1688
1689         gettext: Update to version 0.18.2.
1690         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1691         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1692                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1693
1694 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1695
1696         regex: merge patches from libc
1697
1698         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1699         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1700         All uses changed.
1701         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1702         (re_string_wchar_at, re_string_elem_size_at):
1703         Mark function as possibly unused.
1704
1705         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1706         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1707         elements compare against the byte sequence of it, not its name.
1708
1709 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1710
1711         putenv: port better to native Windows
1712         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1713         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1714         (_unsetenv): Use _putenv if available.
1715         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1716         a bit less likely to cause damage.
1717         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1718         Fix the wrong value with SetEnvironmentVariable.
1719         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1720         code better.
1721
1722 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         regex: ignore old-style-definition warnings
1725         * lib/regex.c: Add pragma to ignore these warnings.
1726         Problem reported for GNU tar by Pavel Raiskup.
1727
1728 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1729
1730         getcwd: support coreutils better
1731         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1732         but this might not be correct in coreutils, which disables
1733         the raw decl checks.  Problem reported by Nagendra in
1734         <http://bugs.gnu.org/10305#192>.
1735         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1736         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1737         Test the getcwd function, not any macro, since getcwd.c wants the
1738         function.
1739         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1740         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1741         compile, as might happen if there's a macro but no function.
1742
1743         strtod: support coreutils better
1744         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1745         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1746         disables the raw decl checks.  This assumes there is an underlying
1747         strtod, but that's a safe assumption these days.
1748         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1749
1750         mountlist: port to HP NonStop
1751         Reported by Joachim Schmitz in
1752         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1753         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1754         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1755
1756 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1757
1758         extern-inline: avoid compilation error with HP-UX cc
1759         Reported by Richard Lloyd in
1760         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1761         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1762         Suppress extern inline with HP-UX cc.  This should be safe,
1763         though it may hurt performance.  Perhaps someone with some HP-UX
1764         experience can come up with a higher-performance fix.
1765
1766 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1767
1768         putenv: fix heap corruption with mixed putenv/_putenv
1769         Problem reported by Michael Goffioul in
1770         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1771         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1772         Rely on _putenv to allocate the new environment.
1773         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1774         * modules/putenv (configure.ac): Use it.
1775
1776 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1777
1778         unsetenv etc.: port to Solaris 11 + GNU Emacs
1779         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1780         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1781         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1782         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1783         idea but is too painful to fix right now), and without this gnulib
1784         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1785         compiling unsetenv.c on Solaris 11.  Fix the problem for
1786         unsetenv.c, and fix other similar occurrences.
1787
1788 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1789
1790         secure_getenv: fix C++ declaration typo
1791         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1792         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1793         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1794
1795 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1796
1797         careadlinkat: stop exporting careadlinkatcwd
1798         Only Emacs used it directly, and Emacs no longer needs it.
1799         * NEWS: Document this simplification.
1800         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1801         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1802         for readlink.
1803         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1804         Don't include stdlib.h; no longer needed.
1805         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1806         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1807         * modules/areadlink (Depends-on): Add readlink.
1808         (Maintainer): Add self.
1809         * modules/careadlinkat (Depends-on): Remove readlink.
1810
1811         extensions: port better to HP-UX
1812         This is merged from git Autoconf.
1813         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1814         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1815         so that it's compatible with the value used when compiling.
1816
1817         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1818         Problem reported by Mats Erik Andersson in
1819         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1820         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1821         openpty function exists, not merely when we intend to replace it.
1822         This corrects the 2013-01-31 patch, which mistakenly defined
1823         HAVE_OPENPTY even on hosts that lacked it.
1824
1825 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         secure_getenv: fix include typo
1828         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1829
1830         secure_getenv: port better to FreeBSD and Solaris
1831         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1832         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1833         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1834         This works better on BSDish platforms.
1835         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1836         Test for issetugid if __secure_getenv is missing.
1837
1838 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1839
1840         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1841         Some of these changes are merged in from git Autoconf.
1842         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1843         When deciding whether to define _XOPEN_SOURCE, inspect the
1844         preprocessor macro __hpux instead of the more-heavyweight
1845         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1846         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1847         as the key for __EXTENSIONS__.
1848
1849         unistd: avoid namespace pollution on non-glibc systems
1850         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1851         This avoids namespace pollution on non-glibc systems, by causing
1852         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1853         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1854         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1855
1856 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1857
1858         tmpdir: use secure_getenv
1859         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1860         Define to secure_getenv, not getenv.
1861         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1862         as that's now secure_getenv's job.
1863         * modules/tmpdir (Depends-on): Add secure_getenv.
1864
1865         tempname: use secure_getenv
1866         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1867         Define to secure_getenv, not getenv.
1868         * modules/tempname (Depends-on):
1869         Add secure_getenv.
1870
1871         secure_getenv: new module
1872         * MODULES.html.sh (Extra functions based on ANSI C 89):
1873         Add secure_getenv.
1874         * doc/glibc-functions/secure_getenv.texi: New file.
1875         * doc/gnulib.texi: Include it.
1876         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1877         New files.
1878         * lib/stdlib.in.h (secure_getenv): New decl.
1879         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1880         * modules/stdlib (stdlib.h):
1881         Add secure_getenv checks.
1882
1883 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1884
1885         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1886         Reported for OS X 10.8.2 by Assaf Gordon in
1887         <http://bugs.gnu.org/13516>.
1888         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1889         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1890         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1891         so that they can be kept in sync more easily.  Avoid PATH_MAX
1892         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1893         mkdir or chdir failure.
1894         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1895         lib/getcwd.c.
1896         (test_abort_bug): Do not test for the deep directory bug unless we
1897         have openat support.  Avoid PATH_MAX test on the Hurd.
1898
1899         regex-tests, regex: fix bug: memset undeclared
1900         * tests/test-regex.c: Don't include regex.h twice.  Include
1901         string.h, to declare memset.  Christensen's report also mentioned
1902         this issue.
1903         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1904         test-regex.c, to avoid future problems like this.  Remove
1905         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1906         twice.
1907
1908         regex-tests: fix link errors on older Solaris
1909         These need to link with @LIBINTL@ to get libintl_gettext.
1910         Problem reported by Tom G. Christensen in
1911         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1912         * modules/regex-tests (test_regex_LDADD): New macro.
1913
1914 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1915
1916         regex-tests: new module
1917         * modules/regex-tests, tests/test-regex.c: New files.
1918
1919         regex: fix off-by-one error in configure test
1920         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1921
1922 2013-01-31  Eric Blake  <eblake@redhat.com>
1923
1924         regex: avoid infinite configure test
1925         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1926
1927 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1928
1929         openpty: fix bug where HAVE_OPENPTY wasn't defined
1930         See the thread starting at:
1931         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1932         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1933         openpty function exists, not merely when we intend to replace it.
1934
1935 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1936
1937         sys_time: port to Solaris 2.6
1938         There is a circularity problem on Solaris 2.6, where <time.h> includes
1939         <sys/time.h> for struct timespec.  The include nesting is gnulib
1940         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1941         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1942         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1943         <sys/siginfo.h>; the last, innermost file needs struct
1944         timestruc_t, which is defined in <sys/time.h>, which has not been
1945         fully parsed.  Problem reported by Tom G. Christensen in
1946         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1947         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1948         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1949         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1950         uses split double-inclusion guards.
1951
1952 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1953
1954         regex: test for buffer overrun
1955         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1956         for the just-fixed regex bug.
1957
1958 2013-01-29  Andreas Schwab  <schwab@suse.de>
1959
1960         regex: fix buffer overrun in regexp matcher [BZ #15078]
1961         * lib/regexec.c (extend_buffers): Add parameter min_len.
1962         (check_matching): Pass minimum needed length.
1963         (clean_state_log_if_needed): Likewise.
1964         (get_subexp): Likewise.
1965
1966 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1967
1968         mountlist: don't consider "devtmpfs" as dummy
1969         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1970         as there is storage associcated with it.
1971
1972 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1973
1974         futimens-tests, utimens-tests: Depend on gettext.
1975         This works around a problem introduced in my 2013-01-12 patch,
1976         which added @LIBINTL@ to these modules.
1977         * modules/futimens-tests (Depends-on):
1978         * modules/utimens-tests (Depends-on): Add gettext.
1979
1980 2013-01-26  Eric Blake  <eblake@redhat.com>
1981
1982         test-getpeername: fix typo
1983         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1984
1985 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1986
1987         bootstrap: remove the need for a sorted .gitignore file
1988         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1989         rename to insert_if_absent(), so that we don't need or generate
1990         a sorted .gitignore file.  We do require a .gitignore with no
1991         existing duplicate entries and enforce that.
1992         (sort_patterns): Remove this function as we now use the simpler
1993         technigue of inserting blacklist entries at the top of the file,
1994         assuming gnulib won't be inserting !whitelist entries.
1995
1996 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1997
1998         readlinkat: don't depend on gl_FUNC_OPENAT
1999         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
2000         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
2001         renameat.m4, symlinkat.m4; but one thing at a time.
2002
2003         statat: new module, split out from fstatat
2004         GNU Emacs needs the POSIX-specified fstatat, but not the
2005         gnulib-specified statat and lstat.  Split the latter two into a
2006         new module 'statat'.
2007         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
2008         * lib/openat.h, lib/statat.c (STATAT_INLINE):
2009         Rename from FSTATAT_INLINE. All uses changed.
2010         * modules/fstatat (Files): Remove lib/statat.c.
2011         (gl_MODULE_INDICATOR([fstatat])): Remove.
2012         (lib_SOURCES): Remove.
2013         (Maintainer): Add self.
2014         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
2015         * tests/test-fstatat.c (BASE): Don't define if already defined.
2016         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
2017
2018 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2019
2020         tests: don't assume fd 99 is closed
2021         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
2022         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
2023         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
2024         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
2025         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
2026         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
2027         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
2028         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
2029         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
2030         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
2031         * tests/test-fwrite.c, tests/test-getpeername.c:
2032         * tests/test-getsockname.c, tests/test-getsockopt.c:
2033         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
2034         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
2035         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
2036         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
2037         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
2038         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
2039         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
2040         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
2041         * tests/test-unlinkat.c, tests/test-unlockpt.c:
2042         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
2043         Close file descriptor 99, instead of assuming it's already closed.
2044
2045 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         stpncpy: port to OS X 10.8
2048         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
2049         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
2050
2051 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2052
2053         unistd: port to recent mingw
2054         * lib/unistd.in.h: Remove special invocation convention for mingw,
2055         which breaks for the latest mingw version.  See John W. Eaton in
2056         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
2057
2058         largefile: port better to Mac OS X 10.5
2059         This patch is backported from Autoconf git.
2060         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
2061         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
2062         with ino_t size being different for configuration time versus
2063         build/run time.  Problem reported by PHO in
2064         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
2065
2066 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2067
2068         doc: clarify -Werror
2069         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
2070         clarify that it's intended for developers, not for ordinary builds,
2071         and mention --enable-gcc-warnings as one possible use.
2072
2073 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
2074
2075         stdint: fix build with Android's Bionic fox x86
2076         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2077         was already included as _SSIZE_T_DEFINED_ might also be defined
2078         in include/machine/_types.h, which is included by stdio.h
2079
2080 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2081
2082         net_if-tests: port to Solaris 7 + GCC 3.4.6
2083         Problem reported by Tom G. Christensen in
2084         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2085         * tests/test-net_if.c (ni): Move to next the code that uses it,
2086         so that it's declared only if needed.
2087
2088 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2089
2090         net_if-tests: port to older Solaris
2091         Problem reported by Tom G. Christensen in
2092         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2093         * modules/net_if-tests (NET_IF_LIB): New substitution.
2094         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2095         (HAVE_IF_NAMEINDEX): New C macro.
2096         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2097
2098         system-quote-tests: port to older Solaris
2099         Problem reported by Tom G. Christensen in
2100         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2101         * tests/test-system-quote-child.c (fopen, fread): Undef.
2102
2103         c-xvasprintf etc.: fix link errors on older Solaris
2104         These need to link with @LIBINTL@ to get libintl_gettext.
2105         Problem reported by Tom G. Christensen in
2106         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2107         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2108         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2109         * modules/futimens-tests (test_futimens_LDADD):
2110         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2111
2112 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2113
2114         locale: port to Solaris 2.6 and 7 + GNU gettext
2115         * lib/locale.in.h: Just include_next <locale.h> when
2116         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2117         when combining the localename module with GNU gettext 0.18.2.
2118         Problem reported by Tom G. Christensen in
2119         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2120
2121 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2122
2123         stdlib: port to Solaris 2.6
2124         Also, the code worked on Solaris 7 through 9 only by accident.
2125         Problem reported by Tom G. Christensen in
2126         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2127         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2128         simply include the system stdlib.h.
2129         * lib/getopt.in.h (__need_system_stdlib_h):
2130         * lib/pthread.in.h (__need_system_stdlib_h):
2131         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2132         Define when including <stdlib.h>, to avoid problems at least for
2133         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2134         with the system stdlib.h.
2135
2136 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2137
2138         doc: update main copyright year
2139         * doc/gnulib.texi: Update copyright date.
2140
2141         doc: improve ISO 8601 discussion
2142         * doc/parse-datetime.texi (Combined date and time of day items):
2143         Specify more carefully what formats are supported and what is
2144         done with excess precision.
2145
2146 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2147
2148         doc: avoid small caps
2149         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2150         they're more trouble than they're worth.  Suggested by Karl Berry
2151         in <http://bugs.gnu.org/13360>.
2152
2153         regex: conform to strict C
2154         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2155         From Aharon Robbins.
2156
2157         gnulib-tool: fix incompatibility with autopoint 0.18.2
2158         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2159         Problem reported by Tom G. Christensen in
2160         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2161
2162 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2163
2164         fprintftime: bring back and reword fwrite comment
2165         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2166
2167         stdio: remove now-unnecessary stdio.c
2168         Since stdio.in.h no longer uses inline functions, we no longer
2169         need to compile the extern versions.
2170         * lib/stdio.c: Remove.
2171         * modules/stdio (Files): Remove lib/stdio.c.
2172         (lib_SOURCES): Remove.
2173
2174         unicodeio: depend on stdio, not ignore-value
2175         * lib/unicodeio.c: Do not include ignore-value.h.
2176         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2177         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2178
2179         fprintftime: depend on stdio, not ignore-value
2180         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2181         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2182         since the stdio module arranges to silence that warning now.
2183         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2184
2185 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2186
2187         stdint-tests: Fix expanded-before-required-warning.
2188         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2189
2190 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2191
2192         fwrite: silence __wur only for older glibc versions
2193         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2194         This will help us remove this workaround some time in the far future.
2195
2196 2013-01-03  Eric Blake  <eblake@redhat.com>
2197
2198         fwrite: silence __wur without using inline
2199         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2200         just gcc, and in a way that avoids inline issues.
2201         * modules/stdio (Depends-on): Drop extern-inline.
2202
2203 2013-01-03  Jim Meyering  <jim@meyering.net>
2204
2205         update-copyright: avoid copyright notice date corruption
2206         Given a sequence of copyright year numbers in which the final
2207         one was a two-digit number that happened to be a substring of
2208         a preceding four-digit year number, we would mistakenly update
2209         the substring (from two- to four-digit) rather than the two-digit
2210         number at the end, which, combined with the addition of the current
2211         4-digit year number would yield two 5-digit year numbers, e.g.,
2212         here, it would convert the first "99" to "1999, 2013" rather than
2213         the final one:
2214           1991, 99
2215           11999, 20131, 1999
2216         * build-aux/update-copyright: Tighten a regexp.
2217         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2218         Reported by Joseph Myers in
2219         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2220
2221 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2222
2223         regex: omit needless signed-pointer casts
2224         * lib/regcomp.c (build_charclass, build_charclass_op):
2225         Use char *, not unsigned char *, for class name and extra.
2226         The char values are always nonnegative so there's no need to
2227         insist on unsigned char * here, and using char * removes the need
2228         for casts.  Reported by Aharon Robbins in
2229         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2230
2231         regex: support Gawk, which never uses alloca
2232         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2233         Do not include in this case.  Gawk doesn't supply a substitute
2234         alloca.h and doesn't need one.
2235
2236         regex: port __libc_lock_define usage to C89
2237         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2238         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2239         does not conform to C89, as it has an empty macro argument.
2240         Reported by Aharon Robbins in
2241         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2242
2243 2013-01-01  Eric Blake  <eblake@redhat.com>
2244
2245         maint: update all copyright year number ranges
2246         Run "make update-copyright".
2247
2248         version-etc: bump copyright year reported in --version
2249         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2250
2251 2012-12-31  Eric Blake  <eblake@redhat.com>
2252
2253         sigprocmask-tests: skip test if pid is unexpectedly large
2254         * tests/test-sigprocmask.c (main): Add range check.
2255
2256         git-version-gen: avoid test -z portability glitch
2257         * build-aux/git-version-gen: Prefer portable test spelling, since
2258         git-version-gen is run on more than just developer machines.
2259
2260 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2261
2262         git-version-gen: add --fallback option to use if git is not present
2263         * build-aux/git-version-gen: Add support for the new option --fallback,
2264         which comes into play when there is no $tarball_version_file and
2265         git is not working.
2266         (scriptversion): Update.
2267
2268         maint.mk: handle missing git with more grace
2269         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2270         Quietly proceed if git is not present.
2271
2272 2012-12-31  Eric Blake  <eblake@redhat.com>
2273
2274         dup2: work around cygwin bug
2275         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2276         * lib/dup2.c (rpl_dup2): Work around it.
2277         * doc/posix-functions/dup2.texi (dup2): Document it.
2278
2279 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         regex: remove unnecessary dependency on localcharset.h
2282         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2283         hasn't been needed for years.
2284         * modules/regex (Depends-on): Remove localcharset.
2285
2286         regex: revert single-byte change
2287         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2288         to this function.  This was alredy fixed in a different way, at
2289         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2290         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2291         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2292
2293         regex: simplify based on Gawk version
2294         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2295         Reported by Aharon Robbins in
2296         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2297
2298 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2299
2300         regex: check that pattern char is single-byte
2301         Reported by Aharon Robbins in
2302         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2303         * lib/regexec.c (check_node_accept_bytes):
2304         Return 0 if the pattern string has a multibyte character here.
2305
2306         regex: implement rational ranges
2307         Reported by Aharon Robbins in
2308         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2309         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2310         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2311         Implement rational ranges.
2312
2313         regex: avoid redefining __wctype
2314         Reported by Aharon Robbins in
2315         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2316         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2317         #undef before defining.
2318
2319         regex: port to hosts where malloc (0) == NULL
2320         Reported by Aharon Robbins in
2321         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2322         * lib/regex_internal.c (re_node_set_alloc):
2323         Don't assume that malloc (0) yields nonnull.
2324         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2325         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2326         * modules/regex (Files): Add m4/eealloc.m4.
2327
2328         regex: port to C89
2329         Reported by Aharon Robbins in
2330         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2331         * lib/regcomp.c (init_word_char): Declaration before statement.
2332
2333         regex: merge glibc changes
2334         Also, copy the license wording from glibc.  This simplifies
2335         merging changes.  gnulib-tool will change the wording to GPL as
2336         appropriate, when importing it to other packages.  The only
2337         glibc change made since the last merge, which needs merging, is:
2338         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2339         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2340
2341         * users.txt: Add Emacs.
2342
2343         doc: omit mention of version when not needed
2344         * doc/gnulib-intro.texi (Portability and Application Code):
2345         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2346         Don't mention particular dates or versions when not necessary, so
2347         that the documentation won't go out of date so quickly.
2348
2349         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2350
2351 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2352
2353         bootstrap: pass --force to autoreconf.
2354         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2355         Add "--force" so that Automake's ylwrap and other such tools
2356         be updated at each bootstrap invocation.
2357         Use it.
2358
2359 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2360
2361         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2362         The earlier patch forgot to update one of the #if conditions, causing
2363         a problem on Debian testing i386 reported by Mats Erik Andersson
2364         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2365         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2366         (__argp_fmtstream_puts, argp_fmtstream_puts)
2367         (__argp_fmtstream_write, argp_fmtstream_write)
2368         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2369
2370         * doc/gnulib-readme.texi: Minor fixups.
2371         (Portability guidelines): Modernize URLs.  Remove some repetition.
2372         (Indent with spaces not TABs): Reword to avoid too-long lines.
2373         Remove some '@ifset standalone' stuff that isn't used.
2374
2375         * doc/gnulib-readme.texi (Portability guidelines):
2376         ctype.h, not ctime.h.
2377
2378         Correct name of POSIX.1-2001.
2379         * doc/posix-functions/fgetc.texi (fgetc):
2380         * doc/posix-functions/fgets.texi (fgets):
2381         * doc/posix-functions/fread.texi (fread):
2382         * doc/posix-functions/fscanf.texi (fscanf):
2383         * doc/posix-functions/getc.texi (getc):
2384         * doc/posix-functions/getchar.texi (getchar):
2385         * doc/posix-functions/scanf.texi (scanf):
2386         POSIX.1-2001, not POSIX-2001.
2387
2388         doc: move README into manual
2389         * README: Move contents to new file doc/gnulib-readme.texi.
2390         Replace with a one-line summary.
2391         * doc/gnulib.texi (Brief Overview): New section,
2392         with old intro preface.  Include gnulib-readme.texi for contents.
2393         (Philosophy): Rename from "Introduction", since this
2394         section no longer introduces the rest.  Write a new preface.
2395         * doc/gnulib-readme.texi: New file, with the old contents of
2396         README texinfo-ized.  This way, the README info appears
2397         in the online and printed manual.
2398
2399 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2400
2401         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2402         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2403         c_vasprintf() prototype.
2404
2405 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2406
2407         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2408         * lib/c-vasprintf.h: Remove stray semicolon.
2409
2410 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2411
2412         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2413         It is obsolete and is planned to be removed from Automake 1.14; see
2414         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2415         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2416         (installdirs-data, installdirs-data-yes):
2417         Use $(MKDIR_P), not $(mkdir_p).
2418         * m4/intl.m4 (AM_INTL_SUBDIR):
2419         * m4/po.m4 (AM_PO_SUBDIRS):
2420         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2421
2422 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2423
2424         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2425         On this platform, we are not optimizing but we are using
2426         the substitute for extern inlines, so compile as if
2427         C99-style extern inline, or a substitute, is available.
2428         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2429         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2430         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2431         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2432         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2433         Declare as ARGP_FS_EI, not as extern.
2434         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2435         (__option_is_short, _option_is_end, __option_is_end)
2436         [!_LIBC && __USE_EXTERN_INLINES]:
2437         Declare as ARGP_EI, not as extern.
2438
2439 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2440
2441         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2442         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2443         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2444         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2445         ...), as the latter is fatal with older Autoconfs.
2446         Problem reported and fix suggested by Eric Blake in thread starting at
2447         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2448
2449 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2450
2451         AC_PROG_MKDIR_P: don't workaround if not buggy
2452         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2453         Define only for Autoconf versions before 2.62.
2454         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2455         undocumented m4_PACKAGE_VERSION, for consistency with the
2456         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2457         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2458         was introduced in 2.62.
2459
2460 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2461
2462         New 'c-*printf' modules for formatted output in C locale.
2463
2464         New module 'c-vasnprintf'.
2465         * modules/c-vasnprintf: New file.
2466         * lib/c-vasnprintf.c: New file.
2467         * lib/c-vasnprintf.h: New file.
2468
2469         New module 'c-snprintf'.
2470         * modules/c-snprintf: New file.
2471         * modules/c-snprintf-tests: New file.
2472         * lib/c-snprintf.c: New file.
2473         * lib/c-snprintf.h: New file.
2474         * tests/test-c-snprintf.c: New file.
2475         * tests/test-c-snprintf.sh: New file.
2476
2477         New module 'c-vsnprintf'.
2478         * modules/c-vsnprintf: New file.
2479         * modules/c-vsnprintf-tests: New file.
2480         * lib/c-vsnprintf.c: New file.
2481         * lib/c-vsnprintf.h: New file.
2482         * tests/test-c-vsnprintf.c: New file.
2483         * tests/test-c-vsnprintf.sh: New file.
2484
2485         New module 'c-vasprintf'.
2486         * modules/c-vasprintf: New file.
2487         * modules/c-vasprintf-tests: New file.
2488         * lib/c-asprintf.c: New file.
2489         * lib/c-vasprintf.c: New file.
2490         * lib/c-vasprintf.h: New file.
2491         * tests/test-c-vasprintf.c  +: New file.
2492         * tests/test-c-vasprintf.sh: New file.
2493
2494         New module 'c-xvasprintf'.
2495         * modules/c-xvasprintf: New file.
2496         * modules/c-xvasprintf-tests: New file.
2497         * lib/c-xasprintf.c: New file.
2498         * lib/c-xvasprintf.c: New file.
2499         * lib/c-xvasprintf.h: New file.
2500         * tests/test-c-xvasprintf.c: New file.
2501         * tests/test-c-xvasprintf.sh: New file.
2502
2503 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2504
2505         argp: better 'inline'
2506         Use extern-inline module to declare extern inline functions.
2507         This avoids some bogus warning diagnostics.  Problem discovered
2508         when modifying GNU tar to use the manywarnings module.
2509         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2510         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2511         Define based on extern-inline.
2512         * modules/argp (Depends-on): Add extern-inline.
2513
2514 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2515
2516         filemode, sys_stat: Handle MPX files a la AIX.
2517         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2518         * lib/sys_stat.in.h (S_ISMPX): New macro.
2519         * tests/test-sys_stat.c: Add tests for MPX files.
2520
2521 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2522
2523         x-to-1: honor $PERL
2524         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2525         a chance to use his preferred version of Perl.  This is typically
2526         required by Darwin users whose default /usr/bin/perl does not have all
2527         the libraries required by help2man, and who need to use their MacPorts
2528         installation of Perl instead.
2529
2530 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2531
2532         gnu-web-doc-update: add all the new files, even in new directories
2533         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2534         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2535         Use it.
2536         (main): Don't use cvsutils to get the list of unknown files,
2537         just add all the existing files and directories.
2538
2539 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2540
2541         gnu-web-doc-update: improve --help
2542         * build-aux/gnu-web-doc-update: Move comments into --help.
2543
2544 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2545
2546         mountlist: recognize more "dummy" file systems
2547         * lib/mountlist.c (ME_DUMMY_0):
2548         Add these dummy FS names to the list:
2549         - "debugfs" virtual filesystem for kernel debugging
2550         - "devpts" PTY slave filesystem
2551         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2552         - "fusectl" control filesystem for FUSE
2553         - "mqueue" enumerates POSIX message queues
2554         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2555         - "sysfs" is for exporting kernel objects
2556         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2557
2558 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2559
2560         extern-inline: avoid incompatibility with Darwin Libc
2561         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2562         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2563         Problem reported by Akim Demaille in
2564         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2565
2566 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2567
2568         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2569         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2570         let it handle password prompting.
2571
2572 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2573
2574         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2575         * lib/canonicalize.c (canonicalize_filename_mode):
2576         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2577         fetching the current directory.  Don't overrun the beginning of
2578         rpath if there's no slashes after the MS-Windows drive letter.
2579
2580 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2581
2582         maint.mk: avoid extra forks
2583         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2584         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2585         So use that instead of "$(shell test -f FILE && echo FILE)".
2586
2587 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2588
2589         vasnprintf: fix ASCII_ONLY typo
2590         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2591         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2592         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2593         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2594         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2595
2596 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2597
2598         list, oset, xlist, xoset: fix extern inline issue with C99
2599         This was introduced by my recent changes for 'inline'.
2600         Problem reported for gettext by Daiki Ueno in
2601         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2602         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2603         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2604         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2605         (gl_list_previous_node, gl_list_get_at)
2606         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2607         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2608         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2609         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2610         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2611         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2612         (gl_list_iterator_free, gl_sortedlist_search)
2613         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2614         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2615         (gl_sortedlist_remove):
2616         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2617         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2618         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2619         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2620         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2621         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2622         (gl_list_add_at, gl_sortedlist_add):
2623         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2624         Wrap these extern decls inside "#if 0", because they are implemented
2625         as inline functions, and extern inline is not what's wanted here.
2626         It would simplify these .h files to remove the extern decls entirely,
2627         although a downside would be less-clear separation between
2628         specification and implementation.
2629
2630 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2631
2632         sys_stat: no 'static inline'
2633         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2634         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2635
2636         extern-inline: no 'static inline'
2637         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2638         Do not require AC_C_INLINE.
2639         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2640         'static inline', for older compilers.
2641
2642         snippet/warn-on-use: no 'static inline'
2643         * build-aux/snippet/warn-on-use.h:
2644         Remove unnecessary 'inline' in comment.
2645
2646         rbtree-list, rbtreehash-list: no 'static inline'
2647         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2648         * lib/gl_anytree_list2.h (node_at):
2649         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2650         (gl_oset_first, add_nodes_to_buckets):
2651         Now static, not static inline.
2652
2653         regex: no 'static inline'
2654         * lib/regex_internal.c (calc_state_hash):
2655         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2656         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2657         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2658         Now static, not static inline.
2659         (inline) [__GNUC__ < 3 && _LIBC]:
2660         Remove macro; no longer needed.
2661
2662         xvasprintf: no 'static inline'
2663         * lib/xvasprintf.c (xstrcat):
2664         Now static, not static inline.
2665         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2666         Do not require AC_C_INLINE.
2667
2668         parse-datetime, parse-duration: no 'static inline'
2669         * lib/parse-datetime.y (to_uchar):
2670         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2671         (scale_n_add):
2672         Now static, not static inline.
2673         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2674         * modules/parse-duration (configure.ac):
2675         Do not require AC_C_INLINE.
2676
2677         getaddrinfo: no 'static inline'
2678         * lib/getaddrinfo.c (validate_family):
2679         Now static, not static inline.
2680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2681         Do not require AC_C_INLINE.
2682
2683         ftruncate, fts, lstat, openat, raise: no 'static inline'
2684         * lib/ftruncate.c (chsize_nothrow):
2685         * lib/fts.c (opendirat, diropen):
2686         * lib/lstat.c (orig_lstat):
2687         * lib/openat.c (orig_openat):
2688         * lib/raise.c (raise_nothrow):
2689         Now static, not static inline.
2690         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2691         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2692         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2693         * m4/openat.m4 (gl_PREREQ_OPENAT):
2694         * m4/raise.m4 (gl_PREREQ_RAISE):
2695         Do not require AC_C_INLINE.
2696
2697         fflush, stat: no 'static inline'
2698         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2699         (clear_ungetc_buffer, disable_seek_optimization)
2700         (restore_seek_optimization, update_fpos_cache):
2701         * lib/stat.c (orig_stat):
2702         Now static, not static inline.
2703         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2704         (update_fpos_cache):
2705         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2706         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2707         * m4/stat.m4 (gl_PREREQ_STAT):
2708         Do not require AC_C_INLINE.
2709
2710         error, filevercmp: no 'static inline'
2711         * lib/error.c (is_open, flush_stdout):
2712         * lib/filevercmp.c (order):
2713         Now static, not static inline.
2714         * m4/error.m4 (gl_PREREQ_ERROR):
2715         * modules/filevercmp (configure.ac):
2716         Do not require AC_C_INLINE.
2717
2718         dup, execute, fatal-signal, etc.: no 'static inline'
2719         * lib/dup.c (dup_nothrow):
2720         * lib/execute.c (nonintr_close, nonintr_open):
2721         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2722         * lib/fopen.c (orig_fopen):
2723         * lib/freadseek.c (freadptrinc):
2724         * lib/freopen.c (orig_freopen):
2725         * lib/fstat.c (orig_fstat, fstat_nothrow):
2726         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2727         (get_rusage_as_via_iterator):
2728         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2729         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2730         * lib/isatty.c (_isatty_nothrow):
2731         * lib/open.c (orig_open):
2732         * lib/read.c (read_nothrow):
2733         * lib/sigprocmask.c (signal_nothrow):
2734         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2735         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2736         * lib/wait-process.c (unregister_slave_subprocess):
2737         * lib/write.c (write_nothrow):
2738         Now static, not static inline.
2739         * lib/spawn-pipe.c (nonintr_open): Define only if
2740         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2741         * m4/dup.m4 (gl_PREREQ_DUP):
2742         * m4/execute.m4 (gl_EXECUTE):
2743         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2744         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2745         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2746         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2747         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2748         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2749         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2750         * m4/open.m4 (gl_PREREQ_OPEN):
2751         * m4/read.m4 (gl_PREREQ_READ):
2752         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2753         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2755         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2756         * m4/write.m4 (gl_PREREQ_WRITE):
2757         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2758         Do not require AC_C_INLINE.
2759
2760         c-strtod, memcoll, readutmp: no 'static inline'
2761         * lib/c-strtod.c (c_locale):
2762         * lib/memcoll.c (strcoll_loop):
2763         * lib/readutmp.c (desirable_utmp_entry):
2764         Now static, not static inline.
2765         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2766         * m4/memcoll.m4 (gl_MEMCOLL):
2767         * m4/readutmp.m4 (gl_READUTMP):
2768         Do not require AC_C_INLINE.
2769
2770         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2771         * lib/arctwo.c (to_uchar):
2772         * lib/md4.c (set_uint32):
2773         * lib/md5.c (set_uint32):
2774         * lib/sha1.c (set_uint32):
2775         * lib/sha256.c (set_uint32):
2776         * lib/sha512.c (set_uint64):
2777         Now static, not static inline.  This is a bit simpler, and doesn't
2778         affect performance with GCC and default optimization.
2779         * m4/arctwo.m4 (gl_ARCTWO):
2780         * m4/md4.m4 (gl_MD4):
2781         * m4/md5.m4 (gl_MD5):
2782         * m4/sha1.m4 (gl_SHA1):
2783         * m4/sha256.m4 (gl_SHA256):
2784         * m4/sha512.m4 (gl_SHA512):
2785         Do not require AC_C_INLINE.
2786
2787         cond, lock, thread: better 'inline'
2788         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2789         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2790         New macros.  Use them instead of static inline, for header functions.
2791         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2792         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2793         * lib/glthread/lock.c (gl_waitqueue_init)
2794         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2795         * lib/glthread/thread.c (get_current_thread_handle):
2796         Change 'static inline' to 'inline'.
2797         * lib/glthread/cond.h, lib/glthread/thread.h:
2798         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2799         * m4/cond.m4 (gl_COND):
2800         * m4/lock.m4 (gl_PREREQ_LOCK):
2801         * m4/thread.m4 (gl_THREAD):
2802         Do not require AC_C_INLINE.
2803         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2804
2805         chdir-long, cycle-check, savewd: better 'inline'
2806         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2807         (find_non_slash):
2808         * lib/cycle-check.c (is_zero_or_power_of_two):
2809         * lib/savewd.c (savewd_delegating):
2810         Change 'static inline' to 'inline'.
2811         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2812         Replace all remaining uses of 'static inline' with it.
2813         * lib/savewd.h:
2814         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2815         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2816         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2817         * m4/savewd.m4 (gl_SAVEWD):
2818         Do not require AC_C_INLINE.
2819         * modules/savewd (Depends-on): Add extern-inline.
2820
2821         base32, base64: no need for 'inline'
2822         * lib/base32.c (to_uchar, get_8, decode_8):
2823         * lib/base64.c (to_uchar, get_4, decode_4):
2824         Change 'static inline' to 'inline'.
2825         * m4/base32.m4 (gl_PREREQ_BASE32):
2826         * m4/base64.m4 (gl_PREREQ_BASE64):
2827         Do not require AC_C_INLINE.
2828
2829         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2830         * lib/gl_array_oset.c (gl_array_nx_add_at):
2831         (gl_array_remove_at):
2832         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2833         (add_to_bucket, remove_from_bucket):
2834         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2835         Change 'static inline' to 'static', as it's simpler to omit
2836         'inline' unless there's a significant performance advantage.
2837
2838         list, oset, xlist, xoset, xsublist: simplify via extern inline
2839         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2840         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2841         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2842         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2843         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2844         New macro.  Replace all uses of 'static inline' with it.
2845         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2846         instead of as macros FOO that are defined to static inline
2847         functions FOO_inline.
2848         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2849         * lib/gl_xsublist.c:
2850         Reimplement from scratch, by defining the corresponding *_INLINE
2851         macro and including the corresponding .h file.  This is simpler.
2852         * modules/list, modules/oset, modules/xlist, modules/xoset:
2853         (Files): Remove m4/gl_list.m4.
2854         (configure.ac): Remove gl_LIST.
2855         * m4/gl_list.m4: Remove.
2856         * modules/list, modules/oset, modules/xlist, modules/xoset:
2857         * modules/xsublist:
2858         (Depends-on): Depend on extern-inline, not inline.
2859
2860         xalloc: better 'inline'
2861         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2862         New macro.  Replace all uses of 'static inline' with it.
2863         (static_inline): Remove.
2864         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2865         Let 'extern inline' do the work automatically, instead of doing
2866         it by hand.
2867         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2868         Remove.  All uses removed.
2869         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2870
2871         gethrxtime: better 'inline'
2872         * lib/xtime.c: New file.
2873         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2874         * lib/xtime.h (XTIME_INCLUDE):
2875         New macros.  Replace all uses of 'static inline' with them.
2876         * lib/gethrxtime.c (gethrxtime): Define only if
2877         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2878         this source file is now always compiled, because of the extern inline.
2879         * lib/gethrxtime.h, lib/xtime.h:
2880         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2881         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2882         if gethrtime works, as they're not needed in that case.
2883         (gl_XTIME): Do not require AC_C_INLINE.
2884         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2885         compiled now.  Move the check into gl_GETHRXTIME.
2886         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2887         (Depends-on): Add extern-inline.
2888         (configure.ac): gethrxtime is always compiled now.
2889         (lib_SOURCES): Add gethrxtime.c.
2890
2891         wctype-h: better 'inline'
2892         * lib/wctype-h.c: New file.
2893         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2894         New macro.  Replace all uses of 'static inline' with it.
2895         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2896         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2897         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2898         (Depends-on): Add extern-inline.
2899
2900         unistd: better 'inline'
2901         * lib/unistd.c: New file.
2902         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2903         New macro.  Replace all uses of 'static inline' with it.
2904         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2905         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2906         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2907         (Depends-on): Add extern-inline.
2908
2909         sys_socket: better 'inline'
2910         * lib/sys_socket.c: New file.
2911         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2912         New macro.  Replace all uses of 'static inline' with it.
2913         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2914         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2915         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2916         (Depends-on): Add extern-inline.
2917
2918         stdio: better 'inline'
2919         * lib/stdio.c: New file.
2920         * lib/stdio.in.h (_GL_STDIO_INLINE):
2921         New macro.  Replace all uses of 'static inline' with it.
2922         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2923         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2924         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2925         (Depends-on): Add extern-inline.
2926
2927         sigaction: better 'inline'
2928         * lib/sig-handler.c: New file.
2929         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2930         New macro.  Replace all uses of 'static inline' with it.
2931         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2932         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2933         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2934         (Depends-on): Add extern-inline.
2935
2936         selinux-h: better 'inline'
2937         * lib/se-context.c, lib/se-selinux.c: New files.
2938         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2939         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2940         New macro.  Replace all uses of 'static inline' with it.
2941         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2942         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2943         New macro.  Replace all uses of 'static inline' with it.
2944         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2945         * modules/selinux-h (Files, lib_SOURCES):
2946         Add lib/se-context.c, lib/se-selinux.c.
2947         (Depends-on): Add extern-inline.
2948         (configure.ac): Do not require AC_C_INLINE.
2949
2950         pthread: better 'inline'
2951         * lib/pthread.c: New file.
2952         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2953         New macro.  Replace all uses of 'static inline' with it.
2954         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2955         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2956         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2957         * modules/pthread (Files): Add lib/pthread.c.
2958         (Depends-on): Add extern-inline.
2959
2960         math: better 'inline'
2961         * lib/math.c: New file.
2962         * lib/math.in.h (_GL_MATH_INLINE):
2963         New macro.  Replace all uses of 'static inline' with it.
2964         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2965         * m4/math_h.m4 (gl_MATH_H):
2966         Do not require AC_C_INLINE.
2967         * modules/math (Files, lib_SOURCES):
2968         Add lib/math.c.
2969         (Depends-on): Add extern-inline.
2970
2971         count-one-bits: better 'inline'
2972         * lib/count-one-bits.c: New file.
2973         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2974         New macro.  Replace all uses of 'static inline' with it.
2975         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2976         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2977         Do not require AC_C_INLINE.
2978         * modules/count-one-bits (Files, lib_SOURCES):
2979         Add lib/count-one-bits.c.
2980         (Depends-on): Add extern-inline.
2981
2982         count-leading-zeros: better 'inline'
2983         * lib/count-leading-zeros.c: New file.
2984         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2985         New macro.  Replace all uses of 'static inline' with it.
2986         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2987         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2988         Do not require AC_C_INLINE.
2989         * modules/count-leading-zeros (Files, lib_SOURCES):
2990         Add lib/count-leading-zeros.c.
2991         (Depends-on): Add extern-inline.
2992
2993         bitrotate: better 'inline'
2994         * lib/bitrotate.c: New file.
2995         * lib/bitrotate.h (BITROTATE_INLINE):
2996         New macros.
2997         Replace all uses of 'static inline' with them.
2998         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2999         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
3000         (Depends-on): Add extern-inline.
3001         (configure.ac): Do not require AC_C_INLINE.
3002
3003 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
3004
3005         maint.mk: avoid gratuitous failure
3006         Reported by Stefano Lattarini in
3007         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
3008         * top/maint.mk (public-submodule-commit): Quote more safely.
3009
3010 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
3011
3012         canonicalize, canonicalize-lgpl: support MS-Windows file names
3013         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
3014         for test cases, which it'd be nice to add at some point.
3015         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
3016         * lib/canonicalize.c (canonicalize_filename_mode):
3017         * lib/canonicalize-lgpl.c (__realpath):
3018         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
3019         slash is at the beginning of the file name.  Use ISSLASH, instead
3020         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
3021         the first character with '/'.  Test for
3022         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
3023         with a drive letter.
3024         * lib/canonicalize.c (SLASHES): New macro.
3025         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
3026
3027 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
3028
3029         fts: introduce FTS_VERBATIM
3030         * lib/fts_.h (FTS_VERBATIM): New bit flag.
3031         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
3032         * lib/fts.c (fts_open): Honor it.
3033
3034 2012-11-09  Pádraig Brady  <P@draigBrady.com>
3035
3036         getlogin-tests: allow errno == ENXIO
3037         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3038         with errno == ENXIO (No controlling tty).
3039         getlogin_r-tests: Likewise. Also allow errno == ENOENT
3040         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
3041         with errno == ENOENT.  This was reported to happen in various
3042         situations on GNU/Linux.
3043
3044 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3045
3046         getlogin-tests: allow errno == ENOENT
3047         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3048         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
3049         when running a test in an Emacs shell buffer.
3050
3051 2012-11-08  Jim Meyering  <jim@meyering.net>
3052
3053         tests/nap.h: avoid warning about unused variable
3054         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
3055
3056         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
3057         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
3058         white space before each of the special-cased file names, to avoid
3059         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
3060         in http://bugs.gnu.org/12830.
3061
3062 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3063
3064         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
3065         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
3066         fails with errno == EBADF when fd is opened with O_PATH.
3067         Reported by Jim Meyering in
3068         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
3069         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3070         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
3071
3072 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3073
3074         test-utimens: speed up by taking shorter naps
3075         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3076         New functions.
3077         (nap): Use them, to do a better job of guessing the delay.
3078         On Fedora 17 with ext4 atop md atop hard disks, this made
3079         test-utimens run 10x faster, because the test napped for
3080         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3081         <http://bugs.gnu.org/12820#11>.
3082
3083 2012-11-07  Jim Meyering  <jim@meyering.net>
3084
3085         mountlist.c: fix a compilation failure
3086         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3087         I introduced while transforming commit v0.0-7683-g613bcb6
3088
3089 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3090
3091         errno: port to LynxOS 178 2.2.2
3092         Problem reported by Joel Brobecker in
3093         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3094         * doc/posix-headers/errno.texi (errno.h): Document this.
3095         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3096         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3097         Supply a string for EILSEQ.
3098         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3099
3100 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3101
3102         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3103         Linux kernel 2.6.39 introduced O_PATH (see
3104         <http://lwn.net/Articles/433854/>) and this is a better fallback
3105         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3106         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3107         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3108         * lib/fcntl.in.h (O_ACCMODE):
3109         * tests/test-fcntl-h.c (main):
3110         Do not reject O_ACCMODE merely because it has more than the
3111         minimal number of bits, as POSIX allows extensions here.
3112
3113 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3114
3115         mountlist: do not classify a bind-mounted dir entry as "dummy"
3116         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3117         the "none"-testing clause.
3118         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3119         exception for bind-mounted directories.
3120
3121 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3122
3123         quote: provide a means to escape strings with nul characters
3124         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3125         (quote, quote_n): Rename formal arguments for consistency with
3126         quotearg.
3127
3128 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3129
3130         test-raise: don't assume 199 is an invalid signal
3131         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3132
3133         sh-quote-tests: port to Solaris 9
3134         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3135         Problem reported by Dagobert Michelsen in
3136         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3137
3138 2012-10-28  Jim Meyering  <jim@meyering.net>
3139
3140         maint.mk: rename a new configurable variable
3141         * top/maint.mk (_gl_translatable_string_re): Rename from
3142         translation-markers: _gl_ prefix to insulate from user Makefile code,
3143         and the _re suffix to inform that it's a regular expression.
3144
3145 2012-10-26  Eric Blake  <eblake@redhat.com>
3146
3147         maint.mk: let packages tweak sc_po_check pattern
3148         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3149         finding files with other translation markers.
3150
3151 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3152
3153         euidaccess: speed up 'configure' on GNU hosts
3154         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3155         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3156         it's needed only in this case.  Use AC_CHECK_DECLS, not
3157         AC_CHECK_DECLS_ONCE.
3158         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3159         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3160
3161         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3162
3163 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3164
3165         fchmodat, fchownat, fstatat: port to non-inlining compilers
3166         Problem reported for FreeBSD 9 by Jim Meyering in
3167         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3168         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3169         New files, which define FCHMODAT_INLINE etc.
3170         * lib/fchmodat.c (FCHMODAT_INLINE):
3171         * lib/fchownat.c (FCHOWNAT_INLINE):
3172         * lib/fstatat.c (FSTATAT_INLINE):
3173         Remove, as chmodat.c etc. now do this.
3174         * modules/fchmodat (Files): Add lib/chmodat.c.
3175         * modules/fchownat (Files): Add lib/chownat.c.
3176         * modules/fstatat (Files): Add lib/statat.c.
3177
3178 2012-10-15  Jim Meyering  <jim@meyering.net>
3179
3180         fchmodat.c, fchownat.c: compile-impeding typos
3181         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3182         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3183         Introduced in commit v0.0-7636-gd202279.
3184
3185 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         fcntl-h: support GNU flags like O_IGNORE_CTTY
3188         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3189         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3190         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3191         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3192         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3193         Define to 0 if not already defined.
3194         * tests/test-fcntl-h.c: Test these new flags.
3195
3196 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3197
3198         faccessat, etc.: support AT_FDCWD-only use
3199         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3200         this function only if its first argument is AT_FDCWD.
3201         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3202         values other than AT_FDCWD, so it doesn't want all the openat
3203         machinery with fchdir etc.
3204         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3205         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3206         * modules/unlinkat (Files):
3207         Remove lib/openat-priv.h, as at-internal supplies this file.
3208         Removing this file here allows us to support programs like Emacs
3209         that avoid at-internal.
3210
3211         faccessat: speed up 'configure' on mainstream hosts
3212         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3213         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3214         since it's only on unusual platforms that we need to check for
3215         'access', and it's better not to slow 'configure' down on all
3216         platforms.
3217
3218         faccessat: port to Solaris 10
3219         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3220         Needed on Solaris 10, which doesn't have AT_EACCESS,
3221         so we need the Gnulib fcntl.h, which defines it.
3222
3223 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3224         canonicalize: fix C89 compilation
3225         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3226         declarations so C89 is supported.  Also remove the comment
3227         referencing memorty allocation as the suggested feature could
3228         not be implemented as suggested.
3229         Reported by Michael Goffioul.
3230
3231 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3232
3233         group-member: omit unnecessary dependencies
3234         This is for Emacs, which has its own allocator and where we
3235         don't want to use xalloc.
3236         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3237         since we no longer use xmalloc.  Do not include stdbool.h, since
3238         the changes below happen to remove the only use of bool.
3239         (GROUPBUF_SIZE): New constant.
3240         (struct group_info): Remove n_groups member.  Add groupbuf member.
3241         This lets us get the groups without using malloc, usually.
3242         (free_group_info, get_group_info): Adjust to this.
3243         (get_group_info): Return the number of groups found, or -1 on error.
3244         Use plain malloc not xmalloc, and treat its failure as if there
3245         are no groups, as the user already loses in case of error.
3246         (group_member): Simplify, based on changes to get_group_info.
3247         * modules/group-member (Depends-on): Remove dependencies on
3248         xalloc and stdbool.  Add dependency on xalloc-oversized.
3249
3250 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3251
3252         gethrxtime: port to C++
3253         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3254
3255 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3256
3257         ptsname: fix macro-name typo
3258         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3259
3260 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3261
3262         inttostr: Relax license.
3263         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3264
3265 2012-10-03  Eric Blake  <eblake@redhat.com>
3266
3267         ptsname_r: support ptys returned by FreeBSD posix_openpt
3268         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3269         lives in /dev/pts/.
3270
3271 2012-10-02  Eric Blake  <eblake@redhat.com>
3272
3273         pselect: reject invalid file descriptors
3274         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3275         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3276         * modules/pselect (Depends-on): Add dup2.
3277         * doc/posix-functions/pselect.texi (pselect): Document this.
3278
3279         select: reject invalid file descriptors
3280         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3281         * lib/select.c (rpl_select) [!win32]: Work around it.
3282         * modules/select (Depends-on): Add dup2.
3283         * doc/posix-functions/select.texi (select): Document this.
3284
3285         select: enhance test
3286         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3287         New functions.
3288         (test_function): Enhance test.
3289         (do_select_bad_fd): Avoid any stale errno values.
3290
3291         ptsname: reject invalid file descriptors
3292         http://www.austingroupbugs.net/view.php?id=503
3293         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3295         * modules/stdlib (Makefile.am): Replace witness.
3296         * lib/stdlib.in.h (ptsname): Allow for replacement.
3297         * modules/ptsname (configure.ac): Trigger replacement.
3298         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3299
3300 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3301
3302         hash-pjw-bare: new module
3303         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3304         * lib/hash-pjw-bare.h: Likewise.
3305         * modules/hash-pjw-bare: New file.
3306         * MODULES.html.sh (Misc): Add it.
3307
3308 2012-10-02  Eric Blake  <eblake@redhat.com>
3309
3310         manywarnings: cater to more gcc infelicities
3311         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3312         -Wuninitialized without -O.
3313
3314 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3315
3316         select, poll tests: Make setsockopt invocation effective.
3317         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3318         the bind() call.
3319         * tests/test-select.h (open_server_socket): Likewise.
3320
3321 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3322
3323         sockets, sys_stat: restore AC_C_INLINE
3324         This undoes the 2012-09-22 patch.
3325         * m4/sockets.m4 (gl_SOCKETS):
3326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3327         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3328         and does not support plain 'inline'.  Reported by Bruno Haible in
3329         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3330
3331 2012-09-30  Bruno Haible  <bruno@clisp.org>
3332
3333         localeconv tests: Avoid test failure on OpenIndiana.
3334         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3335         skip the 'grouping' and 'mon_grouping' tests.
3336         Reported by Jim Meyering.
3337
3338 2012-09-30  Bruno Haible  <bruno@clisp.org>
3339
3340         havelib: Follow libtool developments.
3341         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3342         Suggested by Simon Josefsson.
3343
3344 2012-09-29  Jim Meyering  <meyering@redhat.com>
3345
3346         fstatat.c: fix a compile-impeding typo
3347         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3348         Introduced in commit v0.0-7636-gd202279.
3349         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3350
3351 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3352
3353         extern-inline: provide a -Wundef safe config.h
3354         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3355         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3356         to produce a -Wundef warning free config.h.
3357
3358 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3359
3360         hash-pjw: relax license to LGPLv2+
3361         * modules/hash-pjw (License): Relax, with consent of author.
3362
3363 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3364
3365         maint.mk: fix strict vs. lazy variable issues with RELEASE
3366         * top/maint.mk (_equal): New function.
3367         (member_check): Strip the result to avoid spurious spaces.
3368         (url_dir_list): Do not use ifeq, which is strict, as it will
3369         require RELEASE_TYPE to be defined.
3370         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3371         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3372         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3373         (announcement_Cc_beta,announcement_mail_headers_beta)
3374         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3375         (release): Do not depend on $(release-type), as it forces its
3376         evaluation.  Bounce to it.
3377
3378 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3379
3380         maint.mk: formatting changes
3381         * top/maint.mk: Indent bodies of if's.
3382
3383 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3384
3385         maint.mk: factor the validation of RELEASE_TYPE
3386         With help from Jim Meyering.
3387         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3388         * top/maint.mk (_empty, _sp): Move their definition earlier.
3389         (member-check, release-type): New.
3390         Use the latter instead of $(RELEASE_TYPE).
3391         Remove now useless local checks.
3392
3393 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3394
3395         maint.mk: provide "make upload" to ease uploading
3396         See
3397         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3398         Do not depend simply on the current $(VERSION), as there may have been
3399         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3400         as "make release-commit" already does.
3401
3402         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3403         "make TYPE".
3404
3405         * top/maint.mk (upload_command, upload, release): New.
3406         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3407         (VERSION): first word of $(RELEASE) is always right.
3408         (emit_upload_commands): Adjust.
3409         * top/README-release: Update.
3410
3411 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3412
3413         maint.mk: silent rules
3414         With help from Stefano Lattarini.
3415         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3416         (announcement): Use $(AM_V_at).
3417
3418 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3419
3420         localename: port gl_locale_name_thread_unsafe to FreeBSD
3421         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3422         and use the simpler FreeBSD implementation on Mac OS X as well.
3423         Original idea suggested by Ed Maste in
3424         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3425
3426 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3427
3428         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3429         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3430         * lib/mbuiter.c, lib/xsize.c: New files.
3431         * lib/binary-io.h (BINARY_IO_INLINE):
3432         * lib/eealloc.h (EEALLOC_INLINE):
3433         * lib/mbfile.h (MBFILE_INLINE):
3434         * lib/mbiter.h (MBITER_INLINE):
3435         * lib/mbuiter.h (MBUITER_INLINE):
3436         * lib/xsize.h (XSIZE_INLINE):
3437         New macros.
3438         Replace all uses of 'static inline' with them.
3439         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3440         * m4/eealloc.m4 (gl_EEALLOC):
3441         * m4/mbfile.m4 (gl_MBFILE):
3442         * m4/mbiter.m4 (gl_MBITER):
3443         * m4/xsize.m4 (gl_XSIZE):
3444         Do not require AC_C_INLINE.
3445         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3446         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3447         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3448         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3449         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3450         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3451         * modules/binary-io, modules/eealloc, modules/mbfile:
3452         * modules/mbiter, modules/mbuiter:
3453         (Depends-on): Add extern-inline.
3454
3455         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3456         * lib/pipe-filter-aux.c: New file.
3457         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3458         Replace all uses of 'static inline' with it.
3459         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3460         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3461         (filter_retcode): No real need for inline here.
3462         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3463         (Files): Add lib/pipe-filter-aux.c.
3464         (Depends-on): Add extern-inline.
3465         (configure.ac): Do not require AC_C_INLINE.
3466         (lib_SOURCES): Add pipe-filter-aux.c.
3467
3468         fdutimensat: omit unnecessary AC_C_INLINE
3469         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3470
3471         fchmodat, fchownat, fstatat: use extern-inline
3472         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3473         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3474         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3475         New macros.
3476         * lib/openat.h:
3477         Replace all uses of 'static inline' with them.
3478         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3479         * modules/fchmodat, modules/fchownat, modules/fstatat:
3480         * modules/openat-h:
3481         (Depends-on):
3482         Add extern-inline.
3483         (configure.ac): Remove AC_C_INLINE.
3484
3485         acl, mbchar, priv-set: use extern-inline
3486         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3487         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3488         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3489         New macros.
3490         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3491         Replace all uses of 'static inline' with it.
3492         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3493         * m4/acl.m4 (gl_FUNC_ACL):
3494         * m4/mbchar.m4 (gl_MBCHAR):
3495         * m4/priv-set.m4 (gl_PRIV_SET):
3496         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3497         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3498         Add extern-inline.
3499
3500         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3501         * m4/sockets.m4 (gl_SOCKETS):
3502         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3503         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3504         environments where it's already guaranteed to work, so we needn't
3505         check for it at 'configure'-time.
3506
3507         tls-tests: omit unnecessary 'inline'
3508         * tests/test-tls.c (perhaps_yield): No longer inline.
3509         Simplicity and portability trump efficiency in test cases.
3510
3511         utimens-tests: avoid unnecessary 'inline'
3512         * modules/fdutimensat-tests (configure.ac):
3513         * modules/futimens-tests (configure.ac):
3514         * modules/utimens-tests (configure.ac):
3515         * modules/utimensat-tests (configure.ac):
3516         Remove AC_C_INLINE.
3517         * tests/test-utimens-common.h (ctime_compare):
3518         No longer inline.  Simplicity and portability trump efficiency here.
3519
3520         misc: don't limit commentary to inline functions
3521         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3522         * lib/xalloc-oversized.h, lib/xsize.h:
3523         Contrast macros to functions in general, not just to inline functions,
3524         when the commentary does not apply only to inline functions.
3525
3526 2012-09-20  Jim Meyering  <meyering@redhat.com>
3527
3528         non-recursive-gnulib-prefix-hack: new module
3529         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3530         the file that originated in Bison.
3531         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3532         largely copied from a snippet that resided in bison's configure.ac.
3533         * modules/non-recursive-gnulib-prefix-hack: New file.
3534         * MODULES.html.sh (Support for maintaining and releasing projects):
3535         Add it.
3536
3537 2012-09-18  Jim Meyering  <meyering@redhat.com>
3538
3539         maint.mk: generalize _gl_tight_scope for non-recursive make
3540         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3541         that *.h would describe additional .h files in the directory
3542         specified by $(_gl_TS_dir).  I.e., add this...
3543         (_gl_TS_other_headers): New variable.
3544
3545         maint.mk: exempt trailing blanks found in "binary" files
3546         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3547         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3548         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3549
3550 2012-09-17  Jim Meyering  <meyering@redhat.com>
3551
3552         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3553         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3554         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3555         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3556
3557 2012-09-17  Jim Meyering  <meyering@redhat.com>
3558
3559         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3560         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3561         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3562         It is not in the same category as "exit (0)" or "exit (1)", and
3563         besides, I know of no symbolic name for that 77.  Reported by
3564         Richard W.M. Jones in
3565         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3566
3567 2012-09-17  Jim Meyering  <meyering@redhat.com>
3568
3569         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3570         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3571         all uses of #define, not just those that start in column 1.
3572         Richard W.M. Jones reported a false positive in
3573         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3574
3575 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3576
3577         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3578         * lib/localcharset.c (locale_charset) [DARWIN7]:
3579         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3580         as these two values are incompatible.  Problem reported by Max Horn.
3581         For more discussion, please see
3582         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3583
3584         doc: document sticky-EOF issue
3585         * doc/posix-functions/fgetc.texi (fgetc):
3586         * doc/posix-functions/fgets.texi (fgets):
3587         * doc/posix-functions/fread.texi (fread):
3588         * doc/posix-functions/fscanf.texi (fscanf):
3589         * doc/posix-functions/getc.texi (getc):
3590         * doc/posix-functions/getchar.texi (getchar):
3591         * doc/posix-functions/scanf.texi (scanf):
3592         Mention that glibc and default Solaris do not conform to
3593         C99 and POSIX-2001 or later, with respect to how getchar
3594         etc. behave when feof reports nonzero.
3595
3596 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3597
3598         poll: fix poll(0, NULL, msec)
3599         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3600         but nfd is 0.  In that case poll should behave like select.
3601
3602 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3603             Paolo Bonzini <bonzini@gnu.org>
3604
3605         poll: fix for systems that can't recv() on a non-socket
3606         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3607         is readable.  In this case POLLHUP will not be supported.
3608         * doc/posix-functions/poll.texi: Document this.
3609
3610 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3611
3612         poll/select: document portability problems not fixed by Gnulib.
3613         * doc/posix-functions/poll.texi: poll does not work well on
3614         pipes under Windows.  It has the same limitations as select on
3615         BeOS.
3616         * doc/posix-functions/select.texi: select does not work well
3617         on pipes under Windows.
3618
3619 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3620
3621         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3622         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3623         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3624         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3625
3626 2012-09-06  Eric Blake  <eblake@redhat.com>
3627
3628         net_if: give more details about the bug being fixed
3629         * doc/posix-headers/net_if.texi: Add clarification.
3630
3631 2012-09-05  Eric Blake  <eblake@redhat.com>
3632
3633         net_if: new module
3634         * modules/net_if: New module, borrowing ideas from netinet_in.
3635         * m4/net_if_h.m4: New file.
3636         * lib/net_if.in.h: Likewise.
3637         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3638         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3639         * tests/test-net_if.c: Make function checks conditional.
3640         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3641
3642 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3643
3644         readutmp: fix non-portable UT_PID use
3645         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3646         Use `UT_PID (u) > 0' as absolute condition.
3647
3648 2012-09-04  Jim Meyering  <meyering@redhat.com>
3649
3650         fts: reduce two or more trailing spaces to just one, usually
3651         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3652         or more slashes, trim all but the final one.  But if a name consists
3653         solely of two slashes, don't modify it.  If it consists solely of
3654         three or more slashes, strip all but one.
3655
3656         This is part of the solution to a minor problem with rm:
3657         it would print a bogus ELOOP diagnostic when failing to remove
3658         the slash-decorated name of a symlink-to-directory:
3659
3660             $ mkdir d && ln -s d s && env rm -r s/
3661             rm: cannot remove 's': Too many levels of symbolic links
3662
3663         With the change below and a trivial don't-trim-trailing-slashes
3664         adjustment to remove.c, it does this:
3665
3666             $ env rm -r s/
3667             rm: cannot remove 's/': Not a directory
3668
3669         Improved by: Eric Blake
3670
3671         fts: when there is no risk of overlap, use memcpy, not memmove
3672         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3673
3674 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3675
3676         stdbool: be more compatible with mixed C/C++ compiles
3677         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3678         Define to bool, true, false, respectively, as GCC's builtin
3679         stdbool.h does.  Problem reported by Michael Goffioul in
3680         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3681
3682 2012-08-28  Jim Meyering  <meyering@redhat.com>
3683
3684         revert last change: it was not needed
3685         * tests/test-vc-list-files-git.sh: There's already a test for
3686         a working git, just below.
3687
3688 2012-08-28  Jim Meyering  <meyering@redhat.com>
3689
3690         tests: test-vc-list-files-git.sh: skip if git is not available
3691         * tests/test-vc-list-files-git.sh: Skip this test when git is
3692         not available.
3693
3694 2012-08-26  Bruno Haible  <bruno@clisp.org>
3695
3696         gnulib-tool: Remove no-op option --no-changelog.
3697         * gnulib-tool (func_usage): Don't mention --no-changelog.
3698         (do_changelog): Remove variable.
3699         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3700
3701 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3702
3703         doc: remove fdl-1.2.texi
3704         It is no longer used or maintained, and its use of @acronym
3705         is problematic.  See the thread containing
3706         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3707         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3708         * doc/old-licenses/fdl-1.2.texi: Remove.
3709
3710         execinfo: port to FreeBSD
3711         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3712         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3713         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3714         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3715
3716 2012-08-23  Jim Meyering  <meyering@redhat.com>
3717
3718         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3719         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3720         to placate gcc's -Wold-style-declaration.
3721
3722 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3723
3724         doc: do not use @acronym
3725         * doc/inet_ntoa.texi (inet_ntoa):
3726         * doc/parse-datetime.texi (Seconds since the Epoch)
3727         (Specifying time zone rules):
3728         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3729         Don't use @acronym.  Problem reported by John Darlington in
3730         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3731
3732 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3733
3734         stdnoreturn: port to newer GCCs
3735         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3736         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3737         Problem reported by Jim Meyering in
3738         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3739         Also, rename the 'test' function to a void a clash with the
3740         already-supplied 'main' function; this fixes a bug that incorrectly
3741         rejected GCC 4.7.1's <stdnoreturn.h>.
3742         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3743         Document GCC problem.
3744
3745 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3746
3747         pipe-filter: fix comment typo
3748         * lib/pipe-filter.h: Mention correct function.
3749
3750 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3751
3752         execinfo: new module
3753         This is for Emacs.  Currently, it provides a no-effect stub
3754         on all platforms where it does not already work.
3755         It already works on glibc-based systems, and on Solaris 11.
3756         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3757         New files.
3758         * doc/glibc-headers/execinfo.texi (execinfo.h):
3759         * MODULES.html.sh (Misc): Document it.
3760
3761 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3762
3763         extern-inline: support old GCC 'inline'
3764         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3765         if available.  This applies to GCC versions 2.7 through 4.2, or
3766         when newer GCC is using -fgnu89-inline.  The goal is to address
3767         some of the performance issues mentioned by Bruno Haible in
3768         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3769
3770 2012-08-20  Eric Blake  <eblake@redhat.com>
3771
3772         maint.mk: avoid redundant file name in message
3773         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3774         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3775         (sc_makefile_path_separator_check): Remove bogus $(ME).
3776
3777 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3778
3779         timer-time: fix link order when static linking on glibc
3780         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3781         _after_ -lrt so that it's significant.
3782
3783 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3784
3785         timespec: omit unnecessary AC_C_INLINE
3786         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3787
3788         stat-time: omit unnecessary AC_C_INLINE
3789         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3790         Do not require AC_C_INLINE.
3791
3792         ignore-value: omit unnecessary AC_C_INLINE
3793         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3794
3795         sys_select: avoid 'static inline'
3796         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3797
3798         mktime: avoid 'static inline'
3799         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3800         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3801
3802 2012-08-19  Bruno Haible  <bruno@clisp.org>
3803
3804         gnulib-tool: Improve coding style.
3805         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3806         func_emit_lib_Makefile_am.
3807         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3808
3809 2012-08-19  Bruno Haible  <bruno@clisp.org>
3810
3811         gnulib-tool: Fix indentation.
3812         * gnulib-tool (func_import): Fix indentation.
3813
3814 2012-08-19  Bruno Haible  <bruno@clisp.org>
3815
3816         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3817         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3818         on the list of removed files.
3819
3820 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3821
3822         test-parse-datetime: avoid glibc leap-second glitch
3823         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3824         with the 2012 rules.  Problem reported by Bruce Dubbs in
3825         <http://bugs.gnu.org/12206>.
3826
3827 2012-08-14  Bruno Haible  <bruno@clisp.org>
3828
3829         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3830         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3831         from argument.
3832         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3833
3834 2012-08-14  Eric Blake  <eblake@redhat.com>
3835
3836         ldexp: relax license
3837         * modules/ldexp (License): Trivial relax, since the module only
3838         provides a permissively licensed m4 file.
3839
3840 2012-08-13  Bruno Haible  <bruno@clisp.org>
3841
3842         gnulib-tool: Fix persistence of --witness-c-macro option.
3843         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3844         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3845
3846 2012-08-11  Eric Blake  <eblake@redhat.com>
3847
3848         count-leading-zeros: use a lookup table on non-gcc compilers
3849         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3850         alternate implementation, suggested by Jim Meyering.
3851
3852 2012-08-10  Eric Blake  <eblake@redhat.com>
3853
3854         count-leading-zeros: new module
3855         * modules/count-leading-zeros: New module.
3856         * m4/count-leading-zeros.m4: New file.
3857         * lib/count-leading-zeros.h: Likewise.
3858         * modules/count-leading-zeros-tests: New test.
3859         * tests/test-count-leading-zeros.c: New file.
3860         * MODULES.html.sh (Integer arithmetic functions): Document it.
3861
3862 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3863             Jim Meyering  <meyering@redhat.com>
3864
3865         maintainer-makefile: Fix syntax error with dash.
3866         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3867         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3868
3869 2012-08-05  Jim Meyering  <meyering@redhat.com>
3870
3871         extern-inline: also ignore -Wmissing-declarations
3872         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3873         required with gcc-4.8.0-to-be.
3874
3875         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3876         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3877         for /error ?([^,]*)/.  This avoids false-positives for strings like
3878         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3879
3880 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3881
3882         gnumakefile: better interaction with Automake-NG
3883         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3884         Automake-NG always contain a definition of VPATH, even in non-VPATH
3885         builds (its value being simply '.' in that case).  So, in the
3886         'clean-GNUmakefile' rule, to determine whether running under a
3887         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3888         '$(VPATH)' expands to the empty string.
3889
3890 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3891
3892         base64: Use extern C scope in header file, for C++.
3893         * lib/base64.h: Add C++ namespace protection.
3894
3895 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3896
3897         stat-time, timespec, u64: support naive out-of-dir builds
3898         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3899         Use '#include "foo.h"', not '#include <foo.h>', when including
3900         one's own interface.  This works better when configuring with
3901         out-of-directory builds, since packages need not add an
3902         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3903
3904 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3905
3906         utimens: use extern-inline
3907         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3908         * lib/utimens.h: Add copyright notice, since this is now large enough
3909         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3910         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3911         * modules/utimens (Depends-on): Add extern-inline.
3912
3913         u64: use extern-inline
3914         * lib/u64.c: New file.
3915         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3916         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3917         * modules/u64 (Files): Add lib/u64.c.
3918         (Depends-on): Add extern-inline.
3919         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3920         does that now.
3921         (lib_SOURCES): Add u64.c.
3922
3923         timespec: use extern-inline
3924         * lib/timespec.c: New file.
3925         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3926         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3927         * modules/timespec (Files): Add lib/timespec.c.
3928         (Depends-on): Add extern-inline.
3929         (lib_SOURCES): Add timespec.c.
3930
3931         stat-time: use extern-inline
3932         * lib/stat-time.c: New file.
3933         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3934         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3935         * modules/stat-time (Files): Add lib/stat-time.c.
3936         (Depends-on): Add extern-inline.
3937         (lib_SOURCES): Add stat-time.c.
3938
3939         extern-inline: new module
3940         * modules/extern-inline, m4/extern-inline.m4: New files.
3941         This is for better support of 'extern inline' a la ISO C99,
3942         with a portable alternative on compilers that do not support
3943         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3944         of the Emacs executable, when compiled with debugging disabled,
3945         which is a typical way that Emacs is built while developing.
3946
3947 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3948
3949         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3950         * build-aux/do-release-commit-and-tag: Move variable definitions
3951         together.
3952         ($branch): Instead of defaulting to "master", default to the current
3953         branch (as gnu-web-doc-update does).
3954         (help): Display the current values of the option arguments.
3955         * top/maint.mk (release-commit): New.
3956         * top/README-release: Simplify the corresponding step.
3957
3958 2012-07-30  Eric Blake  <eblake@redhat.com>
3959
3960         passfd: fix comment on recvfd
3961         * lib/passfd.c (recvfd): Fix comment.
3962         Reported by Jann Horn <jannhorn@googlemail.com>.
3963
3964 2012-07-30  Jim Meyering  <meyering@redhat.com>
3965
3966         maint.mk: avoid a sub-shell
3967         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3968
3969 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3970
3971         maint.mk: use silent-rules support from Automake
3972         * top/maint.mk (news-check, vc-diff-check, announcement)
3973         (no-submodule-changes, alpha beta stable, release-prep)
3974         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3975
3976 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3977
3978         maint.mk: provide a web-manual-update target
3979         * top/maint.mk: here.
3980         * top/README-release: Use it to simplify the web manual update step.
3981
3982 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3983
3984         README-release: shorten the circuit to post a news
3985         * top/README-release: Point directly to the news submission form.
3986
3987 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3988
3989         gnu-web-doc-update: fix --help
3990         * build-aux/gnu-web-doc-update: The information "top level" was written
3991         twice.
3992
3993 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3994
3995         maint.mk: absolute VPATH issue
3996         * top/maint.mk (release-prep): Help Git find .git/.
3997         From Jim Meyering.
3998
3999 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4000
4001         gitlog-to-changelog: fix previous change
4002         * build-aux/gitlog-to-changelog: Fix condition.
4003         Add missing ";".
4004
4005 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4006
4007         gitlog-to-changelog: don't expect .git to be in $srcdir
4008         Reported by Bruno Haible.
4009         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
4010         * build-aux/gitlog-to-changelog (&git_dir_option): New.
4011         Use it.
4012
4013 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4014
4015         maint.mk: absolute VPATH build fix
4016         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
4017         $(srcdir) is not a parent of $(builddir).
4018
4019 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
4020
4021         clean-temp: Fix memory leak.
4022         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
4023         'files' members of tmpdir.
4024
4025 2012-07-27  Jim Meyering  <meyering@redhat.com>
4026
4027         maint.mk: new rule: refresh-gnulib-patches
4028         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
4029         Use this rule to refresh them.
4030         * top/maint.mk (refresh-gnulib-patches): New rule.
4031
4032 2012-07-24  Bruno Haible  <bruno@clisp.org>
4033
4034         gnulib-tool: Fix handling of inctests variable.
4035         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
4036         Reported by Nick Bowler <nbowler@elliptictech.com>.
4037
4038 2012-07-22  Bruno Haible  <bruno@clisp.org>
4039
4040         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4041         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
4042         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4043         Remove exemption for getpass.h.
4044         Suggested by Eric Blake.
4045
4046 2012-07-20  Eric Blake  <eblake@redhat.com>
4047
4048         verify: document conflict with -Wnested-externs
4049         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
4050
4051         maint.mk: forbid exit(-1)
4052         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
4053
4054 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4055
4056         fsusage: port back to Solaris
4057         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
4058         error (fsd not declared) on Solaris 10.  Reported privately by
4059         Andrew Borodin.
4060
4061 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
4062
4063         gnu-web-doc-update: fix error messages
4064         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
4065
4066         gnu-web-doc-update: check the requirements.
4067         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
4068         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
4069         * build-aux/bootstrap (find_tool): Comment change.
4070
4071 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
4072
4073         maint.mk: minor simplication.
4074         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
4075         for default values.
4076
4077 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4078
4079         gitlog-to-changelog: VPATH build issues
4080         If builddir is not a subdirectory of srcdir, running git from it will
4081         fail.
4082         * build-aux/gitlog-to-changelog (--srcdir): New option.
4083
4084 2012-07-15  Bruno Haible  <bruno@clisp.org>
4085
4086         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4087         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4088         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4089         Remove exemption for fpending.h.
4090         Suggested by Eric Blake.
4091
4092 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4093
4094         pthread_sigmask: fix bug on FreeBSD 9
4095         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4096         Include string.h.
4097         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4098         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4099         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4100         but pthread_sigmask (1729, NULL, NULL) returns zero.
4101         See <http://bugs.gnu.org/11884>.
4102         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4103         by inspecting whether the main call changed the old mask.
4104
4105 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4106
4107         README-release: make it more legible
4108         * top/README-release: Improve typography slightly.
4109
4110 2012-07-15  Jim Meyering  <meyering@redhat.com>
4111
4112         maint: require that each sc_... command start with "@"
4113         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4114         "make sc_maint" helps us avoid this nit.
4115
4116 2012-07-15  Jim Meyering  <meyering@redhat.com>
4117
4118         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4119         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4120
4121 2012-07-13  Eric Blake  <eblake@redhat.com>
4122
4123         maint.mk: new syntax check for HAVE_DECL checks
4124         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4125         * cfg.mk
4126         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4127         Exempt some false positives.
4128         Based on a report by Karel Zak.
4129
4130         argp: make HAVE_DECL usage consistent
4131         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4132         macros, not whether they are defined.
4133         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4134         convention with other declaration checks.
4135         Reported by Karel Zak, with suggestions from Paul Eggert.
4136
4137         stat-time: relax license to LGPLv2+
4138         * modules/stat-time (License): Relax, with consent of all authors.
4139
4140         strndup: fix m4 usage error
4141         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4142         defined, to either 0 or 1.
4143         Reported by Karel Zak.
4144
4145 2012-07-11  Jim Meyering  <meyering@redhat.com>
4146
4147         maint: enable the sc_avoid_if_before_free syntax-check rule
4148         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4149         (if_before_free_offenders_): Define.
4150         (if_before_free_basename_re_): Define.
4151         Exempt current files with useless if-before-free.
4152
4153 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4154
4155         gettext: do not assume '#define ... defined ...' behavior
4156         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4157         Do not use '#define FOO ... defined BAR ...', as the C standard says
4158         it's not portable to expect that this works after macro expansion.
4159         Problem reported for gzip by Steven M. Schweda in
4160         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4161
4162 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4163
4164         getloadavg: clean out old Emacs and Autoconf cruft
4165         See Glenn Morris in <http://bugs.gnu.org/11905>.
4166         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4167         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4168         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4169         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4170
4171 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4172
4173         bootstrap: let warn be like tests/init.sh's warn_
4174         Reported by Jim Meyering.
4175         * build-aux/bootstrap (warn): Remove, replaced by...
4176         (warnf_, warn_): these.
4177         Adjust callers.
4178         Shorten messages that no longer fit in 80 columns.
4179
4180 2012-07-09  Bruno Haible  <bruno@clisp.org>
4181
4182         getopt: Simplify after Emacs changed.
4183         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4184         (gl_GETOPT_IFELSE): Remove macro.
4185
4186 2012-07-09  Jim Meyering  <meyering@redhat.com>
4187
4188         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4189         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4190
4191         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4192         Bugs in both of those conspired to make the
4193         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4194         _sc_search_regexp's handling of non-empty $in_files would filter
4195         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4196         choice of in_files value meant there would be no match in most
4197         projects, due to the presence of two or more Makefile.in files.
4198         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4199         Fix a bug in how a non-empty $$in_files was processed:
4200         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4201         in spite of the name, it's a regexp, not a list of file names.
4202
4203 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4204
4205         getloadavg, getopt: fix commentary re configure.in
4206         Autoconf is deprecating the name 'configure.in', so change it to
4207         to the new name 'configure.ac' in a couple of places.
4208         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4209         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4210         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4211         Emacs has renamed it to configure.ac, and it no longer refers
4212         to these macros anyway.
4213
4214         timespec: mark functions with const attributes
4215         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4216         Mark with _GL_ATTRIBUTE_CONST.
4217
4218 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4219
4220         canonicalize[-lgpl]: handle "guessing" values when cross-building
4221         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4222         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4223         matches "*yes" instead of just "yes".  Regression introduced in commit
4224         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4225
4226 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4227             Bruno Haible  <bruno@clisp.org>
4228
4229         canonicalize: make the right guess when cross-compiling to GNU
4230         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4231         determine whether cross-compiling to glibc systems, so as to
4232         include GNU/Hurd.
4233
4234 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4235
4236         timespec-sub: avoid duplicate include
4237         * lib/timespec-sub.c: Do not include <config.h> twice.
4238         Reported by Juanma Barranquero.
4239
4240 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4241
4242         bootstrap: use a more consistent error reporting scheme
4243         * build-aux/bootstrap (warn, die): New.
4244         Use them.
4245
4246 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4247
4248         sys_time: allow too-wide tv_sec
4249         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4250         timeval even if tv_sec is wider than time_t.  This allows
4251         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4252         as without this patch gnulib replaces struct timeval
4253         and OpenBSD futimes therefore has a type mismatch.
4254         * doc/posix-headers/sys_time.texi: Mention this.
4255
4256         pthread: check for both pthread_create and pthread_join
4257         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4258         alter the check so that it tests for both pthread_create and
4259         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4260         Suggested by Bruno Haible and Richard Yao in
4261         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4262
4263         parse-datetime: doc tuneup
4264         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4265         spacing issues.
4266
4267 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4268
4269         do-release-commit-and-tag: fix the previous commit
4270         * build-aux/do-release-commit-and-tag: Actually the test was right,
4271         but the comment and the error message were misleading.
4272         Fix comment, and improve error message.
4273         Perform check first, so that NEWS is not modified uselessly.
4274
4275         do-release-commit-and-tag: fix typo
4276         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4277         _not_ start with a stub.
4278
4279 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4280
4281         pthread: check for pthread_create, not pthread_join
4282         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4283         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4284         pthread_join in libc.  I hope this removes the need for all the
4285         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4286         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4287
4288 2012-07-04  Jim Meyering  <meyering@redhat.com>
4289
4290         parse-datetime: fix failure to diagnose invalid input
4291         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4292         rather than diagnosing the invalid input.  Now it reports this:
4293         date: invalid date '\260'
4294         * lib/parse-datetime.y (to_uchar): Define.
4295         (yylex): Don't sign-extend "other" bytes.
4296         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4297         Thanks to Bruno Haible for the patch to this file.
4298         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4299         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4300
4301 2012-07-03  Jim Meyering  <meyering@redhat.com>
4302
4303         bootstrap: do not require now-removed build-aux/missing
4304         Now that build-aux/missing is, er, missing, bootstrap would
4305         silently fail.
4306         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4307         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4308         no longer part of gnulib.
4309         Diagnose the failure.
4310
4311 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4312
4313         alloca: add support for HP NonStop TNS/E native
4314         * lib/alloca.in.h (alloca): Support the new host.
4315         From a suggestion by Joachim Schmitz in
4316         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4317
4318 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4319
4320         fsusage: remove code not needed on non GNU/Linux systems.
4321
4322         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4323         Don't include headers no longer needed in this case.
4324         * lib/fsusage.c [STAT_STATVFS &&
4325         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4326         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4327
4328 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4329
4330         fsusage: include files needed for glibc 2.6 fallback
4331         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4332         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4333         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4334         Problem reported by Ludovic Courtès in
4335         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4336
4337         fsusage: avoid needless check on GNU/Linux
4338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4339         on GNU/Linux systems, since it can't possibly work.
4340
4341 2012-07-01  Bruno Haible  <bruno@clisp.org>
4342
4343         log: Fix an autoconf >= 2.64 warning.
4344         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4345         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4346
4347 2012-06-28  Bruno Haible  <bruno@clisp.org>
4348
4349         log10f: Fix possible configuration problem.
4350         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4351         $LOGF_LIBM.
4352         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4353
4354 2012-06-28  Bruno Haible  <bruno@clisp.org>
4355
4356         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4357         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4358         not gl_cv_func_unlink_works.
4359         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4360
4361 2012-06-27  Eric Blake  <eblake@redhat.com>
4362
4363         config: drop scripts that automake says are not independent
4364         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4365         * build-aux/elisp-comp: Delete.
4366         * build-aux/missing: Likewise.
4367         * build-aux/ylwrap: Likewise.
4368         * modules/elisp-comp: Likewise.
4369         * MODULES.html.sh: Drop mention of elisp-comp.
4370         * NEWS: Mention this.
4371
4372 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4373
4374         root-uid: new module
4375         This is for portability to Tandem's NonStop Kernel.
4376         * lib/root-uid.h, modules/root-uid: New files.
4377         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4378         * lib/write-any-file.c, tests/test-sethostname2.c:
4379         Include "root-uid.h".
4380         * lib/euidaccess.c (euidaccess):
4381         * lib/pt_chown.c (main):
4382         * lib/unlinkdir.c (cannot_unlink_dir):
4383         * lib/write-any-file.c (can_write_any_file):
4384         * m4/mknod.m4 (gl_FUNC_MKNOD):
4385         * tests/test-sethostname2.c (geteuid, main):
4386         Don't assume ROOT_UID == 0.
4387         * modules/euidaccess (Depends-on):
4388         * modules/pt_chown (Depends-on):
4389         * modules/sethostname-tests (Depends-on):
4390         * modules/unlinkdir (Depends-on):
4391         * modules/write-any-file (Depends-on):
4392         Add root-uid.
4393
4394         regex: use locale-independent comparison for codeset name
4395         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4396         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4397         for codeset name.
4398         * lib/regex_internal.h: Do not include <strings.h>, since we
4399         no longer use strcasecmp.
4400         * modules/regex (Depends-on): Remove strcase.
4401
4402 2012-06-23  Bruno Haible  <bruno@clisp.org>
4403
4404         getopt-posix: No longer guarantee that option processing is resettable.
4405         * doc/posix-functions/getopt.texi: Drop description of problem with
4406         internal state. Fix info about mingw and msvc9.
4407         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4408         option processing by getopt(). Run three test programs instead of one.
4409         Simplify cross-compilation guess.
4410         * NEWS: Mention the change.
4411         Reported by Rich Felker <dalias@aerifal.cx>.
4412
4413 2012-06-26  Bruno Haible  <bruno@clisp.org>
4414
4415         argp, regex: Ensure strcasecmp gets declared.
4416         * lib/argp-help.c: Include <strings.h>.
4417         * lib/regex_internal.h: Likewise.
4418         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4419
4420 2012-06-24  Bruno Haible  <bruno@clisp.org>
4421
4422         ptsname_r: Make it consistent with ptsname on AIX.
4423         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4424         implementation as for OSF/1.
4425         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4426         a pty master.
4427
4428         ptsname_r: Make it consistent with ptsname on OSF/1.
4429         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4430         OSF/1.
4431
4432 2012-06-24  Bruno Haible  <bruno@clisp.org>
4433
4434         ttyname_r: Fix result on OSF/1, Solaris.
4435         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4436
4437 2012-06-24  Bruno Haible  <bruno@clisp.org>
4438
4439         ptsname_r: Add support for Solaris.
4440         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4441         Solaris.
4442
4443         ptsname_r: Fix test failure on native Windows.
4444         * modules/ptsname_r (Depends-on): Add isatty.
4445
4446         ptsname_r: Fix test failures on IRIX, Solaris.
4447         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4448         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4449         accordingly.
4450         * lib/ptsname_r.c: Include <fcntl.h>.
4451         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4452         set errno if fd is invalid.
4453         * tests/test-isatty.c (main): Update comments.
4454
4455 2012-06-24  Bruno Haible  <bruno@clisp.org>
4456
4457         ptsname test: Extend test.
4458         * tests/test-ptsname.c: Include <errno.h>.
4459         (main): Test behaviour with invalid file descriptor.
4460
4461 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4462
4463         time: fix obsolete comment
4464         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4465         reference to HAVE_STRUCT_TIMESPEC in comment.
4466
4467 2012-06-23  Bruno Haible  <bruno@clisp.org>
4468
4469         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4470         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4471         does not handle abbreviated long options with equivalent
4472         disambiguations, set gl_replace_getopt to yes.
4473         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4474
4475 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4476
4477         time_r: fix typo that always overrode localtime_r decl
4478         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4479         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4480         not in a standard include.
4481
4482 2012-06-22  Bruno Haible  <bruno@clisp.org>
4483
4484         Write "Mac OS X" instead of "MacOS X".
4485         * README: Write "Mac OS X" instead of "MacOS X".
4486         * build-aux/bootstrap: Likewise.
4487         * build-aux/install-reloc: Likewise.
4488         * lib/acl-internal.h: Likewise.
4489         * lib/acl_entries.c: Likewise.
4490         * lib/argp-ba.c: Likewise.
4491         * lib/argp-pv.c: Likewise.
4492         * lib/config.charset: Likewise.
4493         * lib/copy-acl.c: Likewise.
4494         * lib/csharpexec.c: Likewise.
4495         * lib/euidaccess.c: Likewise.
4496         * lib/fbufmode.c: Likewise.
4497         * lib/fflush.c: Likewise.
4498         * lib/file-has-acl.c: Likewise.
4499         * lib/filemode.h: Likewise.
4500         * lib/fpurge.c: Likewise.
4501         * lib/freadable.c: Likewise.
4502         * lib/freadahead.c: Likewise.
4503         * lib/freading.c: Likewise.
4504         * lib/freadptr.c: Likewise.
4505         * lib/freadseek.c: Likewise.
4506         * lib/fseeko.c: Likewise.
4507         * lib/fseterr.c: Likewise.
4508         * lib/fsusage.c: Likewise.
4509         * lib/fwritable.c: Likewise.
4510         * lib/fwriting.c: Likewise.
4511         * lib/get-rusage-as.c: Likewise.
4512         * lib/get-rusage-data.c: Likewise.
4513         * lib/getdomainname.c: Likewise.
4514         * lib/idpriv-drop.c: Likewise.
4515         * lib/idpriv-droptemp.c: Likewise.
4516         * lib/localcharset.c: Likewise.
4517         * lib/locale.in.h: Likewise.
4518         * lib/localename.c: Likewise.
4519         * lib/mbsrtowcs-state.c: Likewise.
4520         * lib/nproc.c: Likewise.
4521         * lib/passfd.c: Likewise.
4522         * lib/posix_openpt.c: Likewise.
4523         * lib/printf-parse.c: Likewise.
4524         * lib/progreloc.c: Likewise.
4525         * lib/safe-read.h: Likewise.
4526         * lib/safe-write.h: Likewise.
4527         * lib/sched.in.h: Likewise.
4528         * lib/set-mode-acl.c: Likewise.
4529         * lib/signal.in.h: Likewise.
4530         * lib/stdint.in.h: Likewise.
4531         * lib/stdio-impl.h: Likewise.
4532         * lib/stdlib.in.h: Likewise.
4533         * lib/strtod.c: Likewise.
4534         * lib/sys_select.in.h: Likewise.
4535         * lib/tcgetsid.c: Likewise.
4536         * lib/unistd.in.h: Likewise.
4537         * lib/unlockpt.c: Likewise.
4538         * lib/vasnprintf.c: Likewise.
4539         * lib/vma-iter.c: Likewise.
4540         * lib/wcsrtombs-state.c: Likewise.
4541         * m4/acl.m4: Likewise.
4542         * m4/acosl.m4: Likewise.
4543         * m4/asinl.m4: Likewise.
4544         * m4/atanl.m4: Likewise.
4545         * m4/c-stack.m4: Likewise.
4546         * m4/cosl.m4: Likewise.
4547         * m4/expl.m4: Likewise.
4548         * m4/extensions.m4: Likewise.
4549         * m4/fdatasync.m4: Likewise.
4550         * m4/fmal.m4: Likewise.
4551         * m4/frexp.m4: Likewise.
4552         * m4/frexpf.m4: Likewise.
4553         * m4/frexpl.m4: Likewise.
4554         * m4/fsusage.m4: Likewise.
4555         * m4/getdomainname.m4: Likewise.
4556         * m4/getloadavg.m4: Likewise.
4557         * m4/getopt.m4: Likewise.
4558         * m4/gettext.m4: Likewise.
4559         * m4/gnulib-common.m4: Likewise.
4560         * m4/intdiv0.m4: Likewise.
4561         * m4/intlmacosx.m4: Likewise.
4562         * m4/largefile.m4: Likewise.
4563         * m4/ldexpl.m4: Likewise.
4564         * m4/link-follow.m4: Likewise.
4565         * m4/locale-ar.m4: Likewise.
4566         * m4/locale-fr.m4: Likewise.
4567         * m4/locale-ja.m4: Likewise.
4568         * m4/locale-tr.m4: Likewise.
4569         * m4/locale-zh.m4: Likewise.
4570         * m4/locale_h.m4: Likewise.
4571         * m4/lock.m4: Likewise.
4572         * m4/logl.m4: Likewise.
4573         * m4/mathfunc.m4: Likewise.
4574         * m4/minus-zero.m4: Likewise.
4575         * m4/mktime.m4: Likewise.
4576         * m4/mmap-anon.m4: Likewise.
4577         * m4/multiarch.m4: Likewise.
4578         * m4/nanosleep.m4: Likewise.
4579         * m4/nocrash.m4: Likewise.
4580         * m4/poll.m4: Likewise.
4581         * m4/printf-frexpl.m4: Likewise.
4582         * m4/printf.m4: Likewise.
4583         * m4/signbit.m4: Likewise.
4584         * m4/sinl.m4: Likewise.
4585         * m4/sqrtl.m4: Likewise.
4586         * m4/strerror_r.m4: Likewise.
4587         * m4/tanl.m4: Likewise.
4588         * m4/threadlib.m4: Likewise.
4589         * m4/ttyname_r.m4: Likewise.
4590         * m4/unlink.m4: Likewise.
4591         * m4/visibility.m4: Likewise.
4592         * m4/wcwidth.m4: Likewise.
4593         * tests/minus-zero.h: Likewise.
4594         * tests/test-alloca-opt.c: Likewise.
4595         * tests/test-copy-acl.sh: Likewise.
4596         * tests/test-copy-file.sh: Likewise.
4597         * tests/test-fdatasync.c: Likewise.
4598         * tests/test-file-has-acl.sh: Likewise.
4599         * tests/test-flock.c: Likewise.
4600         * tests/test-fsync.c: Likewise.
4601         * tests/test-localename.c: Likewise.
4602         * tests/test-malloca.c: Likewise.
4603         * tests/test-nonblocking-pipe.h: Likewise.
4604         * tests/test-nonblocking-socket.h: Likewise.
4605         * tests/test-openpty.c: Likewise.
4606         * tests/test-posix_openpt.c: Likewise.
4607         * tests/test-ptsname.c: Likewise.
4608         * tests/test-ptsname_r.c: Likewise.
4609         * tests/test-sameacls.c: Likewise.
4610         * tests/test-select.h: Likewise.
4611         * tests/test-set-mode-acl.sh: Likewise.
4612         * tests/test-snprintf-posix.h: Likewise.
4613         * tests/test-sprintf-posix.h: Likewise.
4614         * tests/test-strtod.c: Likewise.
4615         * tests/test-time.c: Likewise.
4616         * tests/test-vasnprintf-posix.c: Likewise.
4617         * tests/test-vasprintf-posix.c: Likewise.
4618         * doc/acl-resources.txt: Likewise.
4619         * doc/**/*.texi: Likewise.
4620         Reported by Max Horn <max@quendi.de>.
4621
4622 2012-06-22  Bruno Haible  <bruno@clisp.org>
4623
4624         grantpt: Relax requirement regarding invalid file descriptors.
4625         * lib/grantpt.c: Don't include <fcntl.h>.
4626         (grantpt): Don't verify the validity of the file descriptor.
4627         * modules/grantpt (Depends-on): Remove fcntl-h.
4628         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4629         file descriptors.
4630         * doc/posix-functions/grantpt.texi: Document more platforms on which
4631         grantpt succeeds for invalid file descriptors.
4632         Reported by Rich Felker <dalias@aerifal.cx>.
4633
4634 2012-06-22  Bruno Haible  <bruno@clisp.org>
4635
4636         fbufmode test: Don't test unportable behaviour.
4637         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4638         (main): Invoke it three times.
4639         Reported by Szabolcs Nagy <nsz@port70.net>
4640         and Rich Felker <dalias@aerifal.cx>.
4641
4642 2012-06-21  Bruno Haible  <bruno@clisp.org>
4643
4644         gnulib-tool: Refactor inctests variable.
4645         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4646         (func_modules_transitive_closure,
4647         func_modules_transitive_closure_separately,
4648         func_import, func_create_testdir): Update.
4649
4650         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4651         * gnulib-tool: Accept option --without-tests.
4652         (func_usage): Document --without-tests option. Rearrange.
4653         (inctests): Normalize according to the mode.
4654         * NEWS: Mention the change.
4655         Suggested by Simon Josefsson.
4656
4657 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4658
4659         parse-duration test: Avoid spurious output.
4660         * tests/test-parse-duration.sh: Reindent with leading tabs.
4661
4662 2012-06-21  Jim Meyering  <meyering@redhat.com>
4663
4664         maint: disable the strncpy prohibition
4665         * cfg.mk: Do not prohibit strncpy here.
4666
4667 2012-06-21  Bruno Haible  <bruno@clisp.org>
4668
4669         nonblocking: Avoid compilation error on mingw64.
4670         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4671         fscanf.
4672         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4673         * modules/vfscanf (configure.ac): Likewise.
4674         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4675         definition only if stdio.h has prepared it.
4676         Reported by Daniel P. Berrange <berrange@redhat.com>.
4677
4678 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4679
4680         gnulib-tool: Use readlink if it is available.
4681         * gnulib-tool (func_readlink): Choose function more appropriately.
4682
4683 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4684
4685         posixtm-tests: port to buggy compiler
4686         Problem reported by Simon Josefsson in
4687         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4688         * modules/posixtm-tests (Depends-on): Add stdint.
4689         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4690         Now of type int_least64_t, not int64_t, both because that's
4691         what INT64_C returns and because int_least64_t works even
4692         on 72-bit hosts.
4693         (T): Use INT64_C on constants outside the traditional int range,
4694         to work around compiler bug noted by Simon.
4695
4696         mktime: fix integer overflow in 'configure'-time test
4697         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4698         after integer overflow.  Problem reported by Rich Felker in
4699         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4700         Also, don't look for further instances of a bug if we've already
4701         found one instance; this helps 'configure' run faster.
4702
4703 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4704
4705         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4706         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4707         GetVersionEx correctly.
4708         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4709
4710 2012-06-20  Bruno Haible  <bruno@clisp.org>
4711
4712         fdopen: Allow implementations that don't reject invalid fd arguments.
4713         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4714         succeeds.
4715         Reported by Rich Felker <dalias@aerifal.cx>.
4716
4717 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4718
4719         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4720         bring in LIBINTL.
4721
4722 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4723
4724         init.sh: do not rely on autoupated PWD
4725         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4726         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4727         Although Nelson's bug was not necessarily fixed by this patch,
4728         it seems wise to make the change for safety.
4729         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4730         automagically after 'cd'; this is not reliable on older shells.
4731         (setup_): Fail if we cannot cd to temporary directory.
4732
4733 2012-06-19  Bruno Haible  <bruno@clisp.org>
4734
4735         stat, fstat: Avoid warnings on mingw64.
4736         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4737         redefining.
4738         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4739         Reported by Daniel P. Berrange <berrange@redhat.com>.
4740
4741 2012-06-19  Bruno Haible  <bruno@clisp.org>
4742
4743         stdioext: Add support for musl libc.
4744
4745         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4746         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4747
4748         * m4/fseterr.m4: New file.
4749         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4750         function exists.
4751         * modules/fseterr (Files): Add m4/fseterr.m4.
4752         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4753         __fseterr does not exist.
4754         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4755
4756         * lib/freadable.h: Update comment.
4757
4758         * lib/fwritable.h: Update comment.
4759
4760         * lib/freading.h: Update comment.
4761
4762         * lib/fwriting.h: Update comment.
4763
4764         * m4/freadahead.m4: New file.
4765         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4766         that function exists.
4767         * modules/freadahead (Files): Add m4/freadahead.m4.
4768         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4769         __freadahead does not exist.
4770         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4771
4772         * m4/freadptr.m4: New file.
4773         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4774         function exists.
4775         * modules/freadptr (Files): Add m4/freadptr.m4.
4776         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4777         __freadptr does not exist.
4778         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4779
4780         * m4/freadseek.m4: New file.
4781         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4782         exists.
4783         * modules/freadseek (Files): Add m4/freadseek.m4.
4784         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4785
4786         * lib/fpurge.c (fpurge): Update comment.
4787
4788         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4789
4790 2012-06-19  Bruno Haible  <bruno@clisp.org>
4791
4792         *printf-posix: Put more info into config.log.
4793         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4794         exit code into config.log.
4795
4796 2012-06-19  Bruno Haible  <bruno@clisp.org>
4797
4798         getopt-gnu: Fix exit code overflow in autoconf test.
4799         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4800         to keep them below < 128.
4801
4802 2012-06-17  Jim Meyering  <meyering@redhat.com>
4803
4804         maint.mk: fix typo in code to derive GPG key at release time
4805         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4806
4807 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         regex: avoid warning when pointers are not long
4810         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4811         and uintptr_t, not long, for portability to hosts where pointers and
4812         long have different sizes.  Issue noted by Daniel P. Berrange in
4813         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4814         and fix suggested by Bruno Haible in
4815         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4816
4817 2012-06-17  Bruno Haible  <bruno@clisp.org>
4818
4819         dummy: Relicense into the public domain.
4820         * modules/dummy (License): Set to "public domain".
4821         Suggested by Reuben Thomas.
4822
4823 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4824
4825         announce-gen: VPATH issues
4826         * build-aux/announce-gen (--srcdir): New option, used to trim the
4827         $srcdir part of the path from $builddir to NEWS.
4828         * top/maint.mk (announcement): Adjust.
4829
4830 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4831
4832         gnu-web-doc-update: VPATH builds
4833         * build-aux/gnu-web-doc-update (--builddir): New option.
4834         Revamp the handling of options.
4835         Prefer $(...) to `...`.
4836         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4837         the template, and it is GNU mktemp specific.
4838         Prefer set -e to long series of &&.
4839         Restore the initial git branch, not "master".
4840         Properly initialize submodules (don't rely only on bootstrap).
4841         Do not reconfigure blindly, use config.status.
4842         * top/README-release: Update instructions for gnu-web-doc-update.
4843
4844 2012-06-11  Jim Meyering  <meyering@redhat.com>
4845
4846         maint.mk: revert most of the previous change re "all these"
4847         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4848         For rationale, see the discussion at
4849         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4850
4851 2012-06-10  Karl Berry  <karl@gnu.org>
4852
4853         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4854
4855         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4856
4857 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4858
4859         parse-duration: Relicense under LGPLv2+.
4860         * modules/parse-duration (License): Change to LGPLv2+.
4861
4862 2012-06-10  Jim Meyering  <meyering@redhat.com>
4863
4864         maint.mk: prohibit common grammar error: "all these"
4865         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4866         the list of prohibited word sequences.  It should be "all of these".
4867         * lib/tempname.c (__gen_tempname): Fix one of them.
4868
4869 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4870
4871         do-release-commit-and-tag: support VPATH builds
4872         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4873         (noteworthy): Defined earlier to factor its value.
4874         (noteworthy_stub): New.
4875         Use it to factor.
4876         (help_version): Split into...
4877         (help, version): these.
4878         Adjust the option processing part.
4879         Support "--option=value" in addition to "--option value".
4880         (builddir): New.
4881         (--builddir): New option.
4882         * top/README-release: Document this.
4883         Reword slightly so that the reader cannot understand that he
4884         has to do these steps before calling do-release-commit-and-tag.
4885
4886 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4887
4888         readme-release: also require announce-gen and maintainer-makefile
4889         * modules/readme-release (Depends-on): here.
4890         * modules/announce-gen, modules/do-release-commit-and-tag,
4891         modules/gnu-web-doc-update, modules/maintainer-makefile
4892         (Description): Point to readme-release.
4893
4894 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4895
4896         maint.mk: fix VPATH issues.
4897         * top/maint.mk (news-check): GNU Make understand $< very well.
4898         (release-prep): NEWS is in $(srcdir).
4899
4900 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4901
4902         readme-release: require the promoted modules.
4903         * modules/readme-release (Depends-on): Add
4904         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4905         in this text.
4906
4907 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4908             Bruno Haible  <bruno@clisp.org>
4909
4910         error, strerror-override: Support mingw64 from Fedora 17.
4911         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4912         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4913         EINPROGRESS.
4914         * lib/strerror-override.h (strerror_override): Test it.
4915         * lib/strerror-override.c (strerror_override): Likewise.
4916         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4917
4918 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4919             Bruno Haible  <bruno@clisp.org>
4920
4921         error, strerror-override: Support mingw64 from Fedora 17.
4922         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4923         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4924         * lib/strerror-override.h (strerror_override): Test it.
4925         * lib/strerror-override.c (strerror_override): Likewise.
4926
4927 2012-06-03  Bruno Haible  <bruno@clisp.org>
4928
4929         error, strerror-override: Support new errno values from POSIX:2008.
4930         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4931         ENOTRECOVERABLE.
4932         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4933         platforms.
4934         * lib/strerror-override.c (strerror_override): Conditionalize the
4935         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4936         * lib/strerror-override.h (strerror_override): Declare also if
4937         GNULIB_defined_EOWNERDEAD is defined.
4938         * tests/test-errno.c (e130, e131): New variables.
4939         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4940         ENOTRECOVERABLE.
4941         Reported by Paolo Bonzini.
4942
4943 2012-05-31  Jim Meyering  <meyering@redhat.com>
4944
4945         savewd: add missing dependency on sys_wait module
4946         * modules/savewd (Depends-on): Add sys_wait, needed at least
4947         for MSVC.  Report and suggested change by Michael Goffioul.
4948
4949 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4950
4951         system-quote-tests: port to CentOS 5
4952         Problem reported by Tom G. Christensen in
4953         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4954         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4955
4956 2012-05-29  Jim Meyering  <meyering@redhat.com>
4957
4958         maint: fix typos in comments and ChangeLog
4959         Culprits identified and fixed mostly automatically using these commands:
4960         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4961         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4962         using http://github.com/lyda/misspell-check
4963         * ChangeLog: Fix typos.
4964         * doc/solaris-versions: Likewise.
4965         * lib/regexec.c (re_search_stub): Likewise.
4966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4967
4968 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4969
4970         manywarnings: remove duplicate -Wmultichar entry
4971         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4972         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4973         so keep the entry marked as documented.
4974
4975 2012-05-27  Karl Berry  <karl@gnu.org>
4976
4977         * config/srclist.txt (mktime.c): remove last libc sync,
4978         perhaps just temporarily.
4979
4980 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4981
4982         regex: don't assume uint64_t or uint32_t
4983         * lib/regcomp.c (init_word_char): Don't assume that the types
4984         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4985         them, and on some 32-bit compilers there is no uint64_t.
4986         Problem reported by Gianluigi Tiesi in
4987         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4988
4989 2012-05-25  Jim Meyering  <meyering@redhat.com>
4990
4991         maint.mk: add strncpy-prohibiting syntax-check rule
4992         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4993
4994 2012-05-24  Jim Meyering  <meyering@redhat.com>
4995
4996         maint.mk: compute $(gpg_key_ID) more portably
4997         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4998         That use of sed is not portable to some fringe systems.
4999         Reported by Paul Eggert in
5000         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
5001
5002 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5003
5004         mktime: sync from glibc
5005         * config/srclist.txt: Uncomment mktime.c.
5006         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
5007         First, indent with tabs, since glibc uses tabs and doesn't want to
5008         change and we'd rather be identical to glibc.  Also, two small
5009         coding changes:
5010         (isdst_differ): Use &&, not &, as && is the usual style.
5011         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
5012         for clarity.
5013
5014 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5015
5016         announce-gen: du -h is more portable than du --human
5017         * build-aux/announce-gen (sizes): Invoke du with -h instead
5018         of --human.  Accept leading white space in its output.
5019
5020 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5021
5022         announce-gen: Improve diagnostics.
5023         * build-aux/announce-gen: When parsing command line options,
5024         prefer "announce-gen: option --release-type requires an argument"
5025         to "Option release-type requires an argument".
5026
5027 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5028
5029         maint.mk: gpg_key_ID: use sed more portably
5030         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
5031         the closing brace.
5032         (refresh-po): Fuse two sed invocations into one.
5033
5034 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
5035
5036         gitlog-to-changelog: support the log message format used in Bison.
5037         * build-aux/gitlog-to-changelog: Support --strip-tab and
5038         --strip-cherry-picked.
5039
5040 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5041
5042         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
5043         the rest of the current time slice to another thread in the current
5044         process. So if the thread that feeds the file decscriptor we're
5045         polling is not in the current process, we get busy-waiting.
5046         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
5047         Patch from Theodore Leblond.
5048         * lib/select.c: Split polling out of the loop that sets the output
5049         fd_sets.  Check for zero result and loop if the wait timeout is
5050         infinite.
5051
5052 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5053
5054         select: Fix build error on IRIX 6.5.
5055         * lib/select.c: Include stddef.h for NULL.
5056
5057 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5058
5059         gc: fix libgcrypt detection on older machines.
5060         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5061         copyright years because the file has been distributed every year
5062         since it was created.
5063
5064 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5065
5066         crypto: fix bug in large buffer handling
5067         Problem reported by Serge Belyshev for glibc in
5068         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
5069         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
5070         * lib/md4.c (md4_process_block):
5071         * lib/md5.c (md5_process_block):
5072         * lib/sha1.c (sha1_process_block):
5073         * lib/sha256.c (sha256_process_block):
5074         Don't assume the buffer length is less than 2**32.
5075         * lib/sha512.c (sha512_process_block): Likewise.
5076         Here, the bug is present only in the rare case where the host does
5077         not support uint64_t or where size_t is wider than 64 bits.
5078         Use u64size to work around the problems.
5079         * lib/u64.h (u64size): New macro.
5080
5081 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5082
5083         fsusage: fix block size returned on older Linux 2.6
5084
5085         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5086         which is available since Linux 2.6.
5087         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5088         when the member is available so it can be used as a fallback.
5089         * doc/posix-functions/statvfs.texi: Mention the hang issue
5090         on Linux < 2.6.36.
5091
5092 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5093
5094         bootstrap: suppress stderr chatter
5095         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5096         Omit unnecessary chatter to stderr.  The main program chatter
5097         was there only inadvertantly.
5098
5099         bootstrap: .gitignore files created by autopoint, libtool
5100         I ran into this problem when bootstrapping the latest diffutils.
5101         After './bootstrap', 'git status' reported lots of untracked files
5102         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5103         autopoint and do not need to be version-controlled.
5104         * build-aux/bootstrap: Put into .gitignore the files that
5105         autopoint and libtool create, by keeping track of files that exist
5106         after but not before these programs are run.
5107         (version_controlled_file): Move up.  2nd arg is now full file
5108         name, not base name; this is more convenient.  Put CVS at the end,
5109         as it's now somewhat deprecated.
5110
5111 2012-05-14  Jim Meyering  <meyering@redhat.com>
5112
5113         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5114         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5115         definition.  Reported by Bruno Haible.
5116
5117 2012-05-13  Bruno Haible  <bruno@clisp.org>
5118             Paul Eggert  <eggert@cs.ucla.edu>
5119
5120         binary-io: Define set_binary_mode function.
5121         * lib/binary-io.h (set_binary_mode): New function.
5122         (SET_BINARY): Define in terms of set_binary_mode.
5123         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5124         * tests/test-binary-io.c (main): Accept an argument, and test either
5125         set_binary_mode or SET_BINARY depending on the argument.
5126         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5127         argument. Clean up also t-bin-out0.tmp.
5128
5129 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5130
5131         bootstrap: take advantage of POSIX shell features
5132
5133         The 'bootstrap' script offered by Gnulib script already uses POSIX
5134         shell features (like $((...)) arithmetic expansions) that are not
5135         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5136         means that bootstrap must already be run using a proper POSIX shell,
5137         which will thus provide more features, like ${var#pattern} parameter
5138         expansion or inversion of a command exit status with '!'.  We can
5139         thus use these features to improve the clarity and the performances
5140         of the bootstrap script.
5141
5142         Suggested by Eric Blake.
5143
5144         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5145         of sed/expr plus command substitutions, to save some forks.  While
5146         we are at it, prefer the POSIX $(...) form of command substitution,
5147         rather than the legacy form `...` (since the former is visually
5148         clearer and interacts better with quoting), and prefer the idiom:
5149           "if ! CMD; then ACTION ..."
5150         over the idiom:
5151           "if CMD; then :; else ACTION ..."
5152         which was required by legacy Bourne shells not supporting '!'.
5153
5154 2012-05-12  Bruno Haible  <bruno@clisp.org>
5155
5156         system-quote: Add more comments.
5157         * lib/system-quote.h: Add more comments about wilcards and limitations.
5158         Suggested by Eli Zaretskii <eliz@gnu.org>.
5159
5160         sh-quote, system-quote: Add comments about wildcards.
5161         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5162         * lib/system-quote.h: Likewise.
5163         Reported by Eli Zaretskii <eliz@gnu.org>.
5164
5165 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5166
5167         fsusage: check for GNU/Linux statvfs problem dynamically
5168         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5169         Define STAT_STATFS2_BSIZE too, since in this case the code now
5170         checks dynamically whether statvfs is reliable, falling back on
5171         Linux-style statfs otherwise.
5172         (statvfs_works): New function, for dynamically testing statvfs.
5173         (get_fs_usage) [STAT_STATVFS]: Use it.
5174         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5175         statvfs on GNU/Linux hosts, since it's now done dynamically.
5176
5177 2012-05-10  Bruno Haible  <bruno@clisp.org>
5178
5179         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5180         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5181         '?' character.
5182         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5183         * tests/test-system-quote-main.c (check_all): Check also strings like
5184         "??????????".
5185         Reported by Eli Zaretskii <eliz@gnu.org>.
5186
5187 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5188
5189         _Noreturn: port config.h to gcc -Wundef
5190         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5191         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5192         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5193
5194 2012-05-10  Bruno Haible  <bruno@clisp.org>
5195
5196         system-quote: Refactor.
5197         * lib/system-quote.h (system_quote_copy): Fix comment.
5198         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5199         New functions, extracted from system_quote_copy.
5200         (system_quote_length, system_quote_copy): Use these functions.
5201         Reported by Paul Eggert.
5202
5203 2012-05-08  Bruno Haible  <bruno@clisp.org>
5204
5205         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5206         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5207
5208 2012-05-08  Bruno Haible  <bruno@clisp.org>
5209
5210         Tests for module 'system-quote'.
5211         * modules/system-quote-tests: New file.
5212         * tests/test-system-quote.sh: New file.
5213         * tests/test-system-quote-main.c: New file.
5214         * tests/test-system-quote-child.c: New file.
5215
5216         New module 'system-quote'.
5217         * lib/system-quote.h: New file.
5218         * lib/system-quote.c: New file.
5219         * modules/system-quote: New file.
5220
5221 2012-05-08  Bruno Haible  <bruno@clisp.org>
5222
5223         sh-quote: Make C++ safe and allow multiple inclusion.
5224         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5225         declarations in extern "C".
5226
5227 2012-05-08  Bruno Haible  <bruno@clisp.org>
5228
5229         sh-quote tests: Make tests stricter.
5230         * tests/test-sh-quote.c (check_one): Check the return value of
5231         shell_quote_copy.
5232         (main): Check a string with a CR character. Check a string that
5233         contains UCHAR_MAX.
5234
5235 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5236
5237         warnings.m4: provide a means to specify the program to compile.
5238         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5239         (gl_WARN_ADD): here.
5240         Use gl_AS_VAR_APPEND.
5241         Support an argument to specify the program to compile.
5242         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5243         AC_SUBST the WARN_CFLAGS when they are used.
5244         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5245         leave this to gl_WARN_ADD.
5246
5247 2012-05-08  Eric Blake  <eblake@redhat.com>
5248
5249         doc: recommendations on gettext version
5250         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5251         choice between versions.
5252         * DEPENDENCIES (gettext): Cover both approaches.
5253
5254 2012-05-08  Jim Meyering  <meyering@redhat.com>
5255
5256         init.sh: explain why EXEEXT support uses aliases rather than functions
5257         * tests/init.sh: Add a comment.
5258
5259         init.sh: don't let bash aliases interfere with tests
5260         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5261         is bash.  This avoids problems for those who alias standard commands to
5262         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5263         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5264
5265 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5266
5267         stdint: be more consistent with glibc, SunOS libc
5268         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5269         (gl_int_fast16_t, gl_uint_fast16_t)
5270         (gl_int_fast32_t, gl_uint_fast32_t)
5271         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5272         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5273         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5274         Be consistent with glibc by default, and with SunOS 5.10 and later
5275         if __sun is defined.  This lessens the likelihood of clashes if
5276         code compiled for older hosts is combined with code compiled for
5277         newer ones.  Problem reported by Niels Möller in
5278         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5279
5280 2012-05-07  Eric Blake  <eblake@redhat.com>
5281
5282         isatty: relax license to LGPLv2+
5283         * modules/isatty (License): Relax license.
5284
5285 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5286
5287         stat-size: comment fix
5288         * lib/stat-size.h: Remove obsolete comment about indenting.
5289
5290 2012-05-06  Bruno Haible  <bruno@clisp.org>
5291
5292         Tests for module 'sh-quote'.
5293         * modules/sh-quote-tests: New file.
5294         * tests/test-sh-quote.c: New file.
5295
5296 2012-05-06  Bruno Haible  <bruno@clisp.org>
5297
5298         sh-quote: Improve shell_quote_argv's signature.
5299         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5300         * lib/sh-quote.c (shell_quote_argv): Likewise.
5301
5302 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5303
5304         stdint: document issues with int_fast8_t etc.
5305         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5306         stdint.h substitutes may define these types differently.  See
5307         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5308
5309 2012-05-05  Bruno Haible  <bruno@clisp.org>
5310
5311         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5313         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5314         or 'guessing no (mishandles large arguments)'.
5315
5316 2012-05-05  Bruno Haible  <bruno@clisp.org>
5317
5318         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5319         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5320         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5321         set gl_cv_func_link_follows_symlink to "guessing no".
5322
5323 2012-05-05  Bruno Haible  <bruno@clisp.org>
5324
5325         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5326         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5327         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5328         "guessing no".
5329         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5330
5331 2012-05-05  Bruno Haible  <bruno@clisp.org>
5332
5333         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5334         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5335         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5336         set gl_cv_struct_dirent_d_ino to "guessing yes".
5337
5338 2012-05-05  Bruno Haible  <bruno@clisp.org>
5339
5340         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5341         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5342         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5343         "guessing yes".
5344
5345 2012-05-05  Bruno Haible  <bruno@clisp.org>
5346
5347         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5348         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5349         compiling to a glibc system, set gl_cv_func_signbit and
5350         gl_cv_func_signbit_gcc to "guessing yes".
5351
5352 2012-05-05  Bruno Haible  <bruno@clisp.org>
5353
5354         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5355         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5356         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5357         to "guessing yes".
5358         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5359         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5360
5361 2012-05-05  Bruno Haible  <bruno@clisp.org>
5362
5363         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5364         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5365         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5366         gl_cv_func_realpath_works to "guessing yes".
5367
5368 2012-05-05  Bruno Haible  <bruno@clisp.org>
5369
5370         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5371         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5372         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5373
5374 2012-05-04  Bruno Haible  <bruno@clisp.org>
5375
5376         Tweak last commit.
5377         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5378         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5379
5380 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5381
5382         unistd_h: make it easier to avoid sys_types_h
5383         This is useful for Emacs, which has its own method of porting to
5384         Windows, and which therefore does not need the sys_types_h module.
5385         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5386         code moved here from gl_SYS_TYPES_H.
5387         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5388         using the code directly.
5389         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5390         gl_SYS_TYPES_H.
5391         * modules/sys_types (Files):
5392         * modules/unistd (Files): Add m4/off_t.m4.
5393
5394 2012-05-03  Bruno Haible  <bruno@clisp.org>
5395
5396         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5397         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5398         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5399         "guessing yes" or "guessing no".
5400         (gl_FUNC_LSTAT): Update.
5401         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5402         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5403         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5404
5405 2012-05-03  Bruno Haible  <bruno@clisp.org>
5406
5407         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5408         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5409         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5410         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5411         cross-compiling, choose the first alternative on glibc systems.
5412         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5413
5414 2012-05-03  Bruno Haible  <bruno@clisp.org>
5415
5416         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5417         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5418         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5419
5420 2012-05-03  Bruno Haible  <bruno@clisp.org>
5421
5422         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5423         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5424
5425 2012-05-03  Bruno Haible  <bruno@clisp.org>
5426
5427         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5428         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5429         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5430         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5431         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5432         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5433         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5434         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5435         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5436         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5437         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5438         gl_cv_func_chown_ctime_works to "guessing yes".
5439         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5440         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5441         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5442         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5443         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5445         compiling to glibc systems, set gl_cv_func_open_directory_works to
5446         "guessing yes".
5447         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5448         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5449         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5450         "guessing yes".
5451         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5452         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5453         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5454         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5455         "guessing yes".
5456         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5457         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5458         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5459         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5460         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5461         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5462         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5463         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5464         "guessing yes".
5465         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5466         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5467         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5468         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5469         "guessing yes".
5470         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5471         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5472         "guessing yes".
5473         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5474         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5475         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5476         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5477         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5478         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5479         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5480         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5481         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5482         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5483         "guessing yes".
5484         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5485         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5486         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5487         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5488         "guessing yes".
5489         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5490         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5491         "guessing yes".
5492         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5493         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5494         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5495         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5496         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5497         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5498         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5499         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5500         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5501         "guessing yes".
5502         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5503         compiling to glibc systems, set gl_cv_func_mknod_works to
5504         "guessing yes".
5505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5506         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5507         "guessing yes".
5508         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5509         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5510         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5511         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5512         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5513         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5514         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5515         compiling to glibc systems, set gl_cv_func_svid_putenv to
5516         "guessing yes".
5517         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5518         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5519         "guessing yes".
5520         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5521         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5522         "guessing yes".
5523         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5524         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5525         to "guessing yes".
5526         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5527         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5528         to "guessing yes".
5529         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5530         compiling to glibc systems, set gl_cv_func_rmdir_works to
5531         "guessing yes".
5532         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5533         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5534         gl_cv_func_unlink_parent_fails to "guessing yes".
5535         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5536         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5537         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5538         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5539         gl_cv_func_rename_dest_works to "guessing yes".
5540         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5541         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5543         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5544         "guessing yes".
5545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5546         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5547         "guessing yes".
5548         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5549         compiling to glibc systems, set gl_cv_func_setenv_works to
5550         "guessing yes".
5551         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5552         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5553         "guessing yes".
5554         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5555         compiling to glibc systems, set gl_cv_func_sleep_works to
5556         "guessing yes".
5557         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5558         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5559         "guessing yes".
5560         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5561         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5562         "guessing yes".
5563         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5564         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5565         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5566         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5567         "guessing yes".
5568         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5569         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5570         "guessing yes".
5571         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5572         compiling to glibc systems, set gl_cv_func_usleep_works to
5573         "guessing yes".
5574         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5575         compiling to glibc systems, set gl_cv_func_futimesat_works to
5576         "guessing yes".
5577
5578 2012-05-03  Bruno Haible  <bruno@clisp.org>
5579
5580         Say "guessing yes" or "guessing no" when cross-compiling.
5581         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5582         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5583         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5584         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5585         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5586         am_cv_func_working_getline to "guessing yes" or "guessing no".
5587         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5588         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5589         (gl_FUNC_MEMMEM): When cross-compiling, set
5590         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5592         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5594         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5595         "guessing no".
5596         (gl_FUNC_STRCASESTR): When cross-compiling, set
5597         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5598         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5599         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5600         (gl_FUNC_STRSTR): When cross-compiling, set
5601         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5602         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5603         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5604         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5605         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5606
5607 2012-05-01  Bruno Haible  <bruno@clisp.org>
5608
5609         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5610         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5611         * build-aux/reloc-ldflags: Likewise.
5612         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5613
5614 2012-05-01  Bruno Haible  <bruno@clisp.org>
5615
5616         gnulib-tool: Remove transitional code.
5617         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5618         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5619
5620 2012-05-01  Bruno Haible  <bruno@clisp.org>
5621
5622         getcwd: Fix misindentation.
5623         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5624
5625 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5626
5627         exclude: process exclude and include directives in order
5628         This restores the pre-2009 behavior, and is part of a fix of a
5629         grep bug reported by Quentin Arce in
5630         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5631         * lib/exclude.c (struct exclude): Remove 'tail' member.
5632         (new_exclude_segment): Prepend the new segment instead of appending.
5633         Return void, since that's now more convenient.
5634         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5635         (file_name_matches): Renamed from excluded_file_name_p.
5636         (file_pattern_matches, file_name_matches):
5637         Return true if the pattern matches, not if it excludes.
5638         All callers changed.
5639         (excluded_file_name): Process the list in reverse order;
5640         since the list is now reversed this restores the pre-2009 behavior.
5641         (add_exclude): Adjust to new reversed-order list.  Use local var
5642         rather than macro, for clarity.
5643         * tests/test-exclude7.sh: Adjust to corrected behavior.
5644
5645         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5646         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5647         it's not possible here.  Handle the case of \ at end of pattern
5648         without dumping core.
5649         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5650
5651         _Noreturn: future-proof non-GNU and non-MSVC compilers
5652         * build-aux/snippet/_Noreturn.h (_Noreturn):
5653         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5654         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5655         C11 or later.  This is more likely to work with random future C
5656         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5657         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5658
5659         exclude: handle wildcards with FNM_EXTMATCH
5660         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5661         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5662         comment that "has wildcards" really means "has or may have
5663         wildcards".  Simplify by avoiding the need to call strcspn.
5664
5665 2012-04-29  Bruno Haible  <bruno@clisp.org>
5666
5667         gnulib-tool: Fix list of authors.
5668         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5669
5670 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5671
5672         bootstrap: support Automake-NG in $buildreq
5673         * bootstrap (check_versions): Handle automake and aclocal from
5674         Automake-NG specially.  They can be specified as respectively
5675         the "automake-ng" and "aclocal-ng" requirements.
5676
5677 2012-04-25  Eric Blake  <eblake@redhat.com>
5678
5679         bootstrap: only force latest Makefile.in.in for gettext module
5680         * build-aux/bootstrap (with_gettext): Only install latest
5681         Makefile.in.in for projects requesting bleeding edge gettext.
5682
5683 2012-04-22  Bruno Haible  <bruno@clisp.org>
5684
5685         doc: Mention reason for replacement on glibc/Linux systems.
5686         * doc/posix-functions/dprintf.texi: Mention the problem with special
5687         'long double' values.
5688         * doc/posix-functions/fprintf.texi: Likewise.
5689         * doc/posix-functions/printf.texi: Likewise.
5690         * doc/posix-functions/snprintf.texi: Likewise.
5691         * doc/posix-functions/sprintf.texi: Likewise.
5692         * doc/posix-functions/vdprintf.texi: Likewise.
5693         * doc/posix-functions/vfprintf.texi: Likewise.
5694         * doc/posix-functions/vprintf.texi: Likewise.
5695         * doc/posix-functions/vsnprintf.texi: Likewise.
5696         * doc/posix-functions/vsprintf.texi: Likewise.
5697         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5698         platforms with F_DUPFD_CLOEXEC problems.
5699         * doc/posix-functions/glob.texi: Mention which platforms are affected
5700         by the problem with symbolic links.
5701         * doc/posix-functions/linkat.texi: Mention the problem with
5702         AT_SYMLINK_FOLLOW on Linux.
5703
5704 2012-04-22  Bruno Haible  <bruno@clisp.org>
5705
5706         pwrite: Don't replace on all platforms.
5707         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5708
5709 2012-04-22  Bruno Haible  <bruno@clisp.org>
5710
5711         rint* tests: Avoid gcc warnings.
5712         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5713         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5714         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5715
5716 2012-04-21  Bruno Haible  <bruno@clisp.org>
5717
5718         users.txt: Update.
5719         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5720         switched from CVS to git, bzr, or svn.
5721
5722 2012-04-21  Bruno Haible  <bruno@clisp.org>
5723
5724         Large File Support for native Windows platforms.
5725
5726         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5727         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5728
5729         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5730         type.
5731         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5732         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5733         * doc/posix-headers/sys_types.texi: Mention the effect of the
5734         'largefile' module.
5735
5736         * lib/fcntl.in.h: Add comments about off_t.
5737         * modules/fcntl-h (Depends-on): Add sys_types.
5738
5739         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5740         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5741         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5742         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5743         * modules/unistd (Depends-on): Add sys_types.
5744         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5745
5746         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5747         instead of lseek.
5748         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5749         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5750         * modules/lseek (Depends-on): Add sys_types.
5751
5752         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5753         msvc-nothrow.h.
5754         (SetFileSize): New function.
5755         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5756         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5757         if Large File Support is requested.
5758         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5759         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5760
5761         * lib/stdio.in.h: Add comments about off_t.
5762         * modules/stdio (Depends-on): Add sys_types.
5763
5764         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5765         instead of ftello.
5766         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5767         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5768         (gl_PREREQ_FTELLO): New macro.
5769         * modules/ftello (Depends-on): Add sys_types.
5770         (configure.ac): Incoke gl_PREREQ_FTELLO.
5771
5772         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5773         instead of fseeko.
5774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5775         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5776         (gl_PREREQ_FSEEKO): New macro.
5777         * modules/fseeko (Depends-on): Add sys_types.
5778         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5779
5780         * lib/sys_stat.in.h: Add comments about off_t.
5781         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5782         64-bit integer for st_size in 'struct stat'.
5783         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5784         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5785         * modules/sys_stat (Depends-on): Add sys_types.
5786         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5787
5788         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5789         instead of stat or _stat.
5790
5791         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5792         'struct _stati64' instead of fstat and 'struct stat'.
5793         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5794         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5795
5796         Reported by Ray Satiro <raysatiro@yahoo.com>.
5797
5798 2012-04-19  Eric Blake  <eblake@redhat.com>
5799
5800         bootstrap: accommodate older libtool
5801         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5802         Reported by Daniel P. Berrange.
5803
5804 2012-04-19  Jim Meyering  <meyering@redhat.com>
5805
5806         announce-gen: avoid failure due to lack of Digest::SHA1
5807         Even with the preferred Digest::SHA available, this script
5808         would fail when the backup module, Digest::SHA1, was not installed.
5809         * build-aux/announce-gen: Quote the conditional use of "use".
5810         Reported by Reuben Thomas in:
5811         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5812
5813         bootstrap: don't let a user's CDPATH setting affect this script
5814         When CDPATH is set, cd will sometimes generate output.
5815         When "cd" is run in a subshell whose output matters, that
5816         surprising-to-some output can cause malfunction.
5817         Unsetting CDPATH turns off this shell "feature."
5818         * build-aux/bootstrap (CDPATH): Unset.
5819         Reported by Reuben Thomas in:
5820         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5821         and inspired by his patch here:
5822         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5823
5824 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5825         and Jim Meyering  <meyering@redhat.com>
5826
5827         maint.mk: catch "see @xref{}" and similar
5828         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5829         prohibit "See also @xref{", "Also see @pxref{", and similar.
5830
5831 2012-04-16  Jim Meyering  <meyering@redhat.com>
5832
5833         bootstrap: really use gnulib's po/Makefile.in.in
5834         * build-aux/bootstrap: Correct the source file name in previous change.
5835         Reported by Akim Demaille.
5836
5837         configmake: correct minor inconsistency in Makefile rule
5838         * modules/configmake (Makefile.am): All other rules like this one
5839         run the final "mv -f ..." in the same backslash-continued command
5840         as the one that does everything else.  This one put the mv -f ...
5841         command on a separate, non-backslash-continued line.
5842         Make it like the others.
5843
5844         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5845         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5846         the one from gettext.  Reported by Akim Demaille.
5847
5848 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5849
5850         Fix recursion of install-* into po directories.
5851         Bison's install-pdf bug reported by Hans Aberg at
5852         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5853         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5854         (install-info, install-pdf, install-ps): New targets.
5855
5856 2012-04-16  Jim Meyering  <meyering@redhat.com>
5857
5858         maint: avoid spurious "make sc_maint" failure
5859         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5860         exempt all *.class file names, for lib/javaversion.class.
5861
5862 2012-04-15  Bruno Haible  <bruno@clisp.org>
5863
5864         lseek: Make configure test independent of environment.
5865         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5866         Windows, we know that lseek() on pipes is broken; skip the runtime
5867         test.
5868
5869 2012-04-14  Bruno Haible  <bruno@clisp.org>
5870
5871         stat: Bypass buggy override in mingw64.
5872         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5873         * lib/stat.c (stat) [mingw64]: Define to _stat.
5874         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5875
5876 2012-04-14  Bruno Haible  <bruno@clisp.org>
5877
5878         pathmax: Fix compilation error on MSVC 9.
5879         * modules/pathmax (Depends-on): Add unistd.
5880
5881 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5882
5883         README: document pointer comparison assumption
5884         * README (Portability guidelines): Document assumption about
5885         pointer comparisons, in response to a recent bug-gnulib comment by
5886         Jeffrey Kegler.
5887
5888 2012-04-12  Bruno Haible  <bruno@clisp.org>
5889
5890         Tests for module 'getrusage'.
5891         * modules/getrusage-tests: New file.
5892         * tests/test-getrusage.c: New file.
5893
5894         New module 'getrusage'.
5895         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5896         warn-on-use.h.
5897         (getrusage): New declaration.
5898         * lib/getrusage.c: New file.
5899         * m4/getrusage.m4: New file.
5900         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5901         is declared.
5902         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5903         HAVE_GETRUSAGE.
5904         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5905         snippet/c++defs, snippet/warn-on-use.
5906         (Makefile.am): Update generation of sys/resource.h. Substitute
5907         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5908         * modules/getrusage: New file.
5909         * doc/posix-functions/getrusage.texi: Mention the new module.
5910
5911 2012-04-12  Bruno Haible  <bruno@clisp.org>
5912
5913         Tests for module 'sys_resource'.
5914         * modules/sys_resource-tests: New file.
5915         * tests/test-sys_resource.c: New file.
5916
5917         New module 'sys_resource'.
5918         * lib/sys_resource.in.h: New file.
5919         * m4/sys_resource_h.m4: New file.
5920         * modules/sys_resource: New file.
5921         * doc/posix-headers/sys_resource.texi: Mention the new module.
5922
5923 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5924
5925         ioctl: Fix compilation error on mingw.
5926         * lib/ioctl.c: Include <windows.h>.
5927         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5928
5929 2012-04-04  Jim Meyering  <meyering@redhat.com>
5930
5931         regex: correct #pragma guard expression
5932         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5933         not 4.3.  Correct its cpp guard expression.
5934
5935 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5936
5937         regex: remove unnecessary type punning
5938         Problem reported by Vladimir Serbinenko in
5939         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5940         * lib/regex.h (struct re_pattern_buffer): Change the type of
5941         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5942         Fix comment to match code.
5943         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5944         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5945         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5946         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5947         (set_regs):
5948         Omit no-longer-necessary casts.
5949
5950 2012-04-03  Bruno Haible  <bruno@clisp.org>
5951
5952         Tests for module 'ilogbl'.
5953         * modules/ilogbl-tests: New file.
5954         * tests/test-ilogbl.c: New file.
5955
5956         New module 'ilogbl'.
5957         * lib/math.in.h (ilogbl): New declaration.
5958         * lib/ilogbl.c: New file.
5959         * m4/ilogbl.m4: New file.
5960         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5962         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5963         Split sed invocation, to avoid the limit of 100 substitutions of
5964         HP-UX 'sed'.
5965         * modules/ilogbl: New file.
5966         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5967         * doc/posix-functions/ilogbl.texi: Mention the new module.
5968
5969 2012-04-03  Bruno Haible  <bruno@clisp.org>
5970
5971         Tests for module 'ilogbf'.
5972         * modules/ilogbf-tests: New file.
5973         * tests/test-ilogbf.c: New file.
5974
5975         New module 'ilogbf'.
5976         * lib/math.in.h (ilogbf): New declaration.
5977         * lib/ilogbf.c: New file.
5978         * m4/ilogbf.m4: New file.
5979         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5981         REPLACE_ILOGBF.
5982         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5983         REPLACE_ILOGBF.
5984         * modules/ilogbf: New file.
5985         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5986         * doc/posix-functions/ilogbf.texi: Mention the new module.
5987
5988 2012-04-03  Bruno Haible  <bruno@clisp.org>
5989
5990         Tests for module 'ilogb'.
5991         * modules/ilogb-tests: New file.
5992         * tests/test-ilogb.c: New file.
5993         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5994         tests/test-logb-ieee.h.
5995
5996         New module 'ilogb'.
5997         * lib/math.in.h (ilogb): New declaration.
5998         * lib/ilogb.c: New file.
5999         * m4/ilogb.m4: New file.
6000         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
6001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
6002         REPLACE_ILOGB.
6003         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
6004         REPLACE_ILOGB.
6005         * modules/ilogb: New file.
6006         * tests/test-math-c++.cc: Check the declaration of ilogb.
6007         * doc/posix-functions/ilogb.texi: Mention the new module.
6008
6009 2012-04-03  Bruno Haible  <bruno@clisp.org>
6010
6011         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
6012         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
6013         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
6014         (main): Check their values.
6015         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
6016         problem.
6017
6018 2012-04-03  Bruno Haible  <bruno@clisp.org>
6019
6020         Tests for module 'logbl-ieee'.
6021         * modules/logbl-ieee-tests: New file.
6022         * tests/test-logbl-ieee.c: New file.
6023
6024         New module 'logbl-ieee'.
6025         * modules/logbl-ieee: New file.
6026
6027         Tests for module 'logb-ieee'.
6028         * modules/logb-ieee-tests: New file.
6029         * tests/test-logb-ieee.c: New file.
6030
6031         New module 'logb-ieee'.
6032         * modules/logb-ieee: New file.
6033
6034         Tests for module 'logbf-ieee'.
6035         * modules/logbf-ieee-tests: New file.
6036         * tests/test-logbf-ieee.c: New file.
6037         * tests/test-logb-ieee.h: New file.
6038
6039         New module 'logbf-ieee'.
6040         * modules/logbf-ieee: New file.
6041
6042 2012-04-03  Bruno Haible  <bruno@clisp.org>
6043
6044         Tests for module 'logbl'.
6045         * modules/logbl-tests: New file.
6046         * tests/test-logbl.c: New file.
6047
6048         New module 'logbl'.
6049         * lib/math.in.h (logbl): New declaration.
6050         * lib/logbl.c: New file.
6051         * m4/logbl.m4: New file.
6052         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
6053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
6054         REPLACE_LOGBL.
6055         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
6056         REPLACE_LOGBL.
6057         * modules/logbl: New file.
6058         * tests/test-math-c++.cc: Check the declaration of logbl.
6059         * doc/posix-functions/logbl.texi: Mention the new module.
6060
6061 2012-04-02  Bruno Haible  <bruno@clisp.org>
6062
6063         Tests for module 'logbf'.
6064         * modules/logbf-tests: New file.
6065         * tests/test-logbf.c: New file.
6066
6067         New module 'logbf'.
6068         * lib/math.in.h (logbf): New declaration.
6069         * lib/logbf.c: New file.
6070         * m4/logbf.m4: New file.
6071         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
6072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
6073         REPLACE_LOGBF.
6074         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
6075         REPLACE_LOGBF.
6076         * modules/logbf: New file.
6077         * tests/test-math-c++.cc: Check the declaration of logbf.
6078         * doc/posix-functions/logbf.texi: Mention the new module.
6079
6080 2012-04-02  Bruno Haible  <bruno@clisp.org>
6081
6082         logb tests: More tests.
6083         * tests/test-logb.h: New file, based on tests/test-logb.c and
6084         tests/test-frexp.h.
6085         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6086         (main): Just invoke test_function.
6087         * modules/logb-tests (Files): Add tests/test-logb.h,
6088         tests/minus-zero.h, tests/randomd.c.
6089         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6090
6091         logb: Provide replacement and workarounds.
6092         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6093         is 1.
6094         * lib/logb.c: New file.
6095         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6096         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6098         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6099         * modules/logb (Files): Add lib/logb.c.
6100         (Depends-on): Add isfinite, frexp, isnand.
6101         (configure.ac): Compile the replacement code logb.c if needed.
6102         * tests/test-math-c++.cc: Check the declaration of logb.
6103         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6104         with subnormal numbers.
6105
6106 2012-04-02  Bruno Haible  <bruno@clisp.org>
6107
6108         log10* tests: Speed up.
6109         * tests/test-log10.h (test_function): Reduce amount of random numbers
6110         to test.
6111
6112 2012-04-01  Bruno Haible  <bruno@clisp.org>
6113
6114         logf-ieee: Fix test whether logf works.
6115         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6116
6117 2012-04-01  Bruno Haible  <bruno@clisp.org>
6118
6119         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6120         * lib/log10l.c: Include <float.h>
6121         (log10l): On IRIX, normalize the +Infinity value.
6122         * modules/log10l (Depends-on): Add 'float'.
6123         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6124         +Infinity.
6125
6126         log10f-ieee: Work around test failure on NetBSD 5.1.
6127         * m4/log10f-ieee.m4: New file.
6128         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6129         test whether log10f works with a negative argument. Replace it if not.
6130         * lib/log10f.c (log10f): For negative arguments, return NaN.
6131         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6132         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6133         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6134
6135         log10f-ieee: Work around test failure on Solaris 9.
6136         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6137         (configure.ac): Require gl_FUNC_LOG10F.
6138
6139         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6140         * m4/log10-ieee.m4: New file.
6141         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6142         whether log10 works with a negative argument. Replace it if not.
6143         * lib/log10.c (log10): For negative arguments, return NaN.
6144         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6145         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6146         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6147
6148         Tests for module 'log10l-ieee'.
6149         * modules/log10l-ieee-tests: New file.
6150         * tests/test-log10l-ieee.c: New file.
6151
6152         New module 'log10l-ieee'.
6153         * modules/log10l-ieee: New file.
6154
6155         Tests for module 'log10-ieee'.
6156         * modules/log10-ieee-tests: New file.
6157         * tests/test-log10-ieee.c: New file.
6158
6159         New module 'log10-ieee'.
6160         * modules/log10-ieee: New file.
6161
6162         Tests for module 'log10f-ieee'.
6163         * modules/log10f-ieee-tests: New file.
6164         * tests/test-log10f-ieee.c: New file.
6165         * tests/test-log10-ieee.h: New file.
6166
6167         New module 'log10f-ieee'.
6168         * modules/log10f-ieee: New file.
6169
6170 2012-04-01  Bruno Haible  <bruno@clisp.org>
6171
6172         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6173         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6174         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6175         workaround.
6176         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6177         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6179         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6180         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6181         (Depends-on): Update conditions.
6182         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6183         IRIX 6.5, OSF/1 5.1 problems.
6184
6185 2012-04-01  Bruno Haible  <bruno@clisp.org>
6186
6187         log10f: Work around OSF/1 5.1 bug.
6188         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6189         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6190         workaround.
6191         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6192         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6194         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6195         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6196         (Depends-on): Update conditions.
6197         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6198
6199 2012-04-01  Bruno Haible  <bruno@clisp.org>
6200
6201         log10: Work around OSF/1 5.1 bug.
6202         * lib/math.in.h (log10): New declaration.
6203         * lib/log10.c: New file.
6204         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6205         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6206         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6208         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6209         * modules/log10 (Files): Add lib/log10.c.
6210         (Depends-on): Add math.
6211         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6212         * tests/test-math-c++.cc: Check the declaration of log10.
6213         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6214
6215 2012-03-31  Bruno Haible  <bruno@clisp.org>
6216
6217         log10l tests: More tests.
6218         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6219         tests/minus-zero.h, tests/randoml.c.
6220         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6221         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6222         (main): Invoke test_function.
6223
6224         log10f tests: More tests.
6225         * modules/log10f-tests (Files): Add tests/test-log10.h,
6226         tests/minus-zero.h, tests/randomf.c.
6227         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6228         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6229         (main): Invoke test_function.
6230
6231         log10 tests: More tests.
6232         * tests/test-log10.h: New file.
6233         * modules/log10-tests (Files): Add tests/test-log10.h,
6234         tests/minus-zero.h, tests/randomd.c.
6235         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6236         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6237         (main): Invoke test_function.
6238
6239 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6240
6241         fflush: Fix syntax error.
6242         * lib/fflush.c: Include unused-parameter.h, needed for
6243         _GL_UNUSED_PARAMETER.
6244         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6245
6246 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6247
6248         regex: pacify GCC when compiling GRUB
6249         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6250         a diagnostic.  Reported by Vladimir Serbinenko in
6251         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6252
6253 2012-03-29  Eric Blake  <eblake@redhat.com>
6254
6255         stdio: don't assume gets any more
6256         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6257         support.
6258         * modules/stdio (Makefile.am): Likewise.
6259         * lib/stdio-read.c (gets): Likewise.
6260         * tests/test-stdio-c++.cc: Likewise.
6261         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6262         * lib/stdio.in.h (gets): Make warning occur in more places.
6263         * doc/posix-functions/gets.texi (gets): Update documentation.
6264         Reported by Christer Solskogen.
6265
6266         maint.mk: fix syntax checks without exclusions
6267         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6268         Reported by Daniel P. Berrange.
6269
6270         strerror_r: avoid compiler warning
6271         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6272         level.
6273
6274         fflush: avoid compiler warning
6275         * lib/fflush.c (update_fpos_cache): Mark variables that are
6276         potentially unused.
6277
6278 2012-03-25  Bruno Haible  <bruno@clisp.org>
6279
6280         Tests for module 'localeconv'.
6281         * modules/localeconv-tests: New file.
6282         * tests/test-localeconv.c: New file.
6283
6284         New module 'localeconv'.
6285         * lib/locale.in.h (localeconv): New declaration.
6286         * lib/localeconv.c: New file.
6287         * m4/localeconv.m4: New file.
6288         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6289         REPLACE_LOCALECONV.
6290         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6291         REPLACE_LOCALECONV.
6292         * modules/localeconv: New file.
6293         * modules/nl_langinfo (Depends-on): Add localeconv.
6294         * modules/human (Depends-on): Likewise.
6295         * doc/posix-functions/localeconv.texi: Mention the new module.
6296
6297 2012-03-25  Bruno Haible  <bruno@clisp.org>
6298
6299         locale: Provide a complete 'struct lconv'.
6300         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6301         'struct lconv' does not contain int_p_cs_precedes.
6302         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6303         * doc/posix-headers/locale.texi: Update.
6304
6305         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6306         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6307         * doc/posix-headers/locale.texi: Update.
6308
6309         locale: Provide a working 'struct lconv'.
6310         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6311         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6312         'struct lconv' does not even contain decimal_point.
6313         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6314         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6315         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6316         * doc/posix-headers/locale.texi: Mention the problems with
6317         'struct lconv'.
6318         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6319
6320 2012-03-24  Bruno Haible  <bruno@clisp.org>
6321
6322         Enable common subexpression optimization in GCC.
6323         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6324         macros.
6325         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6326         GCC attribute 'const'.
6327         (uc_locale_language): Declare with GCC attribute 'pure'.
6328         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6329         with GCC attribute 'const'.
6330         * lib/unictype.in.h (uc_is_general_category_withtable,
6331         uc_combining_class, uc_combining_class_name,
6332         uc_combining_class_long_name, uc_bidi_class_name,
6333         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6334         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6335         uc_decimal_value, uc_digit_value, uc_numeric_value,
6336         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6337         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6338         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6339         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6340         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6341         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6342         Declare with GCC attribute 'const'.
6343         (uc_general_category_name, uc_general_category_long_name,
6344         uc_general_category_byname, uc_general_category,
6345         uc_is_general_category, uc_combining_class_byname,
6346         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6347         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6348         Declare with GCC attribute 'pure'.
6349         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6350         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6351         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6352         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6353         with GCC attribute 'pure'.
6354         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6355         'const'.
6356         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6357         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6358         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6359         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6360         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6361         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6362         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6363         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6364         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6365         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6366         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6367         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6368         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6369         GCC attribute 'pure'.
6370         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6371         'const'.
6372         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6373         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6374         u32_strwidth): Declare with GCC attribute 'pure'.
6375
6376         Enable common subexpression optimization in GCC.
6377         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6378         (alphasort): Declare with GCC attribute 'pure'.
6379         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6380         (atoll): Declare with GCC attribute 'pure'.
6381         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6382         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6383         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6384         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6385         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6386         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6387         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6388
6389 2012-03-24  Bruno Haible  <bruno@clisp.org>
6390
6391         gnulib-tool: Avoid unintended error output from 'cmp'.
6392         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6393         "cmp -s", not "cmp > /dev/null".
6394
6395 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6396
6397         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6398
6399         It's not just Automake versions < 1.9b that creates an empty
6400         pkgdatadir at installation time if pkgdata_DATA is specified
6401         to empty; modern automake versions do this as well, at least
6402         until automake 1.11.4 (not yet released at the moment of writing,
6403         but soon to appear).  That behaviour was generally considered a
6404         feature rather than a bug, at least until this discussion:
6405         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6406
6407         See also automake bugs #10997 and #11030.
6408
6409         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6410         reference to relevant automake bug numbers.
6411         (func_emit_tests_Makefile_am): Likewise.
6412
6413 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6414
6415         announce-gen: use Digest::SHA when possible
6416         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6417         back to Digest::SHA1 if necessary.
6418
6419 2012-03-20  Jim Meyering  <meyering@redhat.com>
6420
6421         tests: avoid gcc warnings about argv vs. const initializers
6422         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6423         warnings about discarding 'const' qualifier from pointer target type.
6424         * tests/test-posix_spawn2.c (main): Likewise.
6425
6426 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6427
6428         README-release: simplify slightly
6429         * top/README-release: Run "git checkout master" only once.
6430
6431 2012-03-15  Mark Wielaard  <mark@klomp.org>
6432
6433         git-merge-changelog: add specific example on how to use with hg.
6434         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6435
6436 2012-03-18  Mark Wielaard  <mark@klomp.org>
6437
6438         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6439
6440 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6441
6442         git-version-gen: don't let "prefix" envvar cause trouble
6443         * build-aux/git-version-gen (prefix): Initialize properly,
6444         so as not to use a value specified via the environment.
6445         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6446
6447 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6448
6449         regex: diagnose too-large repeat counts in EREs
6450         Previously, the code did not diagnose the too-large repeat count
6451         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6452         as if it were 'b\{1000000000}', which is unexpected.
6453         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6454         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6455         is a reasonable one for this problem.  Another option would be to
6456         create a new REG_OVERFLOW error for repeat counts that are too large.
6457         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6458         count is too large, so that the caller can distinguish the two cases.
6459         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6460         "Too large" return code, and that repeat counts are one example of this.
6461
6462 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6463
6464         doc: some glibc x32 integer width issues
6465         * doc/posix-headers/sys_types.texi (sys/types.h):
6466         * doc/posix-headers/time.texi (time.h):
6467         Mention that glibc x32 does not conform to POSIX in a couple of
6468         areas related to integer widths.
6469
6470 2012-03-15  Bruno Haible  <bruno@clisp.org>
6471
6472         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6473         * lib/fma.c (VOLATILE): New macro.
6474         (FUNC): Use it to work around a GCC compiler bug.
6475
6476 2012-03-13  Bruno Haible  <bruno@clisp.org>
6477
6478         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6479         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6480         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6481         REPLACE_HYPOTL to 1.
6482         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6483
6484 2012-03-13  Bruno Haible  <bruno@clisp.org>
6485
6486         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6487         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6488         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6489         REPLACE_REMAINDERL to 1.
6490         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6491         bug.
6492
6493 2012-03-13  Bruno Haible  <bruno@clisp.org>
6494
6495         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6496         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6497         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6498         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6499         too big rounding errors.
6500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6501         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6502         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6503         (Depends-on): Update conditions.
6504         * tests/test-sqrtl.c (my_ldexpl): New function.
6505         (main): Add test of a particular value.
6506         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6507
6508 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6509
6510         doc: Update timer_* platform portability notes.
6511         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6512         that always return ENOSYS.
6513         * doc/posix-functions/timer_delete.texi: Likewise.
6514         * doc/posix-functions/timer_gettime.texi: Likewise.
6515         * doc/posix-functions/timer_settime.texi: Likewise.
6516
6517 2012-03-13  Bruno Haible  <bruno@clisp.org>
6518
6519         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6520         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6521         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6522         REPLACE_CBRTL to 1.
6523         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6524
6525 2012-03-13  Bruno Haible  <bruno@clisp.org>
6526
6527         remainderl: Avoid compilation error on AIX >= 5.2.
6528         * lib/math.in.h (remainderl): Undefine macro from the system header.
6529
6530 2012-03-13  Bruno Haible  <bruno@clisp.org>
6531
6532         Avoid compilation errors with MSVC option -fp:strict.
6533         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6534         * lib/cbrtf.c: Likewise.
6535         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6536
6537 2012-03-12  Bruno Haible  <bruno@clisp.org>
6538
6539         uninorm: Don't crash in out-of-memory conditions.
6540         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6541         gracefully.
6542         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6543         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6544
6545 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6546
6547         quote: fix syntax-check
6548         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6549         also exports quote_quoting_options.
6550
6551 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6552
6553         Collapse list of copyright years to ranges.  See
6554         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6555         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6556         build-aux/csharpexec.sh.in, build-aux/gnupload,
6557         build-aux/install-reloc, build-aux/javacomp.sh.in,
6558         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6559         build-aux/move-if-change, build-aux/reloc-ldflags,
6560         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6561
6562 2012-03-11  Bruno Haible  <bruno@clisp.org>
6563
6564         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6565         * m4/log2f-ieee.m4: New file.
6566         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6567         whether log2f works with a minus zero argument. Replace it if not.
6568         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6569         (Depends-on): Add log2-ieee.
6570         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6571         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6572
6573         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6574         * m4/log2-ieee.m4: New file.
6575         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6576         whether log2 works with a minus zero argument. Replace it if not.
6577         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6578         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6579         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6580
6581         Tests for module 'log2l-ieee'.
6582         * modules/log2l-ieee-tests: New file.
6583         * tests/test-log2l-ieee.c: New file.
6584
6585         New module 'log2l-ieee'.
6586         * modules/log2l-ieee: New file.
6587
6588         Tests for module 'log2-ieee'.
6589         * modules/log2-ieee-tests: New file.
6590         * tests/test-log2-ieee.c: New file.
6591
6592         New module 'log2-ieee'.
6593         * modules/log2-ieee: New file.
6594
6595         Tests for module 'log2f-ieee'.
6596         * modules/log2f-ieee-tests: New file.
6597         * tests/test-log2f-ieee.c: New file.
6598         * tests/test-log2-ieee.h: New file.
6599
6600         New module 'log2f-ieee'.
6601         * modules/log2f-ieee: New file.
6602
6603 2012-03-11  Bruno Haible  <bruno@clisp.org>
6604
6605         Tests for module 'log2l'.
6606         * modules/log2l-tests: New file.
6607         * tests/test-log2l.c: New file.
6608
6609         New module 'log2l'.
6610         * lib/math.in.h (log2l): New declaration.
6611         * lib/log2l.c: New file.
6612         * m4/log2l.m4: New file.
6613         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6615         REPLACE_LOG2L.
6616         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6617         REPLACE_LOG2L.
6618         * modules/log2l: New file.
6619         * tests/test-math-c++.cc: Check the declaration of log2l.
6620         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6621         and OSF/1 problems.
6622
6623 2012-03-11  Bruno Haible  <bruno@clisp.org>
6624
6625         Tests for module 'log2f'.
6626         * modules/log2f-tests: New file.
6627         * tests/test-log2f.c: New file.
6628
6629         New module 'log2f'.
6630         * lib/math.in.h (log2f): New declaration.
6631         * lib/log2f.c: New file.
6632         * m4/log2f.m4: New file.
6633         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6635         REPLACE_LOG2F.
6636         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6637         REPLACE_LOG2F.
6638         * modules/log2f: New file.
6639         * tests/test-math-c++.cc: Check the declaration of log2f.
6640         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6641         and OSF/1 and Cygwin problems.
6642
6643 2012-03-11  Bruno Haible  <bruno@clisp.org>
6644
6645         Tests for module 'log2'.
6646         * modules/log2-tests: New file.
6647         * tests/test-log2.c: New file.
6648         * tests/test-log2.h: New file.
6649
6650         New module 'log2'.
6651         * lib/math.in.h (log2): New declaration.
6652         * lib/log2.c: New file.
6653         * m4/log2.m4: New file.
6654         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6656         REPLACE_LOG2.
6657         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6658         REPLACE_LOG2.
6659         * modules/log2: New file.
6660         * tests/test-math-c++.cc: Check the declaration of log2.
6661         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6662         and OSF/1 and Cygwin problems.
6663
6664 2012-03-11  Bruno Haible  <bruno@clisp.org>
6665
6666         exp2* tests: More tests.
6667         * tests/test-exp2.h (test_function): Test all integral arguments that
6668         don't need to overflow or denormalized numbers.
6669         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6670         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6671         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6672
6673 2012-03-10  Bruno Haible  <bruno@clisp.org>
6674
6675         log1pl-ieee: Work around test failure on AIX 7.1.
6676         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6677
6678         log1pl-ieee: Work around test failure on IRIX 6.5.
6679         * m4/log1pl-ieee.m4: New file.
6680         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6681         test whether log1pl works with a minus zero argument. Replace it if
6682         not.
6683         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6685         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6686         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6687         (Depends-on): Update conditions.
6688         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6689         m4/signbit.m4.
6690         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6691         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6692
6693         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6694         * m4/log1pf-ieee.m4: New file.
6695         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6696         test whether log1pf works with a minus zero argument. Replace it if
6697         not.
6698         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6699         m4/signbit.m4.
6700         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6701         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6702
6703         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6704         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6705         (configure.ac): Require gl_FUNC_LOG1PF.
6706
6707         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6708         * m4/log1p-ieee.m4: New file.
6709         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6710         whether log1p works with a minus zero argument. Replace it if not.
6711         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6713         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6714         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6715         (Depends-on): Update conditions.
6716         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6717         m4/signbit.m4.
6718         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6719         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6720
6721         Tests for module 'log1pl-ieee'.
6722         * modules/log1pl-ieee-tests: New file.
6723         * tests/test-log1pl-ieee.c: New file.
6724
6725         New module 'log1pl-ieee'.
6726         * modules/log1pl-ieee: New file.
6727
6728         Tests for module 'log1p-ieee'.
6729         * modules/log1p-ieee-tests: New file.
6730         * tests/test-log1p-ieee.c: New file.
6731
6732         New module 'log1p-ieee'.
6733         * modules/log1p-ieee: New file.
6734
6735         Tests for module 'log1pf-ieee'.
6736         * modules/log1pf-ieee-tests: New file.
6737         * tests/test-log1pf-ieee.c: New file.
6738         * tests/test-log1p-ieee.h: New file.
6739
6740         New module 'log1pf-ieee'.
6741         * modules/log1pf-ieee: New file.
6742
6743 2012-03-10  Bruno Haible  <bruno@clisp.org>
6744
6745         Tests for module 'log1pl'.
6746         * modules/log1pl-tests: New file.
6747         * tests/test-log1pl.c: New file.
6748
6749         New module 'log1pl'.
6750         * lib/math.in.h (log1pl): New declaration.
6751         * lib/log1pl.c: New file.
6752         * m4/log1pl.m4: New file.
6753         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6755         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6756         * modules/log1pl: New file.
6757         * tests/test-math-c++.cc: Check the declaration of log1pl.
6758         * doc/posix-functions/log1pl.texi: Mention the new module.
6759
6760 2012-03-10  Bruno Haible  <bruno@clisp.org>
6761
6762         Tests for module 'log1pf'.
6763         * modules/log1pf-tests: New file.
6764         * tests/test-log1pf.c: New file.
6765
6766         New module 'log1pf'.
6767         * lib/math.in.h (log1pf): New declaration.
6768         * lib/log1pf.c: New file.
6769         * m4/log1pf.m4: New file.
6770         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6772         REPLACE_LOG1PF.
6773         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6774         REPLACE_LOG1PF.
6775         * modules/log1pf: New file.
6776         * tests/test-math-c++.cc: Check the declaration of log1pf.
6777         * doc/posix-functions/log1pf.texi: Mention the new module.
6778
6779 2012-03-10  Bruno Haible  <bruno@clisp.org>
6780
6781         log1p tests: More tests.
6782         * tests/test-log1p.h: New file.
6783         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6784         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6785         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6786         (main): Invoke test_function.
6787
6788         log1p: Provide replacement for Minix and MSVC.
6789         * lib/math.in.h (log1p): New declaration.
6790         * lib/log1p.c: New file.
6791         * m4/log1p.m4: New file.
6792         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6794         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6795         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6796         (Depends-on): Add math, isnand, log, round.
6797         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6798         HAVE_LOG1P is 0.
6799         * tests/test-math-c++.cc: Check the declaration of log1p.
6800         * doc/posix-functions/log1p.texi: Mention the replacement.
6801
6802 2012-03-10  Bruno Haible  <bruno@clisp.org>
6803
6804         math tests: Small simplification.
6805         * tests/test-exp.h (test_function): Use the same err_bound for
6806         'double' on platforms with sizeof (long double) == sizeof (double)
6807         than on platforms with sizeof (long double) > sizeof (double).
6808         * tests/test-exp2.h (test_function): Likewise.
6809         * tests/test-expm1.h (test_function): Likewise.
6810         * tests/test-log.h (test_function): Likewise.
6811
6812 2012-03-10  Bruno Haible  <bruno@clisp.org>
6813
6814         Fix some comments.
6815         * lib/expl.c: Fix an ambiguous comment.
6816         * lib/expm1.c: Likewise.
6817         * lib/expm1l.c: Likewise.
6818         * lib/exp2.c: Likewise.
6819         * lib/exp2l.c: Likewise.
6820
6821 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6822
6823         regex: allow inclusion of <regex.h> before <limits.h>
6824         Without this patch, portable programs had to include <limits.h> before
6825         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6826         I ran into this problem with a test version of GNU grep on Solaris 8.
6827         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6828         This is done conditionally so that this change can be merged
6829         back to glibc.
6830         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6831         using the included regex.
6832
6833         fts: depend on fdopendir
6834         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6835         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6836         problem was introduced when fdopendir was split out.
6837
6838 2012-03-10  Bruno Haible  <bruno@clisp.org>
6839
6840         Remove unused variables.
6841         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6842         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6843
6844 2012-03-10  Bruno Haible  <bruno@clisp.org>
6845
6846         isnanf-nolibm: Fix last commit.
6847         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6848
6849         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6850         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6851
6852 2012-03-10  Bruno Haible  <bruno@clisp.org>
6853
6854         logf-ieee: Work around test failure on NetBSD 5.1.
6855         * m4/logf-ieee.m4: New file.
6856         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6857         whether logf works with a negative argument. Replace it if not.
6858         * lib/logf.c (logf): For negative arguments, return NaN.
6859         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6860         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6861         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6862
6863         logf-ieee: Work around test failure on Solaris 9.
6864         * modules/logf-ieee (Depends-on): Add log-ieee.
6865         (configure.ac): Require gl_FUNC_LOGF.
6866
6867         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6868         * m4/log-ieee.m4: New file.
6869         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6870         log works with a negative argument. Replace it if not.
6871         * lib/log.c (log): For negative arguments, return NaN.
6872         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6873         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6874         * doc/posix-functions/log.texi: Mention the log-ieee module.
6875
6876         Tests for module 'logl-ieee'.
6877         * modules/logl-ieee-tests: New file.
6878         * tests/test-logl-ieee.c: New file.
6879
6880         New module 'logl-ieee'.
6881         * modules/logl-ieee: New file.
6882
6883         Tests for module 'log-ieee'.
6884         * modules/log-ieee-tests: New file.
6885         * tests/test-log-ieee.c: New file.
6886
6887         New module 'log-ieee'.
6888         * modules/log-ieee: New file.
6889
6890         Tests for module 'logf-ieee'.
6891         * modules/logf-ieee-tests: New file.
6892         * tests/test-logf-ieee.c: New file.
6893         * tests/test-log-ieee.h: New file.
6894
6895         New module 'logf-ieee'.
6896         * modules/logf-ieee: New file.
6897
6898 2012-03-10  Bruno Haible  <bruno@clisp.org>
6899
6900         log: Fix bug introduced on 2012-03-09.
6901         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6902
6903 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6904
6905         timer-time: link explicitly with pthreads on glibc
6906         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6907         to support static linking, when newer glibc is
6908         detected, as that contains pthread emulation of
6909         POSIX timer functions where required.
6910         * modules/timer-time: Depend on threadlib to
6911         pull in the appropriate library to link.
6912
6913 2012-03-10  Bruno Haible  <bruno@clisp.org>
6914
6915         log* tests: More tests.
6916         * tests/test-log.h: New file.
6917         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6918         (main): Invoke test_function.
6919         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6920         (main): Invoke test_function.
6921         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6922         (main): Invoke test_function.
6923         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6924         tests/randomd.c.
6925         (Makefile.am): Add randomd.c to test_log_SOURCES.
6926         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6927         tests/randomf.c.
6928         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6929         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6930         tests/randoml.c.
6931         (Depends-on): Add 'float'.
6932         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6933
6934 2012-03-09  Bruno Haible  <bruno@clisp.org>
6935
6936         logl: Work around OSF/1 5.1 bug.
6937         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6938         * lib/logl.c (logl): If logl exists, use it and provide just the
6939         workaround.
6940         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6941         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6943         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6944         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6945         (Depends-on): Update conditions.
6946         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6947
6948 2012-03-09  Bruno Haible  <bruno@clisp.org>
6949
6950         logf: Work around OSF/1 5.1 bug.
6951         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6952         * lib/logf.c (logf): If logf exists, use it and provide just the
6953         workaround.
6954         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6955         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6957         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6958         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6959         (Depends-on): Update conditions.
6960         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6961
6962 2012-03-09  Bruno Haible  <bruno@clisp.org>
6963
6964         log: Work around OSF/1 5.1 bug.
6965         * lib/math.in.h (log): New declaration.
6966         * lib/log.c: New file.
6967         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6968         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6969         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6971         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6972         * modules/log (Files): Add lib/log.c.
6973         (Depends-on): Add math.
6974         (configure.ac): If REPLACE_LOG is 1, compile an override.
6975         * tests/test-math-c++.cc: Check the declaration of log.
6976         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6977
6978 2012-03-09  Jim Meyering  <meyering@redhat.com>
6979
6980         readtokens.c: adjust wording in a comment
6981         * lib/readtokens.c: Insert omitted "that" in a comment.
6982
6983 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6984
6985         modechange: add notations +40, 00440, etc.
6986         * lib/modechange.c (mode_compile): Support new notations
6987         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6988
6989 2012-03-08  Bruno Haible  <bruno@clisp.org>
6990
6991         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6992         * m4/exp2l-ieee.m4: New file.
6993         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6994         test whether exp2l works with a NaN argument and with a negative
6995         infinity argument. Replace it if not.
6996         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6998         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6999         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
7000         (Depends-on): Update conditions.
7001         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
7002         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
7003         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
7004
7005         Tests for module 'exp2l-ieee'.
7006         * modules/exp2l-ieee-tests: New file.
7007         * tests/test-exp2l-ieee.c: New file.
7008
7009         New module 'exp2l-ieee'.
7010         * modules/exp2l-ieee: New file.
7011
7012         Tests for module 'exp2-ieee'.
7013         * modules/exp2-ieee-tests: New file.
7014         * tests/test-exp2-ieee.c: New file.
7015
7016         New module 'exp2-ieee'.
7017         * modules/exp2-ieee: New file.
7018
7019         Tests for module 'exp2f-ieee'.
7020         * modules/exp2f-ieee-tests: New file.
7021         * tests/test-exp2f-ieee.c: New file.
7022         * tests/test-exp2-ieee.h: New file.
7023
7024         New module 'exp2f-ieee'.
7025         * modules/exp2f-ieee: New file.
7026
7027 2012-03-08  Bruno Haible  <bruno@clisp.org>
7028
7029         Tests for module 'exp2l'.
7030         * modules/exp2l-tests: New file.
7031         * tests/test-exp2l.c: New file.
7032
7033         New module 'exp2l'.
7034         * lib/math.in.h (exp2l): New declaration.
7035         * lib/exp2l.c: New file.
7036         * lib/expl-table.c: New file, extracted from lib/expl.c.
7037         * lib/expl.c (gl_expl_table): New declaration.
7038         (expl): Remove expl_table. Update reference.
7039         * m4/exp2l.m4: New file.
7040         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
7041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
7042         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
7043         * modules/exp2l: New file.
7044         * modules/expl (Files): Add lib/expl-table.c.
7045         (configure.ac): Compile also expl-table.c.
7046         * tests/test-math-c++.cc: Check the declaration of exp2l.
7047         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
7048         problem.
7049
7050 2012-03-08  Bruno Haible  <bruno@clisp.org>
7051
7052         Tests for module 'exp2f'.
7053         * modules/exp2f-tests: New file.
7054         * tests/test-exp2f.c: New file.
7055
7056         New module 'exp2f'.
7057         * lib/math.in.h (exp2f): New declaration.
7058         * lib/exp2f.c: New file.
7059         * m4/exp2f.m4: New file.
7060         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
7061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
7062         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
7063         * modules/exp2f: New file.
7064         * tests/test-math-c++.cc: Check the declaration of exp2f.
7065         * doc/posix-functions/exp2f.texi: Mention the new module and the
7066         IRIX problem.
7067
7068 2012-03-08  Bruno Haible  <bruno@clisp.org>
7069
7070         Tests for module 'exp2'.
7071         * modules/exp2-tests: New file.
7072         * tests/test-exp2.c: New file.
7073         * tests/test-exp2.h: New file.
7074
7075         New module 'exp2'.
7076         * lib/math.in.h (exp2): New declaration.
7077         * lib/exp2.c: New file.
7078         * m4/exp2.m4: New file.
7079         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7081         REPLACE_EXP2.
7082         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7083         REPLACE_EXP2.
7084         * modules/exp2: New file.
7085         * tests/test-math-c++.cc: Check the declaration of exp2.
7086         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7087         and OpenBSD problems.
7088
7089 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7090
7091         savedir: fix comment typo
7092         * lib/savedir.c (savedirstream): Fix typo in comment.
7093
7094 2012-03-08  Bruno Haible  <bruno@clisp.org>
7095
7096         test-readtokens.c: use const; remove unwarranted cast
7097         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7098
7099 2012-03-08  Bruno Haible  <bruno@clisp.org>
7100
7101         fmal: Avoid compilation error on AIX.
7102         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7103         AIX 5.2..7.1.
7104
7105 2012-03-08  Bruno Haible  <bruno@clisp.org>
7106
7107         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7108         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7109         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7110         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7111         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7112         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7113         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7114
7115 2012-03-08  Bruno Haible  <bruno@clisp.org>
7116
7117         remainderf: Override buggy system function on IRIX 6.5.
7118         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7119         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7120         when it exists.
7121         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7122
7123 2012-03-08  Jim Meyering  <meyering@redhat.com>
7124
7125         test-readtokens.c: avoid const-related compilation warnings
7126         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7127
7128 2012-03-07  Jim Meyering  <meyering@redhat.com>
7129             Bruno Haible  <bruno@clisp.org>
7130
7131         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7132         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7133         tests/randomd.c.
7134         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7135         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7136         tests/randoml.c.
7137         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7138
7139 2012-03-07  Bruno Haible  <bruno@clisp.org>
7140
7141         expm1l: Avoid compilation error on AIX.
7142         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7143         AIX 5.2..7.1.
7144
7145 2012-03-07  Bruno Haible  <bruno@clisp.org>
7146
7147         expm1l: Don't override undeclared system function on IRIX 6.5.
7148         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7149         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7150         it exists. Set HAVE_DECL_EXPM1L.
7151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7152         HAVE_EXPM1L.
7153         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7154         HAVE_EXPM1L.
7155         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7156
7157 2012-03-07  Bruno Haible  <bruno@clisp.org>
7158
7159         remainderl: Don't override undeclared system function on IRIX 6.5.
7160         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7161         HAVE_REMAINDERL.
7162         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7163         declared when it exists. Set HAVE_DECL_REMAINDERL.
7164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7165         not HAVE_REMAINDERL.
7166         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7167         HAVE_REMAINDERL.
7168         * doc/posix-functions/remainderl.texi: Mention missing declaration
7169         problem.
7170
7171 2012-03-07  Bruno Haible  <bruno@clisp.org>
7172
7173         rintf: Don't override undeclared system function on IRIX 6.5.
7174         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7175         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7176         exists. Set HAVE_DECL_RINTF.
7177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7178         HAVE_RINTF.
7179         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7180         HAVE_RINTF.
7181         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7182
7183 2012-03-07  Bruno Haible  <bruno@clisp.org>
7184
7185         roundl: Avoid compilation error on AIX.
7186         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7187         AIX 5.2..7.1.
7188
7189 2012-03-07  Bruno Haible  <bruno@clisp.org>
7190
7191         roundl: Don't override undeclared system function on IRIX 6.5.
7192         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7193         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7194         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7195         * modules/roundl (configure.ac): For replacement code, test
7196         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7197         (Depends-on): Update conditions.
7198         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7199
7200 2012-03-07  Bruno Haible  <bruno@clisp.org>
7201
7202         roundf: Don't override undeclared system function on IRIX 6.5.
7203         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7204         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7205         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7206         * modules/roundf (configure.ac): For replacement code, test
7207         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7208         (Depends-on): Update conditions.
7209         * modules/roundf-ieee (Depends-on): Update conditions.
7210         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7211
7212 2012-03-07  Bruno Haible  <bruno@clisp.org>
7213
7214         round: Don't override undeclared system function on IRIX 6.5.
7215         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7216         argument.
7217         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7218         also when it is not declared. Set HAVE_ROUND. For replacement code,
7219         test HAVE_ROUND, not HAVE_DECL_ROUND.
7220         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7221         not HAVE_DECL_ROUND.
7222         (Depends-on): Update conditions.
7223         * modules/round-ieee (Depends-on): Update conditions.
7224         * doc/posix-functions/round.texi: Mention the IRIX problem.
7225
7226 2012-03-07  Bruno Haible  <bruno@clisp.org>
7227
7228         copysignf: Don't override undeclared system function on IRIX 6.5.
7229         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7230         HAVE_COPYSIGNF.
7231         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7232         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7234         not HAVE_COPYSIGNF.
7235         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7236         HAVE_COPYSIGNF.
7237         * doc/posix-functions/copysignf.texi: Mention missing declaration
7238         problem.
7239
7240 2012-03-07  Jim Meyering  <meyering@redhat.com>
7241
7242         readtokens: add tests
7243         * modules/readtokens-tests: New file.
7244         * tests/test-readtokens.c: New file.
7245
7246 2012-03-07  Jim Meyering  <meyering@redhat.com>
7247
7248         quotearg: the module must now include quote.h
7249         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7250         So must the module.
7251         * modules/quotearg (Files): Add quote.h.
7252
7253 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7254
7255         readtokens: avoid core dumps with unusual calling patterns
7256         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7257         * lib/readtokens.c: Include limits.h.
7258         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7259         (readtoken): Don't cache the delimiters; the cache code was buggy
7260         if !delim && saved_delim, or if the new n_delim differs from the old.
7261         Also, it wasn't thread-safe.
7262
7263 2012-03-07  Bruno Haible  <bruno@clisp.org>
7264
7265         quote: Adhere to common module description layout.
7266         * modules/quote (Makefile.am): Add back empty section.
7267
7268 2012-03-06  Akim Demaille  <demaille@gostai.com>
7269
7270         quote: fuse into quotearg
7271         This patch is made for the benefit of Bison.
7272         quote does not leave the choice of the quoting style to the user.
7273         quoting_style provides poor customizability, yet quoting_options,
7274         which is very rich, is hidden inside quotearg.c.  So in order to
7275         allow quote customization, move its implementation to quotearg.c.
7276         * lib/quote.c: Remove.
7277         * modules/quote: Adjust.
7278         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7279         warning: provide all the members of literal structs.
7280         (quote_quoting_options): New.
7281         (quote, quote_n): Import implementation from quote.c.
7282         * lib/quote.h: Import the comments from quote.c.
7283         (quote_quoting_options): New.
7284
7285 2012-03-06  Bruno Haible  <bruno@clisp.org>
7286
7287         Tests for module 'expm1l-ieee'.
7288         * modules/expm1l-ieee-tests: New file.
7289         * tests/test-expm1l-ieee.c: New file.
7290
7291         New module 'expm1l-ieee'.
7292         * modules/expm1l-ieee: New file.
7293
7294         Tests for module 'expm1f-ieee'.
7295         * modules/expm1f-ieee-tests: New file.
7296         * tests/test-expm1f-ieee.c: New file.
7297
7298         New module 'expm1f-ieee'.
7299         * modules/expm1f-ieee: New file.
7300
7301         Tests for module 'expm1-ieee'.
7302         * modules/expm1-ieee-tests: New file.
7303         * tests/test-expm1-ieee.c: New file.
7304         * tests/test-expm1-ieee.h: New file.
7305
7306         New module 'expm1-ieee'.
7307         * modules/expm1-ieee: New file.
7308         * m4/expm1-ieee.m4: New file.
7309         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7310         whether expm1 works with a minus zero argument. Replace it if not.
7311         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7313         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7314         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7315         (Depends-on): Update conditions.
7316         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7317         AIX problem.
7318
7319 2012-03-06  Bruno Haible  <bruno@clisp.org>
7320
7321         Work around expm1f bug on IRIX 6.5.
7322         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7323         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7324         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7325         not work.
7326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7327         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7328         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7329         (Depends-on): Update conditions.
7330         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7331
7332 2012-03-06  Bruno Haible  <bruno@clisp.org>
7333
7334         Tests for module 'expm1l'.
7335         * modules/expm1l-tests: New file.
7336         * tests/test-expm1l.c: New file.
7337
7338         New module 'expm1l'.
7339         * lib/math.in.h (expm1l): New declaration.
7340         * lib/expm1l.c: New file.
7341         * m4/expm1l.m4: New file.
7342         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7344         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7345         * modules/expm1l: New file.
7346         * tests/test-math-c++.cc: Check the declaration of expm1l.
7347         * doc/posix-functions/expm1l.texi: Mention the new module.
7348
7349 2012-03-06  Bruno Haible  <bruno@clisp.org>
7350
7351         Tests for module 'expm1f'.
7352         * modules/expm1f-tests: New file.
7353         * tests/test-expm1f.c: New file.
7354
7355         New module 'expm1f'.
7356         * lib/math.in.h (expm1f): New declaration.
7357         * lib/expm1f.c: New file.
7358         * m4/expm1f.m4: New file.
7359         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7360         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7361         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7362         * modules/expm1f: New file.
7363         * tests/test-math-c++.cc: Check the declaration of expm1f.
7364         * doc/posix-functions/expm1f.texi: Mention the new module.
7365
7366 2012-03-06  Bruno Haible  <bruno@clisp.org>
7367
7368         Tests for module 'expm1'.
7369         * modules/expm1-tests: New file.
7370         * tests/test-expm1.c: New file.
7371         * tests/test-expm1.h: New file.
7372
7373         New module 'expm1'.
7374         * lib/math.in.h (expm1): New declaration.
7375         * lib/expm1.c: New file.
7376         * m4/expm1.m4: New file.
7377         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7379         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7380         * modules/expm1: New file.
7381         * tests/test-math-c++.cc: Check the declaration of expm1.
7382         * doc/posix-functions/expm1.texi: Mention the new module.
7383
7384 2012-03-06  Bruno Haible  <bruno@clisp.org>
7385
7386         math: Ensure declarations of math functions.
7387         * modules/acosf (Depends-on): Add 'extensions'.
7388         * modules/asinf (Depends-on): Likewise.
7389         * modules/atan2f (Depends-on): Likewise.
7390         * modules/atanf (Depends-on): Likewise.
7391         * modules/cbrt (Depends-on): Likewise.
7392         * modules/cbrtf (Depends-on): Likewise.
7393         * modules/cbrtl (Depends-on): Likewise.
7394         * modules/copysignf (Depends-on): Likewise.
7395         * modules/copysignl (Depends-on): Likewise.
7396         * modules/cosf (Depends-on): Likewise.
7397         * modules/coshf (Depends-on): Likewise.
7398         * modules/expf (Depends-on): Likewise.
7399         * modules/fabsf (Depends-on): Likewise.
7400         * modules/fabsl (Depends-on): Likewise.
7401         * modules/fmaf (Depends-on): Likewise.
7402         * modules/fmal (Depends-on): Likewise.
7403         * modules/fmodf (Depends-on): Likewise.
7404         * modules/fmodl (Depends-on): Likewise.
7405         * modules/frexpf (Depends-on): Likewise.
7406         * modules/frexpl (Depends-on): Likewise.
7407         * modules/hypot (Depends-on): Likewise.
7408         * modules/hypotf (Depends-on): Likewise.
7409         * modules/hypotl (Depends-on): Likewise.
7410         * modules/ldexpf (Depends-on): Likewise.
7411         * modules/ldexpl (Depends-on): Likewise.
7412         * modules/log10f (Depends-on): Likewise.
7413         * modules/log10l (Depends-on): Likewise.
7414         * modules/log1p (Depends-on): Likewise.
7415         * modules/logb (Depends-on): Likewise.
7416         * modules/logf (Depends-on): Likewise.
7417         * modules/modff (Depends-on): Likewise.
7418         * modules/modfl (Depends-on): Likewise.
7419         * modules/powf (Depends-on): Likewise.
7420         * modules/remainderf (Depends-on): Likewise.
7421         * modules/remainderl (Depends-on): Likewise.
7422         * modules/rintf (Depends-on): Likewise.
7423         * modules/rintl (Depends-on): Likewise.
7424         * modules/sinf (Depends-on): Likewise.
7425         * modules/sinhf (Depends-on): Likewise.
7426         * modules/sqrtf (Depends-on): Likewise.
7427         * modules/tanf (Depends-on): Likewise.
7428         * modules/tanhf (Depends-on): Likewise.
7429         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7430         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7431         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7432         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7433         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7434         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7435         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7436         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7437         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7438         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7439         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7440         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7441         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7442         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7443         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7444         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7445         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7446         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7447         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7448         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7449         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7450         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7451         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7452         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7453         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7454         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7455         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7456         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7457         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7458         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7459         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7460         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7461         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7462         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7463         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7464         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7465         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7466         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7467         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7468         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7469         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7470
7471 2012-03-06  Bruno Haible  <bruno@clisp.org>
7472
7473         math: Update module names in warnings.
7474         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7475         tanl): Use specific module name in warn-on-use warning.
7476
7477 2012-03-06  Bruno Haible  <bruno@clisp.org>
7478
7479         expl: Simplify computation.
7480         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7481
7482 2012-03-05  Bruno Haible  <bruno@clisp.org>
7483
7484         exp* tests: More tests.
7485         * tests/test-exp.h: New file.
7486         * tests/test-exp.c: Include <float.h> and test-exp.h.
7487         (main): Invoke test_function.
7488         * tests/test-expf.c: Include <float.h> and test-exp.h.
7489         (main): Invoke test_function.
7490         * tests/test-expl.c: Include <float.h> and test-exp.h.
7491         (main): Invoke test_function.
7492         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7493         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7494         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7495         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7496         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7497         (Depends-on): Add 'float'.
7498         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7499
7500         expl: Fix precision of computed result.
7501         * lib/expl.c: Completely rewritten.
7502         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7503         (Maintainer): Add me.
7504         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7505
7506 2012-03-05  Bruno Haible  <bruno@clisp.org>
7507
7508         cbrt* tests: More tests.
7509         * tests/test-cbrt.h: New file.
7510         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7511         (main): Invoke test_function.
7512         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7513         (main): Invoke test_function.
7514         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7515         (main): Invoke test_function.
7516         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7517         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7518         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7519         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7520         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7521         (Depends-on): Add 'float'.
7522         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7523
7524 2012-03-05  Bruno Haible  <bruno@clisp.org>
7525
7526         hypot* tests: More tests.
7527         * tests/test-hypot.h: New file, partially extracted from
7528         tests/test-hypotl.c.
7529         * tests/test-hypot.c: Include test-hypot.h.
7530         (main): Invoke test_function.
7531         * tests/test-hypotf.c: Include test-hypot.h.
7532         (main): Invoke test_function.
7533         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7534         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7535         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7536         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7537         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7538         tests/randomf.c.
7539         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7540         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7541         tests/randoml.c.
7542         (Depends-on): Add 'fpucw', 'float'.
7543         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7544
7545 2012-03-05  Bruno Haible  <bruno@clisp.org>
7546
7547         fpucw: Doc about FreeBSD.
7548         * lib/fpucw.h: Mention FreeBSD in comments.
7549
7550 2012-03-04  Bruno Haible  <bruno@clisp.org>
7551
7552         sqrt* tests: More tests.
7553         * tests/test-sqrt.h: New file.
7554         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7555         (main): Invoke test_function.
7556         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7557         (main): Invoke test_function.
7558         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7559         (main): Invoke test_function.
7560         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7561         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7562         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7563         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7564         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7565         (Depends-on): Add 'float'.
7566         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7567
7568 2012-03-04  Bruno Haible  <bruno@clisp.org>
7569
7570         remainder* tests: More tests.
7571         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7572         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7573         (main): Invoke test_function.
7574         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7575         (main): Invoke test_function.
7576         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7577         (main): Invoke test_function.
7578         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7579         tests/randomd.c.
7580         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7581         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7582         tests/randomf.c.
7583         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7584         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7585         tests/randoml.c.
7586         (Depends-on): Add 'float'.
7587         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7588
7589 2012-03-04  Bruno Haible  <bruno@clisp.org>
7590
7591         remainder, remainderf, remainderl: Fix computation for large quotients.
7592         * lib/remainder.c: Completely rewritten.
7593         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7594         USE_FLOAT.
7595         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7596         USE_LONG_DOUBLE.
7597         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7598         isnand, isinf. Remove round, fma.
7599         * modules/remainderf (Files): Add lib/remainder.c.
7600         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7601         Remove roundf, fmaf.
7602         * modules/remainderl (Files): Add lib/remainder.c.
7603         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7604         isinf. Remove roundl, fmal.
7605         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7606         REMAINDER_LIBM.
7607         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7608         REMAINDERF_LIBM.
7609         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7610         REMAINDERL_LIBM.
7611
7612 2012-03-04  Bruno Haible  <bruno@clisp.org>
7613
7614         fmod* tests: More tests.
7615         * tests/test-fmod.h (my_ldexp): New function.
7616         (test_function): Reduce amount of random numbers to test. Add tests
7617         of very large quotients x / y.
7618         * tests/test-fmod.c (MAX_EXP): New macro.
7619         * tests/test-fmodf.c (MAX_EXP): Likewise.
7620         * tests/test-fmodl.c (MAX_EXP): Likewise.
7621
7622 2012-03-04  Bruno Haible  <bruno@clisp.org>
7623
7624         fmod, fmodl: Fix computation for large quotients x / y.
7625         * lib/fmod.c: Completely rewritten.
7626         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7627         USE_LONG_DOUBLE.
7628         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7629         isnand. Remove fma.
7630         * modules/fmodl (Files): Add lib/fmod.c.
7631         (Depends-on): Add float, isfinite, signbit, fabsl,
7632         frexpl, ldexpl, isnanl. Remove fma.
7633         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7634         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7635
7636 2012-03-03  Bruno Haible  <bruno@clisp.org>
7637
7638         fmod* tests: More tests.
7639         * tests/test-fmod.h: New file.
7640         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7641         (main): Invoke test_function.
7642         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7643         (main): Invoke test_function.
7644         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7645         (main): Invoke test_function.
7646         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7647         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7648         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7649         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7650         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7651         (Depends-on): Add 'float'.
7652         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7653
7654 2012-03-03  Bruno Haible  <bruno@clisp.org>
7655
7656         rint* tests: More tests.
7657         * tests/test-rint.h: New file, partially extracted from
7658         tests/test-rintl.c.
7659         * tests/test-rint.c: Include test-rint.h.
7660         (main): Invoke test_function.
7661         * tests/test-rintf.c: Include test-rint.h.
7662         (main): Invoke test_function.
7663         * tests/test-rintl.c: Include test-rint.h.
7664         (main): Invoke test_function.
7665         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7666         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7667         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7668         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7669         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7670         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7671
7672 2012-03-03  Bruno Haible  <bruno@clisp.org>
7673
7674         modf* tests: More tests.
7675         * tests/test-modf.h: New file.
7676         * tests/test-modf.c: Include <float.h> and test-modf.h.
7677         (main): Invoke test_function.
7678         * tests/test-modff.c: Include <float.h> and test-modf.h.
7679         (main): Invoke test_function.
7680         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7681         (main): Invoke test_function.
7682         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7683         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7684         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7685         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7686         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7687         (Depends-on): Add 'float'.
7688         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7689
7690 2012-03-03  Bruno Haible  <bruno@clisp.org>
7691
7692         fabs* tests: More tests.
7693         * tests/test-fabs.h: New file, partially extracted from
7694         tests/test-fabsl.c.
7695         * tests/test-fabs.c (RANDOM): New macro.
7696         * tests/test-fabsf.c (RANDOM): New macro.
7697         * tests/test-fabsl.c (RANDOM): New macro.
7698         * modules/fabs-tests (Files): Add tests/randomd.c.
7699         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7700         * modules/fabsf-tests (Files): Add tests/randomf.c.
7701         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7702         * modules/fabsl-tests (Files): Add tests/randoml.c.
7703         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7704
7705 2012-03-03  Bruno Haible  <bruno@clisp.org>
7706
7707         ldexp* tests: More tests.
7708         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7709         * tests/test-ldexp.c (RANDOM): New macro.
7710         * tests/test-ldexpf.c (RANDOM): New macro.
7711         * tests/test-ldexpl.c (RANDOM): New macro.
7712         * modules/ldexp-tests (Files): Add tests/randomd.c.
7713         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7714         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7715         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7716         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7717         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7718
7719 2012-03-03  Bruno Haible  <bruno@clisp.org>
7720
7721         frexp* tests: More tests.
7722         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7723         * tests/test-frexp.c (RANDOM): New macro.
7724         * tests/test-frexpf.c (RANDOM): New macro.
7725         * tests/test-frexpl.c (RANDOM): New macro.
7726         * modules/frexp-tests (Files): Add tests/randomd.c.
7727         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7728         * modules/frexpf-tests (Files): Add tests/randomf.c.
7729         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7730         * modules/frexpl-tests (Files): Add tests/randoml.c.
7731         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7732
7733 2012-03-03  Bruno Haible  <bruno@clisp.org>
7734
7735         Support for pseudo-random numbers in tests.
7736         * tests/randomf.c: New file.
7737         * tests/randomd.c: New file.
7738         * tests/randoml.c: New file.
7739         * tests/macros.h (randomf, randomd, randoml): New declarations.
7740
7741 2012-03-03  Bruno Haible  <bruno@clisp.org>
7742
7743         frexp* tests: Refactor.
7744         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7745         * tests/test-frexp.c: Include and use it.
7746         * tests/test-frexpf.c: Likewise.
7747         * tests/test-frexpl.c: Likewise.
7748         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7749         * modules/frexpf-tests (Files): Likewise.
7750         * modules/frexpl-tests (Files): Likewise.
7751
7752 2012-03-02  Jim Meyering  <meyering@redhat.com>
7753
7754         maint: don't specify XZ_OPT=-9ev in dist-related rule
7755         Using xz's -9 option is warranted only if you have a very large
7756         tarball (see xz's documentation for the sizes vs. presets), and
7757         requires 64MiB of memory at decompression time.
7758         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7759         Automake's default of just "-e" is fine.  Override on a
7760         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7761
7762 2012-03-01  Eric Blake  <eblake@redhat.com>
7763
7764         maint.mk: allow announcement for non-gnulib project
7765         * maint.mk (announcement): Skip gnulib version if not used.
7766
7767 2012-03-01  Jim Meyering  <meyering@redhat.com>
7768
7769         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7770         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7771         envvar settings cannot interfere.  Otherwise, setting envvars like
7772         prohibit=foo require=bar, etc. would cause spurious test failures.
7773
7774 2012-03-01  Eric Blake  <eblake@redhat.com>
7775
7776         maint.mk: add per-line exclusions to prohibitions
7777         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7778         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7779         (sc_const_long_option): Use it.
7780
7781 2012-03-01  Bruno Haible  <bruno@clisp.org>
7782
7783         Tests for module 'expl-ieee'.
7784         * modules/expl-ieee-tests: New file.
7785         * tests/test-expl-ieee.c: New file.
7786
7787         New module 'expl-ieee'.
7788         * modules/expl-ieee: New file.
7789
7790         Tests for module 'exp-ieee'.
7791         * modules/exp-ieee-tests: New file.
7792         * tests/test-exp-ieee.c: New file.
7793
7794         New module 'exp-ieee'.
7795         * modules/exp-ieee: New file.
7796
7797         Tests for module 'expf-ieee'.
7798         * modules/expf-ieee-tests: New file.
7799         * tests/test-expf-ieee.c: New file.
7800         * tests/test-exp-ieee.h: New file.
7801
7802         New module 'expf-ieee'.
7803         * modules/expf-ieee: New file.
7804
7805 2012-02-29  Bruno Haible  <bruno@clisp.org>
7806
7807         cbrtl-ieee: Work around test failure on IRIX 6.5.
7808         * m4/cbrtl-ieee.m4: New file.
7809         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7810         test whether cbrtl works with a minus zero argument. Replace it if not.
7811         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7813         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7814         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7815         (Depends-on): Update conditions.
7816         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7817         m4/signbit.m4.
7818         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7819         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7820         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7821
7822         Tests for module 'cbrtl-ieee'.
7823         * modules/cbrtl-ieee-tests: New file.
7824         * tests/test-cbrtl-ieee.c: New file.
7825
7826         New module 'cbrtl-ieee'.
7827         * modules/cbrtl-ieee: New file.
7828
7829         Tests for module 'cbrt-ieee'.
7830         * modules/cbrt-ieee-tests: New file.
7831         * tests/test-cbrt-ieee.c: New file.
7832
7833         New module 'cbrt-ieee'.
7834         * modules/cbrt-ieee: New file.
7835
7836         Tests for module 'cbrtf-ieee'.
7837         * modules/cbrtf-ieee-tests: New file.
7838         * tests/test-cbrtf-ieee.c: New file.
7839         * tests/test-cbrt-ieee.h: New file.
7840
7841         New module 'cbrtf-ieee'.
7842         * modules/cbrtf-ieee: New file.
7843
7844 2012-02-29  Bruno Haible  <bruno@clisp.org>
7845
7846         cbrtf: Work around bug in IRIX 6.5 system function.
7847         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7848         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7849         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7850         work.
7851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7852         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7853         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7854         (Depends-on): Update conditions.
7855         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7856
7857 2012-02-29  Bruno Haible  <bruno@clisp.org>
7858
7859         Tests for module 'cbrtl'.
7860         * modules/cbrtl-tests: New file.
7861         * tests/test-cbrtl.c: New file.
7862
7863         New module 'cbrtl'.
7864         * lib/math.in.h (cbrtl): New declaration.
7865         * lib/cbrtl.c: New file.
7866         * m4/cbrtl.m4: New file.
7867         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7869         HAVE_DECL_CBRTL.
7870         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7871         HAVE_DECL_CBRTL.
7872         * modules/cbrtl: New file.
7873         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7874         * doc/posix-functions/cbrtl.texi: Mention the new module.
7875
7876 2012-02-29  Bruno Haible  <bruno@clisp.org>
7877
7878         Tests for module 'cbrtf'.
7879         * modules/cbrtf-tests: New file.
7880         * tests/test-cbrtf.c: New file.
7881
7882         New module 'cbrtf'.
7883         * lib/math.in.h (cbrtf): New declaration.
7884         * lib/cbrtf.c: New file.
7885         * m4/cbrtf.m4: New file.
7886         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7888         HAVE_DECL_CBRTF.
7889         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7890         HAVE_DECL_CBRTF.
7891         * modules/cbrtf: New file.
7892         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7893         * doc/posix-functions/cbrtf.texi: Mention the new module.
7894
7895 2012-02-29  Bruno Haible  <bruno@clisp.org>
7896
7897         cbrt: Provide replacement on MSVC and Minix.
7898         * lib/math.in.h (cbrt): New declaration.
7899         * lib/cbrt.c: New file.
7900         * m4/cbrt.m4: New file.
7901         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7903         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7904         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7905         (Depends-on): Add dependencies.
7906         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7907         * tests/test-math-c++.cc: Check the declaration of cbrt.
7908         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7909         replacement.
7910
7911 2012-02-29  Bruno Haible  <bruno@clisp.org>
7912
7913         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7914         * m4/hypotl-ieee.m4: New file.
7915         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7916         test whether hypotl works with mixed NaN and Infinity arguments.
7917         Replace it if not.
7918         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7920         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7921         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7922         (Depends-on): Update conditions.
7923         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7924         (Depends-on): Add hypot-ieee.
7925         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7926         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7927
7928         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7929         * m4/hypotf-ieee.m4: New file.
7930         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7931         test whether hypotf works with mixed NaN and Infinity arguments.
7932         Replace it if not.
7933         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7934         (Depends-on): Add hypot-ieee.
7935         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7936         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7937
7938         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7939         * lib/math.in.h (hypot): New declaration.
7940         * lib/hypot.c: New file.
7941         * m4/hypot-ieee.m4: New file.
7942         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7943         whether hypot works with mixed NaN and Infinity arguments. Replace it
7944         if not.
7945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7946         REPLACE_HYPOT.
7947         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7948         * modules/hypot (Files): Add lib/hypot.c.
7949         (Depends-on): Add dependencies.
7950         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7951         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7952         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7953         * tests/test-math-c++.cc: Check the declaration of hypot.
7954         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7955
7956         Tests for module 'hypotl-ieee'.
7957         * modules/hypotl-ieee-tests: New file.
7958         * tests/test-hypotl-ieee.c: New file.
7959
7960         New module 'hypotl-ieee'.
7961         * modules/hypotl-ieee: New file.
7962
7963         Tests for module 'hypot-ieee'.
7964         * modules/hypot-ieee-tests: New file.
7965         * tests/test-hypot-ieee.c: New file.
7966
7967         New module 'hypot-ieee'.
7968         * modules/hypot-ieee: New file.
7969
7970         Tests for module 'hypotf-ieee'.
7971         * modules/hypotf-ieee-tests: New file.
7972         * tests/test-hypotf-ieee.c: New file.
7973         * tests/test-hypot-ieee.h: New file.
7974
7975         New module 'hypotf-ieee'.
7976         * modules/hypotf-ieee: New file.
7977
7978 2012-02-29  Bruno Haible  <bruno@clisp.org>
7979
7980         Remove unused variables.
7981         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7982         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7983         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7984         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7985
7986 2012-02-29  Eric Blake  <eblake@redhat.com>
7987
7988         termios: fix pid_t always, not just for tcgetsid
7989         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7990         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7991         just when building tcgetsid.
7992
7993 2012-02-29  Bruno Haible  <bruno@clisp.org>
7994
7995         Tests for module 'hypotl'.
7996         * modules/hypotl-tests: New file.
7997         * tests/test-hypotl.c: New file.
7998
7999         New module 'hypotl'.
8000         * lib/math.in.h (hypotl): New declaration.
8001         * lib/hypotl.c: New file.
8002         * m4/hypotl.m4: New file.
8003         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
8005         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
8006         * modules/hypotl: New file.
8007         * tests/test-math-c++.cc: Check the hypotl declaration.
8008         * doc/posix-functions/hypotl.texi: Mention the new module.
8009
8010 2012-02-29  Eric Blake  <eblake@redhat.com>
8011
8012         tcgetsid: fix cygwin header bug
8013         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
8014
8015         docs: update cygwin progress
8016         * doc/posix-functions/llround.texi (llround): Added in cygwin
8017         1.7.8.
8018         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
8019         * doc/glibc-functions/program_invocation_name.texi
8020         (program_invocation_name): Likewise.
8021         * doc/glibc-functions/program_invocation_short_name.texi
8022         (program_invocation_short_name): Likewise.
8023         * doc/glibc-functions/madvise.texi (madvise): Likewise.
8024         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
8025         Likewise.
8026         * doc/posix-functions/pthread_spin_destroy.texi
8027         (pthread_spin_destroy): Added in cygwin 1.7.10.
8028         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
8029         Likewise.
8030         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
8031         Likewise.
8032         * doc/posix-functions/pthread_spin_trylock.texi
8033         (pthread_spin_trylock): Likewise.
8034         * doc/posix-functions/pthread_spin_unlock.texi
8035         (pthread_spin_unlock): Likewise.
8036         * doc/posix-functions/pthread_setschedprio.texi
8037         (pthread_setschedprio): Likewise.
8038         * doc/posix-functions/pthread_attr_getstack.texi
8039         (pthread_attr_getstack): Likewise.
8040         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
8041         (pthread_attr_getstackaddr): Likewise.
8042         * doc/glibc-functions/pthread_getattr_np.texi
8043         (pthread_getattr_np): Likewise.
8044         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
8045         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
8046         * doc/posix-functions/clock_settime.texi (clock_settime):
8047         Likewise.
8048         * doc/posix-functions/pthread_attr_getguardsize.texi
8049         (pthread_attr_getguardsize): Likewise.
8050         * doc/posix-functions/pthread_attr_setguardsize.texi
8051         (pthread_attr_setguardsize): Likewise.
8052         * doc/posix-functions/pthread_attr_setstack.texi
8053         (pthread_attr_setstack): Likewise.
8054         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
8055         (pthread_attr_setstackaddr): Likewise.
8056         * doc/posix-functions/clock_getcpuclockid.texi
8057         (clock_getcpuclockid): Likewise.
8058         * doc/posix-functions/pthread_getcpuclockid.texi
8059         (pthread_getcpuclockid): Likewise.
8060         * doc/glibc-functions/error.texi (error): Likewise.
8061         * doc/glibc-functions/error_at_line.texi (error_at_line):
8062         Likewise.
8063         * doc/glibc-functions/error_message_count.texi
8064         (error_message_count): Likewise.
8065         * doc/glibc-functions/error_one_per_line.texi
8066         (error_one_per_line): Likewise.
8067         * doc/glibc-functions/error_print_progname.texi
8068         (error_print_progname): Likewise.
8069         * doc/posix-functions/pthread_condattr_getclock.texi
8070         (pthread_condattr_getclock): Likewise.
8071         * doc/posix-functions/pthread_condattr_setclock.texi
8072         (pthread_condattr_setclock): Likewise.
8073         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
8074         Likewise.
8075         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8076         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8077         * doc/glibc-functions/get_current_dir_name.texi
8078         (get_current_dir_name): Likewise.
8079         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8080         Likewise.
8081         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8082         wrong return type.
8083         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8084         1.7.11.
8085
8086 2012-02-29  Bruno Haible  <bruno@clisp.org>
8087
8088         Tests for module 'hypotf'.
8089         * modules/hypotf-tests: New file.
8090         * tests/test-hypotf.c: New file.
8091
8092         New module 'hypotf'.
8093         * lib/math.in.h (hypotf): New declaration.
8094         * lib/hypotf.c: New file.
8095         * m4/hypotf.m4: New file.
8096         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8098         REPLACE_HYPOTF.
8099         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8100         REPLACE_HYPOTF.
8101         * modules/hypotf: New file.
8102         * tests/test-math-c++.cc: Check the hypotf declaration.
8103         * doc/posix-functions/hypotf.texi: Mention the new module.
8104
8105         hypot: Prepare for hypotf module.
8106         * m4/hypot.m4: New file.
8107         * modules/hypot (Files): Add m4/hypot.m4.
8108         (configure.ac): Invoke gl_FUNC_HYPOT.
8109
8110 2012-02-29  Bruno Haible  <bruno@clisp.org>
8111
8112         hypot tests: More tests.
8113         * tests/test-hypot.c: Include <float.h>.
8114         (main): Add tests about overflow and underflow.
8115
8116 2012-02-29  Bruno Haible  <bruno@clisp.org>
8117
8118         math code: Add comments.
8119         * lib/acosl.c: Add comment about related glibc source files.
8120         * lib/asinl.c: Likewise.
8121         * lib/atanl.c: Likewise.
8122         * lib/expl.c: Likewise.
8123         * lib/logl.c: Likewise.
8124         * lib/sincosl.c: Likewise.
8125         * lib/sinl.c: Likewise.
8126         * lib/tanl.c: Likewise.
8127         * lib/trigl.c: Likewise.
8128         * lib/cosl.c: Likewise. Fix comments.
8129
8130 2012-02-28  Bruno Haible  <bruno@clisp.org>
8131
8132         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8133         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8134         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8135         HUGE_VALL are defined.
8136         (numeric_equald): Renamed from numeric_equal.
8137         (numeric_equalf, numeric_equall): New functions.
8138         (main): Check also HUGE_VALF, HUGE_VALL.
8139         * modules/math-tests (Files): Add tests/macros.h.
8140         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8141         HUGE_VALL.
8142
8143 2012-02-28  Bruno Haible  <bruno@clisp.org>
8144
8145         doc: Move ISO C11 feature notes into POSIX chapters.
8146         * doc/posix-functions/aligned_alloc.texi: Renamed from
8147         doc/glibc-functions/aligned_alloc.texi.
8148         * doc/posix-functions/quick_exit.texi: Renamed from
8149         doc/glibc-functions/quick_exit.texi.
8150         * doc/posix-headers/uchar.texi: Renamed from
8151         doc/glibc-headers/uchar.texi.
8152         * doc/posix-functions/c16rtomb.texi: Renamed from
8153         doc/glibc-functions/c16rtomb.texi.
8154         * doc/posix-functions/c32rtomb.texi: Renamed from
8155         doc/glibc-functions/c32rtomb.texi.
8156         * doc/posix-functions/mbrtoc16.texi: Renamed from
8157         doc/glibc-functions/mbrtoc16.texi.
8158         * doc/posix-functions/mbrtoc32.texi: Renamed from
8159         doc/glibc-functions/mbrtoc32.texi.
8160         * doc/gnulib.texi: Update.
8161         (Glibc uchar.h): Remove section.
8162         Suggested by Eric Blake.
8163
8164 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8165
8166         stdnoreturn: port to MSVC better
8167         MSVC standard headers use __declspec(noreturn), so #define noreturn
8168         to empty on that platform.  Reported by Bruno Haible in
8169         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8170         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8171         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8172
8173 2012-02-28  Bruno Haible  <bruno@clisp.org>
8174
8175         doc: Mention new glibc headers and functions.
8176         * doc/glibc-headers/uchar.texi: New file.
8177         * doc/glibc-functions/aligned_alloc.texi: New file.
8178         * doc/glibc-functions/c16rtomb.texi: New file.
8179         * doc/glibc-functions/c32rtomb.texi: New file.
8180         * doc/glibc-functions/clock_adjtime.texi: New file.
8181         * doc/glibc-functions/fanotify_init.texi: New file.
8182         * doc/glibc-functions/fanotify_mark.texi: New file.
8183         * doc/glibc-functions/inet6_opt_append.texi: New file.
8184         * doc/glibc-functions/inet6_opt_find.texi: New file.
8185         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8186         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8187         * doc/glibc-functions/inet6_opt_init.texi: New file.
8188         * doc/glibc-functions/inet6_opt_next.texi: New file.
8189         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8190         * doc/glibc-functions/inet6_rth_add.texi: New file.
8191         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8192         * doc/glibc-functions/inet6_rth_init.texi: New file.
8193         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8194         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8195         * doc/glibc-functions/inet6_rth_space.texi: New file.
8196         * doc/glibc-functions/login.texi: New file.
8197         * doc/glibc-functions/mbrtoc16.texi: New file.
8198         * doc/glibc-functions/mbrtoc32.texi: New file.
8199         * doc/glibc-functions/name_to_handle_at.texi: New file.
8200         * doc/glibc-functions/ntp_gettimex.texi: New file.
8201         * doc/glibc-functions/open_by_handle_at.texi: New file.
8202         * doc/glibc-functions/prlimit.texi: New file.
8203         * doc/glibc-functions/process_vm_readv.texi: New file.
8204         * doc/glibc-functions/process_vm_writev.texi: New file.
8205         * doc/glibc-functions/recvmmsg.texi: New file.
8206         * doc/glibc-functions/scandirat.texi: New file.
8207         * doc/glibc-functions/sendmmsg.texi: New file.
8208         * doc/glibc-functions/setns.texi: New file.
8209         * doc/glibc-functions/timespec_get.texi: New file.
8210         * doc/gnulib.texi: Include them.
8211         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8212         sections.
8213         Reported by Eric Blake.
8214
8215 2012-02-28  Bruno Haible  <bruno@clisp.org>
8216
8217         Avoid compilation errors with MSVC option -fp:strict.
8218         * lib/floor.c: Use MSVC specific pragma fenv_access.
8219         * lib/ceil.c: Likewise.
8220         * lib/trunc.c: Likewise.
8221         * lib/round.c: Likewise.
8222         * lib/rint.c: Likewise.
8223         * lib/fma.c: Likewise.
8224         * lib/integer_length.c: Likewise.
8225         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8226         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8227         * tests/test-floor2.c: Likewise.
8228         * tests/test-floorf2.c: Likewise.
8229         * tests/test-ceil2.c: Likewise.
8230         * tests/test-ceilf2.c: Likewise.
8231         * tests/test-trunc2.c: Likewise.
8232         * tests/test-truncf2.c: Likewise.
8233         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8234
8235 2012-02-27  Bruno Haible  <bruno@clisp.org>
8236
8237         Tests for module 'sqrtl-ieee'.
8238         * modules/sqrtl-ieee-tests: New file.
8239         * tests/test-sqrtl-ieee.c: New file.
8240
8241         New module 'sqrtl-ieee'.
8242         * modules/sqrtl-ieee: New file.
8243
8244         Tests for module 'sqrt-ieee'.
8245         * modules/sqrt-ieee-tests: New file.
8246         * tests/test-sqrt-ieee.c: New file.
8247
8248         New module 'sqrt-ieee'.
8249         * modules/sqrt-ieee: New file.
8250
8251         Tests for module 'sqrtf-ieee'.
8252         * modules/sqrtf-ieee-tests: New file.
8253         * tests/test-sqrtf-ieee.c: New file.
8254         * tests/test-sqrt-ieee.h: New file.
8255
8256         New module 'sqrtf-ieee'.
8257         * modules/sqrtf-ieee: New file.
8258
8259 2012-02-27  Bruno Haible  <bruno@clisp.org>
8260
8261         remainderl-ieee: Work around test failure on OSF/1.
8262         * m4/remainderl-ieee.m4: New file.
8263         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8264         present, test whether remainderl works with a zero second argument.
8265         Replace it if not.
8266         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8268         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8269         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8270         (Depends-on): Update conditions.
8271         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8272         (Depends-on): Add remainder-ieee.
8273         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8274         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8275         module.
8276
8277         remainderf-ieee: Work around test failure on OSF/1.
8278         * m4/remainderf-ieee.m4: New file.
8279         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8280         present, test whether remainderf works with a zero second argument.
8281         Replace it if not.
8282         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8284         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8285         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8286         (Depends-on): Update conditions.
8287         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8288         (Depends-on): Add remainder-ieee.
8289         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8290         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8291         module.
8292
8293         remainder-ieee: Work around test failure on OSF/1.
8294         * m4/remainder-ieee.m4: New file.
8295         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8296         present, test whether remainder works with a zero second argument.
8297         Replace it if not.
8298         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8300         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8301         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8302         (Depends-on): Update dependencies.
8303         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8304         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8305         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8306
8307         Tests for module 'remainderl-ieee'.
8308         * modules/remainderl-ieee-tests: New file.
8309         * tests/test-remainderl-ieee.c: New file.
8310
8311         New module 'remainderl-ieee'.
8312         * modules/remainderl-ieee: New file.
8313
8314         Tests for module 'remainder-ieee'.
8315         * modules/remainder-ieee-tests: New file.
8316         * tests/test-remainder-ieee.c: New file.
8317
8318         New module 'remainder-ieee'.
8319         * modules/remainder-ieee: New file.
8320
8321         Tests for module 'remainderf-ieee'.
8322         * modules/remainderf-ieee-tests: New file.
8323         * tests/test-remainderf-ieee.c: New file.
8324         * tests/test-remainder-ieee.h: New file.
8325
8326         New module 'remainderf-ieee'.
8327         * modules/remainderf-ieee: New file.
8328
8329 2012-02-27  Bruno Haible  <bruno@clisp.org>
8330
8331         modff, modfl: Fix configure syntax error.
8332         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8333         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8334
8335 2012-02-27  Bruno Haible  <bruno@clisp.org>
8336
8337         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8338         * m4/fmodl-ieee.m4: New file.
8339         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8340         whether fmodl works with zero arguments. Replace it if not.
8341         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8342         (Depends-on): Add fmod-ieee.
8343         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8344         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8345
8346         fmodf-ieee: Work around test failure on OSF/1.
8347         * m4/fmodf-ieee.m4: New file.
8348         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8349         whether fmodf works with zero arguments. Replace it if not.
8350         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8352         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8353         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8354         (Depends-on): Update dependencies.
8355         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8356         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8357         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8358
8359         fmodf-ieee: Work around test failure on MSVC 9.
8360         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8361         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8362
8363         fmod-ieee: Work around test failures on OSF/1, mingw.
8364         * m4/fmod-ieee.m4: New file.
8365         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8366         whether fmod works with zero arguments. Replace it if not.
8367         * lib/math.in.h (fmod): New declaration.
8368         * lib/fmod.c: New file.
8369         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8371         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8372         * modules/fmod (Files): Add lib/fmod.c.
8373         (Depends-on): Add math, isinf, trunc, fma.
8374         (configure.ac): Arrange to compile lib/fmod.c if needed.
8375         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8376         m4/signbit.m4.
8377         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8378         * tests/test-math-c++.cc: Check the declaration of fmod.
8379         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8380
8381         fmodl-ieee: Fix test failures.
8382         * lib/fmodl.c (fmodl): Treat Inf specially.
8383         * modules/fmodl (Depends-on): Add isinf.
8384
8385         Tests for module 'fmodl-ieee'.
8386         * modules/fmodl-ieee-tests: New file.
8387         * tests/test-fmodl-ieee.c: New file.
8388
8389         New module 'fmodl-ieee'.
8390         * modules/fmodl-ieee: New file.
8391
8392         Tests for module 'fmod-ieee'.
8393         * modules/fmod-ieee-tests: New file.
8394         * tests/test-fmod-ieee.c: New file.
8395
8396         New module 'fmod-ieee'.
8397         * modules/fmod-ieee: New file.
8398
8399         Tests for module 'fmodf-ieee'.
8400         * modules/fmodf-ieee-tests: New file.
8401         * tests/test-fmodf-ieee.c: New file.
8402         * tests/test-fmod-ieee.h: New file.
8403
8404         New module 'fmodf-ieee'.
8405         * modules/fmodf-ieee: New file.
8406
8407 2012-02-27  Bruno Haible  <bruno@clisp.org>
8408
8409         Tests for module 'rintl-ieee'.
8410         * modules/rintl-ieee-tests: New file.
8411         * tests/test-rintl-ieee.c: New file.
8412
8413         New module 'rintl-ieee'.
8414         * modules/rintl-ieee: New file.
8415
8416         Tests for module 'rint-ieee'.
8417         * modules/rint-ieee-tests: New file.
8418         * tests/test-rint-ieee.c: New file.
8419
8420         New module 'rint-ieee'.
8421         * modules/rint-ieee: New file.
8422
8423         Tests for module 'rintf-ieee'.
8424         * modules/rintf-ieee-tests: New file.
8425         * tests/test-rintf-ieee.c: New file.
8426         * tests/test-rint-ieee.h: New file.
8427
8428         New module 'rintf-ieee'.
8429         * modules/rintf-ieee: New file.
8430
8431 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8432
8433         regex: re_search etc. should return -2 when memory exhausted
8434         This bug was uncovered when testing 'grep'.  Without the fix,
8435         re_search and friends return -1 when memory is exhausted, but -1
8436         means no match, and this causes grep to falsely report no-match
8437         instead of memory-exhaustion.  See
8438         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8439         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8440         trouble; this can occur if re_search_internal ran out of memory.
8441
8442 2012-02-26  Bruno Haible  <bruno@clisp.org>
8443
8444         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8445         * m4/modfl-ieee.m4: New file.
8446         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8447         whether modfl works with Inf. Replace it if not.
8448         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8450         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8451         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8452         (Depends-on): Update dependencies.
8453         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8454         m4/signbit.m4.
8455         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8456         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8457
8458         modfl-ieee: Fix dependencies.
8459         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8460
8461         modfl-ieee: Fix test failures.
8462         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8463         * modules/modfl (Depends-on): Add isfinite, isinf.
8464
8465         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8466         * m4/modff-ieee.m4: New file.
8467         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8468         whether modff works with NaN and Inf. Replace it if not.
8469         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8471         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8472         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8473         (Depends-on): Update dependencies.
8474         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8475         m4/signbit.m4.
8476         (Depends-on): Add modf-ieee.
8477         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8478         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8479
8480         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8481         * m4/modf-ieee.m4: New file.
8482         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8483         whether modf works with NaN and Inf. Replace it if not.
8484         * lib/math.in.h (modf): New declaration.
8485         * lib/modf.c: New file.
8486         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8488         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8489         * modules/modf (Files): Add lib/modf.c.
8490         (Depends-on): Add math, isfinite, trunc, isinf.
8491         (configure.ac): Addrange to compile lib/modf.c if needed.
8492         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8493         m4/signbit.m4.
8494         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8495         * tests/test-math-c++.cc: Check the declaration of modf.
8496         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8497
8498         Tests for module 'modfl-ieee'.
8499         * modules/modfl-ieee-tests: New file.
8500         * tests/test-modfl-ieee.c: New file.
8501
8502         New module 'modfl-ieee'.
8503         * modules/modfl-ieee: New file.
8504
8505         Tests for module 'modf-ieee'.
8506         * modules/modf-ieee-tests: New file.
8507         * tests/test-modf-ieee.c: New file.
8508
8509         New module 'modf-ieee'.
8510         * modules/modf-ieee: New file.
8511
8512         Tests for module 'modff-ieee'.
8513         * modules/modff-ieee-tests: New file.
8514         * tests/test-modff-ieee.c: New file.
8515         * tests/test-modf-ieee.h: New file.
8516
8517         New module 'modff-ieee'.
8518         * modules/modff-ieee: New file.
8519
8520 2012-02-26  Bruno Haible  <bruno@clisp.org>
8521
8522         Tests for module 'fabsl-ieee'.
8523         * modules/fabsl-ieee-tests: New file.
8524         * tests/test-fabsl-ieee.c: New file.
8525
8526         New module 'fabsl-ieee'.
8527         * modules/fabsl-ieee: New file.
8528
8529         Tests for module 'fabs-ieee'.
8530         * modules/fabs-ieee-tests: New file.
8531         * tests/test-fabs-ieee.c: New file.
8532
8533         New module 'fabs-ieee'.
8534         * modules/fabs-ieee: New file.
8535
8536         Tests for module 'fabsf-ieee'.
8537         * modules/fabsf-ieee-tests: New file.
8538         * tests/test-fabsf-ieee.c: New file.
8539         * tests/test-fabs-ieee.h: New file.
8540
8541         New module 'fabsf-ieee'.
8542         * modules/fabsf-ieee: New file.
8543
8544 2012-02-26  Bruno Haible  <bruno@clisp.org>
8545
8546         Tests for module 'fmal-ieee'.
8547         * modules/fmal-ieee-tests: New file.
8548         * tests/test-fmal-ieee.c: New file.
8549
8550         New module 'fmal-ieee'.
8551         * modules/fmal-ieee: New file.
8552
8553         Tests for module 'fma-ieee'.
8554         * modules/fma-ieee-tests: New file.
8555         * tests/test-fma-ieee.c: New file.
8556
8557         New module 'fma-ieee'.
8558         * modules/fma-ieee: New file.
8559
8560         Tests for module 'fmaf-ieee'.
8561         * modules/fmaf-ieee-tests: New file.
8562         * tests/test-fmaf-ieee.c: New file.
8563         * tests/test-fma-ieee.h: New file.
8564
8565         New module 'fmaf-ieee'.
8566         * modules/fmaf-ieee: New file.
8567
8568 2012-02-26  Bruno Haible  <bruno@clisp.org>
8569
8570         Tests for module 'ldexpl-ieee'.
8571         * modules/ldexpl-ieee-tests: New file.
8572         * tests/test-ldexpl-ieee.c: New file.
8573
8574         New module 'ldexpl-ieee'.
8575         * modules/ldexpl-ieee: New file.
8576
8577         Tests for module 'ldexp-ieee'.
8578         * modules/ldexp-ieee-tests: New file.
8579         * tests/test-ldexp-ieee.c: New file.
8580
8581         New module 'ldexp-ieee'.
8582         * modules/ldexp-ieee: New file.
8583
8584         Tests for module 'ldexpf-ieee'.
8585         * modules/ldexpf-ieee-tests: New file.
8586         * tests/test-ldexpf-ieee.c: New file.
8587         * tests/test-ldexp-ieee.h: New file.
8588
8589         New module 'ldexpf-ieee'.
8590         * modules/ldexpf-ieee: New file.
8591
8592 2012-02-26  Bruno Haible  <bruno@clisp.org>
8593
8594         Refactor frexp*-ieee tests.
8595         * tests/test-frexp-ieee.h: New file.
8596         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8597         (main): Just call test_function.
8598         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8599         (main): Just call test_function.
8600         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8601         (main): Just call test_function.
8602         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8603         * modules/frexp-ieee-tests (Files): Likewise.
8604         * modules/frexpl-ieee-tests (Files): Likewise.
8605
8606         Tests for module 'frexpl-ieee'.
8607         * modules/frexpl-ieee-tests: New file.
8608         * tests/test-frexpl-ieee.c: New file.
8609
8610         New module 'frexpl-ieee'.
8611         * modules/frexpl-ieee: New file.
8612
8613         Tests for module 'frexp-ieee'.
8614         * modules/frexp-ieee-tests: New file.
8615         * tests/test-frexp-ieee.c: New file.
8616
8617         New module 'frexp-ieee'.
8618         * modules/frexp-ieee: New file.
8619
8620         Tests for module 'frexpf-ieee'.
8621         * modules/frexpf-ieee-tests: New file.
8622         * tests/test-frexpf-ieee.c: New file.
8623
8624         New module 'frexpf-ieee'.
8625         * modules/frexpf-ieee: New file.
8626
8627 2012-02-26  Bruno Haible  <bruno@clisp.org>
8628
8629         roundl-ieee tests: More tests.
8630         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8631         (main): Add tests for [MX] shaded specification in POSIX.
8632         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8633         (Depends-on): Add isnanl-nolibm.
8634
8635         round-ieee tests: More tests.
8636         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8637         (main): Add tests for [MX] shaded specification in POSIX.
8638         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8639         (Depends-on): Add isnand-nolibm.
8640
8641         roundf-ieee tests: More tests.
8642         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8643         (main): Add tests for [MX] shaded specification in POSIX.
8644         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8645         (Depends-on): Add isnanf-nolibm.
8646
8647         truncl-ieee tests: More tests.
8648         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8649         (main): Add tests for [MX] shaded specification in POSIX.
8650         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8651         (Depends-on): Add isnanl-nolibm.
8652
8653         trunc-ieee tests: More tests.
8654         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8655         (main): Add tests for [MX] shaded specification in POSIX.
8656         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8657         (Depends-on): Add isnand-nolibm.
8658
8659         truncf-ieee tests: More tests.
8660         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8661         (main): Add tests for [MX] shaded specification in POSIX.
8662         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8663         (Depends-on): Add isnanf-nolibm.
8664
8665         ceill-ieee tests: More tests.
8666         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8667         (main): Add tests for [MX] shaded specification in POSIX.
8668         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8669         (Depends-on): Add isnanl-nolibm.
8670
8671         ceil-ieee tests: More tests.
8672         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8673         (main): Add tests for [MX] shaded specification in POSIX.
8674         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8675         (Depends-on): Add isnand-nolibm.
8676
8677         ceilf-ieee tests: More tests.
8678         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8679         (main): Add tests for [MX] shaded specification in POSIX.
8680         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8681         (Depends-on): Add isnanf-nolibm.
8682
8683         floorl-ieee tests: More tests.
8684         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8685         (main): Add tests for [MX] shaded specification in POSIX.
8686         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8687         (Depends-on): Add isnanl-nolibm.
8688
8689         floor-ieee tests: More tests.
8690         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8691         (main): Add tests for [MX] shaded specification in POSIX.
8692         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8693         (Depends-on): Add isnand-nolibm.
8694
8695         floorf-ieee tests: More tests.
8696         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8697         (main): Add tests for [MX] shaded specification in POSIX.
8698         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8699         (Depends-on): Add isnanf-nolibm.
8700
8701 2012-02-26  Bruno Haible  <bruno@clisp.org>
8702
8703         fpieee: More comments.
8704         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8705
8706 2012-02-25  Bruno Haible  <bruno@clisp.org>
8707
8708         Tests for module 'log10l'.
8709         * modules/log10l-tests: New file.
8710         * tests/test-log10l.c: New file.
8711         * tests/test-math-c++.cc: Check the declaration of log10l.
8712
8713         New module 'log10l'.
8714         * lib/math.in.h (log10l): New declaration.
8715         * lib/log10l.c: New file.
8716         * m4/log10l.m4: New file.
8717         * modules/log10l: New file.
8718         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8720         HAVE_DECL_LOG10L.
8721         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8722         HAVE_DECL_LOG10L.
8723         * doc/posix-functions/log10l.texi: Mention the new module.
8724
8725 2012-02-25  Bruno Haible  <bruno@clisp.org>
8726
8727         fmodl, remainder*: Avoid wrong results due to rounding errors.
8728         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8729         expected bounds.
8730         * lib/remainderf.c (remainderf): Likewise.
8731         * lib/remainder.c (remainder): Likewise.
8732         * lib/remainderl.c (remainderl): Likewise.
8733
8734 2012-02-25  Bruno Haible  <bruno@clisp.org>
8735
8736         Tests for module 'remainderl'.
8737         * modules/remainderl-tests: New file.
8738         * tests/test-remainderl.c: New file.
8739         * tests/test-math-c++.cc: Check the declaration of remainderl.
8740
8741         New module 'remainderl'.
8742         * lib/math.in.h (remainderl): New declaration.
8743         * lib/remainderl.c: New file.
8744         * m4/remainderl.m4: New file.
8745         * modules/remainderl: New file.
8746         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8748         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8749         HAVE_REMAINDERL.
8750         * doc/posix-functions/remainderl.texi: Mention the new module.
8751
8752 2012-02-25  Bruno Haible  <bruno@clisp.org>
8753
8754         Tests for module 'remainderf'.
8755         * modules/remainderf-tests: New file.
8756         * tests/test-remainderf.c: New file.
8757         * tests/test-math-c++.cc: Check the declaration of remainderf.
8758
8759         New module 'remainderf'.
8760         * lib/math.in.h (remainderf): New declaration.
8761         * lib/remainderf.c: New file.
8762         * m4/remainderf.m4: New file.
8763         * modules/remainderf: New file.
8764         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8766         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8767         HAVE_REMAINDERF.
8768         * doc/posix-functions/remainderf.texi: Mention the new module.
8769
8770 2012-02-25  Bruno Haible  <bruno@clisp.org>
8771
8772         remainder: Support for MSVC.
8773         * lib/math.in.h (remainder): New declaration.
8774         * lib/remainder.c: New file.
8775         * m4/remainder.m4: New file.
8776         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8777         (Depends-on): Add math, round, fma.
8778         (configure.ac): Use results of gl_FUNC_REMAINDER.
8779         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8781         HAVE_DECL_REMAINDER.
8782         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8783         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8784         * tests/test-math-c++.cc: Check the declaration of remainder.
8785         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8786         problems are fixed.
8787
8788 2012-02-25  Bruno Haible  <bruno@clisp.org>
8789
8790         Tests for module 'fmodl'.
8791         * modules/fmodl-tests: New file.
8792         * tests/test-fmodl.c: New file.
8793         * tests/test-math-c++.cc: Check the declaration of fmodl.
8794
8795         New module 'fmodl'.
8796         * lib/math.in.h (fmodl): New declaration.
8797         * lib/fmodl.c: New file.
8798         * m4/fmodl.m4: New file.
8799         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8801         REPLACE_FMODL.
8802         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8803         REPLACE_FMODL.
8804         * modules/fmodl: New file.
8805         * doc/posix-functions/fmodl.texi: Mention the new module.
8806
8807 2012-02-25  Bruno Haible  <bruno@clisp.org>
8808
8809         Tests for module 'modfl'.
8810         * modules/modfl-tests: New file.
8811         * tests/test-modfl.c: New file.
8812         * tests/test-math-c++.cc: Check the declaration of modfl.
8813
8814         New module 'modfl'.
8815         * lib/math.in.h (modfl): New declaration.
8816         * lib/modfl.c: New file.
8817         * m4/modfl.m4: New file.
8818         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8820         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8821         * modules/modfl: New file.
8822         * doc/posix-functions/modfl.texi: Mention the new module.
8823
8824 2012-02-25  Bruno Haible  <bruno@clisp.org>
8825
8826         Tests for module 'fabsl'.
8827         * modules/fabsl-tests: New file.
8828         * tests/test-fabsl.c: New file.
8829         * tests/test-math-c++.cc: Check the declaration of fabsl.
8830
8831         New module 'fabsl'.
8832         * lib/math.in.h (fabsl): New declaration.
8833         * lib/fabsl.c: New file.
8834         * m4/fabsl.m4: New file.
8835         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8837         REPLACE_FABSL.
8838         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8839         REPLACE_FABSL.
8840         * modules/fabsl: New file.
8841         * doc/posix-functions/fabsl.texi: Mention the new module.
8842
8843 2012-02-25  Bruno Haible  <bruno@clisp.org>
8844
8845         fabs tests: More tests.
8846         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8847         (zero): New variable.
8848         (main): Add tests for signed zero.
8849         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8850
8851         fabsf tests: More tests.
8852         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8853         (zero): New variable.
8854         (main): Add tests for signed zero.
8855         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8856
8857 2012-02-24  Bruno Haible  <bruno@clisp.org>
8858
8859         atanl: Provide function definition on MSVC.
8860         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8861         function pointer.
8862         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8863
8864 2012-02-24  Bruno Haible  <bruno@clisp.org>
8865
8866         acosl: Provide function definition on MSVC.
8867         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8868         function pointer.
8869         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8870
8871 2012-02-24  Bruno Haible  <bruno@clisp.org>
8872
8873         asinl: Provide function definition on MSVC.
8874         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8875         function pointer.
8876         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8877
8878 2012-02-24  Bruno Haible  <bruno@clisp.org>
8879
8880         tanl: Provide function definition on MSVC.
8881         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8882         function pointer.
8883         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8884
8885 2012-02-24  Bruno Haible  <bruno@clisp.org>
8886
8887         cosl: Provide function definition on MSVC.
8888         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8889         function pointer.
8890         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8891
8892 2012-02-24  Bruno Haible  <bruno@clisp.org>
8893
8894         sinl: Provide function definition on MSVC.
8895         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8896         function pointer.
8897         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8898
8899 2012-02-24  Bruno Haible  <bruno@clisp.org>
8900
8901         logl: Provide function definition on MSVC.
8902         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8903         function pointer.
8904         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8905
8906 2012-02-24  Bruno Haible  <bruno@clisp.org>
8907
8908         expl: Provide function definition on MSVC.
8909         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8910         function pointer.
8911         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8912
8913 2012-02-24  Bruno Haible  <bruno@clisp.org>
8914
8915         sqrtl: Provide function definition on MSVC.
8916         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8917         a function pointer.
8918         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8919
8920 2012-02-24  Bruno Haible  <bruno@clisp.org>
8921
8922         ceill: Provide function definition on MSVC.
8923         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8924         used as a function pointer.
8925         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8926
8927 2012-02-24  Bruno Haible  <bruno@clisp.org>
8928
8929         floorl: Provide function definition on MSVC.
8930         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8931         used as a function pointer.
8932         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8933
8934 2012-02-24  Bruno Haible  <bruno@clisp.org>
8935
8936         ceilf: Provide function definition on MSVC.
8937         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8938         used as a function pointer.
8939         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8940
8941 2012-02-24  Bruno Haible  <bruno@clisp.org>
8942
8943         floorf: Provide function definition on MSVC.
8944         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8945         used as a function pointer.
8946         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8947
8948 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8949
8950         stdnoreturn: new module
8951         This implements a replacement for C11's <stdnoreturn.h>.
8952         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8953         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8954         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8955         * tests/test-stdnoreturn.c: New files.
8956
8957 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8958
8959         regex: fix false multibyte matches in some regular expressions
8960         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8961         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8962         * lib/regex_internal.c (re_string_skip_chars):
8963         Fix miscomputation of remain_len that may cause incomplete
8964         multi-byte character and false match.
8965
8966 2012-02-24  Jim Meyering  <meyering@redhat.com>
8967
8968         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8969         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8970         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8971         Remove now-unnecessary str''cmp obfuscation.
8972         Suggested by Akim Demaille.
8973
8974 2012-02-24  Bruno Haible  <bruno@clisp.org>
8975
8976         streq: Rename macro.
8977         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8978         * NEWS: Mention the change.
8979         * lib/mbrtowc.c (mbrtowc): Update.
8980         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8981         * lib/wcwidth.c (wcwidth): Update.
8982         Suggested by Akim Demaille and Jim Meyering.
8983
8984 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8985
8986         regex: fix typo in definition of MIN
8987         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8988         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8989
8990 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8991             Bruno Haible  <bruno@clisp.org>
8992
8993         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8994         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8995         entries into a stack-allocated buffer directly.
8996         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8997
8998 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8999             Bruno Haible  <bruno@clisp.org>
9000
9001         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
9002
9003          - There were several instances of this pattern:
9004
9005              for (;;) {
9006                n = acl (f, GETACLCNT, 0, NULL);
9007                [ allocate an array A of size N ]
9008                if (acl (f, GETACL, n, a) == n)
9009                  break;
9010              }
9011
9012            This loop might never terminate if some other process is constantly
9013            manipulating the file's ACL.  The loop should be rewritten to
9014            terminate.
9015
9016          - The acl (... GETACLNT ...) call is merely an optimization; its value
9017            is merely a hint as to how big to make the array.  A better
9018            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
9019            and just guess a reasonably-big size, growing the size and trying
9020            again if it's not large enough.  This guarantees termination, and
9021            saves a system call.
9022
9023         * lib/acl-internal.h: Include <limits.h>.
9024         (MIN, SIZE_MAX): New macros.
9025         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
9026         a stack-allocated buffer, and use malloc if it does not fit. Don't
9027         use GETACLCNT.
9028         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9029
9030 2012-02-19  Bruno Haible  <bruno@clisp.org>
9031
9032         acl: Fix endless loop on Solaris with vxfs.
9033         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
9034         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
9035         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9036         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
9037         * tests/test-sameacls.c (main)[Solaris]: Likewise.
9038         Reported by Bill Jones in
9039         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
9040
9041 2012-02-19  Bruno Haible  <bruno@clisp.org>
9042
9043         acl: Fix copy-acl test failure on Solaris 11 2011-11.
9044         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
9045         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
9046         that this function returns 0 in some more cases.
9047
9048 2012-02-19  Bruno Haible  <bruno@clisp.org>
9049
9050         acl: Update doc references.
9051         * doc/acl-resources.txt: Update links to Solaris documentation.
9052
9053 2012-02-19  Bruno Haible  <bruno@clisp.org>
9054
9055         Fix test failure in many locales on Solaris 11.
9056         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
9057         'tr' arguments.
9058         * tests/test-pipe-filter-ii1.c (main): Likewise.
9059         * build-aux/bootstrap (check_versions): Run 'tr' command with range
9060         expressions in the C locale.
9061         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9062         * m4/host-os.m4 (gl_HOST_OS): Likewise.
9063
9064 2012-02-19  Bruno Haible  <bruno@clisp.org>
9065
9066         gnulib-tool: Improve usage message.
9067         * gnulib-tool (func_usage): Move doc of --help and --version to the
9068         section "Operation modes".
9069
9070 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
9071
9072         README-release: make it easier to execute commands
9073         * top/README-release: break commands out on to separate lines.
9074
9075 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9076
9077         GNUmakefile: simplify detection of unconfigured trees
9078         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9079         whether the tree make is being run from is already configured or
9080         not.  Related simplifications.
9081
9082 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9083
9084         * gnulib-tool (func_usage): Document --help and --version.
9085
9086 2012-02-11  Jim Meyering  <meyering@redhat.com>
9087
9088         bootstrap: don't exit 0 upon gnulib-tool failure
9089         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9090         its exit status, not 0.
9091
9092 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9093
9094         README-release: various improvements
9095         * top/README-release: Give a command to push changes for the
9096         release.  Add "distcheck" to list of other pre-release checks.
9097         Fix instance of "make stable" which should be "make TYPE".
9098
9099 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9100
9101         maint: replace FSF snail-mail addresses with URLs
9102         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9103         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9104         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9105         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9106         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9107         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9108         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9109         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9110         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9111         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9112         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9113         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9114         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9115         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9116         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9117         * lib/glthread/thread.c, lib/glthread/thread.h:
9118         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9119         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9120         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9121         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9122         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9123         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9124         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9125         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9126         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9127         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9128         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9129         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9130         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9131         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9132         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9133         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9134         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9135         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9136         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9137         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9138         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9139         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9140         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9141         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9142         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9143         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9144         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9145         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9146         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9147         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9148         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9149         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9150         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9151         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9152         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9153         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9154         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9155         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9156         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9157         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9158         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9159         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9160         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9161         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9162         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9163         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9164         * tests/test-poll.c, tests/test-quotearg-simple.c:
9165         * tests/test-quotearg.c, tests/test-quotearg.h:
9166         * tests/test-round-ieee.c, tests/test-round1.c:
9167         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9168         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9169         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9170         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9171         * tests/test-strerror.c, tests/test-strerror_r.c:
9172         * tests/test-strsignal.c, tests/test-strverscmp.c:
9173         * tests/test-xmemdup0.c:
9174         Replace FSF snail mail addresses with URLs, as per GNU coding
9175         standards.  See glibc bug
9176         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9177
9178 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9179
9180         README-release: capitalize a word and split a line
9181         * top/README-release: Fix punctuation and spacing.
9182
9183 2012-02-08  Akim Demaille  <demaille@gostai.com>
9184
9185         fatal-signal: use C prototypes (with explicit void).
9186         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9187         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9188
9189 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9190
9191         regex: spelling fix
9192         * lib/regexec.c: spelling fix
9193
9194         regex: rely on stdint.h for SIZE_MAX
9195         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9196
9197 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9198
9199         regex: merge glibc changes
9200
9201         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9202         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9203         (init_word_char): Work even if bitset words are not exactly 32 or
9204         64 bits wide.  Don't assume there are no padding bits.
9205         * lib/regex.c [_LIBC]: Do not include <config.h>.
9206         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9207         and -Wtype-limits.
9208         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9209         needless disagreement with glibc.  All uses changed.  Define it to
9210         1 only if _GNU_SOURCE, to match glibc.
9211         (_REG_RM_NAME): Remove; no longer needed, since the names in
9212         question are now all protected by __USE_GNU.
9213         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9214         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9215         * lib/regex_internal.h (MIN): New macro.
9216
9217         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9218         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9219
9220         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9221         * lib/regex_internal.c (re_string_fetch_byte_case):
9222         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9223         is miscompiled, and it turns out it is because of an incorrect
9224         attribute on re_string_fetch_byte_case.  Unlike
9225         re_string_peek_byte_case, this one is really not pure, it modifies
9226         memory (increments pstr->cur_idx), and with the pure attribute GCC
9227         assumed it doesn't and it cached the presumed value of
9228         regexp->cur_idx in a variable across the
9229          for (;; ++i)
9230            {
9231              if (i >= BRACKET_NAME_BUF_SIZE)
9232                return REG_EBRACK;
9233              if (token->type == OP_OPEN_CHAR_CLASS)
9234                ch = re_string_fetch_byte_case (regexp);
9235              else
9236                ch = re_string_fetch_byte (regexp);
9237              if (re_string_eoi(regexp))
9238                return REG_EBRACK;
9239              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9240                break;
9241              elem->opr.name[i] = ch;
9242            }
9243
9244         2011-11-29 Andreas Schwab <schwab@redhat.com>
9245         * lib/regcomp.c (build_equiv_class):
9246         Fix access after end of search string in regex matcher.
9247
9248         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9249         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9250
9251         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9252         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9253
9254         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9255         * lib/regcomp.c (parse_branch, parse_sub_exp):
9256         More regex memory leak fixes and tests.
9257         (parse_sub_exp, parse_bracket_exp):
9258         Fix memory leak for some invalid regular expressions.
9259
9260         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9261         * lib/regex_internal.c, lib/regexec.c:
9262         Fix unnecessary overallocation due to incomplete character.  When
9263         incomplete characters are found at the end of a string the code
9264         ran amok and allocated lots of memory.  Stricter limits are now in
9265         place.
9266
9267         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9268         * lib/regex.h: Update documentation.
9269
9270         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9271         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9272
9273         2010-05-05 Andreas Schwab <schwab@redhat.com>
9274         * lib/regexec.c (find_collation_sequence_value):
9275         Fix lookup of collation sequence value during regexp matching.
9276
9277         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9278         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9279
9280         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9281         * lib/regex.h: Cleanup namespace.
9282
9283         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9284         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9285
9286         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9287         * lib/regex_internal.h: Prevent some declarations and definitions
9288         to be seen when used in tests.
9289
9290         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9291         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9292         __libc_lock_* macros if not _LIBC.
9293         (struct re_dfa_t): Add lock.
9294
9295 2012-02-07  Eric Blake  <eblake@redhat.com>
9296
9297         maint.mk: also prohibit lower-case @var@
9298         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9299         lower case, like @top_srcdir@.
9300
9301 2012-02-04  Eric Blake  <eblake@redhat.com>
9302
9303         canonicalize: avoid uninitialized memory use
9304         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9305         random '/' left in dest.
9306         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9307
9308 2012-02-04  Bruno Haible  <bruno@clisp.org>
9309
9310         isatty: Fix test failure of ptsname_r on native Windows.
9311         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9312         and don't set errno.
9313         (isatty): Test first whether fd is valid. Set errno when returning 0.
9314
9315 2012-02-04  Bruno Haible  <bruno@clisp.org>
9316
9317         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9318         * tests/test-spawn-pipe-main.c: Include progname.h.
9319         (main): Invoke set_program_name.
9320         * modules/spawn-pipe-tests (Depends-on): Add progname.
9321
9322         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9323         * tests/test-nonblocking-socket-main.c: Include progname.h.
9324         (main): Invoke set_program_name.
9325         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9326
9327         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9328         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9329         (main): Invoke set_program_name.
9330         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9331
9332 2012-02-04  Eric Blake  <eblake@redhat.com>
9333
9334         canonicalize-lgpl: fix // handling
9335         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9336
9337         canonicalize: fix // handling
9338         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9339         /// to //, since only // is special.
9340
9341 2012-02-04  Bruno Haible  <bruno@clisp.org>
9342
9343         ioctl: Fix test failure on native Windows.
9344         * lib/ioctl.c: Include msvc-nothrow.h.
9345         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9346
9347 2012-02-04  Bruno Haible  <bruno@clisp.org>
9348
9349         fsync: Avoid test failure on native Windows.
9350         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9351         read-only.
9352
9353 2012-02-04  Bruno Haible  <bruno@clisp.org>
9354
9355         sys_select: Avoid syntax error on OpenBSD 5.0.
9356         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9357         currently being included, just include the system's <sys/select.h>.
9358
9359 2012-02-04  Bruno Haible  <bruno@clisp.org>
9360
9361         sys_select: Avoid syntax error on OpenBSD 5.0.
9362         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9363         <sys/select.h>, not before.
9364         Reported by Jiri B <jirib@devio.us>.
9365
9366 2012-02-04  Bruno Haible  <bruno@clisp.org>
9367
9368         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9369         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9370         global variables.
9371         * tests/test-get-rusage-data.c (main): Likewise.
9372         Reported by Jim Meyering.
9373
9374 2012-02-04  Bruno Haible  <bruno@clisp.org>
9375
9376         stdioext: Fix last commit.
9377         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9378
9379 2012-02-03  Bruno Haible  <bruno@clisp.org>
9380
9381         stdioext: Add tentative support for Plan9.
9382         * lib/stdio-impl.h: Include <errno.h>.
9383         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9384         * lib/freadable.c (freadable): Likewise.
9385         * lib/fwritable.c (fwritable): Likewise.
9386         * lib/fbufmode.c (fbufmode): Likewise.
9387         * lib/freading.c (freading): Likewise.
9388         * lib/fwriting.c (fwriting): Likewise.
9389         * lib/freadptr.c (freadptr): Likewise.
9390         * lib/freadseek.c (freadptrinc): Likewise.
9391         * lib/freadahead.c (freadahead): Likewise.
9392         * lib/fpurge.c (fpurge): Likewise.
9393         * lib/fseeko.c (rpl_fseeko): Likewise.
9394         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9395         Reported by Jens Staal <staal1978@gmail.com>.
9396
9397 2012-02-02  Jim Meyering  <meyering@redhat.com>
9398
9399         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9400         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9401         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9402         not even to try to add the attribute.  Instead, add a pragma to suppress
9403         the suggestion/warning.
9404
9405 2012-01-31  Karl Berry  <karl@gnu.org>
9406
9407         setstate doc: typo.
9408         * doc/posix-functions/setstate.texi (setstate): { not (.
9409
9410 2012-01-31  Bruno Haible  <bruno@clisp.org>
9411
9412         popen: Make more robust on Windows.
9413         * lib/popen.c: On native Windows, use the _popen based code even if
9414         HAVE_POPEN is set.
9415         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9416         environment variable on native Windows.
9417
9418 2012-01-30  Bruno Haible  <bruno@clisp.org>
9419
9420         pclose: Fix typo.
9421         * lib/stdio.in.h (pclose): Fix typo in warning message.
9422
9423 2012-01-30  Bruno Haible  <bruno@clisp.org>
9424
9425         doc about getlogin_r, setstate.
9426         * doc/posix-functions/getlogin_r.texi: List the incompatible
9427         declaration problem under "not fixed by gnulib".
9428         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9429         problem on Solaris 11 and other platforms.
9430
9431 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9432             Bruno Haible  <bruno@clisp.org>
9433
9434         poll tests: Make test more robust.
9435         * tests/test-poll.c: Include macros.h.
9436         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9437         return value of various I/O operations.
9438         * modules/poll-tests (Files): Add tests/macros.h.
9439
9440 2012-01-30  Bruno Haible  <bruno@clisp.org>
9441
9442         sys_stat: Fix support for mingw64 and MSVC.
9443         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9444         header files already do it.
9445         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9446         stat itself.
9447         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9448
9449 2012-01-30  Bruno Haible  <bruno@clisp.org>
9450
9451         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9453         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9454
9455 2012-01-29  Bruno Haible  <bruno@clisp.org>
9456
9457         quotearg: Fix test failure on MacOS X 10.5.
9458         * tests/test-quotearg-simple.c: Include localcharset.h.
9459         (main): If the locale encoding is not ASCII, bypass the tests of
9460         locale_quoting_style and clocale_quoting_style.
9461         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9462
9463 2012-01-29  Jim Meyering  <meyering@redhat.com>
9464
9465         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9466         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9467         detect uses of canonicalize_file_name.
9468
9469 2012-01-28  Bruno Haible  <bruno@clisp.org>
9470
9471         test-framework-sh: Fix test failure with AIX 7.1 diff.
9472         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9473         in column 1, like 'diff -c' does.
9474         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9475         whether 'diff -u' is used. Instead, test whether the output contains
9476         some '@' character.
9477
9478 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9479
9480         strtoimax: eliminate need for stdint.h, inttypes.h checks
9481         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9482         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9483         the prerequisites for a recently-introduced strtoimax test.
9484         I guess this might cause strtoimax to be replaced when not
9485         strictly necessary on older hosts, but this shouldn't introduce
9486         any bugs and it should make Emacs 'configure' faster on typical
9487         modern hosts.  Problem discovered when importing the latest gnulib
9488         to an Emacs test version.
9489         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9490
9491 2012-01-28  Bruno Haible  <bruno@clisp.org>
9492
9493         sys_time: Override 'struct timeval' on some native Windows platforms.
9494         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9495         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9496         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9497         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9498         needs to be overridden.
9499         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9500         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9501         * tests/test-sys_select.c: Check that the tv_sec member has the same
9502         size as a 'time_t'.
9503         * tests/test-sys_time.c: Likewise.
9504         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9505         is set, set also REPLACE_GETTIMEOFDAY.
9506         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9507         convert the resulting 'struct timeval' before returning.
9508         * lib/select.c: Include <sys/time.h>.
9509         (select, timeval): Undefine at the right place.
9510         * modules/select (Depends-on): Add sys_time.
9511         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9512         some Windows platforms.
9513         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9514
9515 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9516
9517         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9518         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9519         an integer.
9520         * lib/fcntl.c (dupfd): Likewise.
9521         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9522
9523 2012-01-28  Bruno Haible  <bruno@clisp.org>
9524
9525         fcntl: Avoid compilation error on native Windows.
9526         * modules/fcntl (Depends-on): Add 'close'.
9527
9528 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9529
9530         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9531         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9532         pointer to an integer.
9533         * lib/poll.c (IsConsoleHandle): Likewise.
9534         * lib/isatty.c (IsConsoleHandle): Likewise.
9535
9536 2012-01-28  Jim Meyering  <meyering@redhat.com>
9537
9538         doc: clarify README-release
9539         * top/README-release: Clarify: you should make a point to have
9540         the latest stable versions of build tools in your PATH, and the
9541         reference to buildreq is solely for its list of tool names, not
9542         for its minimal-functional version numbers.
9543         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9544
9545         maint.mk: use more readable (yet functionally equivalent) quoting
9546         It is common to quote a single quote in a single quoted string like
9547         this:  '...'\''...'.  Unless you know the idiom, that looks like
9548         gibberish, so prefer to double-quote the string when possible.
9549         Then you can use a more readable, lone single quote: "...'..."
9550         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9551         "don't" is more readable than the equivalent 'don'\''t'.
9552         (sc_cast_of_x_alloc_return_value): Likewise.
9553         (sc_cast_of_alloca_return_value): Likewise.
9554         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9555         rather than '\'':'\''.
9556
9557 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9558
9559         stdalign: relax _Alignof and tighten _Alignas test
9560         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9561         as it was too strict: alignof must divide offsetof, but it need
9562         not equal offsetof.  Inspired by Joseph S. Myers's comment
9563         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9564         Conversely, tighten the _Alignas test a bit, as the resulting
9565         alignment must be exactly 8.
9566
9567 2012-01-27  Bruno Haible  <bruno@clisp.org>
9568
9569         stdalign: Document the last change.
9570         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9571
9572 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9573
9574         stdalign: check that alignof and offsetof are consistent
9575         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9576         Problem reported for gnulib by Richard W.M. Jones in
9577         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9578
9579 2012-01-27  Jim Meyering  <meyering@redhat.com>
9580
9581         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9582         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9583         convert a sequence with gaps to the minimal containing range.
9584         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9585         * tests/test-update-copyright.sh: Test for this.
9586         The FSF confirmed it is ok to do this, assuming there is at
9587         least one significant change per year in the affected range:
9588         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9589
9590 2012-01-26  Bruno Haible  <bruno@clisp.org>
9591
9592         pipe2: refine doc about thread-safety
9593         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9594         multithread-safety problem.
9595         * doc/glibc-functions/accept4.texi: Likewise.
9596
9597 2012-01-26  Bruno Haible  <bruno@clisp.org>
9598
9599         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9600         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9601         In the test program, include <fcntl.h>, for O_RDONLY.
9602
9603 2012-01-26  Eric Blake  <eblake@redhat.com>
9604
9605         pipe2: document lack of thread-safety in replacement
9606         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9607         issue in replacement.
9608         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9609         Based on a report by Eric Wong.
9610
9611 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9612             Bruno Haible  <bruno@clisp.org>
9613
9614         malloca: Avoid warnings on x86_64 mingw64.
9615         * lib/malloca.c: Include <stdint.h>.
9616         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9617         * modules/malloca (Depends-on): Add stdint.
9618         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9619
9620 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9621
9622         obstack: remove __STDC__ conditionals
9623         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9624         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9625         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9626         m4/include_next.m4 as the only gnulib-maintained places that still
9627         refer to __STDC__.
9628
9629 2012-01-24  Bruno Haible  <bruno@clisp.org>
9630
9631         havelib: Modern quoting.
9632         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9633         the recent change to the GNU coding standards.
9634
9635 2012-01-24  Bruno Haible  <bruno@clisp.org>
9636
9637         stdint: Improve support for Android.
9638         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9639         Reported by Simon Josefsson <simon@josefsson.org>.
9640
9641 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9642
9643         doc: omit trailing empty lines from INSTALL etc.
9644         * doc/Makefile (INSTALL): Omit trailing empty lines.
9645         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9646         omit trailing empty lines.  This simplifies the build procedure.
9647
9648 2012-01-23  Jim Meyering  <meyering@redhat.com>
9649
9650         tests: avoid spurious warnings about gl_sockets_startup
9651         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9652         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9653         reporting a "statement with no effect".
9654         * tests/test-accept.c (main): Mark as "(void)".
9655         * tests/test-accept4.c (main): Likewise.
9656         * tests/test-bind.c (main): Likewise.
9657         * tests/test-connect.c (main): Likewise.
9658         * tests/test-getpeername.c (main): Likewise.
9659         * tests/test-getsockname.c (main): Likewise.
9660         * tests/test-getsockopt.c (main): Likewise.
9661         * tests/test-listen.c (main): Likewise.
9662         * tests/test-recv.c (main): Likewise.
9663         * tests/test-recvfrom.c (main): Likewise.
9664         * tests/test-send.c (main): Likewise.
9665         * tests/test-sendto.c (main): Likewise.
9666         * tests/test-setsockopt.c (main): Likewise.
9667         * tests/test-shutdown.c (main): Likewise.
9668
9669 2012-01-21  Bruno Haible  <bruno@clisp.org>
9670
9671         locale-fr.m4: Fix for Android.
9672         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9673         failure of the test program on Bionic libc.
9674
9675 2012-01-21  Jim Meyering  <meyering@redhat.com>
9676
9677         bootstrap: fail when bootstrap_post_import_hook fails
9678         Otherwise, it's far too easy to miss diagnostics emitted
9679         between gnulib-tool's output and that of running configure.
9680         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9681
9682 2012-01-17  Jim Meyering  <meyering@redhat.com>
9683
9684         maint: enable sc_trailing_blank
9685         * build-aux/pmccabe.css: Remove trailing blanks.
9686         * doc/acl-cygwin.txt: Likewise.
9687         * doc/gnu-oids.texi: Likewise
9688         * cfg.mk: Enable sc_trailing_blank.
9689         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9690
9691 2012-01-17  Jim Meyering  <meyering@redhat.com>
9692
9693         maint: enable sc_prohibit_openat_without_use
9694         * cfg.mk: Enable sc_prohibit_openat_without_use.
9695         Exempt lib/selinux-at.c.
9696
9697 2012-01-17  Jim Meyering  <meyering@redhat.com>
9698
9699         maint: enable sc_prohibit_cloexec_without_use
9700         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9701         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9702
9703 2012-01-17  Jim Meyering  <meyering@redhat.com>
9704
9705         maint: enable sc_prohibit_intprops_without_use
9706         * cfg.mk: Enable sc_prohibit_intprops_without_use
9707         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9708
9709 2012-01-17  Jim Meyering  <meyering@redhat.com>
9710
9711         maint: enable sc_prohibit_hash_pjw_without_use
9712         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9713         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9714         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9715         following " (".
9716
9717 2012-01-17  Jim Meyering  <meyering@redhat.com>
9718
9719         maint: enable double-word-prohibiting rule
9720         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9721         Exempt three files.
9722
9723 2012-01-17  Jim Meyering  <meyering@redhat.com>
9724
9725         maint: remove empty lines at EOF, but excluding modules/*
9726         Apply syntax rules at home as well as abroad.  Most changes
9727         were induced by running this:
9728           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9729             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9730             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9731         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9732         Exempt modules/* and two binary files.
9733         Also exempt doc/INSTALL*, per request from Bruno Haible.
9734         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9735         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9736         * doc/Copyright/request-assign.future: Likewise.
9737         * doc/Copyright/request-disclaim.changes: Likewise.
9738         * doc/INSTALL: Likewise.
9739         * doc/INSTALL.ISO: Likewise.
9740         * doc/INSTALL.UTF-8: Likewise.
9741         * doc/acl-cygwin.txt: Likewise.
9742         * doc/acl-resources.txt: Likewise.
9743         * doc/fdl-1.2.texi: Likewise.
9744         * doc/fdl-1.3.texi: Likewise.
9745         * doc/fdl.texi: Likewise.
9746         * lib/argp-pin.c: Likewise.
9747         * lib/round.c: Likewise.
9748         * lib/unicase/u16-totitle.c: Likewise.
9749         * lib/unictype/block_test.c: Likewise.
9750         * lib/uninorm/canonical-decomposition.c: Likewise.
9751         * m4/README: Likewise.
9752         * m4/relocatable-lib.m4: Likewise.
9753         * tests/test-isnand-nolibm.c: Likewise.
9754         * tests/test-isnand.c: Likewise.
9755         * tests/uninorm/NormalizationTest.txt: Likewise.
9756
9757 2012-01-17  Jim Meyering  <meyering@redhat.com>
9758
9759         maint: add framework to run syntax-check rules against gnulib sources
9760         * cfg.mk: New file, to disable all currently-failing tests.
9761         We'll enable them one by one, as they are made to pass.
9762         * Makefile (sc_maint): New rule.
9763
9764 2012-01-21  Bruno Haible  <bruno@clisp.org>
9765
9766         stdint: Add support for Android.
9767         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9768         include the system's <stdint.h>.
9769         Reported by Simon Josefsson <simon@josefsson.org>.
9770
9771 2012-01-19  Jim Meyering  <meyering@redhat.com>
9772
9773         bootstrap: add bootstrap_post_import_hook
9774         Bison does still need something like the gnulib_mk_hook whose
9775         invocation I had to remove along with slurp in commit 767ccd40.
9776         Technically, we could get along without it, but doing so would
9777         have required living with a warning and a mandatory post-bootstrap
9778         automake rerun.
9779         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9780         (bootstrap_post_import_hook): New function.
9781         Invoke it after gnulib-tool --import and before autoreconf.
9782
9783 2012-01-18  Jim Meyering  <meyering@redhat.com>
9784
9785         gitlog-to-changelog: don't use "no_"-prefixed variable name
9786         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9787         to enable both --cluster and --no-cluster.  Change variable name,
9788         s/\$no_cluster/$cluster/, and reverse usage to match.
9789
9790         gitlog-to-changelog: use "||", not "or" in expressions
9791         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9792         expressions.
9793
9794 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9795
9796         gitlog-to-changelog: new option --no-cluster
9797         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9798         clustering of adjacent commit messages.
9799
9800 2012-01-17  Jim Meyering  <meyering@redhat.com>
9801
9802         maint: spell file systems with two words, not one
9803         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9804         two words, not one.
9805
9806 2012-01-16  Jim Meyering  <meyering@redhat.com>
9807
9808         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9809         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9810
9811 2012-01-16  Eric Blake  <eblake@redhat.com>
9812
9813         bootstrap: cater to autoconf 2.59
9814         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9815         is not available.
9816
9817         bootstrap: properly check for libtool
9818         * build-aux/bootstrap (libtoolize): Also run libtool when older
9819         usage is detected.
9820
9821 2012-01-15  Bruno Haible  <bruno@clisp.org>
9822
9823         Improve support for MSVC 9.
9824         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9825         clashes on MSVC.
9826         * lib/fcntl.in.h: Likewise.
9827         * lib/stdlib.in.h: Likewise.
9828         * lib/sys_stat.in.h: Likewise.
9829
9830 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9831
9832         gnupload: we hold the master copy of this script now
9833         For motivation and more information, see:
9834         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9835         * build-aux/gnupload: Make it clear in the heading comments that the
9836         master copy of this file is maintained by gnulib.  Since we are at
9837         it, bump its copyright year and ...
9838         ($scriptversion): ... the date in its version.
9839         ($usage): Patches and bug reports should be sent to the gnulib list,
9840         not the automake one.
9841         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9842         anymore.
9843
9844 2012-01-15  Bruno Haible  <bruno@clisp.org>
9845
9846         Fix module 'random'.
9847         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9848         initstate, setstate are declared.
9849
9850 2012-01-14  Bruno Haible  <bruno@clisp.org>
9851
9852         Tests for module 'random'.
9853         * modules/random-tests: New file.
9854         * tests/test-random.c: New file, based on tests/test-random_r.c.
9855
9856         New module 'random'.
9857         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9858         declarations.
9859         * lib/random.c: New file, based on glibc/stdlib/random.c.
9860         * m4/random.m4: New file.
9861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9862         HAVE_RANDOM.
9863         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9864         * modules/random: New file.
9865         * config/srclist.txt: Add an entry for random.c.
9866         * doc/posix-functions/random.texi: Mention the 'random' module.
9867         * doc/posix-functions/initstate.texi: Likewise.
9868         * doc/posix-functions/setstate.texi: Likewise.
9869         * doc/posix-functions/srandom.texi: Likewise.
9870
9871 2012-01-12  Bruno Haible  <bruno@clisp.org>
9872
9873         random_r: Use common idioms.
9874         * lib/random_r.c: Include <stdlib.h> first.
9875
9876         random_r: Override incompatible API on AIX, OSF/1.
9877         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9878         Override the system function if REPLACE_RANDOM_R is 1.
9879         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9880         and OSF/1, set REPLACE_RANDOM_R.
9881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9882         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9883         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9884         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9885         * doc/glibc-functions/random_r.texi: Likewise.
9886         * doc/glibc-functions/setstate_r.texi: Likewise.
9887
9888         random_r: Support for MSVC 9.
9889         * lib/random_r.c: Include stdint.h, not inttypes.h.
9890
9891 2012-01-12  Eric Blake  <eblake@redhat.com>
9892
9893         inet_ntop: guard extra work by IF_LINT
9894         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9895         better code generation when not checking for warnings.
9896         Suggested by Paul Eggert and Jim Meyering.
9897
9898         strptime: fix regression on mingw
9899         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9900         Fix regression.  Reported by Bruno Haible.
9901
9902 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9903             Bruno Haible  <bruno@clisp.org>
9904
9905         copy-file: add error-code-returning variant.
9906         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9907         (qcopy_file_preserving): New declaration.
9908         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9909         copy_file_preserving. Change return type to 'int'. Don't emit an error
9910         message here.
9911         (copy_file_preserving): New function.
9912         * tests/test-copy-file.c: Include <stdlib.h>.
9913         (main): Test qcopy_file_preserving if the environment variable
9914         NO_STDERR_OUTPUT is set.
9915         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9916         with NO_STDERR_OUTPUT
9917         * tests/test-copy-file-2.sh: Likewise.
9918
9919 2012-01-10  Bruno Haible  <bruno@clisp.org>
9920
9921         copy-file: Use 'quote' module consistently.
9922         * lib/copy-file.c (copy_file_preserving): Use quote().
9923
9924         copy-file: Refactor.
9925         * lib/copy-file.c: Include quote.h.
9926         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9927         message here.
9928         * modules/copy-file (Depends-on): Add quote.
9929
9930         acl: Export qcopy_acl.
9931         * lib/acl.h (qcopy_acl): New declaration.
9932         * lib/copy-acl.c (qcopy_acl): Make non-static.
9933
9934         acl: Rename a local variable.
9935         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9936
9937         acl: Align return values of copy_acl and qcopy_acl.
9938         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9939         maybe < -1.
9940
9941 2012-01-11  Eric Blake  <eblake@redhat.com>
9942
9943         strptime: silence gcc warnings
9944         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9945         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9946         Reported by Daniel P. Berrange.
9947
9948         inet_ntop: silence gcc warning
9949         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9950         Reported by Daniel P. Berrange.
9951
9952 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9953
9954         getloadavg test: skip the test on GNU/Linux without /proc mounted
9955         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9956         file.  When /proc is not mounted, it always fails with ENOENT.
9957         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9958         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9959
9960 2012-01-10  Bruno Haible  <bruno@clisp.org>
9961
9962         regex: Avoid link error on MSVC 9.
9963         * modules/regex (Depends-on): Add wctype.
9964
9965 2012-01-10  Bruno Haible  <bruno@clisp.org>
9966
9967         doc: Mention --with-tests option.
9968         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9969         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9970         --with-tests.
9971         Reported by Reuben Thomas.
9972
9973 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9974
9975         users.txt: order package names lexicographically.
9976         * users.txt: Order package names lexicographically.
9977
9978 2012-01-10  Jim Meyering  <meyering@redhat.com>
9979
9980         maint.mk: fix description in comment
9981         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9982
9983         ignore-value: remove deprecated ignore_ptr function
9984         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9985         * NEWS: Note this.
9986
9987 2012-01-09  Jim Meyering  <meyering@redhat.com>
9988
9989         test-init.sh: avoid a subshell
9990         * tests/test-init.sh: Remove protective subshell.
9991         Suggested by Bernhard Voelker.  While a subshell is normally
9992         required to protect against older shells (Solaris, FreeBSD) that
9993         warn about a missing program before performing redirection, the
9994         shell-selection tests performed by init.sh probably exclude any
9995         offending shell.
9996
9997 2012-01-08  Bruno Haible  <bruno@clisp.org>
9998
9999         setlocale tests: Avoid test failure on Solaris 11 2011-11.
10000         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
10001         variable.
10002
10003 2012-01-08  Bruno Haible  <bruno@clisp.org>
10004
10005         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
10006         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10007         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10008         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
10009         macro.
10010         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
10011         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10012         * lib/spawn_faction_addopen.c: Add workaround implementation if
10013         HAVE_WORKING_POSIX_SPAWN.
10014         * modules/spawn (Makefile): Substitute
10015         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10016         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
10017         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
10018         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10019         (Depends-on): Update conditions.
10020         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10021         the Solaris 11 bug.
10022
10023 2012-01-08  Bruno Haible  <bruno@clisp.org>
10024
10025         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
10026         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10027         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10028         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
10029         macro.
10030         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
10031         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10032         * lib/spawn_faction_adddup2.c: Add workaround implementation if
10033         HAVE_WORKING_POSIX_SPAWN.
10034         * modules/spawn (Makefile): Substitute
10035         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10036         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
10037         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
10038         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10039         (Depends-on): Update conditions.
10040         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10041         the Solaris 11 bug.
10042
10043 2012-01-08  Bruno Haible  <bruno@clisp.org>
10044
10045         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
10046         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10047         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10048         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
10049         HAVE_WORKING_POSIX_SPAWN.
10050         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
10051         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
10052         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10053         * lib/spawn_faction_addclose.c: Add workaround implementation if
10054         HAVE_WORKING_POSIX_SPAWN.
10055         * modules/spawn (Makefile): Substitute
10056         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10057         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
10058         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
10059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10060         (Depends-on): Update conditions.
10061         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10062         the Solaris 11 bug.
10063
10064 2012-01-08  Bruno Haible  <bruno@clisp.org>
10065
10066         doc: Update for Solaris 11 2011-11.
10067         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
10068         * m4/printf.m4: Update comments.
10069
10070 2012-01-08  Bruno Haible  <bruno@clisp.org>
10071
10072         mktime: Avoid compilation error on Solaris 11.
10073         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
10074
10075 2012-01-08  Bruno Haible  <bruno@clisp.org>
10076
10077         doc: Small fix.
10078         * doc/posix-headers/nl_types.texi: Correct platforms list.
10079
10080 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10081
10082         Add lgpl-3.0 module.
10083         * MODULES.html.sh (Support for building documentation): Add
10084         lgpl-3.0.
10085         * modules/lgpl-3.0: New file.
10086
10087 2012-01-08  Jim Meyering  <meyering@redhat.com>
10088
10089         select.c: indent with spaces, not TABs
10090         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10091
10092 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10093
10094         quotearg: do not use grave accent for left quote
10095         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10096         locale_quoting_style.
10097         (quotearg_buffer_restyled): Fix example.
10098         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10099
10100 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10101
10102         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10103         Most programs do not have translation catalogs for English and much
10104         less separate catalogs for British and American English.  Drop the
10105         suggestion to translators about these two, and provide it
10106         automatically for Unicode locales.  Like most programs, even those
10107         using American English, we use single quotation marks.  This conflicts
10108         with the American typographic convention, but works better when you
10109         cite the entire error message within double quotes.  It also tries not
10110         to clash with established practice and with what non-gnulib programs
10111         will usually do.
10112         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10113         using an UTF-8 or GB-18030 locale.  The list of other locales with
10114         quotes was provided by Bruno Haible.
10115         (quotearg_buffer_restyled): Adjust instructions to translators.
10116         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10117         text, since this would be wrong when using Unicode.
10118         * modules/quotearg: Depend on c-strcaseeq.
10119
10120 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10121
10122         quotearg: fix Wikipedia link
10123         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10124
10125 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10126
10127         Fix for mingw with MSVC9.
10128         * m4/ld-version-script.m4: Check that compiler rejects version
10129         scripts with syntax errors.  Reported by Bruno Haible
10130         <bruno@clisp.org>.
10131
10132 2012-01-06  Bruno Haible  <bruno@clisp.org>
10133
10134         Talk about "native Windows API", not "Woe32".
10135         * lib/accept4.c: Update comments to mention native Windows.
10136         * lib/execute.c: Likewise.
10137         * lib/fatal-signal.c: Likewise.
10138         * lib/localcharset.c: Likewise.
10139         * lib/nanosleep.c: Likewise.
10140         * lib/nl_langinfo.c: Likewise.
10141         * lib/pclose.c: Likewise.
10142         * lib/pipe-filter-gi.c: Likewise.
10143         * lib/pipe-filter-ii.c: Likewise.
10144         * lib/pipe.c: Likewise.
10145         * lib/pipe2.c: Likewise.
10146         * lib/popen.c: Likewise.
10147         * lib/progreloc.c: Likewise.
10148         * lib/relocatable.c: Likewise.
10149         * lib/sigaction.c: Likewise.
10150         * lib/sigprocmask.c: Likewise.
10151         * lib/spawn-pipe.h: Likewise.
10152         * lib/spawn-pipe.c: Likewise.
10153         * lib/spawni.c: Likewise.
10154         * lib/stat-time.h: Likewise.
10155         * lib/w32spawn.h: Likewise.
10156         * tests/test-isatty.c: Likewise.
10157         * lib/config.charset: More comments.
10158         * doc/gnulib-intro.texi: Mention native Windows.
10159         * doc/posix-functions/_Exit_C99.texi: Likewise.
10160         * doc/posix-headers/fcntl.texi: Likewise.
10161
10162 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10163
10164         argp: Avoid crash if translator uses % characters in a translation.
10165         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10166         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10167
10168 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10169
10170         doc: C11 and C++11 are now official
10171         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10172         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10173         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10174         * modules/stdalign:
10175         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10176
10177 2012-01-06  Bruno Haible  <bruno@clisp.org>
10178
10179         uc-is-grapheme-break tests: Tweak.
10180         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10181         message.
10182
10183 2012-01-06  Bruno Haible  <bruno@clisp.org>
10184
10185         test-init.sh: correct the test for diff -u
10186         * tests/test-init.sh: Also redirect stdout to /dev/null.
10187
10188 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10189
10190         Use ', not `, for quoting output.
10191         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10192         (print_changelog_deltas, get_tool_versions, main program):
10193         * build-aux/git-version-gen:
10194         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10195         * build-aux/move-if-change (help):
10196         * build-aux/useless-if-before-free (usage, main program):
10197         * check-module (parse_module_file, usage)
10198         (find_included_lib_files, check_module):
10199         * lib/argmatch.c (main) [TEST]:
10200         * lib/argp-help.c (_help):
10201         * lib/getopt1.c (main) [TEST]:
10202         * lib/git-merge-changelog.c (usage):
10203         * lib/xstrtol-error.c (xstrtol_error):
10204         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10205         * m4/argz.m4 (gl_FUNC_ARGZ):
10206         * m4/bison.m4 (gl_BISON):
10207         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10208         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10209         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10210         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10211         * m4/gc-random.m4 (gl_GC_RANDOM):
10212         * m4/intl.m4 (gt_CHECK_DECL):
10213         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10214         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10215         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10216         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10217         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10218         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10219         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10220         * tests/test-dirname.c (main):
10221         * tests/test-getpass.c (main):
10222         * tests/test-iconvme.c (main):
10223         * tests/test-parse-datetime.c (LOG):
10224         * tests/test-xstrtoimax.sh:
10225         * tests/test-xstrtol.sh:
10226         * tests/test-xstrtoll.sh:
10227         * tests/test-xstrtoumax.sh:
10228         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10229         * top/GNUmakefile (abort-due-to-no-makefile):
10230         Quote 'like this', not `like this', as per the recent change to
10231         the GNU coding standards.
10232
10233 2012-01-05  Bruno Haible  <bruno@clisp.org>
10234
10235         strtoimax: Don't force a replacement on systems where intmax_t is int.
10236         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10237         'intmax_t' is not larger than 'int'.
10238         Reported by Pádraig Brady <P@draigBrady.com>.
10239
10240 2012-01-05  Bruno Haible  <bruno@clisp.org>
10241
10242         doc: Mention NetBSD bugs.
10243         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10244         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10245
10246 2012-01-05  Bruno Haible  <bruno@clisp.org>
10247
10248         strtoumax tests: Enhance tests.
10249         * tests/test-strtoumax.c (main): Add tests for large values.
10250
10251 2012-01-05  Bruno Haible  <bruno@clisp.org>
10252
10253         strtoimax: Work around AIX 5.1 bug.
10254         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10255         definition.
10256         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10257         Set HAVE_STRTOIMAX.
10258         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10259         REPLACE_STRTOIMAX.
10260         * modules/inttypes-incomplete (Makefile.am): Substitute
10261         REPLACE_STRTOIMAX.
10262         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10263         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10264         (Depends-on): Update conditions.
10265         * tests/test-strtoimax.c (main): Add tests for large values.
10266         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10267
10268 2012-01-05  Bruno Haible  <bruno@clisp.org>
10269
10270         inttypes: Modernize.
10271         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10272         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10273         (Makefile.am): Update inttypes.h rule.
10274
10275 2012-01-05  Jim Meyering  <meyering@redhat.com>
10276
10277         init.sh: don't waste a subshell just to redirect stderr
10278         * tests/init.sh: In testing for diff -u and diff -c, use a
10279         stderr-redirecting exec inside `...` rather than a subshell.
10280
10281         test-init.sh: avoid failure on HP-UX 11.00
10282         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10283         resolves to diff -c or cmp.  Reported by Bruno Haible.
10284
10285 2012-01-05  Bruno Haible  <bruno@clisp.org>
10286
10287         Tests for module 'strtoull'.
10288         * modules/strtoull-tests: New file.
10289         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10290
10291 2012-01-05  Bruno Haible  <bruno@clisp.org>
10292
10293         Tests for module 'strtoll'.
10294         * modules/strtoll-tests: New file.
10295         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10296
10297 2012-01-05  Bruno Haible  <bruno@clisp.org>
10298
10299         Tests for module 'strtoul'.
10300         * modules/strtoul-tests: New file.
10301         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10302
10303 2012-01-05  Bruno Haible  <bruno@clisp.org>
10304
10305         Tests for module 'strtol'.
10306         * modules/strtol-tests: New file.
10307         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10308
10309 2012-01-04  Jim Meyering  <meyering@redhat.com>
10310
10311         test-init.sh: accommodate Solaris 5.10's different diff -u output
10312         * tests/test-init.sh: Also exempt @@ lines from the comparison
10313         of diff output, since Solaris 5.10 and GNU diff formats differ.
10314         Reported by Stefano Lattarini.
10315
10316 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10317
10318         test-posixtm: don't assume signed integer wraparound
10319         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10320         after signed integer overflow.  Inspired by (though it may not
10321         fix) Bruno Haible's bug report in
10322         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10323
10324         Spell out "Windows 9x" and "Windows XP".
10325         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10326         "Windows 9x" and "WinXP" with "Windows XP".
10327
10328 2012-01-04  Jim Meyering  <meyering@redhat.com>
10329
10330         test-vc-list-files-cvs.sh: remove obsolete comment
10331         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10332         double exit.  Now that's all encapsulated via skip_ and Exit.
10333
10334 2012-01-04  Bruno Haible  <bruno@clisp.org>
10335
10336         Talk about "native Windows API", not "Win32".
10337         * lib/classpath.c: Update comments to mention native Windows.
10338         * lib/csharpexec.c: Likewise.
10339         * lib/dup2.c: Likewise.
10340         * lib/error.c: Likewise.
10341         * lib/fcntl.c: Likewise.
10342         * lib/filename.h: Likewise.
10343         * lib/findprog.c: Likewise.
10344         * lib/get-rusage-as.c: Likewise.
10345         * lib/get-rusage-data.c: Likewise.
10346         * lib/getpagesize.c: Likewise.
10347         * lib/javaexec.c: Likewise.
10348         * lib/msvc-inval.c: Likewise.
10349         * lib/msvc-nothrow.c: Likewise.
10350         * lib/nanosleep.c: Likewise.
10351         * lib/nonblocking.c: Likewise.
10352         * lib/printf-parse.c: Likewise.
10353         * lib/setlocale.c: Likewise.
10354         * lib/sigaction.c: Likewise.
10355         * lib/strerror_r.c: Likewise.
10356         * lib/tmpdir.c: Likewise.
10357         * lib/vasnprintf.c: Likewise.
10358         * lib/w32spawn.h: Likewise.
10359         * lib/waitpid.c: Likewise.
10360         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10361         * m4/locale-ar.m4: Likewise.
10362         * m4/locale-fr.m4: Likewise.
10363         * m4/locale-ja.m4: Likewise.
10364         * m4/locale-tr.m4: Likewise.
10365         * m4/locale-zh.m4: Likewise.
10366         * m4/printf.m4: Likewise.
10367         * tests/test-cloexec.c: Likewise.
10368         * tests/test-copy-acl.sh: Likewise.
10369         * tests/test-copy-file.sh: Likewise.
10370         * tests/test-file-has-acl.sh: Likewise.
10371         * tests/test-set-mode-acl.sh: Likewise.
10372         * tests/test-dup-safer.c: Likewise.
10373         * tests/test-dup2.c: Likewise.
10374         * tests/test-dup3.c: Likewise.
10375         * tests/test-fcntl.c: Likewise.
10376         * tests/test-nonblocking-pipe.h: Likewise.
10377         * tests/test-nonblocking-socket.h: Likewise.
10378         * tests/test-pipe.c: Likewise.
10379         * tests/test-pipe2.c: Likewise.
10380         * tests/test-spawn-pipe-child.c: Likewise.
10381         * doc/acl-resources.txt: Likewise.
10382         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10383         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10384         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10385         * lib/localcharset.c: Update comments to mention native Windows.
10386         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10387         * lib/localename.c: Likewise.
10388         * lib/progreloc.c: Likewise.
10389         * lib/relocatable.c: Likewise.
10390         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10391         (windows_compute_revents): Renamed from win32_compute_revents.
10392         (windows_compute_revents_socket): Renamed from
10393         win32_compute_revents_socket.
10394         * lib/select.c: Update comments to mention native Windows.
10395         (windows_poll_handle): Renamed from win32_poll_handle.
10396         * m4/threadlib.m4: Update comments to mention native Windows.
10397         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10398         --enable-threads=windows instead of --enable-threads=win32. Set
10399         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10400         * lib/glthread/lock.h: Update comments to mention native Windows.
10401         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10402         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10403         USE_WIN32_THREADS.
10404         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10405         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10406         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10407         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10408         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10409         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10410         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10411         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10412         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10413         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10414         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10415         * tests/test-tls.c: Likewise.
10416         Rationale:
10417         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10418         on both 32-bit and 64-bit Windows systems.
10419         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10420         line of distinction is between "native Windows" on one side and Unix/
10421         POSIX systems on the other side. More details in
10422         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10423         Suggested by Paul Eggert.
10424
10425 2012-01-03  Bruno Haible  <bruno@clisp.org>
10426
10427         isatty: Support for MSVC 9.
10428         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10429         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10430         (_isatty_nothrow): New function.
10431         (isatty): Use it instead of _isatty.
10432         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10433         * lib/poll.c (IsConsoleHandle): Likewise.
10434         * lib/select.c (IsConsoleHandle): Likewise.
10435         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10436         (gl_PREREQ_ISATTY): New macro.
10437         * modules/isatty (Depends-on): Add msvc-inval.
10438         (configure.ac): Invoke gl_PREREQ_ISATTY.
10439
10440 2012-01-03  Jim Meyering  <meyering@redhat.com>
10441
10442         maint.mk: remove temporary transition aid from over 1.5 years ago
10443         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10444         purpose was to aid in the transition (avoiding silent malfunction)
10445         from that old name to the new _sc_search_regexp.  This shim was
10446         added by commit 219c504b.
10447
10448         init.sh: do not try to accommodate compare arguments starting with "-"
10449         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10450         compare arguments that start with "-".  Besides, we do not worry
10451         about this when invoking diff or cmp; why start now with sed?
10452         Using "--" to separate options from argument would trigger sed
10453         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10454         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10455
10456 2012-01-02  Bruno Haible  <bruno@clisp.org>
10457
10458         Enhance tests for module 'isatty'.
10459         * modules/isatty-tests (Depends-on): Add pipe-posix.
10460         * tests/test-isatty.c: Include <fcntl.h>.
10461         (DEV_NULL): New macro.
10462         (main): Test the resut of isatty() also on regular files, pipes, and
10463         /dev/null.
10464
10465         New module 'isatty'.
10466         * lib/unistd.in.h (isatty): New declaration.
10467         * lib/isatty.c: New file, based on an idea of
10468         Bastien Roucariès <roucaries.bastien@gmail.com>.
10469         * m4/isatty.m4: New file.
10470         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10471         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10472         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10473         REPLACE_ISATTY.
10474         * modules/isatty: New file.
10475         * doc/posix-functions/isatty.texi: Mention the new module.
10476         Suggested by Paolo Bonzini.
10477
10478 2012-01-02  Bruno Haible  <bruno@clisp.org>
10479
10480         canonicalize: Tweak 2011-12-29 commit.
10481         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10482         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10483
10484 2012-01-02  Jim Meyering  <meyering@redhat.com>
10485
10486         gitlog-to-changelog: describe input syntax in --help output
10487         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10488
10489         gitlog-to-changelog: fix typo in --help: show backslash before email @
10490         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10491         in sources, but not in actual output.
10492
10493 2011-12-30  Jim Meyering  <meyering@redhat.com>
10494
10495         gitlog-to-changelog: don't malfunction when name contains %-directive
10496         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10497         in a name string cause trouble.  E.g., with a user name of "%s",
10498         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10499
10500 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10501
10502         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10503         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10504         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10505         the "  (tiny change)" notation that is appended to the standard
10506         ChangeLog "date  name  email" header line.
10507
10508 2012-01-01  Jim Meyering  <meyering@redhat.com>
10509
10510         test-framework-sh: init.sh: fix "make dist" failure
10511         When using gnulib-tool's --with-tests option and any module that
10512         depends on test-framework-sh, "make dist" would fail due to the
10513         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10514         in the gltests directory, and not in the gllib/ directory.
10515         One way to work around that is to move the EXTRA_DIST += init.sh
10516         from the primary module to the -tests one:
10517         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10518         * modules/test-framework-sh (Makefile.am): ...not here.
10519         Reported by Tom G. Christensen in
10520         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10521
10522         version-etc: update copyright year reported by --version
10523         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10524
10525 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10526
10527         canonicalize: only stat() if required
10528         * lib/canonicalize.c (canonicalize_filename_mode):
10529         Avoid calling l?stat() when both CAN_MISSING,
10530         and CAN_NOLINKS are set, as we neither need
10531         to resolve symlinks or test component existence.
10532
10533 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10534
10535         doc: cover st_ino issues once; add OpenVMS etc.
10536         * doc/posix-functions/stat.texi (stat):
10537         * doc/posix-functions/lstat.texi (lstat):
10538         * doc/posix-functions/fstatat.texi (fstatat):
10539         * doc/posix-functions/fstat.texi (fstat):
10540         Move general 'struct stat' stuff to sys_stat.texi,
10541         leaving behind a pointer.
10542         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10543         Merge duplicate info about 'struct stat' problems into here.
10544         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10545         and suggest partial workarounds.
10546
10547         same-inode: port to OpenVMS
10548         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10549         three st_ino values.
10550
10551 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10552
10553         canonicalize: fix references to stat() and lstat()
10554         * lib/canonicalize.c (canonicalize_filename_mode):
10555         Ensure references always resolve to a replacement
10556         function if required (even via a macro).
10557
10558 2011-12-30  Jim Meyering  <meyering@redhat.com>
10559
10560         gitlog-to-changelog: remove a little duplication
10561         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10562         rather than twice.
10563
10564 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10565
10566         canonicalize: add support for not resolving symlinks
10567         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10568         indicate we don't want to follow symlinks.  Also
10569         provide CAN_MODE_MASK to aid setting these existing
10570         mutually exclusive values.
10571         * lib/canonicalize.c (canonicalize_filename_mode):
10572         Extract the flags from can_mode parameter, which
10573         are currently just used to select between stat()
10574         and lstat().  Also ensure that mutually exclusive
10575         values are flagged immediately as invalid.
10576         * tests/test-canonicalize.c: Verify symlinks are
10577         not followed, and that invalid flag combinations
10578         are diagnosed.
10579
10580 2011-12-25  Jim Meyering  <meyering@redhat.com>
10581
10582         gitlog-to-changelog: do not clump multi-paragraph entries
10583         Identical header lines (date,name,email+coauthors) are suppressed,
10584         thus putting all entries with those same characteristics under
10585         a single header.  However, when a log entry consists of two or
10586         more paragraphs, it may not be clear where it starts and ends.
10587         This change makes it so that such an entry is always separated
10588         from others by a header line, even when that header would
10589         otherwise be suppressed.
10590         * build-aux/gitlog-to-changelog: Implement the above.
10591         Inspired by a related request from Stefano Lattarini in
10592         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10593
10594 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10595
10596         announce-gen: fix `cmd' typo in diagnostic
10597         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10598         diagnostic: a missing '$' meant that the command was not output.
10599
10600 2011-12-23  Jim Meyering  <meyering@redhat.com>
10601
10602         test-framework-sh: distribute init.sh
10603         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10604         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10605         fail due to the lack of init.sh.
10606
10607         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10608         * modules/atexit-tests: Rather than listing tests/init.sh,
10609         now that there's a module for it, simply depend on that new module.
10610         * modules/closein-tests: Likewise.
10611         * modules/exclude-tests: Likewise.
10612         * modules/getcwd-tests: Likewise.
10613         * modules/perror-tests: Likewise.
10614         * modules/pread-tests: Likewise.
10615         * modules/pwrite-tests: Likewise.
10616         * modules/vc-list-files-tests: Likewise.
10617         * modules/verify-tests: Likewise.
10618         * modules/xalloc-die-tests: Likewise.
10619         * modules/xstrtoimax-tests: Likewise.
10620         * modules/xstrtol-tests: Likewise.
10621         * modules/xstrtoll-tests: Likewise.
10622         * modules/xstrtoumax-tests: Likewise.
10623         * modules/yesno-tests: Likewise.
10624
10625 2011-12-22  Jim Meyering  <meyering@redhat.com>
10626
10627         test-framework-sh: add minimal tests of init.sh's compare function
10628         * modules/test-framework-sh-tests: New file.
10629         * tests/test-init.sh: New file.
10630
10631         test-framework-sh: new module
10632         * modules/test-framework-sh: New file.
10633         * MODULES.html.sh (Support for maintaining and releasing projects):
10634         List it.
10635
10636         init.sh: do not emit simulated diff output to stderr
10637         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10638
10639 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10640
10641         .gitignore: ignore gnulib.dvi and regex.info
10642         * doc/.gitignore:add gnulib.dvi and regex.info
10643
10644 2011-12-22  Jim Meyering  <meyering@redhat.com>
10645
10646         init.sh: correct previous change
10647         * tests/init.sh (compare): My previous change was wrong.
10648         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10649
10650         init.sh: avoid unwarranted test failure when using "set -e"
10651         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10652         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10653         a use like "compare exp out" would get evoke an unconditional failure.
10654
10655 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10656
10657         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10658         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10659         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10660         autoreconf that did not.
10661         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10662         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10663
10664 2011-12-17  Jim Meyering  <meyering@redhat.com>
10665
10666         bootstrap: remove some now-unneeded code
10667         This script arose back when gnulib-tool was young.
10668         Since then, it has seen improvements that render much of this
10669         script unnecessary.  In particular, it can now make symlinks
10670         to the files it uses.  Also, I no longer see as much value in
10671         marking files as read-only via comments.
10672         If you relied on the symlink-creation feature of the preceding
10673         version of this script, you can get most of that functionality
10674         by adding the --symlink option to the definition of
10675         gnulib_tool_option_extras in your bootstrap.conf file.
10676         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10677         Run autopoint and libtoolize *before* gnulib-tool.
10678         After it, run an abbreviated autoreconf, rather than a loop around
10679         all tools.
10680         (slirp, bt_mark_as_generated): Remove functions.
10681
10682 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10683
10684         ftoastr: fix typo
10685         * lib/ftoastr.h: Fix misspelling in comment.
10686
10687 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10688
10689         * top/README-release: fix punctuation.
10690
10691 2011-12-17  Jim Meyering  <meyering@redhat.com>
10692
10693         bootstrap: correct the recent buildreq change
10694         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10695         had no effect.
10696         * build-aux/bootstrap (buildreq): Bracket each search term with
10697         "*...*", so that the shell "case" statement works as intended.
10698         Add comments.
10699
10700 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10701
10702         build: let bootstrap resort to wget when downloading .po files
10703         * build-aux/bootstrap (download_po_files): Fallback to wget when
10704         downloading the .po files via rsync fails.  This is necessary to
10705         bootstrap from behind a strict firewall.
10706
10707 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10708
10709         stdint: don't assume C++11 when compiling with g++
10710         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10712         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10713         work also in C++ before C++11, as that improperly inhibits
10714         generating a substitute stdint.h for that case.
10715
10716 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10717
10718         alloca: protect comment from gnulib-tool
10719         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10720         that gnulib-tool doesn't think it's a license, and munge it to
10721         say "GCC version 3".
10722
10723 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10724
10725         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10726         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10727         $(abs_top_builddir) instead of $(top_builddir).
10728
10729 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10730
10731         strftime-tests: also test nanoseconds
10732         * tests/test-strftime.c (T): Add a test of %N.
10733
10734 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10735
10736         inttypes, stdint: add C++11 support
10737         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10738         when including inttypes.h and stdint.h.  Support this change to
10739         the standard.
10740         * doc/posix-headers/inttypes.texi (inttypes.h):
10741         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10742         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10743         Define if not defined already, for the benefit of pre-C++11 hosts.
10744         Define the standard format macros (e.g., PRId8) always.
10745         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10746         Likewise, if __cpluspus.  Define the standard constant and limit
10747         macros (e.g., INT8_C, INT8_MAX) always.
10748         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10749         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10750         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10751         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10752         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10753         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10754         Likewise.
10755
10756 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10757
10758         nonblocking tests: Fix test failure on Linux/PPC.
10759         Suggested by Prerna Saxena in
10760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10761         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10762         Set to 1100000.
10763
10764 2011-12-12  Jim Meyering  <meyering@redhat.com>
10765
10766         argmatch: don't hard-code `' when listing valid option arguments
10767         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10768         use the quote function to add quotes.  Use fputs rather than
10769         fprintf for the format string with no format directive.
10770
10771 2011-12-07  Eric Blake  <eblake@redhat.com>
10772
10773         bootstrap: detect tools required by gnulib-tool
10774         * build-aux/bootstrap (buildreq): Provide minimum implicit
10775         dependencies.
10776         * DEPENDENCIES: Mention patch as a prereq.
10777
10778 2011-12-04  Bruno Haible  <bruno@clisp.org>
10779
10780         sethostname: Port to Windows platforms.
10781         * lib/sethostname.c: Provide an alternate implementation for Windows
10782         platforms.
10783         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10784         (main): Skip the test if sethostname() fails with EPERM. On Windows
10785         platforms, don't check the result of gethostname().
10786
10787 2011-12-04  Bruno Haible  <bruno@clisp.org>
10788             Jim Meyering  <meyering@redhat.com>
10789
10790         tests: Avoid spurious error message on platforms without mktemp program.
10791         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10792
10793 2011-12-04  Bruno Haible  <bruno@clisp.org>
10794
10795         sethostname: Fix documentation.
10796         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10797         "not fixed" section.
10798
10799 2011-12-03  Bruno Haible  <bruno@clisp.org>
10800
10801         gnulib-tool: Verify that the License field is present and non-empty.
10802         * gnulib-tool (func_get_license_raw): New function, extracted from
10803         func_get_license.
10804         (func_get_license): Use it. Warn if the module is not a test module and
10805         has no license.
10806         Suggested by Jim Meyering.
10807
10808 2011-12-03  Bruno Haible  <bruno@clisp.org>
10809
10810         sethostname tests: Fix link error on mingw.
10811         * tests/test-sethostname1.c: New file, extracted from
10812         tests/test-sethostname.c.
10813         * tests/test-sethostname2.c: New file, extracted from
10814         tests/test-sethostname.c.
10815         * tests/test-sethostname.c: Remove file.
10816         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10817         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10818         (Depends-on): Add gethostname.
10819         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10820         Link the latter with $(GETHOSTNAME_LIB).
10821
10822         sethostname tests: Fix compilation error on mingw.
10823         * tests/test-sethostname.c: Don't include <sys/types.h>.
10824         (geteuid): Use a dummy value without uid_t.
10825         * modules/sethostname-tests (Depends-on): Remove sys_types.
10826
10827         sethostname tests: Avoid a gcc warning.
10828         * tests/test-sethostname.c (main): Remove an unused variable.
10829
10830         Tweak last commit.
10831         * modules/sethostname-tests (Files): Sort by decreasing importance.
10832         (configure.ac): Check for geteuid.
10833         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10834         the test when there's nothing to test. Drop an unnecessary cast.
10835         Improve an error message. Verify that the final sethostname() call
10836         succeeds.
10837
10838 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10839
10840         Add a test suite for the sethostname module.
10841         * modules/sethostname-tests: New file.  A test program
10842         for the sethostname module.
10843         * tests/test-sethostname.c: Likewise.
10844
10845 2011-12-03  Bruno Haible  <bruno@clisp.org>
10846
10847         Tweak last commit.
10848         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10849         Fix preprocessor directives indentation. Fix typos.
10850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10851         * modules/unistd (Makefile): Likewise.
10852
10853 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10854
10855         Integrate the sethostname module into unistd.
10856         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10857         into the unistd.h header.
10858         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10859         preprocessor directives.
10860         * modules/unistd: Setup the Makefile substitutions of the
10861         SETHOSTNAME preprocessor directives.
10862
10863 2011-12-03  Bruno Haible  <bruno@clisp.org>
10864
10865         Tweak last commit.
10866         * lib/sethostname.c: Don't include <string.h>.
10867         (sethostname): No need to copy the argument string to the stack. Don't
10868         call clearerr. Preserve errno when fprintf failed.
10869         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10870         Don't invoke AC_REPLACE_FUNCS.
10871         * modules/sethostname (Link): Remove empty section.
10872         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10873         failure problem.
10874
10875 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10876
10877         New module 'sethostname'.
10878         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10879         for systems that lack it.
10880         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10881         sethostname declaration and function.
10882         * modules/sethostname: New file.  Define the sethostname module.
10883
10884 2011-12-03  Bruno Haible  <bruno@clisp.org>
10885
10886         Tweak last commit.
10887         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10888
10889 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10890
10891         Split the HOST_NAME_MAX detection into a separate m4 macro.
10892         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10893         macro so it can be used by the pending sethostname module.
10894
10895 2011-12-03  Bruno Haible  <bruno@clisp.org>
10896
10897         Fix module descriptions syntax.
10898         * modules/argv-iter (License): Fix syntax.
10899         * modules/di-set (License): Likewise.
10900         * modules/ino-map (License): Likewise.
10901         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10902
10903 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10904
10905         stdalign: port to Clang 3.0
10906         Problem reported by Simon Josefsson in
10907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10908         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10909         which has <stdalign.h> but which does not define alignof.
10910         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10911
10912 2011-12-01  Eric Blake  <eblake@redhat.com>
10913
10914         mktempd: silence dd usage
10915         * build-aux/mktempd (rand_bytes): Silence dd.
10916
10917 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10918
10919         manywarnings: Don't mention gcc version in docstring.
10920         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10921         Jim Meyering <meyering@redhat.com>.
10922
10923 2011-11-30  Jim Meyering  <meyering@redhat.com>
10924
10925         hash: mark a few floating point constants with "f" suffix
10926         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10927         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10928         floating point constants with "f", since they're destined to be
10929         saved/used as "float"s.
10930
10931 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10932
10933         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10934         * tests/test-float.c (test_long_double): Correct and re-enable the
10935         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10936
10937 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10938
10939         Avoid subtracting two pointers that don't point into the same block.
10940         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10941         only pointers into the same memory block are subtracted. We cannot
10942         assume that sizeof (ptrdiff_t) == sizeof (void *).
10943
10944 2011-11-29  Eric Blake  <eblake@redhat.com>
10945
10946         maint.mk: add syntax check for use of compare from init.sh
10947         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10948         moved here from coreutils.
10949
10950         manywarnings: drop -Wunsuffixed-float-constants
10951         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10952         '1.0D', which is the only way to silence this warning for 'double'.
10953
10954 2011-11-29  Jim Meyering  <meyering@redhat.com>
10955
10956         hash: mark compute_bucket_size with the pure attribute
10957         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10958
10959         quotearg, propername: correct pragma guard expression
10960         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10961         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10962
10963 2011-11-28  Jim Meyering  <meyering@redhat.com>
10964
10965         propername: do not mark proper_name with the const attribute
10966         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10967         since it examines data pointed to by its parameter.
10968         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10969         the suggestion from -Wsuggest-attribute=const.
10970
10971         propername: mark one more function as const
10972         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10973
10974 2011-11-27  Jim Meyering  <meyering@redhat.com>
10975
10976         mark functions with const and pure attributes
10977
10978         Mark functions per suggestions from gcc-4.6 when using these options:
10979         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10980         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10981         Follow these guidelines: when possible, apply the attribute to
10982         an extern declaration, not to its definition.  Apply it to the
10983         definition only when the definition is static.
10984         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10985         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10986         * lib/base64.h (isbase64): Likewise.
10987         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10988         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10989         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10990         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10991         (c_tolower, c_toupper): Likewise.
10992         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10993         * lib/chdir-long.c (find_non_slash): Likewise.
10994         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10995         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10996         * lib/file-type.h (file_type): Likewise.
10997         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10998         * lib/filevercmp.c (verrevcmp): Likewise.
10999         * lib/freadahead.h (freadahead): Likewise.
11000         * lib/fts.c (fts_maxarglen): Likewise.
11001         * lib/hash-pjw.h (hash_pjw): Likewise.
11002         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
11003         * lib/hash.c (is_prime, next_prime): Likewise.
11004         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
11005         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
11006         (hash_table_ok, hash_get_first, hash_string): Likewise.
11007         (compute_bucket_size): Likewise.
11008         * lib/i-ring.h (i_ring_empty): Likewise.
11009         * lib/isnan.c (isnanl): Likewise.
11010         * lib/math.h (isnanl, rpl_isnanl): Likewise.
11011         * lib/memcasecmp.h (memcasecmp): Likewise.
11012         * lib/memchr2.h (memchr2): Likewise.
11013         * lib/memcmp2.h (memcmp2): Likewise.
11014         * lib/parse-datetime.y (lookup_zone): Likewise.
11015         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
11016         [!WINDOWS_SOCKETS]: Likewise.
11017         * lib/strnlen1.h (strnlen1): Likewise.
11018         * lib/uniwidth.in.h (uc_width): Likewise.
11019         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
11020         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
11021         (quoting_options_from_style): Add a comment.
11022         * lib/propername.h (proper_name): Add a comment.
11023
11024 2011-11-27  Bruno Haible  <bruno@clisp.org>
11025
11026         Remove unused macros from !_LIBC code in glibc-borrowed files.
11027         * lib/fnmatch.c (STRCOLL): Remove macro.
11028         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
11029         * lib/glob.c (__stat, __readdir64): Remove macros.
11030         * lib/tempname.c (__open64, __xstat64): Remove macros.
11031         Suggested by Paul Eggert.
11032
11033 2011-11-27  Bruno Haible  <bruno@clisp.org>
11034
11035         getcwd: Fix link error on MSVC 9.
11036         * modules/getcwd (Depends-on): Add readdir, rewinddir.
11037
11038 2011-11-27  Bruno Haible  <bruno@clisp.org>
11039
11040         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
11041         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
11042         HAVE_OPENDIR is 0.
11043         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
11044         HAVE_CLOSEDIR is 0.
11045         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
11046         is 0.
11047         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11048
11049 2011-11-27  Bruno Haible  <bruno@clisp.org>
11050
11051         getcwd: Fix bug from 2011-08-17.
11052         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
11053         platforms that need it.
11054         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
11055         code of 4 to be a failure, not a success. This ensures that
11056         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
11057
11058 2011-11-27  Bruno Haible  <bruno@clisp.org>
11059
11060         binary-io tests: Avoid test failure on mingw when libtool is used.
11061         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
11062         Don't verify the size of t-bin-out1.tmp here.
11063         * tests/test-binary-io.sh: Verify it here.
11064         Reported by Simon Josefsson.
11065
11066 2011-11-26  Bruno Haible  <bruno@clisp.org>
11067
11068         Fix conflict between two instantiations of module 'unistd'.
11069         * gnulib-tool (func_emit_autoconf_snippet): Substitute
11070         ${include_guard_prefix} also in the autoconf snippet.
11071         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
11072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
11073         GNULIB_UNISTD_H_GETOPT.
11074         * modules/getopt-posix (configure.ac): Set the
11075         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11076         * modules/getopt-gnu (configure.ac): Likewise.
11077         * modules/unistd (Makefile.am): Change the substitution value of
11078         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11079         Reported by Simon Josefsson.
11080
11081 2011-11-25  Bruno Haible  <bruno@clisp.org>
11082
11083         pagealign_alloc: Doc and comments.
11084         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11085         module.
11086         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11087
11088 2011-11-25  Jim Meyering  <meyering@redhat.com>
11089
11090         test-update-copyright.sh: avoid false-positive failure
11091         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11092         around false positive failure on Cygwin/Windows.  The latter was
11093         matching erroneously-created files with names like
11094         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11095
11096 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11097
11098         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11099         * m4/valgrind-tests.m4: Check that the parameters that will be
11100         used works, not just a subset of them.  Reported by Bruno Haible
11101         <bruno@clisp.org>.
11102
11103 2011-11-24  Jim Meyering  <meyering@redhat.com>
11104
11105         test-stdalign.c: comment out long double tests
11106         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11107         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11108         error: '_Alignas' specifiers cannot reduce alignment of \
11109         'static_longdouble_alignas'.
11110
11111 2011-11-22  Jim Meyering  <meyering@redhat.com>
11112
11113         init.sh: make "compare /dev/null FILE" output more readable
11114         * tests/init.sh (compare_): Document the preferred order of arguments.
11115         (emit_diff_u_header_): New function.
11116         (compare_dev_null_): Emit a simulated diff, rather than just the
11117         contents of the unexpected file.  Suggestion from Bruno Haible.
11118
11119 2011-11-21  Jim Meyering  <meyering@redhat.com>
11120             Eric Blake  <eblake@redhat.com>
11121
11122         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11123         * tests/init.sh: Make our compare function slightly more portable.
11124         Reported by Bruno Haible in
11125         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11126
11127 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11128
11129         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11130         before using it, in code that ends up in config.h.
11131
11132 2011-11-20  Bruno Haible  <bruno@clisp.org>
11133
11134         getcwd: Work around getcwd bug on AIX 5..7.
11135         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11136         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11137         Use a different value for gl_cv_func_getcwd_path_max. Move the
11138         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11139         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11140         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11141         Define HAVE_MINIMALLY_WORKING_GETCWD.
11142         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11143         where it is not even minimally working, that is, on AIX.
11144         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11145         m4/getcwd-path-max.m4.
11146         (main): Update exit code computation.
11147         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11148         getcwd does not handle long file names.
11149
11150 2011-11-20  Bruno Haible  <bruno@clisp.org>
11151
11152         getcwd: Fix bug from 2009-09-10.
11153         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11154         like "no".
11155
11156 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11157
11158         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11159
11160 2011-11-20  Bruno Haible  <bruno@clisp.org>
11161
11162         fma tests: Avoid shadowing local variables.
11163         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11164         expected.
11165
11166 2011-11-20  Bruno Haible  <bruno@clisp.org>
11167
11168         copysignf tests: Fix.
11169         * tests/test-copysignf.c: Fix signature check.
11170
11171 2011-11-20  Bruno Haible  <bruno@clisp.org>
11172
11173         fma: Remove unused code.
11174         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11175         unused macros.
11176
11177 2011-11-20  Bruno Haible  <bruno@clisp.org>
11178
11179         sethostname: Fix doc about AIX.
11180         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11181         sethostname; it has it.
11182
11183         sethostname: Mention more portability problems.
11184         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11185         problem.
11186         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11187
11188 2011-11-19  Bruno Haible  <bruno@clisp.org>
11189
11190         Depend on module fcntl-h when AT_FDCWD is used.
11191         * modules/utimens (Depends-on): Add fcntl-h.
11192         * modules/areadlinkat (Depends-on): Likewise.
11193         * modules/areadlinkat-with-size (Depends-on): Likewise.
11194         * modules/faccessat (Depends-on): Likewise.
11195         * modules/fchmodat (Depends-on): Likewise.
11196         * modules/fchownat (Depends-on): Likewise.
11197         * modules/getcwd (Depends-on): Likewise.
11198         * modules/mkdirat (Depends-on): Likewise.
11199         * modules/mkfifoat (Depends-on): Likewise.
11200         * modules/readlinkat (Depends-on): Likewise.
11201         * modules/symlinkat (Depends-on): Likewise.
11202         * modules/dup2-tests (Depends-on): Likewise.
11203         * modules/fdutimensat-tests (Depends-on): Likewise.
11204         * modules/futimens-tests (Depends-on): Likewise.
11205
11206 2011-11-19  Bruno Haible  <bruno@clisp.org>
11207
11208         euidaccess: Update a comment.
11209         * lib/euidaccess.c: Update comment about platforms with faccessat.
11210
11211 2011-11-19  Bruno Haible  <bruno@clisp.org>
11212
11213         openat: Fix file list.
11214         * modules/openat (Files): Remove lib/at-func.c.
11215
11216 2011-11-19  Bruno Haible  <bruno@clisp.org>
11217
11218         fstatat: Simplify.
11219         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11220         gnulib should define rpl_fstatat, there is a
11221         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11222
11223 2011-11-19  Bruno Haible  <bruno@clisp.org>
11224
11225         Ensure 'inline' can be used in tests/test-utimens-common.h.
11226         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11227         * modules/futimens-tests (configure.ac): Likewise.
11228         * modules/utimens-tests (configure.ac): Likewise.
11229         * modules/utimensat-tests (configure.ac): Likewise.
11230
11231 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11232
11233         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11234         not hash_insert0.
11235         (hash_insert_if_absent): Doc fix.
11236
11237 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11238
11239         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11240
11241 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11242
11243         test-getcwd: disambiguate exit status
11244         * tests/test-getcwd.c (test_long_name): Return 0..7.
11245         (main): Exit with an unambiguous exit status.  The old
11246         code yielded a mysterious mixture of two failure codes.
11247
11248         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11249         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11250         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11251         rpl_fstatat or fstatat.  This should fix the other problem
11252         reported by Kai Habel in
11253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11254         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11256         and I reproduced it on a Solaris 8 host we still have in production.
11257
11258 2011-11-18  Jim Meyering  <meyering@redhat.com>
11259
11260         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11261         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11262         Add a sentence to the comment.
11263         (hash_insert0): New function that simply calls hash_insert_if_absent.
11264         * lib/hash.h (hash_insert_if_absent): Declare it.
11265         (hash_insert0): Add deprecation attribute.
11266         (_GL_ATTRIBUTE_DEPRECATED): Define.
11267         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11268         not hash_insert0.
11269         * NEWS: Mention it, even though it's not really an incompatible change.
11270
11271 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11272
11273         openat: avoid compilation failure due to lack of <errno.h> inclusion
11274         * lib/openat.c: Include <errno.h>.
11275
11276 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11277
11278         * modules/getcwd (Depends-on): Add fdopendir.
11279         This fixes one of the two problems reported by Kai Habel in
11280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11281
11282         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11283         stdalign problem reported by Ian Beckwith in
11284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11285         * modules/crypto/gc-arcfour (Depends-on):
11286         Depend conditionally on crypto/arcfour.
11287         * modules/crypto/gc-arctwo (Depends-on):
11288         Depend conditionally on crypto/arctwo.
11289         * modules/crypto/gc-des (Depends-on):
11290         Depend conditionally on crypto/des.
11291         * modules/crypto/gc-hmac-md5 (Depends-on):
11292         Depend conditionally on crypto/hmac-md5.
11293         * modules/crypto/gc-hmac-sha1 (Depends-on):
11294         Depend conditionally on crypto/hmac-sha1.
11295         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11296         * modules/crypto/gc-md4 (Depends-on):
11297         Depend conditionally on crypto/md4.
11298         * modules/crypto/gc-md5 (Depends-on):
11299         Depend conditionally on crypto/md5.
11300         * modules/crypto/gc-rijndael (Depends-on):
11301         Depend conditionally on crypto/rijndael.
11302         * modules/crypto/gc-sha1 (Depends-on):
11303         Depend conditionally on crypto/sha1.
11304         * modules/crypto/gc-arcfour:
11305         * modules/crypto/gc-arctwo:
11306         * modules/crypto/gc-des:
11307         * modules/crypto/gc-hmac-md5:
11308         * modules/crypto/gc-hmac-sha1:
11309         * modules/crypto/gc-md2:
11310         * modules/crypto/gc-md4:
11311         * modules/crypto/gc-md5:
11312         * modules/crypto/gc-rijndael:
11313         * modules/crypto/gc-sha1:
11314         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11315         now that the conditional dependencies do the work for us.
11316
11317 2011-11-17  Jim Meyering  <meyering@redhat.com>
11318
11319         tests: factor st_ctime-comparison out of two headers
11320         * tests/test-utimens-common.h (ctime_compare): Define.
11321         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11322         * tests/test-lutimens.h (test_lutimens): Likewise.
11323         * tests/test-utimens.h (test_utimens): Likewise.
11324
11325         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11326         Invoke the test program via an init.sh-using wrapper.
11327         * tests/test-getcwd.sh: New file.
11328         * modules/getcwd-tests (Files): Add it.
11329         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11330
11331 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11332
11333         gitlog-to-changelog: support multi-author commits.
11334         The FSF cares about keeping track of all authors of patches to its
11335         projects, but Git doesn't provide obvious support for multi-author
11336         changesets. Consensus seems to be forming around the use of extra
11337         Signed-off-by inspired lines in the log message formatted as
11338         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11339         multi-author commits between version control systems.
11340         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11341         log message and output in standard ChangeLog multi-author format.
11342         Reported by Peter Rosin <peda@lysator.liu.se>
11343
11344 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11345             Bruno Haible  <bruno@clisp.org>
11346
11347         Fix some modules' file list.
11348         * modules/fstatat (Files): Add m4/lstat.m4.
11349         * modules/openat (Files): Likewise.
11350         * modules/unlinkat (Files): Likewise.
11351
11352 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11353
11354         maint.mk: fix tight-scope.mk generation in VPATH builds.
11355         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11356         reference with $(srcdir) so that the file is found correctly even
11357         when running `make syntax-check' in a VPATH build.
11358
11359 2011-11-13  Bruno Haible  <bruno@clisp.org>
11360             Jim Meyering  <meyering@redhat.com>
11361
11362         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11363         * tests/init.sh (compare): Remove "No differences encountered" or
11364         synonymous output from the 'diff' program.
11365
11366 2011-11-13  Bruno Haible  <bruno@clisp.org>
11367
11368         Makefile: Tweak indentation.
11369         * Makefile: Use tab as first character in every line that contains rule
11370         commands.
11371
11372 2011-11-13  Bruno Haible  <bruno@clisp.org>
11373
11374         Syntax check for copyright statements.
11375         * check-copyright: New file.
11376         * Makefile (sc_check_copyright): New rule.
11377
11378 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11379
11380         * build-aux/git-version-gen: Add --prefix to configure the tag
11381         match string.
11382
11383 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11384
11385         * build-aux/git-version-gen: Add --help and --version.
11386
11387 2011-11-12  Jim Meyering  <meyering@redhat.com>
11388
11389         revamp the other test-exclude?.sh scripts to use init.sh, too
11390         * tests/test-exclude1.sh: Use init.sh.
11391         * tests/test-exclude2.sh: Likewise.
11392         * tests/test-exclude3.sh: Likewise.
11393         * tests/test-exclude4.sh: Likewise.
11394         * tests/test-exclude5.sh: Likewise.
11395         * tests/test-exclude6.sh: Likewise.
11396         * tests/test-exclude7.sh: Likewise.
11397         * tests/test-exclude8.sh: Likewise.
11398         * modules/exclude-tests (Files): List init.sh.
11399
11400         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11401         These shell scripts ignored failure of the binary test-exclude,
11402         so making the latter return 77 didn't cause them to be skipped.
11403         * tests/test-exclude5.sh: Exit with test-exclude's error status
11404         when that program fails.  Revamp to use init.sh.
11405         * tests/test-exclude2.sh: Likewise.
11406
11407         test-exclude: fix a typo
11408         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11409
11410 2011-11-11  Bruno Haible  <bruno@clisp.org>
11411
11412         obstack: Fix compilation error on MSVC 9.
11413         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11414
11415 2011-11-11  Jim Meyering  <meyering@redhat.com>
11416
11417         test-exclude: skip tests rather than failing on deficient systems
11418         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11419         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11420         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11421         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11422
11423 2011-11-10  Bruno Haible  <bruno@clisp.org>
11424
11425         ptsname_r test: Avoid gcc warning on glibc systems.
11426         * tests/test-ptsname_r.c (null_ptr): New function.
11427         (test_errors): Use it.
11428
11429 2011-11-10  Bruno Haible  <bruno@clisp.org>
11430
11431         ptsname_r: Avoid compilation error on OSF/1 5.1.
11432         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11434         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11435         function is not declared or incompatibly declared.
11436         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11437         * modules/ptsname_r (Depends-on, configure.ac): Update.
11438         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11439
11440 2011-11-10  Bruno Haible  <bruno@clisp.org>
11441
11442         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11443         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11444         When cross-compiling, guess yes on all platforms except AIX.
11445         Reported by Ludovic Courtès <ludo@gnu.org>.
11446
11447 2011-11-09  Bruno Haible  <bruno@clisp.org>
11448
11449         ptsname_r tests: Fix bugs.
11450         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11451         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11452
11453 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11454
11455         fstatat: work with cross-compilation
11456         Problem reported by Ludovic Courtès in
11457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11458         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11459         "cross-compiling" and assume the bug is present.  Replace
11460         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11461         an inverted sense, to be more conservative about our assumptions.
11462         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11463
11464 2011-11-09  Bruno Haible  <bruno@clisp.org>
11465
11466         Improve MODULES.html output.
11467         * modules/mkfifoat (Description): Use the word "function".
11468         * modules/readlinkat (Description): Likewise.
11469         * modules/symlinkat (Description): Likewise.
11470
11471 2011-11-09  Eric Blake  <eblake@redhat.com>
11472
11473         ptsname_r-tests: new test module
11474         * modules/ptsname_r-tests: New module.
11475         * tests/test-ptsname_r.c: New file.
11476
11477         ptsname_r: new module
11478         * modules/ptsname_r: New module.
11479         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11480         * lib/ptsname.c (__ptsname_r): Split...
11481         * lib/ptsname_r.c: ...into new file.
11482         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11483         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11484         * modules/stdlib (Makefile.am): Substitute witnesses.
11485         * lib/stdlib.in.h (ptsname_r): Declare it.
11486         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11487         * MODULES.html.sh (Misc): Likewise.
11488         * modules/ptsname (Depends-on): Alter dependency.
11489         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11490
11491 2011-11-09  Jim Meyering  <meyering@redhat.com>
11492
11493         announce-gen: be more concise when there's only one URL+tarball
11494         * build-aux/announce-gen (get_tool_versions): When you distribute
11495         only one type of tarball, combine the first two "Here are..."
11496         sections and make the key-checking grammar independent of
11497         how many tarballs there are.
11498
11499 2011-11-09  Eric Blake  <eblake@redhat.com>
11500
11501         openpty: provide a stub on mingw
11502         * lib/pty.in.h (includes): Provide forward declarations.
11503         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11504
11505         raise: fix mingw handling of SIGPIPE
11506         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11507
11508 2011-11-08  Bruno Haible  <bruno@clisp.org>
11509
11510         More conditional dependencies.
11511         * modules/faccessat (Depends-on): Add conditions.
11512         * modules/fchmodat (Depends-on): Likewise.
11513         * modules/fchownat (Depends-on): Likewise.
11514         * modules/fstatat (Depends-on): Likewise.
11515         * modules/mkfifoat (Depends-on): Likewise.
11516         * modules/readlinkat (Depends-on): Likewise.
11517         * modules/symlinkat (Depends-on): Likewise.
11518         * modules/unlinkat (Depends-on): Likewise.
11519         * modules/utimensat (Depends-on): Likewise.
11520         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11521         * modules/linkat (Depends-on): Refine the conditions.
11522         * modules/renameat (Depends-on): Likewise.
11523
11524 2011-11-08  Bruno Haible  <bruno@clisp.org>
11525
11526         faccessat: Move AC_LIBOBJ invocation to module description.
11527         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11528         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11529         invocation from here...
11530         * modules/faccessat (configure.ac): ... to here. Invoke
11531         gl_PREREQ_FACCESSAT.
11532
11533 2011-11-08  Bruno Haible  <bruno@clisp.org>
11534
11535         faccessat: Simplify autoconf macro.
11536         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11537         gl_FUNC_EUIDACCESS.
11538
11539 2011-11-08  Bruno Haible  <bruno@clisp.org>
11540
11541         renameat: Fix dependencies.
11542         * modules/renameat (Depends-on): Add stdbool.
11543
11544 2011-11-08  Bruno Haible  <bruno@clisp.org>
11545
11546         mkfifoat: Fix module description.
11547         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11548         not gl_UNISTD_MODULE_INDICATOR.
11549
11550 2011-11-08  Bruno Haible  <bruno@clisp.org>
11551
11552         fstatat: Remove unused dependency.
11553         * modules/fstatat (Depends-on): Remove fstat.
11554
11555 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11556
11557         GNUmakefile: behave when Makefile is missing.
11558         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11559
11560 2011-11-08  Bruno Haible  <bruno@clisp.org>
11561
11562         openat: Conditionalize dependencies.
11563         * lib/openat.c: Reduce the scope of some #includes.
11564         * modules/openat (Depends-on): Add conditions.
11565
11566 2011-11-07  Jim Meyering  <meyering@redhat.com>
11567
11568         maint.mk: extract GPG key ID without using a temporary file
11569         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11570         without using a temporary file.  Based on a suggestion from Werner Koch
11571         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11572
11573 2011-11-07  Eric Blake  <eblake@redhat.com>
11574
11575         grantpt: fix typo
11576         * lib/stdlib.in.h (grantpt): Check correct function.
11577
11578         maint.mk: silence new syntax check
11579         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11580
11581 2011-11-06  Bruno Haible  <bruno@clisp.org>
11582
11583         Doc about floating-point and math API.
11584         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11585         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11586
11587 2011-11-06  Bruno Haible  <bruno@clisp.org>
11588
11589         stdalign tests: Skip the test when compiled by Sun C.
11590         * tests/test-stdalign.c (main): Skip the test on Sun C.
11591
11592 2011-11-06  Bruno Haible  <bruno@clisp.org>
11593
11594         ansi-c++-opt: Complete the 2011-06-05 change.
11595         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11596         does not support namespaces, set the variable to "no", not to ":".
11597
11598 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11599
11600         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11601
11602 2011-11-06  Bruno Haible  <bruno@clisp.org>
11603
11604         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11605         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11606         (minus_zerol) [HP-UX]: New macro.
11607         (unary_minus) [HP-UX]: New function.
11608         (copysignl) [HP-UX]: Use unary_minus function.
11609
11610 2011-11-06  Bruno Haible  <bruno@clisp.org>
11611
11612         ldexp, ldexpf, ldexpl: Enhance tests.
11613         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11614         and tests/test-ldexpl.c.
11615         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11616         LDEXP, MIN_EXP, MAX_EXP): New macros.
11617         Include test-ldexp.h.
11618         (main): Just call test_function.
11619         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11620         infinity.h, nan.h.
11621         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11622         MAX_EXP): New macros.
11623         Include test-ldexp.h.
11624         (x, y): Remove variables.
11625         (main): Just call test_function.
11626         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11627         infinity.h, nan.h.
11628         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11629         MAX_EXP): New macros.
11630         Include test-ldexp.h.
11631         (x, y): Remove variables.
11632         (main): Just call test_function.
11633         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11634         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11635         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11636         (Depends-on): Add isnand-nolibm, signbit, float.
11637         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11638         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11639         (Depends-on): Add isnanf-nolibm, signbit, float.
11640
11641 2011-11-06  Bruno Haible  <bruno@clisp.org>
11642
11643         math tests: Cosmetics.
11644         * tests/test-math-c++.cc: Reorder declarations.
11645
11646 2011-11-05  Bruno Haible  <bruno@clisp.org>
11647
11648         fma*: Simplify test.
11649         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11650         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11651
11652         Tests for module 'fmal'.
11653         * modules/fmal-tests: New file.
11654         * tests/test-fmal1.c: New file.
11655         * tests/test-fmal2.c: New file.
11656
11657         New module 'fmal'.
11658         * lib/math.in.h (fmal): New declaration.
11659         * lib/fmal.c: New file.
11660         * m4/fmal.m4: New file.
11661         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11663         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11664         REPLACE_FMAL.
11665         * modules/fmal: New file.
11666         * doc/posix-functions/fmal.texi: Mention the new module and the various
11667         bugs.
11668
11669         Tests for module 'fmaf'.
11670         * modules/fmaf-tests: New file.
11671         * tests/test-fmaf1.c: New file.
11672         * tests/test-fmaf2.c: New file.
11673
11674         New module 'fmaf'.
11675         * lib/math.in.h (fmaf): New declaration.
11676         * lib/fmaf.c: New file.
11677         * m4/fmaf.m4: New file.
11678         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11680         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11681         REPLACE_FMAF.
11682         * modules/fmaf: New file.
11683         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11684         bugs.
11685
11686         Tests for module 'fma'.
11687         * modules/fma-tests: New file.
11688         * tests/test-fma1.c: New file.
11689         * tests/test-fma1.h: New file.
11690         * tests/test-fma2.c: New file.
11691         * tests/test-fma2.h: New file.
11692
11693         New module 'fma'.
11694         * lib/math.in.h (fma): New declaration.
11695         * lib/fma.c: New file.
11696         * m4/fma.m4: New file.
11697         * m4/fegetround.m4: New file.
11698         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11700         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11701         REPLACE_FMA.
11702         * modules/fma: New file.
11703         * doc/posix-functions/fma.texi: Mention the new module and the various
11704         bugs.
11705
11706         Extend gl_MATHFUNC.
11707         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11708         Support 'void' as argument type.
11709         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11710
11711 2011-11-05  Jim Meyering  <meyering@redhat.com>
11712
11713         maint.mk: also prohibit inclusion of dirent.h without use
11714         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11715
11716 2011-11-05  Bruno Haible  <bruno@clisp.org>
11717
11718         ldexpl tests: Avoid test failure on MSVC 9.
11719         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11720         value. Needed in order to enforce the conversion from a value greater
11721         than LDBL_MAX to Infinity.
11722
11723 2011-11-05  Bruno Haible  <bruno@clisp.org>
11724
11725         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11726         * modules/at-internal: New file, extracted from modules/openat.
11727         * modules/openat-h: New file.
11728         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11729         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11730         * modules/openat (Description): Add reference to POSIX function.
11731         (Files): Remove lib/openat.h, lib/openat-proc.c.
11732         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11733         intprops, unistd.
11734         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11735         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11736         gl_FCNTL_MODULE_INDICATOR.
11737         (Include): Remove unistd.h, openat.h.
11738         * modules/areadlinkat (Files): Add lib/at-func.c.
11739         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11740         openat-die, openat-h, save-cwd.
11741         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11742         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11743         openat-die, openat-h, save-cwd, unistd.
11744         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11745         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11746         openat-h, save-cwd. Remove fcntl-h, openat.
11747         * modules/fchmodat (Files): Remove lib/openat.h.
11748         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11749         openat, stdbool, unistd.
11750         * modules/fchownat (Files): Remove lib/openat.h.
11751         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11752         openat, stdbool, sys_stat.
11753         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11754         lib/openat-proc.c.
11755         (Depends-on): Add at-internal.
11756         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11757         * modules/fstatat (Files): Remove lib/openat.h.
11758         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11759         stdbool, unistd.
11760         * modules/fts (Depends-on): Add openat-h.
11761         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11762         openat.
11763         * modules/mkdirat (Files): Remove lib/openat.h.
11764         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11765         openat, stdbool, sys_stat.
11766         * modules/mkfifoat (Files): Add lib/at-func.c.
11767         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11768         openat-h, save-cwd. Remove fcntl-h, openat.
11769         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11770         * modules/readlinkat (Files): Add lib/at-func.c.
11771         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11772         openat-h, save-cwd. Remove fcntl-h, openat.
11773         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11774         openat.
11775         * modules/selinux-at (Files): Add lib/at-func.c.
11776         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11777         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11778         * modules/symlinkat (Files): Add lib/at-func.c.
11779         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11780         openat-h, save-cwd. Remove fcntl-h, openat.
11781         * modules/unlinkat (Files): Remove lib/openat.h.
11782         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11783         stdbool.
11784         * modules/utimensat (Files): Add lib/at-func.c.
11785         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11786         openat-die, openat-h, save-cwd.
11787         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11788         * modules/fdutimensat-tests (Depends-on): Add openat.
11789         * modules/fstatat-tests (Depends-on): Add openat-h.
11790         * modules/readlinkat-tests (Depends-on): Add openat.
11791         * modules/symlinkat-tests (Depends-on): Add openat.
11792
11793 2011-11-05  Bruno Haible  <bruno@clisp.org>
11794
11795         openat: Include <stdbool.h>.
11796         * lib/openat.c: Include <stdbool.h>.
11797
11798 2011-11-04  Bruno Haible  <bruno@clisp.org>
11799
11800         fchownat, renameat, unlinkat: Fix dependencies.
11801         * modules/fchownat (Depends-on): Add fstatat.
11802         * modules/renameat (Depends-on): Likewise.
11803         * modules/unlinkat (Depends-on): Likewise.
11804
11805 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11806
11807         openat: remove direct dependency on dirent
11808         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11809         and hasn't been needed ever since fdopendir was split into its own
11810         module on 2009-08-31.
11811         * modules/openat (Depends-on): Remove dirent.
11812
11813 2011-11-04  Bruno Haible  <bruno@clisp.org>
11814
11815         renameat: Optimize code size.
11816         * modules/renameat (configure.ac): Don't compile at-func2.c if
11817         REPLACE_RENAMEAT is 1.
11818
11819 2011-11-04  Bruno Haible  <bruno@clisp.org>
11820
11821         openat tests: Fix file list.
11822         * modules/openat-tests (Files): Add tests/test-open.h.
11823
11824 2011-11-04  Bruno Haible  <bruno@clisp.org>
11825
11826         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11827         * modules/fchmodat (Depends-on): Add openat-die.
11828         * modules/fchownat (Depends-on): Likewise.
11829         * modules/linkat (Depends-on): Likewise.
11830         * modules/renameat (Depends-on): Likewise.
11831         * modules/openat (Depends-on): Add dirent.
11832
11833 2011-11-04  Jim Meyering  <meyering@redhat.com>
11834
11835         at-func*.c: fix comments
11836         * lib/at-func2.c: Correct/improve first-line comment.
11837         * lib/at-func.c: Correct grammar in first-line comment.
11838
11839 2011-11-04  Bruno Haible  <bruno@clisp.org>
11840
11841         New module 'mkdirat', split off from module 'openat'.
11842         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11843         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11844         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11845         * modules/mkdirat: New file, extracted from modules/openat.
11846         * modules/openat (Files): Remove lib/mkdirat.c.
11847         (Depends-on): Remove mkdir.
11848         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11849         (Include): Remove <sys/stat.h>.
11850         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11851         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11852         tests/test-mkdir.h.
11853         (Depends-on): Remove ignore-value.
11854         (Makefile.am): Remove rules for test-mkdirat.
11855         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11856         of module 'openat'.
11857         * NEWS: Mention the change.
11858
11859 2011-11-04  Bruno Haible  <bruno@clisp.org>
11860
11861         closedir: Avoid warning on mingw.
11862         * lib/closedir.c: Include <unistd.h>.
11863
11864 2011-11-04  Bruno Haible  <bruno@clisp.org>
11865
11866         New module 'fstatat', split off from module 'openat'.
11867         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11868         defined.
11869         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11870         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11871         gl_FUNC_FSTATAT.
11872         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11873         * modules/fstatat: New file, extracted from modules/openat.
11874         * modules/openat (Files): Remove lib/fstatat.c.
11875         (Depends-on): Remove lstat.
11876         (configure.ac): Remove AC_LIBOBJ of fstatat.
11877         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11878         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11879         tests/test-lstat.h, tests/test-stat.h.
11880         (Depends-on): Remove getcwd-lgpl.
11881         (Makefile.am): Remove rules for test-fstatat.
11882         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11883         of module 'openat'.
11884         * NEWS: Mention the change.
11885         * modules/getcwd (Depends-on): Add fstatat.
11886         * modules/linkat (Depends-on): Likewise.
11887         * modules/mkfifoat-tests (Depends-on): Likewise.
11888         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11889
11890 2011-11-03  Bruno Haible  <bruno@clisp.org>
11891
11892         New module 'unlinkat', split off from module 'openat'.
11893         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11894         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11895         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11896         * modules/unlinkat: New file, extracted from modules/openat. Correct
11897         the dependency conditions.
11898         * modules/openat (Files): Remove lib/unlinkat.c.
11899         (Depends-on): Remove rmdir, unlink.
11900         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11901         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11902         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11903         tests/test-rmdir.h, tests/test-unlink.h.
11904         (Depends-on): Remove unlinkdir.
11905         (Makefile.am): Remove rules for test-unlinkat.
11906         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11907         of module 'openat'.
11908         * NEWS: Mention the change.
11909         * modules/linkat-tests (Depends-on): Add unlinkat.
11910         * modules/mkfifoat-tests (Depends-on): Likewise.
11911         * modules/readlinkat-tests (Depends-on): Likewise.
11912
11913 2011-11-02  Bruno Haible  <bruno@clisp.org>
11914
11915         New module 'fchmodat', split off from module 'openat'.
11916         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11917         defined.
11918         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11919         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11920         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11921         * modules/fchmodat: New file, extracted from modules/openat.
11922         * modules/openat (Files): Remove lib/fchmodat.c.
11923         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11924         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11925         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11926         (Makefile.am): Remove rules for test-fchmodat.
11927         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11928         of module 'openat'.
11929         * NEWS: Mention the change.
11930
11931 2011-11-02  Jim Meyering  <meyering@redhat.com>
11932
11933         putenv: indent #definition of "environ" to placate cppi
11934         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11935
11936         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11937         Git logs are often treated as immutable, because editing them
11938         changes the SHA1 checksums of all descendants.  Thus, errors in
11939         git logs tend to stay there forever.  However, when we generate
11940         a ChangeLog file -- typically for distribution -- from that git log,
11941         we can actually make corrections in the generated file.  The key
11942         lies in recording in machine-readable/applicable form the desired
11943         corrections.  See --help for description and an example.
11944         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11945         (usage): Describe it; alphabetize option descriptions.
11946         (main): Honor the new option, carefully.
11947
11948 2011-11-01  Jim Meyering  <meyering@redhat.com>
11949
11950         gitlog-to-changelog: avoid an infloop
11951         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11952         that ends up being empty.
11953
11954 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11955
11956         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11957         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11958         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11959         contains (possibly-quoted) backslashes.  This should avoid
11960         all-too-common shell bugs if COMPLICATED contains backslashes in
11961         the "wrong" places.  Reported by David Evans in
11962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11963         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11964         because we want ASCII ranges.  Is there some reason we don't use
11965         the C locale everywhere in this script?
11966         (func_module, top level): Avoid unwanted pathname expansion when
11967         $repo_url_prefix or $repo_url_suffix_repl contain shell
11968         metacharacters like '?' and '*'.
11969
11970 2011-11-01  Bruno Haible  <bruno@clisp.org>
11971
11972         fchownat: Improve description.
11973         * modules/fchownat (Description): Add link to function.
11974
11975 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11976
11977         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11978         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11980         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11981
11982 2011-11-01  Bruno Haible  <bruno@clisp.org>
11983
11984         alignof: Avoid collision with stdalign module.
11985         * lib/alignof.h (alignof): Remove macro.
11986         * NEWS: Mention the change.
11987         Reported by Paul Eggert.
11988
11989 2011-11-01  Bruno Haible  <bruno@clisp.org>
11990
11991         New module 'fchownat', split off from module 'openat'.
11992         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11993         defined.
11994         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11995         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11996         invoke gl_FUNC_FCHOWNAT.
11997         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11998         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11999         * modules/fchownat: New file, extracted from modules/openat.
12000         * modules/openat (Files): Remove lib/fchownat.c.
12001         (Depends-on): Remove lchown.
12002         (configure.ac): Remove AC_LIBOBJ of fchownat.
12003         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
12004         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
12005         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
12006         (Depends-on): Remove mgetgroups, usleep, stat-time.
12007         (configure.ac): Remove test for getegid.
12008         (Makefile.am): Remove rules for test-fchownat.
12009         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
12010         of module 'openat'.
12011         * NEWS: Mention the change.
12012
12013 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12014
12015         stdalign: port better to MSVC and to Sun C 5.11
12016         This fixes some of the problems reported by Bruno Haible in
12017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
12018         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
12019         shortcomings of MSVC and of Sun C 5.11.
12020         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
12021         around __declspec arg.
12022         * modules/stdalign-tests (Files): Add tests/macros.h.
12023         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
12024         Include macros.h, for ASSERT.
12025         (DECLARE_ALIGNED): Remove.
12026         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
12027         to catch bug), and to 1 if not (simplifies the rest of the code).
12028         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
12029         (CHECK_AUTO): Remove.
12030         (CHECK_ALIGNED): Check only the alignment of the static vars,
12031         since auto var alignment isn't supported by Sun C 5.11.
12032         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
12033         ASSERT failures are easier to diagnose.
12034
12035 2011-10-31  Bruno Haible  <bruno@clisp.org>
12036
12037         doc about some IRIX 5.3 problems.
12038         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
12039         on IRIX 5.3.
12040         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
12041         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
12042         5.3.
12043         * doc/posix-functions/grantpt.texi: Likewise.
12044         * doc/posix-functions/unlockpt.texi: Likewise.
12045         * doc/posix-functions/lgamma.texi: Likewise.
12046         * doc/posix-functions/nextafter.texi: Likewise.
12047         * doc/posix-functions/remainder.texi: Likewise.
12048         * doc/posix-functions/select.texi: Mention misplaced declaration on
12049         IRIX 5.3.
12050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12051
12052 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
12053
12054         gitlog-to-changelog: fix git-log invocation.
12055         git-log mishandles date strings before 1970-01-01 UTC, and there is
12056         no use to specify --since=1970-01-01 by default anyway.
12057         * build-aux/gitlog-to-changelog: By default, when no --since option
12058         was given, do not specify explicit --since option to git-log.
12059
12060 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
12061
12062         gitlog-to-changelog: new option --append-dot.
12063         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
12064         first non-blank line of each commit message terminated with a dot.
12065
12066 2011-10-30  Bruno Haible  <bruno@clisp.org>
12067
12068         ffsl, ffsll: Avoid compilation error due to 'restrict'.
12069         * lib/ffsl.h: Include <config.h>.
12070         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
12071
12072 2011-10-30  Jim Meyering  <meyering@redhat.com>
12073
12074         GNUmakefile: reenable "make syntax-check" for most projects
12075         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12076         build-aux variable", "syntax-check" would do nothing but succeed with
12077         the "No version control files detected..." diagnostic (unless you
12078         happened to override _build-aux via cfg.mk).
12079         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12080         to precede inclusion of maint.mk.  Otherwise, these variables would
12081         be used undefined in any project that does not override the default.
12082
12083 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12084
12085         gitlog-to-changelog: treat a message with only blank lines as empty.
12086         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12087         trailing blank lines before the code that issues a warning about an
12088         empty commit message.
12089
12090 2011-10-30  Jim Meyering  <meyering@redhat.com>
12091
12092         test-parse-datetime.c: avoid new DST-related false positive test failure
12093         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12094         based on the time/date we'll convert, not the current time.
12095         Otherwise, the moment we cross a DST boundary like today's in
12096         Europe, (CEST to CET), that offset ends up being one hour off.
12097
12098 2011-10-27  Bruno Haible  <bruno@clisp.org>
12099
12100         fstat: Tweak documentation.
12101         * modules/fstat (Description): More precise description.
12102
12103 2011-10-27  Bruno Haible  <bruno@clisp.org>
12104
12105         Update documentation regarding 'largefile' module.
12106         * doc/posix-functions/fstat.texi: Tweak wording.
12107         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12108         problems with huge directories and/or small ino_t types.
12109         * doc/posix-functions/readdir.texi: Likewise.
12110         * doc/posix-functions/rewinddir.texi: Likewise.
12111
12112 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12113
12114         maint.mk: don't maintain a second build-aux variable.
12115         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12116         depends on GNUmakefile, which already maintains a cfg.mk
12117         overridable $(_build-aux) for projects with a non-standard
12118         build-aux directory location, although without the $(srcdir)
12119         prefix.  Use that variable consistently instead of introducing a
12120         second one.  Adjust all call sites.
12121
12122 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12123
12124         Add stdalign module and use it in other modules.
12125         This is based on a previous proposal by Bruno Haible
12126         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12127
12128         stdalign: new module
12129         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12130         * modules/stdalign: New files.
12131         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12132         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12133
12134         stdalign-tests: new module
12135         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12136
12137         argp: use stdalign
12138         * lib/argp-parse.c: Include <stdalign.h>.
12139         (alignof): Remove.
12140         * modules/argp (Depends-on): Add stdalign.
12141
12142         crypto libraries: use stdalign
12143         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12144         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12145         Do not include <stdlib.h> twice, in md4.c.
12146         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12147         because we are accessing a pointer's bit-pattern, not a size.
12148         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12149         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12150         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12151         * modules/crypto/sha512: Likewise.
12152
12153         sys_socket: use stdalign, not alignof
12154         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12155         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12156
12157 2011-10-27  Bruno Haible  <bruno@clisp.org>
12158
12159         raise test: Avoid a test failure on Linux/MIPS.
12160         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12161         because 99 is a valid signal on Linux/MIPS.
12162
12163 2011-10-27  Bruno Haible  <bruno@clisp.org>
12164
12165         nonblocking tests: Fix test failure on Linux/MIPS.
12166         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12167         Set to 270000.
12168
12169 2011-10-27  Bruno Haible  <bruno@clisp.org>
12170
12171         utimensat: Work around problem on Linux/hppa.
12172         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12173         values.
12174         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12175
12176 2011-10-25  Jim Meyering  <meyering@redhat.com>
12177
12178         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12179         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12180         after symbols like NULL, size_t, etc.
12181         Reported by Alfred M. Szmidt.
12182
12183         maint.mk: exempt ENODATA from a syntax-check rule
12184         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12185         from the sc_prohibit_always-defined_macros syntax-check rule.
12186         Add a comment.  See this for more details:
12187         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12188
12189 2011-10-23  Jim Meyering  <meyering@redhat.com>
12190
12191         fts: close parent dir FD before returning from post-traversal fts_read
12192         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12193         unlink A, even though an FD open on A remained.  This is suboptimal
12194         (holding a file descriptor open longer than needed), but otherwise not
12195         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12196         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12197         that represents a real problem: it causes the removal of A to fail
12198         with e.g., "rm: cannot remove `A': Device or resource busy"
12199
12200         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12201         directory file descriptors.  After completing the final, FTS_DP,
12202         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12203         cache, but then proceeded to add a new FD to it via the subsequent
12204         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12205         final file descriptor would be closed only via fts_close's call to
12206         fd_ring_clear.  Now, it is usually closed earlier, via the final
12207         FTS_DP-returning fts_read call.
12208         * lib/fts.c (restore_initial_cwd): New function, converted from
12209         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12210         Update callers.
12211         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12212         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12213
12214 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12215             Bruno Haible  <bruno@clisp.org>
12216             Jim Meyering  <jim@meyering.net>
12217
12218         readme-release: improve safety of release prep instructions.
12219         * README-release: Don't git pull all branches when only master
12220         is needed for the release process.
12221         Run make maintainer-clean before changing trees and merging.
12222         Don't try to run ./configure right after git pull in case files
12223         that influence the bootstrap process have changed, move the
12224         ./configure step to after running ./bootstrap.
12225         Don't bootstrap "one last time"... it's the first time!
12226
12227 2011-10-22  Bruno Haible  <bruno@clisp.org>
12228
12229         errno, strerror-override: Support for MSVC 10.
12230         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12231         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12232         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12233         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12234         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12235         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12236         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12237         Assign values compatible with MSVC 10.
12238         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12239         New macros.
12240         (GNULIB_defined_EWINSOCK): New macro.
12241         * lib/strerror-override.c (strerror_override): Update accordingly.
12242         * lib/strerror-override.h: Likewise.
12243         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12244         longer equal to the corresponding errno value.
12245         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12246
12247 2011-10-22  Bruno Haible  <bruno@clisp.org>
12248
12249         perror: Recognize when test program crashes.
12250         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12251         strerror, set gl_cv_func_perror_works to no.
12252         Reported by Daniel Richard G. <skunk@iskunk.org>.
12253
12254         perror: Fix indentation.
12255         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12256
12257 2011-10-22  Bruno Haible  <bruno@clisp.org>
12258
12259         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12260         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12261         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12262         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12263         functions, not as a macro.
12264         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12265         macros.
12266         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12267         absence of macro.
12268         Suggested by Eric Blake.
12269         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12270
12271 2011-10-21  Bruno Haible  <bruno@clisp.org>
12272
12273         relocatable-prog-wrapper: Don't leave object files behind.
12274         * build-aux/install-reloc: Re-synchronize list of .o files to be
12275         removed with list of compilation units.
12276
12277 2011-10-20  Bruno Haible  <bruno@clisp.org>
12278
12279         openpty, posix_openpt: Remove code duplication.
12280         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12281         * lib/openpty.c: Include <stdlib.h>.
12282         (openpty): Use posix_openpt on all platforms except IRIX.
12283         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12284
12285 2011-10-20  Bruno Haible  <bruno@clisp.org>
12286
12287         unlockpt: Detect invalid argument.
12288         * lib/unlockpt.c: Include <fcntl.h>.
12289         (unlockpt): Check whether fd is valid, using fcntl().
12290         * modules/unlockpt (Depends-on): Add fcntl-h.
12291
12292 2011-10-20  Bruno Haible  <bruno@clisp.org>
12293
12294         openpty: Avoid compilation error on AIX 6.1.
12295         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12296
12297 2011-10-20  Bruno Haible  <bruno@clisp.org>
12298
12299         posix_openpt: Support for OpenBSD.
12300         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12301         (posix_openpt) [OpenBSD]: New code.
12302         * lib/grantpt.c: Include <fcntl.h>.
12303         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12304         * modules/grantpt (Depends-on): Add fcntl-h.
12305
12306 2011-10-20  Bruno Haible  <bruno@clisp.org>
12307
12308         posix_openpt test: Coding style.
12309         * tests/test-posix_openpt.c: Use GNU coding style.
12310
12311 2011-10-20  Bruno Haible  <bruno@clisp.org>
12312
12313         grantpt: Support --avoid=pt_chown.
12314         * modules/grantpt (Files): Add lib/pty-private.h.
12315
12316 2011-10-20  Bruno Haible  <bruno@clisp.org>
12317
12318         posix_openpt: Fix autoconf macro.
12319         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12320         unneeded check for _getpty.
12321
12322 2011-10-20  Bruno Haible  <bruno@clisp.org>
12323
12324         openpty: Update comments.
12325         * lib/openpty.c: Add comments about Minix.
12326
12327 2011-10-19  Eric Blake  <eblake@redhat.com>
12328
12329         openpty: relax license
12330         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12331
12332         pt_chown: use configmake to simplify build
12333         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12334
12335         ptsname and others: relax license
12336         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12337         * modules/unlockpt (License): Likewise.
12338         * modules/pt_chown (License): Likewise.
12339         * modules/ptsname (License): Likewise.
12340         * modules/ttyname_r (License): Likewise.
12341
12342 2011-10-19  Jim Meyering  <meyering@redhat.com>
12343
12344         posix_openpt: remove spurious #endif
12345         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12346
12347 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12348
12349         maint.mk: Respect $(build_aux) in web-manual rule.
12350         * top/maint.mk (web-manual): Find gen-announce script in user's
12351         $(build_aux) directory instead of hard-coding 'build-aux'.
12352
12353 2011-10-19  Bruno Haible  <bruno@clisp.org>
12354
12355         posix_openpt: Fix compilation error.
12356         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12357         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12358         Mention the openpty module as an alternative.
12359
12360 2011-10-19  Bruno Haible  <bruno@clisp.org>
12361
12362         Support for old NeXTstep 3.3 frexp().
12363         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12364         execution time of the test to 5 seconds.
12365         Reported by Daniel Richard G. <skunk@iskunk.org>.
12366
12367 2011-10-19  Bruno Haible  <bruno@clisp.org>
12368
12369         Support for old NeXTstep 3.3 sed.
12370         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12371         part, use /.../, not \|...|. Escape periods in the header file name.
12372         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12373         Reported by Daniel Richard G. <skunk@iskunk.org>.
12374
12375 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12376
12377         Support for old NeXTstep 3.3 gcc.
12378         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12379         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12380         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12381         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12382         * lib/regex.h (_Restrict_arr_): Likewise.
12383         * lib/regex_internal.h (re_token_t): Likewise.
12384         * lib/regexec.c (check_node_accept_bytes): Likewise.
12385         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12386
12387 2011-10-18  Eric Blake  <eblake@redhat.com>
12388
12389         posix_openpt: new module
12390         * modules/posix_openpt: New module.
12391         * m4/posix_openpt.m4: New file.
12392         * lib/posix_openpt.c: Likewise.
12393         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12394         (gl_STDLIB_H_DEFAULTS): Set defaults.
12395         * modules/stdlib (Makefile.am): Substitute macros.
12396         * lib/stdlib.in.h (posix_openpt): Declare.
12397         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12398         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12399         * modules/posix_openpt-tests: New test module.
12400         * tests/test-posix_openpt.c: New test.
12401
12402 2011-10-15  Bruno Haible  <bruno@clisp.org>
12403
12404         xstrtoll: Fix compilation failure.
12405         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12406         from lib/strtol.c.
12407         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12408         some platforms.
12409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12410
12411 2011-10-15  Bruno Haible  <bruno@clisp.org>
12412
12413         vasnprintf: Optimize bit search operation.
12414         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12416         gl_DOUBLE_EXPONENT_LOCATION.
12417         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12418         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12419         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12420         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12421         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12422         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12423         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12424         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12425         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12426
12427 2011-10-15  Bruno Haible  <bruno@clisp.org>
12428
12429         vasnprintf: Fix comments.
12430         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12431
12432 2011-10-14  Bruno Haible  <bruno@clisp.org>
12433
12434         Tests for module 'integer_length_ll'.
12435         * modules/integer_length_ll-tests: New file.
12436         * tests/test-integer_length_ll.c: New file.
12437
12438         New module 'integer_length_ll'.
12439         * lib/integer_length_ll.c: New file.
12440         * modules/integer_length_ll: New file.
12441
12442 2011-10-14  Bruno Haible  <bruno@clisp.org>
12443
12444         Tests for module 'integer_length_l'.
12445         * modules/integer_length_l-tests: New file.
12446         * tests/test-integer_length_l.c: New file.
12447
12448         New module 'integer_length_l'.
12449         * lib/integer_length_l.c: New file.
12450         * modules/integer_length_l: New file.
12451
12452 2011-10-14  Bruno Haible  <bruno@clisp.org>
12453
12454         Tests for module 'integer_length'.
12455         * modules/integer_length-tests: New file.
12456         * tests/test-integer_length.c: New file.
12457
12458         New module 'integer_length'.
12459         * lib/integer_length.h: New file.
12460         * lib/integer_length.c: New file.
12461         * modules/integer_length: New file.
12462
12463 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12464
12465         popen: Fix dependency conditions.
12466         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12467
12468 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12469
12470         perror: Fix autoconf test.
12471         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12472         <stdlib.h> and <string.h>.
12473
12474 2011-10-14  Bruno Haible  <bruno@clisp.org>
12475
12476         ffsl: Optimize on 64-bit platforms.
12477         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12478         unrolling.
12479
12480 2011-10-13  Bruno Haible  <bruno@clisp.org>
12481
12482         ffsl: Optimize on 32-bit platforms.
12483         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12484         use ffs() without a loop.
12485
12486         ffsl, ffsll: Optimize for GCC.
12487         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12488         * lib/ffsl.c (GCC_BUILTIN): New macro.
12489         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12490
12491 2011-10-13  Bruno Haible  <bruno@clisp.org>
12492
12493         ffs, bcopy, memset: Support symbol renaming via config.h.
12494         * lib/ffs.c: Include <config.h>.
12495         * lib/bcopy.c: Likewise.
12496         * lib/memset.c: Likewise.
12497
12498 2011-10-10  Bruno Haible  <bruno@clisp.org>
12499
12500         atanl: Simplify for platforms where 'long double' == 'double'.
12501         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12502         alternative implementation.
12503         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12504         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12505         * modules/atanl (Depends-on): Add atan. Update conditions.
12506
12507 2011-10-10  Bruno Haible  <bruno@clisp.org>
12508
12509         acosl: Simplify for platforms where 'long double' == 'double'.
12510         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12511         alternative implementation.
12512         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12513         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12514         * modules/acosl (Depends-on): Add acos. Update conditions.
12515
12516 2011-10-10  Bruno Haible  <bruno@clisp.org>
12517
12518         asinl: Simplify for platforms where 'long double' == 'double'.
12519         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12520         alternative implementation.
12521         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12522         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12523         * modules/asinl (Depends-on): Add asin. Update conditions.
12524
12525 2011-10-10  Bruno Haible  <bruno@clisp.org>
12526
12527         tanl: Simplify for platforms where 'long double' == 'double'.
12528         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12529         implementation.
12530         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12531         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12532         * modules/tanl (Depends-on): Add tan. Update conditions.
12533         (configure.ac): Don't compile trigl.c if
12534         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12535
12536 2011-10-10  Bruno Haible  <bruno@clisp.org>
12537
12538         cosl: Simplify for platforms where 'long double' == 'double'.
12539         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12540         implementation.
12541         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12542         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12543         * modules/cosl (Depends-on): Add cos. Update conditions.
12544         (configure.ac): Don't compile sincosl.c and trigl.c if
12545         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12546
12547 2011-10-10  Bruno Haible  <bruno@clisp.org>
12548
12549         sinl: Simplify for platforms where 'long double' == 'double'.
12550         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12551         implementation.
12552         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12553         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12554         * modules/sinl (Depends-on): Add sin. Update conditions.
12555         (configure.ac): Don't compile sincosl.c and trigl.c if
12556         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12557
12558 2011-10-10  Bruno Haible  <bruno@clisp.org>
12559
12560         logl: Simplify for platforms where 'long double' == 'double'.
12561         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12562         implementation.
12563         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12564         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12565         * modules/logl (Depends-on): Add log. Update conditions.
12566
12567 2011-10-10  Bruno Haible  <bruno@clisp.org>
12568
12569         expl: Simplify for platforms where 'long double' == 'double'.
12570         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12571         implementation.
12572         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12573         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12574         * modules/expl (Depends-on): Add exp. Update conditions.
12575
12576 2011-10-10  Bruno Haible  <bruno@clisp.org>
12577
12578         sqrtl: Simplify for platforms where 'long double' == 'double'.
12579         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12580         alternative implementation.
12581         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12582         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12583         * modules/sqrtl (Depends-on): Update conditions.
12584
12585 2011-10-10  Bruno Haible  <bruno@clisp.org>
12586
12587         ldexpl: Simplify for platforms where 'long double' == 'double'.
12588         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12589         alternative implementation.
12590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12591         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12592         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12593
12594 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12595
12596         ffsll: set correct witness
12597         * modules/ffsll (configure.ac): Fix typo.
12598
12599 2011-10-10  Bruno Haible  <bruno@clisp.org>
12600
12601         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12602         * lib/printf-frexpl.c: Include <config.h>.
12603         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12604         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12605         second time.
12606         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12607         gl_LONG_DOUBLE_VS_DOUBLE.
12608         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12609         conditions.
12610
12611 2011-10-10  Bruno Haible  <bruno@clisp.org>
12612
12613         frexpl: Simplify for platforms where 'long double' == 'double'.
12614         * lib/frexpl.c: Include <config.h>.
12615         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12616         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12617         time.
12618         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12619         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12620         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12621         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12622         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12623         conditions.
12624
12625 2011-10-10  Jim Meyering  <meyering@redhat.com>
12626
12627         test-renameat: don't leave behind a temporary file
12628         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12629           ERROR: files left in build directory after distclean:
12630           ./gltests/test-renameat.too
12631           make[1]: *** [distcleancheck] Error 1
12632         Reported by Tom G. Christensen.
12633
12634 2011-10-09  Bruno Haible  <bruno@clisp.org>
12635
12636         rint: Determine RINT_LIBM correctly on AIX 7.
12637         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12638         directly, not only through a function pointer. Also accept an optional
12639         4th argument with extra code.
12640         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12641         rintf() call by gcc when optimizing.
12642
12643         mathfunc.m4: Refactor.
12644         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12645         m4 variable.
12646
12647 2011-10-09  Bruno Haible  <bruno@clisp.org>
12648
12649         rintl: Simplify for platforms where 'long double' == 'double'.
12650         * lib/rintl.c: Include <config.h>.
12651         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12652         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12653         time.
12654         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12655         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12656         * modules/rintl (Depends-on): Add rint. Update conditions.
12657
12658 2011-10-09  Bruno Haible  <bruno@clisp.org>
12659
12660         roundl: Simplify for platforms where 'long double' == 'double'.
12661         * lib/roundl.c: Include <config.h>.
12662         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12663         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12664         time.
12665         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12666         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12667         * modules/roundl (Depends-on): Add round. Update conditions.
12668
12669 2011-10-09  Bruno Haible  <bruno@clisp.org>
12670
12671         truncl: Simplify for platforms where 'long double' == 'double'.
12672         * lib/truncl.c: Include <config.h>.
12673         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12674         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12675         time.
12676         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12677         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12678         * modules/truncl (Depends-on): Add trunc. Update conditions.
12679
12680 2011-10-09  Bruno Haible  <bruno@clisp.org>
12681
12682         ceill: Simplify for platforms where 'long double' == 'double'.
12683         * lib/ceill.c: Include <config.h>.
12684         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12685         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12686         time.
12687         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12688         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12689         * modules/ceill (Depends-on): Add ceil. Update conditions.
12690
12691 2011-10-09  Bruno Haible  <bruno@clisp.org>
12692
12693         floorl: Simplify for platforms where 'long double' == 'double'.
12694         * lib/floorl.c: Include <config.h>.
12695         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12696         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12697         time.
12698         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12699         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12700         * modules/floorl (Depends-on): Add floor. Update conditions.
12701
12702 2011-10-09  Bruno Haible  <bruno@clisp.org>
12703
12704         rint: Fix ordering constraints.
12705         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12706         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12707         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12708
12709 2011-10-09  Bruno Haible  <bruno@clisp.org>
12710
12711         copysignl: Simplify for platforms where 'long double' == 'double'.
12712         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12713         alternative.
12714         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12715         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12716         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12717
12718 2011-10-09  Bruno Haible  <bruno@clisp.org>
12719
12720         Tests for module 'rintl'.
12721         * modules/rintl-tests: New file.
12722         * tests/test-rintl.c: New file.
12723
12724         New module 'rintl'.
12725         * lib/math.in.h (rintl): New declaration.
12726         * lib/rintl.c: New file.
12727         * m4/rintl.m4: New file.
12728         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12730         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12731         * modules/rintl: New file.
12732         * tests/test-math-c++.cc: Check the declaration of rintl.
12733         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12734         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12735         * doc/posix-functions/rintl.texi: Mention the new module.
12736
12737 2011-10-09  Bruno Haible  <bruno@clisp.org>
12738
12739         Tests for module 'rintf'.
12740         * modules/rintf-tests: New file.
12741         * tests/test-rintf.c: New file.
12742
12743         New module 'rintf'.
12744         * lib/math.in.h (rintf): New declaration.
12745         * lib/rintf.c: New file.
12746         * m4/rintf.m4: New file.
12747         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12749         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12750         * modules/rintf: New file.
12751         * tests/test-math-c++.cc: Check the declaration of rintf.
12752         * doc/posix-functions/rintf.texi: Mention the new module.
12753
12754 2011-10-09  Bruno Haible  <bruno@clisp.org>
12755
12756         rint: Support for MSVC.
12757         * lib/math.in.h (rint): New declaration.
12758         * lib/rint.c: New file.
12759         * m4/rint.m4: New file.
12760         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12762         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12763         * modules/rint (Description): Fix.
12764         (Files): Add lib/rint.c, m4/rint.m4.
12765         (Depends-on): Add math.
12766         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12767         gl_MATH_MODULE_INDICATOR.
12768         * tests/test-math-c++.cc: Check the declaration of rint.
12769         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12770         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12771         * doc/posix-functions/rint.texi: Mention the replacement provided by
12772         the module.
12773
12774         rint tests: More tests.
12775         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12776         minus-zero.h, infinity.h, nan.h.
12777         (main): Skip the test if the current rounding mode is not standard. Add
12778         tests for negative numbers, minus zero, infinity, NaN.
12779         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12780         tests/nan.h.
12781         (Depends-on): Add isnand-nolibm.
12782
12783 2011-10-09  Bruno Haible  <bruno@clisp.org>
12784
12785         Tests for module 'copysignl'.
12786         * modules/copysignl-tests: New file.
12787         * tests/test-copysignl.c: New file.
12788
12789         New module 'copysignl'.
12790         * lib/math.in.h (copysignl): New declaration.
12791         * lib/copysignl.c: New file.
12792         * m4/copysignl.m4: New file.
12793         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12795         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12796         HAVE_COPYSIGNL.
12797         * modules/copysignl: New file.
12798         * tests/test-math-c++.cc: Check the declaration of copysignl.
12799         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12800         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12801         * doc/posix-functions/copysignl.texi: Mention the new module.
12802
12803 2011-10-09  Bruno Haible  <bruno@clisp.org>
12804
12805         Tests for module 'copysignf'.
12806         * modules/copysignf-tests: New file.
12807         * tests/test-copysignf.c: New file.
12808
12809         New module 'copysignf'.
12810         * lib/math.in.h (copysignf): New declaration.
12811         * lib/copysignf.c: New file.
12812         * m4/copysignf.m4: New file.
12813         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12815         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12816         HAVE_COPYSIGNF.
12817         * modules/copysignf: New file.
12818         * tests/test-math-c++.cc: Check the declaration of copysignf.
12819         * doc/posix-functions/copysignf.texi: Mention the new module.
12820
12821 2011-10-09  Bruno Haible  <bruno@clisp.org>
12822
12823         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12824         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12825         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12826         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12828         gl_SIGNAL_H_DEFAULTS.
12829
12830 2011-10-09  Bruno Haible  <bruno@clisp.org>
12831
12832         poll: Make macro safer.
12833         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12834         ac_cv_header_poll_h is not set.
12835
12836 2011-10-09  Bruno Haible  <bruno@clisp.org>
12837
12838         copysign: Provide replacement.
12839         * lib/math.in.h (copysign): New declaration.
12840         * lib/copysign.c: New file.
12841         * m4/copysign.m4: New file.
12842         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12844         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12845         HAVE_COPYSIGN.
12846         * modules/copysign (Description): Clarify.
12847         (Files): Add lib/copysign.c, m4/copysign.m4.
12848         (Depends-on): Add math, signbit.
12849         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12850         gl_MATH_MODULE_INDICATOR.
12851         * tests/test-math-c++.cc: Check the declaration of copysign.
12852         * doc/posix-functions/copysign.texi: Mention the effects of the module
12853         on Minix and MSVC.
12854
12855 2011-10-09  Bruno Haible  <bruno@clisp.org>
12856
12857         isinf: Ensure macro on AIX 5.1.
12858         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12859         macro.
12860         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12861
12862 2011-10-09  Bruno Haible  <bruno@clisp.org>
12863
12864         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12865         * modules/snprintf-posix-tests (configure.ac): Require
12866         gl_LONG_DOUBLE_VS_DOUBLE.
12867         * modules/sprintf-posix-tests (configure.ac): Likewise.
12868         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12869         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12870         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12871         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12872         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12873         tests on platforms where 'long double' is the same as 'double'.
12874         * tests/test-sprintf-posix.h (test_function): Likewise.
12875         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12876         * tests/test-vasprintf-posix.c (test_function): Likewise.
12877
12878         *printf: Fix for platforms where 'long double' == 'double'.
12879         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12880         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12881         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12882         * modules/fprintf-posix (Files): Likewise.
12883         * modules/obstack-printf-posix (Files): Likewise.
12884         * modules/snprintf-posix (Files): Likewise.
12885         * modules/sprintf-posix (Files): Likewise.
12886         * modules/vasnprintf (Files): Likewise.
12887         * modules/vasnprintf-posix (Files): Likewise.
12888         * modules/vasprintf-posix (Files): Likewise.
12889         * modules/vdprintf-posix (Files): Likewise.
12890         * modules/vfprintf-posix (Files): Likewise.
12891         * modules/vsnprintf-posix (Files): Likewise.
12892         * modules/vsprintf-posix (Files): Likewise.
12893         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12894         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12895         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12896         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12897         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12898         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12899         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12900
12901         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12902         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12903         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12904         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12905         'long double'.
12906         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12907
12908         isinf: Fix for platforms where 'long double' == 'double'.
12909         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12910         Don't blindly assume 80-bit 'long double'.
12911
12912         isfinite: Fix for platforms where 'long double' == 'double'.
12913         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12914         Don't blindly assume 80-bit 'long double'.
12915
12916         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12917         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12918         * modules/isfinite-tests (configure.ac): Require
12919         gl_LONG_DOUBLE_VS_DOUBLE.
12920         * modules/isinf-tests (configure.ac): Likewise.
12921         * modules/isnan-tests (configure.ac): Likewise.
12922         * modules/isnanl-tests (configure.ac): Likewise.
12923         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12924         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12925         tests on platforms where 'long double' is the same as 'double'.
12926         * tests/test-isinf.c (test_isinfl): Likewise.
12927         * tests/test-isnan.c (test_long_double): Likewise.
12928         * tests/test-isnanl.h (main): Likewise.
12929
12930 2011-10-08  Bruno Haible  <bruno@clisp.org>
12931
12932         Tests for module 'tanhf'.
12933         * modules/tanhf-tests: New file.
12934         * tests/test-tanhf.c: New file.
12935
12936         New module 'tanhf'.
12937         * lib/math.in.h (tanhf): New declaration.
12938         * lib/tanhf.c: New file.
12939         * m4/tanhf.m4: New file.
12940         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12942         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12943         * modules/tanhf: New file.
12944         * tests/test-math-c++.cc: Check the declaration of tanhf.
12945         * doc/posix-functions/tanhf.texi: Mention the new module.
12946
12947         tanh: Use a .m4 file.
12948         * m4/tanh.m4: New file.
12949         * modules/tanh (Files): Add it.
12950         (configure.ac): Just invoke gl_FUNC_TANH.
12951
12952 2011-10-08  Bruno Haible  <bruno@clisp.org>
12953
12954         Tests for module 'coshf'.
12955         * modules/coshf-tests: New file.
12956         * tests/test-coshf.c: New file.
12957
12958         New module 'coshf'.
12959         * lib/math.in.h (coshf): New declaration.
12960         * lib/coshf.c: New file.
12961         * m4/coshf.m4: New file.
12962         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12964         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12965         * modules/coshf: New file.
12966         * tests/test-math-c++.cc: Check the declaration of coshf.
12967         * doc/posix-functions/coshf.texi: Mention the new module.
12968
12969         cosh: Use a .m4 file.
12970         * m4/cosh.m4: New file.
12971         * modules/cosh (Files): Add it.
12972         (configure.ac): Just invoke gl_FUNC_COSH.
12973
12974 2011-10-08  Bruno Haible  <bruno@clisp.org>
12975
12976         Tests for module 'sinhf'.
12977         * modules/sinhf-tests: New file.
12978         * tests/test-sinhf.c: New file.
12979
12980         New module 'sinhf'.
12981         * lib/math.in.h (sinhf): New declaration.
12982         * lib/sinhf.c: New file.
12983         * m4/sinhf.m4: New file.
12984         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12986         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12987         * modules/sinhf: New file.
12988         * tests/test-math-c++.cc: Check the declaration of sinhf.
12989         * doc/posix-functions/sinhf.texi: Mention the new module.
12990
12991         sinh: Use a .m4 file.
12992         * m4/sinh.m4: New file.
12993         * modules/sinh (Files): Add it.
12994         (configure.ac): Just invoke gl_FUNC_SINH.
12995
12996 2011-10-08  Bruno Haible  <bruno@clisp.org>
12997
12998         Tests for module 'atan2f'.
12999         * modules/atan2f-tests: New file.
13000         * tests/test-atan2f.c: New file.
13001
13002         New module 'atan2f'.
13003         * lib/math.in.h (atan2f): New declaration.
13004         * lib/atan2f.c: New file.
13005         * m4/atan2f.m4: New file.
13006         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
13007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
13008         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
13009         * modules/atan2f: New file.
13010         * tests/test-math-c++.cc: Check the declaration of atan2f.
13011         * doc/posix-functions/atan2f.texi: Mention the new module.
13012
13013         atan2: Use a .m4 file.
13014         * m4/atan2.m4: New file.
13015         * modules/atan2 (Files): Add it.
13016         (configure.ac): Just invoke gl_FUNC_ATAN2.
13017
13018 2011-10-08  Bruno Haible  <bruno@clisp.org>
13019
13020         Tests for module 'atanf'.
13021         * modules/atanf-tests: New file.
13022         * tests/test-atanf.c: New file.
13023
13024         New module 'atanf'.
13025         * lib/math.in.h (atanf): New declaration.
13026         * lib/atanf.c: New file.
13027         * m4/atanf.m4: New file.
13028         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
13029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
13030         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
13031         * modules/atanf: New file.
13032         * tests/test-math-c++.cc: Check the declaration of atanf.
13033         * doc/posix-functions/atanf.texi: Mention the new module.
13034
13035         atan: Use a .m4 file.
13036         * m4/atan.m4: New file.
13037         * modules/atan (Files): Add it.
13038         (configure.ac): Just invoke gl_FUNC_ATAN.
13039
13040 2011-10-08  Bruno Haible  <bruno@clisp.org>
13041
13042         Tests for module 'acosf'.
13043         * modules/acosf-tests: New file.
13044         * tests/test-acosf.c: New file.
13045
13046         New module 'acosf'.
13047         * lib/math.in.h (acosf): New declaration.
13048         * lib/acosf.c: New file.
13049         * m4/acosf.m4: New file.
13050         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
13051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
13052         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
13053         * modules/acosf: New file.
13054         * tests/test-math-c++.cc: Check the declaration of acosf.
13055         * doc/posix-functions/acosf.texi: Mention the new module.
13056
13057         acos: Use a .m4 file.
13058         * m4/acos.m4: New file.
13059         * modules/acos (Files): Add it.
13060         (configure.ac): Just invoke gl_FUNC_ACOS.
13061
13062 2011-10-08  Bruno Haible  <bruno@clisp.org>
13063
13064         Tests for module 'asinf'.
13065         * modules/asinf-tests: New file.
13066         * tests/test-asinf.c: New file.
13067
13068         New module 'asinf'.
13069         * lib/math.in.h (asinf): New declaration.
13070         * lib/asinf.c: New file.
13071         * m4/asinf.m4: New file.
13072         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
13073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
13074         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
13075         * modules/asinf: New file.
13076         * tests/test-math-c++.cc: Check the declaration of asinf.
13077         * doc/posix-functions/asinf.texi: Mention the new module.
13078
13079         asin: Use a .m4 file.
13080         * m4/asin.m4: New file.
13081         * modules/asin (Files): Add it.
13082         (configure.ac): Just invoke gl_FUNC_ASIN.
13083
13084 2011-10-08  Bruno Haible  <bruno@clisp.org>
13085
13086         Tests for module 'tanf'.
13087         * modules/tanf-tests: New file.
13088         * tests/test-tanf.c: New file.
13089
13090         New module 'tanf'.
13091         * lib/math.in.h (tanf): New declaration.
13092         * lib/tanf.c: New file.
13093         * m4/tanf.m4: New file.
13094         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13096         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13097         * modules/tanf: New file.
13098         * tests/test-math-c++.cc: Check the declaration of tanf.
13099         * doc/posix-functions/tanf.texi: Mention the new module.
13100
13101         tan: Use a .m4 file.
13102         * m4/tan.m4: New file.
13103         * modules/tan (Files): Add it.
13104         (configure.ac): Just invoke gl_FUNC_TAN.
13105
13106 2011-10-08  Bruno Haible  <bruno@clisp.org>
13107
13108         Tests for module 'cosf'.
13109         * modules/cosf-tests: New file.
13110         * tests/test-cosf.c: New file.
13111
13112         New module 'cosf'.
13113         * lib/math.in.h (cosf): New declaration.
13114         * lib/cosf.c: New file.
13115         * m4/cosf.m4: New file.
13116         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13118         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13119         * modules/cosf: New file.
13120         * tests/test-math-c++.cc: Check the declaration of cosf.
13121         * doc/posix-functions/cosf.texi: Mention the new module.
13122
13123         cos: Use a .m4 file.
13124         * m4/cos.m4: New file.
13125         * modules/cos (Files): Add it.
13126         (configure.ac): Just invoke gl_FUNC_COS.
13127
13128 2011-10-08  Bruno Haible  <bruno@clisp.org>
13129
13130         Tests for module 'sinf'.
13131         * modules/sinf-tests: New file.
13132         * tests/test-sinf.c: New file.
13133
13134         New module 'sinf'.
13135         * lib/math.in.h (sinf): New declaration.
13136         * lib/sinf.c: New file.
13137         * m4/sinf.m4: New file.
13138         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13140         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13141         * modules/sinf: New file.
13142         * tests/test-math-c++.cc: Check the declaration of sinf.
13143         * doc/posix-functions/sinf.texi: Mention the new module.
13144
13145         sin: Use a .m4 file.
13146         * m4/sin.m4: New file.
13147         * modules/sin (Files): Add it.
13148         (configure.ac): Just invoke gl_FUNC_SIN.
13149
13150 2011-10-08  Bruno Haible  <bruno@clisp.org>
13151
13152         Tests for module 'powf'.
13153         * modules/powf-tests: New file.
13154         * tests/test-powf.c: New file.
13155
13156         New module 'powf'.
13157         * lib/math.in.h (powf): New declaration.
13158         * lib/powf.c: New file.
13159         * m4/powf.m4: New file.
13160         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13162         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13163         * modules/powf: New file.
13164         * tests/test-math-c++.cc: Check the declaration of powf.
13165         * doc/posix-functions/powf.texi: Mention the new module.
13166
13167         pow: Use a .m4 file.
13168         * m4/pow.m4: New file.
13169         * modules/pow (Files): Add it.
13170         (configure.ac): Just invoke gl_FUNC_POW.
13171
13172 2011-10-08  Bruno Haible  <bruno@clisp.org>
13173
13174         Tests for module 'log10f'.
13175         * modules/log10f-tests: New file.
13176         * tests/test-log10f.c: New file.
13177
13178         New module 'log10f'.
13179         * lib/math.in.h (log10f): New declaration.
13180         * lib/log10f.c: New file.
13181         * m4/log10f.m4: New file.
13182         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13184         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13185         * modules/log10f: New file.
13186         * tests/test-math-c++.cc: Check the declaration of log10f.
13187         * doc/posix-functions/log10f.texi: Mention the new module.
13188
13189         log10: Use a .m4 file.
13190         * m4/log10.m4: New file.
13191         * modules/log10 (Files): Add it.
13192         (configure.ac): Just invoke gl_FUNC_LOG10.
13193
13194 2011-10-08  Bruno Haible  <bruno@clisp.org>
13195
13196         Tests for module 'logf'.
13197         * modules/logf-tests: New file.
13198         * tests/test-logf.c: New file.
13199
13200         New module 'logf'.
13201         * lib/math.in.h (logf): New declaration.
13202         * lib/logf.c: New file.
13203         * m4/logf.m4: New file.
13204         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13206         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13207         * modules/logf: New file.
13208         * tests/test-math-c++.cc: Check the declaration of logf.
13209         * doc/posix-functions/logf.texi: Mention the new module.
13210
13211         log: Use a .m4 file.
13212         * m4/log.m4: New file.
13213         * modules/log (Files): Add it.
13214         (configure.ac): Just invoke gl_FUNC_LOG.
13215
13216 2011-10-08  Bruno Haible  <bruno@clisp.org>
13217
13218         Tests for module 'expf'.
13219         * modules/expf-tests: New file.
13220         * tests/test-expf.c: New file.
13221
13222         New module 'expf'.
13223         * lib/math.in.h (expf): New declaration.
13224         * lib/expf.c: New file.
13225         * m4/expf.m4: New file.
13226         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13228         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13229         * modules/expf: New file.
13230         * tests/test-math-c++.cc: Check the declaration of expf.
13231         * doc/posix-functions/expf.texi: Mention the new module.
13232
13233         exp: Use a .m4 file.
13234         * m4/exp.m4: New file.
13235         * modules/exp (Files): Add it.
13236         (configure.ac): Just invoke gl_FUNC_EXP.
13237
13238 2011-10-08  Bruno Haible  <bruno@clisp.org>
13239
13240         Tests for module 'sqrtf'.
13241         * modules/sqrtf-tests: New file.
13242         * tests/test-sqrtf.c: New file.
13243
13244         New module 'sqrtf'.
13245         * lib/math.in.h (sqrtf): New declaration.
13246         * lib/sqrtf.c: New file.
13247         * m4/sqrtf.m4: New file.
13248         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13250         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13251         * modules/sqrtf: New file.
13252         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13253         * doc/posix-functions/sqrtf.texi: Mention the new module.
13254
13255 2011-10-08  Bruno Haible  <bruno@clisp.org>
13256
13257         Tests: Avoid link failures w.r.t. libintl.
13258         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13259         $(LIBINTL).
13260         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13261         $(LIBINTL).
13262         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13263         against $(LIBINTL).
13264         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13265         $(LIBINTL).
13266         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13267         $(LIBINTL).
13268         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13269
13270 2011-10-08  Bruno Haible  <bruno@clisp.org>
13271
13272         pow tests: Defeat compiler optimizations.
13273         * tests/test-pow.c (main): Assign arguments to x and y before use.
13274
13275 2011-10-08  Bruno Haible  <bruno@clisp.org>
13276
13277         gnulib-tool: Improve last commit.
13278         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13279         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13280         ignore dependencies that are not among the modules list.
13281
13282 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13283
13284         gnulib-tool: don't follow dependencies to avoided modules
13285         This fixes a bug that is related to the previous one.
13286         * gnulib-tool (func_modules_transitive_closure)
13287         (func_emit_autoconf_snippets):
13288         Check whether a dependency is acceptable before using it.
13289         (--extract-dependencies): Report an error if --avoid is also used,
13290         since this combination of options is not yet supported.
13291
13292         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13293         Problem reported by Peter Dyballa in
13294         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13295         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13296         when echoing "$condition".
13297
13298 2011-10-07  Bruno Haible  <bruno@clisp.org>
13299
13300         Fix documentation about math functions on MacOS X.
13301         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13302         MacOS X 10.5.
13303         * doc/posix-functions/fdim.texi: Likewise.
13304         * doc/posix-functions/feclearexcept.texi: Likewise.
13305         * doc/posix-functions/fegetenv.texi: Likewise.
13306         * doc/posix-functions/fegetround.texi: Likewise.
13307         * doc/posix-functions/feholdexcept.texi: Likewise.
13308         * doc/posix-functions/feraiseexcept.texi: Likewise.
13309         * doc/posix-functions/fesetenv.texi: Likewise.
13310         * doc/posix-functions/fesetround.texi: Likewise.
13311         * doc/posix-functions/fetestexcept.texi: Likewise.
13312         * doc/posix-functions/feupdateenv.texi: Likewise.
13313         * doc/posix-functions/fmax.texi: Likewise.
13314         * doc/posix-functions/fmin.texi: Likewise.
13315         * doc/posix-functions/log2.texi: Likewise.
13316         * doc/posix-functions/modff.texi: Likewise.
13317         * doc/posix-functions/nan.texi: Likewise.
13318         * doc/posix-functions/nanf.texi: Likewise.
13319         * doc/posix-functions/nextafterf.texi: Likewise.
13320         * doc/posix-functions/remquo.texi: Likewise.
13321
13322 2011-10-07  Bruno Haible  <bruno@clisp.org>
13323
13324         modff: Drop assumption about library that defines modff.
13325         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13326         AC_CHECK_FUNCS.
13327         * modules/modff (Files): Add m4/mathfunc.m4.
13328
13329 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13330
13331         raise tests: Avoid a GCC warning.
13332         * tests/test-raise.c (handler): Use _Noreturn.
13333
13334 2011-10-07  Bruno Haible  <bruno@clisp.org>
13335
13336         Tests for module 'ldexpf'.
13337         * modules/ldexpf-tests: New file.
13338         * tests/test-ldexpf.c: New file.
13339
13340         New module 'ldexpf'.
13341         * lib/math.in.h (ldexpf): New declaration.
13342         * lib/ldexpf.c: New file.
13343         * m4/ldexpf.m4: New file.
13344         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13346         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13347         * modules/ldexpf: New file.
13348         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13349         * doc/posix-functions/ldexpf.texi: Mention the new module.
13350
13351 2011-10-06  Bruno Haible  <bruno@clisp.org>
13352
13353         frexpf: Work around problems on IRIX and mingw.
13354         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13356         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13357         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13358         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13359         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13360         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13361
13362 2011-10-06  Bruno Haible  <bruno@clisp.org>
13363
13364         fabsf: Drop assumption about library that defines fabsf.
13365         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13366         AC_CHECK_FUNCS.
13367         * modules/fabsf (Files): Add m4/mathfunc.m4.
13368
13369 2011-10-06  Bruno Haible  <bruno@clisp.org>
13370
13371         frexpf: Drop assumption about library that defines frexpf.
13372         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13373         'int *', 'float *', 'long double *', 'float', 'long double'.
13374         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13375         AC_CHECK_FUNCS.
13376         * modules/frexpf (Files): Add m4/mathfunc.m4.
13377
13378         Tests for module 'frexpf'.
13379         * modules/frexpf-tests: New file.
13380         * tests/test-frexpf.c: New file.
13381
13382         New module 'frexpf'.
13383         * lib/math.in.h (frexpf): New declaration.
13384         * lib/frexpf.c: New file.
13385         * m4/frexpf.m4: New file.
13386         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13388         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13389         * modules/frexpf: New file.
13390         * tests/test-math-c++.cc: Check the declaration of frexpf.
13391         * doc/posix-functions/frexpf.texi: Mention the new module.
13392
13393 2011-10-06  Bruno Haible  <bruno@clisp.org>
13394
13395         math: Sort function declarations of math.in.h.
13396         * lib/math.in.h (frexp, logb): Move declarations.
13397
13398 2011-10-05  Bruno Haible  <bruno@clisp.org>
13399
13400         Tests for module 'modff'.
13401         * modules/modff-tests: New file.
13402         * tests/test-modff.c: New file.
13403
13404         New module 'modff'.
13405         * lib/math.in.h (modff): New declaration.
13406         * lib/modff.c: New file.
13407         * m4/modff.m4: New file.
13408         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13410         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13411         * modules/modff: New file.
13412         * tests/test-math-c++.cc: Check the declaration of modff.
13413         * doc/posix-functions/modff.texi: Mention the new module.
13414
13415         modf tests: Make test sharper.
13416         * tests/test-modf.c (main): Strengthen upper bound.
13417
13418         modf: Use a .m4 file.
13419         * m4/modf.m4: New file.
13420         * modules/modf (Files): Add it.
13421         (configure.ac): Just invoke gl_FUNC_MODF.
13422
13423 2011-10-05  Bruno Haible  <bruno@clisp.org>
13424
13425         Tests for module 'fmodf'.
13426         * modules/fmodf-tests: New file.
13427         * tests/test-fmodf.c: New file.
13428
13429         New module 'fmodf'.
13430         * lib/math.in.h (fmodf): New declaration.
13431         * lib/fmodf.c: New file.
13432         * m4/fmodf.m4: New file.
13433         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13435         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13436         * modules/fmodf: New file.
13437         * tests/test-math-c++.cc: Check the declaration of fmodf.
13438         * doc/posix-functions/fmodf.texi: Mention the new module.
13439
13440         fmod: Use a .m4 file.
13441         * m4/fmod.m4: New file.
13442         * modules/fmod (Files): Add it.
13443         (configure.ac): Just invoke gl_FUNC_FMOD.
13444
13445 2011-10-05  Bruno Haible  <bruno@clisp.org>
13446
13447         Tests for module 'fabsf'.
13448         * modules/fabsf-tests: New file.
13449         * tests/test-fabsf.c: New file.
13450
13451         New module 'fabsf'.
13452         * lib/math.in.h (fabsf): New declaration.
13453         * lib/fabsf.c: New file.
13454         * m4/fabsf.m4: New file.
13455         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13457         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13458         * modules/fabsf: New file.
13459         * tests/test-math-c++.cc: Check the declaration of fabsf.
13460         * doc/posix-functions/fabsf.texi: Mention the new module.
13461
13462         fabs: Use a .m4 file.
13463         * m4/fabs.m4: New file.
13464         * modules/fabs (Files): Add it.
13465         (configure.ac): Just invoke gl_FUNC_FABS.
13466
13467 2011-10-05  Jim Meyering  <meyering@redhat.com>
13468
13469         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13470         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13471         ls -lL regression introduced in coreutils-8.12, it does so at the
13472         cost of an additional stat call in the common case.  Besides, now
13473         that the kernel change that prompted commit 95f7c57f has been reverted
13474         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13475         we have no use for commit 95f7c57f, "file-has-acl: use
13476         acl_extended_file_nofollow if available".
13477
13478 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13479
13480         file-has-acl: revert unintended change in behavior of ls -L
13481         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13482         derived from...
13483         (file_has_acl): ...code here.  Call it.
13484         This problem was introduced with 2011-07-22 commit 95f7c57f,
13485         "file-has-acl: use acl_extended_file_nofollow if available".
13486         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13487
13488 2011-10-03  Bruno Haible  <bruno@clisp.org>
13489
13490         poll: Avoid link errors on MSVC.
13491         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13492         * modules/poll (Depends-on): Add sockets.
13493         (Link): New section.
13494         * NEWS: Mention the change.
13495         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13496         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13497         $(LIB_POLL) instead of $(LIBSOCKET).
13498
13499 2011-10-03  Bruno Haible  <bruno@clisp.org>
13500
13501         sys_select tests: Fix link error on MSVC 9.
13502         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13503         with $(LIB_SELECT) instead of $(LIBSOCKET).
13504
13505 2011-10-03  Bruno Haible  <bruno@clisp.org>
13506
13507         sys_select: Fix compilation error on mingw.
13508         * lib/sys_select.in.h: On native Windows, include <io.h>.
13509
13510 2011-10-03  Bruno Haible  <bruno@clisp.org>
13511
13512         wmemset: Support for MSVC.
13513         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13514         whether wmemset() exists.
13515
13516 2011-10-03  Bruno Haible  <bruno@clisp.org>
13517
13518         wmemmove: Support for MSVC.
13519         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13520         whether wmemmove() exists.
13521
13522 2011-10-03  Bruno Haible  <bruno@clisp.org>
13523
13524         wmemcpy: Support for MSVC.
13525         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13526         whether wmemcpy() exists.
13527
13528 2011-10-03  Bruno Haible  <bruno@clisp.org>
13529
13530         wmemcmp: Support for MSVC.
13531         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13532         whether wmemcmp() exists.
13533
13534 2011-10-03  Bruno Haible  <bruno@clisp.org>
13535
13536         wmemchr: Support for MSVC.
13537         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13538         whether wmemchr() exists.
13539
13540 2011-10-03  Bruno Haible  <bruno@clisp.org>
13541
13542         glthread/*, strsignal: Support for MSVC.
13543         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13544         including <winsock.h> on MSVC 9.
13545         * lib/glthread/lock.h: Likewise.
13546         * lib/glthread/thread.h: Likewise.
13547         * lib/glthread/tls.h: Likewise.
13548         * lib/glthread/yield.h: Likewise.
13549         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13550         if HAVE_UNISTD_H is false.
13551         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13552
13553 2011-10-03  Bruno Haible  <bruno@clisp.org>
13554
13555         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13556         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13557         Set to 100000.
13558
13559 2011-10-03  Bruno Haible  <bruno@clisp.org>
13560
13561         acl: Fix specification.
13562         * lib/file-has-acl.c (file_has_acl): Fix specification.
13563
13564 2011-10-03  Bruno Haible  <bruno@clisp.org>
13565
13566         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13567         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13568         (compute_curr_prefix, shared_library_fullname,
13569         find_shared_library_fullname, get_shared_library_fullname, relocate):
13570         Use it together with PIC && INSTALLDIR.
13571         Reported by <jojelino@gmail.com>
13572         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13573
13574 2011-10-01  Jim Meyering  <meyering@redhat.com>
13575
13576         maint.mk: adjust a release-related rule not to require use of gzip
13577         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13578         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13579         projects that build only .tar.xz files.  Also fix an erroneous test.
13580
13581         test-linkat: don't leave behind a temporary file
13582         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13583         Otherwise, coreutils' "make distcheck" would fail with this:
13584           Only in /c/cu/tests/torture/coreutils/test/\
13585             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13586           make[2]: *** [my-distcheck] Error 1
13587
13588         float, math: add omitted file
13589         * lib/itold.c: Add file, required for yesterday's float change.
13590
13591 2011-10-01  Bruno Haible  <bruno@clisp.org>
13592
13593         isinf: Fix for OpenBSD/x86.
13594         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13595         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13596         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13597
13598 2011-10-01  Bruno Haible  <bruno@clisp.org>
13599
13600         isfinite: Fix syntax error in configure test.
13601         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13602
13603         isfinite: Fix typo.
13604         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13605         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13606
13607 2011-10-01  Bruno Haible  <bruno@clisp.org>
13608
13609         nonblocking tests: Fix test failure on Linux/IA-64.
13610         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13611         Set to 270000.
13612
13613 2011-10-01  Bruno Haible  <bruno@clisp.org>
13614
13615         mkfifoat tests: Fix a test failure on mingw.
13616         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13617         with error ENOSYS.
13618
13619 2011-09-30  Bruno Haible  <bruno@clisp.org>
13620
13621         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13622         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13623         'long double'. Set REPLACE_ITOLD.
13624         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13625         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13626         * lib/itold.c: New file.
13627         * modules/float (Files): Add lib/itold.c.
13628         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13629         (Makefile.am): Substitute REPLACE_ITOLD.
13630         * modules/math (Depends-on): Add float.
13631         (Makefile.am): Substitute REPLACE_ITOLD.
13632         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13633         * doc/posix-headers/math.texi: Likewise.
13634         * doc/posix-functions/logl.texi: Likewise.
13635
13636 2011-09-30  Bruno Haible  <bruno@clisp.org>
13637
13638         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13639         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13640         Set to 140000.
13641
13642 2011-09-30  Bruno Haible  <bruno@clisp.org>
13643
13644         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13645         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13646         invocation, say "right after AC_PROG_CC_STDC", not "right after
13647         AC_PROG_CC".
13648         Reported by Gary V. Vaughan <gary@gnu.org>.
13649
13650 2011-09-30  Bruno Haible  <bruno@clisp.org>
13651
13652         Centralize C99 requirement.
13653         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13654         * modules/stdarg (configure.ac-early): Invoke it instead of
13655         AC_PROG_CC_STDC.
13656         Reported by Gary V. Vaughan and Paul Eggert.
13657
13658 2011-09-29  Bruno Haible  <bruno@clisp.org>
13659
13660         float: Fix LDBL_MAX value on Linux/PowerPC.
13661         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13662         on Linux/PowerPC.
13663         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13664         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13665         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13666         platform.
13667         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13668
13669 2011-09-29  Bruno Haible  <bruno@clisp.org>
13670
13671         doc: Improve doc about gl_EARLY.
13672         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13673         AC_PROG_CC_STDC invocation.
13674         Reported by Gary V. Vaughan <gary@gnu.org>.
13675
13676 2011-09-28  Bruno Haible  <bruno@clisp.org>
13677
13678         fgetc, fputc, fread, fwrite tests: Fix link error.
13679         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13680         on non-MSVC platforms.
13681         * tests/test-fputc.c (main): Likewise.
13682         * tests/test-fread.c (main): Likewise.
13683         * tests/test-fwrite.c (main): Likewise.
13684         Reported by Jim Meyering.
13685
13686 2011-09-27  Bruno Haible  <bruno@clisp.org>
13687
13688         fputc, fwrite tests: Avoid test failure on MSVC.
13689         * tests/test-fgetc.c: Include msvc-inval.h.
13690         (main): Invoke gl_msvc_inval_ensure_handler.
13691         * tests/test-fputc.c: Include msvc-inval.h.
13692         (main): Invoke gl_msvc_inval_ensure_handler.
13693         * tests/test-fread.c: Include msvc-inval.h.
13694         (main): Invoke gl_msvc_inval_ensure_handler.
13695         * tests/test-fwrite.c: Include msvc-inval.h.
13696         (main): Invoke gl_msvc_inval_ensure_handler.
13697         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13698         * modules/fputc-tests (Depends-on): Likewise.
13699         * modules/fread-tests (Depends-on): Likewise.
13700         * modules/fwrite-tests (Depends-on): Likewise.
13701
13702 2011-09-27  Bruno Haible  <bruno@clisp.org>
13703
13704         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13705         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13706         (raise): Remove older, duplicated declaration.
13707         (_gl_raise_SIGPIPE): New declaration.
13708         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13709         (rpl_raise): Remove function.
13710         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13711         a gnulib-defined SIGPIPE here.
13712         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13713         'sigprocmask' has detected missing signal-blocking and the module
13714         'sigpipe' is enabled.
13715         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13716
13717 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13718
13719         base64-tests: avoid memory leak
13720         * tests/test-base64.c (main): Plug memory leak.
13721
13722         base32: new module
13723         * modules/base32: New module.
13724         * lib/base32.c: New file.
13725         * lib/base32.h: Likewise.
13726         * m4/base32.m4: Likewise.
13727         * modules/base32-tests: New test.
13728         * tests/test-base32.c: Likewise.
13729         * MODULES.html.sh (Misc): Mention it.
13730
13731 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13732
13733         gnulib: use more-standard license notice wording
13734         * gnulib-tool (func_emit_copyright_notice): When emitting a
13735         license notice into a file, use the standard wording as suggested
13736         by the current information for GNU maintainers, except say "file"
13737         rather than "program".  The new wording gives a license version
13738         number, which addresses an issue raised by Glenn Morris in
13739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13740         * m4/onceonly.m4: Use that same wording here, too.
13741
13742         dup2: minor simplification
13743         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13744         as lib/dup2.c no longer uses 'inline'.
13745
13746 2011-09-25  Bruno Haible  <bruno@clisp.org>
13747
13748         strings: Fix compilation error on MSVC.
13749         * lib/strings.in.h: Include <stddef.h> for size_t.
13750
13751 2011-09-25  Bruno Haible  <bruno@clisp.org>
13752
13753         fflush et al.: Document limitation on MSVC.
13754         * doc/posix-functions/fflush.texi: Document possible crash in handling
13755         mode other than DEFAULT_HANDLING.
13756         * doc/posix-functions/fgetc.texi: Likewise.
13757         * doc/posix-functions/fputc.texi: Likewise.
13758         * doc/posix-functions/fread.texi: Likewise.
13759         * doc/posix-functions/fwrite.texi: Likewise.
13760
13761 2011-09-25  Bruno Haible  <bruno@clisp.org>
13762
13763         msvc-inval: Allow three invalid parameter handling modes.
13764         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13765         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13766         macros.
13767         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13768         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13769         SANE_LIBRARY_HANDLING as a no-op.
13770         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13771         <stdlib.h>.
13772         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13773
13774 2011-09-25  Bruno Haible  <bruno@clisp.org>
13775
13776         msvc-inval: Make handler multithread-safe.
13777         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13778         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13779         declarations.
13780         (gl_msvc_inval_current): New declaration.
13781         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13782         Operate on the structure returned by gl_msvc_inval_current().
13783         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13784         Remove varaiables.
13785         (tls_index, tls_initialized): New variables.
13786         (not_per_thread): New variable.
13787         (gl_msvc_inval_current): New function.
13788         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13789         returned by gl_msvc_inval_current().
13790
13791 2011-09-25  Bruno Haible  <bruno@clisp.org>
13792
13793         msvc-inval: Install handler globally.
13794         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13795         !_MSC_VER.
13796         (gl_msvc_invalid_parameter_handler): Remove declaration.
13797         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13798         declarations.
13799         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13800         Install the handler globally, don't uninstall it.
13801         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13802         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13803         currently valid, call RaiseException instead.
13804         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13805         for !_MSC_VER.
13806
13807 2011-09-25  Bruno Haible  <bruno@clisp.org>
13808
13809         strerror_r-posix: Fix for MSVC 9.
13810         * lib/strerror_r.c (local_snprintf): New function.
13811         (snprintf): Define to local_snprintf, not to _snprintf.
13812
13813 2011-09-25  Bruno Haible  <bruno@clisp.org>
13814
13815         ftruncate: Support for MSVC 9.
13816         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13817         (chsize_nothrow): New function.
13818         (chsize): Redefine as a macro.
13819         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13820         * modules/ftruncate (Depends-on): Add msvc-inval.
13821
13822 2011-09-25  Bruno Haible  <bruno@clisp.org>
13823
13824         New module 'fstat'.
13825         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13826         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13827         * lib/fchdir.c (rpl_fstat): Remove function.
13828         * m4/fstat.m4: New file.
13829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13831         declared.
13832         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13833         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13834         * modules/fstat: New file.
13835         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13836         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13837         is set.
13838         * doc/posix-functions/fstat.texi: Mention the new module and the
13839         problem on MSVC.
13840         * NEWS: Mention the change.
13841         * modules/acl (Depends-on): Add fstat.
13842         * modules/chdir-safer (Depends-on): Likewise.
13843         * modules/chown (Depends-on): Likewise.
13844         * modules/copy-file (Depends-on): Likewise.
13845         * modules/fchdir (Depends-on): Likewise.
13846         * modules/fdopendir (Depends-on): Likewise.
13847         * modules/fopen (Depends-on): Likewise.
13848         * modules/fts (Depends-on): Likewise.
13849         * modules/getcwd (Depends-on): Likewise.
13850         * modules/isapipe (Depends-on): Likewise.
13851         * modules/linkat (Depends-on): Likewise.
13852         * modules/lseek (Depends-on): Likewise.
13853         * modules/mkdir-p (Depends-on): Likewise.
13854         * modules/open (Depends-on): Likewise.
13855         * modules/openat (Depends-on): Likewise.
13856         * modules/read-file (Depends-on): Likewise.
13857         * modules/renameat (Depends-on): Likewise.
13858         * modules/utimens (Depends-on): Likewise.
13859
13860 2011-09-25  Bruno Haible  <bruno@clisp.org>
13861
13862         linkat: Fix compilation on MSVC 9.
13863         * lib/linkat.c: Don't include <stdint.h>.
13864
13865 2011-09-25  Bruno Haible  <bruno@clisp.org>
13866
13867         fclose: Support for MSVC 9.
13868         * lib/fclose.c: Include msvc-inval.h.
13869         (fclose_nothrow): New function.
13870         (rpl_fclose): Use it.
13871         * modules/fclose (Depends-on): Add msvc-inval.
13872         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13873
13874 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13875
13876         dup2: minor simplifications
13877         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13878         that it's a performance win.
13879         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13880         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13881
13882 2011-09-24  Jim Meyering  <meyering@redhat.com>
13883
13884         test-futimens: avoid a warning from gcc -Wshadow
13885         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13886         to avoid a shadowing warning.
13887
13888 2011-09-24  Bruno Haible  <bruno@clisp.org>
13889
13890         fdopen: Support for MSVC 9.
13891         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13892         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13893         * lib/fdopen.c: Include msvc-inval.h.
13894         (fdopen_nothrow): New function.
13895         (rpl_fdopen): Use it.
13896         * modules/fdopen (Depends-on): Add msvc-inval.
13897         * modules/fclose-tests (Depends-on): Add fdopen.
13898         * modules/fflush-tests (Depends-on): Likewise.
13899         * modules/fgetc-tests (Depends-on): Likewise.
13900         * modules/fputc-tests (Depends-on): Likewise.
13901         * modules/fread-tests (Depends-on): Likewise.
13902         * modules/freopen-tests (Depends-on): Likewise.
13903         * modules/fseeko-tests (Depends-on): Likewise.
13904         * modules/ftello-tests (Depends-on): Likewise.
13905         * modules/fwrite-tests  (Depends-on): Likewise.
13906         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13907
13908 2011-09-24  Bruno Haible  <bruno@clisp.org>
13909
13910         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13911         * modules/fgetc-tests (Depends-on): Add unistd.
13912         * modules/fputc-tests (Depends-on): Likewise.
13913         * modules/fread-tests (Depends-on): Likewise.
13914         * modules/fwrite-tests (Depends-on): Likewise.
13915
13916 2011-09-24  Bruno Haible  <bruno@clisp.org>
13917
13918         dup: Simplify autoconf test.
13919         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13920         on gl_MSVC_INVAL's result.
13921
13922 2011-09-24  Bruno Haible  <bruno@clisp.org>
13923
13924         Tests for function fwrite().
13925         * modules/fwrite-tests: New file.
13926         * tests/test-fwrite.c: New file.
13927         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13928
13929         Tests for function fread().
13930         * modules/fread-tests: New file.
13931         * tests/test-fread.c: New file.
13932         * modules/stdio-tests (Depends-on): Add fread-tests.
13933
13934         Activate fputc tests.
13935         * modules/stdio-tests (Depends-on): Add fputc-tests.
13936
13937         Enhance fgetc, fputc tests.
13938         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13939         * tests/test-fputc.c (main): Likewise.
13940
13941 2011-09-24  Bruno Haible  <bruno@clisp.org>
13942
13943         write: Support for MSVC 9.
13944         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13945         is not 1.
13946         * lib/write.c (write_nothrow): New function.
13947         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13948         not 1. Use write_nothrow.
13949         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13950         invalid parameter handler.
13951         (gl_PREREQ_WRITE): New macro.
13952         * modules/write (Depends-on): Add msvc-inval.
13953         (configure.ac): Invoke gl_PREREQ_WRITE.
13954         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13955
13956 2011-09-24  Bruno Haible  <bruno@clisp.org>
13957
13958         read: Fix last commit.
13959         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13960
13961 2011-09-24  Bruno Haible  <bruno@clisp.org>
13962
13963         dup2: Fix last commit.
13964         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13965         (rpl_dup2): Disable fcntl workaround on native Windows.
13966
13967         sigprocmask: Make code safer.
13968         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13969         section that changes macro definitions for this compilation unit.
13970
13971 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13972
13973         dup2: clarify by coalescing Windows-specific material
13974         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13975         "msvc-nothrow.h"' to the Windows-specific section, so that the
13976         Emacs source need not contain these include files.
13977         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13978         Windows-specific fixes into this function rather than just the
13979         nothrow fix, as this shortens and clarifies the code.  Always
13980         define as a function, as that's a bit cleaner than having it be
13981         sometimes a function and sometimes a macro.
13982         (rpl_dup2): Move the Windows-specific stuff out of here and into
13983         ms_windows_dup2.  Don't protect the Haiku-related fix with
13984         "#if !defined __linux__", as the same code also works around
13985         a Linux kernel bug, and it doesn't add any system calls on any
13986         platform.  Add comment about FreeBSD 6.1.
13987
13988         sigprocmask: move #include directive
13989         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13990         Windows-specific section, so that the Emacs source need not
13991         contain msvc-inval.h.
13992
13993 2011-09-23  Bruno Haible  <bruno@clisp.org>
13994
13995         read: Support for MSVC 9.
13996         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13997         is not 1.
13998         * lib/read.c (read_nothrow): New function.
13999         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
14000         read_nothrow.
14001         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
14002         invalid parameter handler.
14003         (gl_PREREQ_READ): New macro.
14004         * modules/read (Depends-on): Add msvc-inval.
14005         (configure.ac): Invoke gl_PREREQ_READ.
14006         * doc/posix-functions/read.texi: Mention the problem on MSVC.
14007
14008 2011-09-23  Bruno Haible  <bruno@clisp.org>
14009
14010         close: Support for MSVC 9.
14011         * lib/close.c: Include <errno.h>, msvc-inval.h.
14012         (close_nothrow): New function.
14013         (rpl_close): Use it.
14014         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
14015         invalid parameter handler.
14016         * modules/close (Depends-on): Add msvc-inval.
14017         * modules/dup2-tests (Depends-on): Add close.
14018         * modules/dup3-tests (Depends-on): Likewise.
14019         * modules/fcntl-tests (Depends-on): Likewise.
14020         * modules/spawn-pipe-tests (Depends-on): Likewise.
14021         * modules/unistd-safer-tests (Depends-on): Likewise.
14022         * doc/posix-functions/close.texi: Mention the problem on MSVC.
14023
14024 2011-09-23  Bruno Haible  <bruno@clisp.org>
14025
14026         New module 'dup'.
14027         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
14028         Allow replacement.
14029         * lib/dup.c: New file.
14030         * lib/fchdir.c (rpl_dup): Remove function.
14031         * m4/dup.m4: New file.
14032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
14033         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
14034         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
14035         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
14036         * modules/dup: New file.
14037         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
14038         'dup' module is in use.
14039         * modules/fdopendir (Depends-on): Add dup.
14040         * modules/fdutimensat-tests (Depends-on): Likewise.
14041         * modules/fts (Depends-on): Likewise.
14042         * modules/futimens-tests (Depends-on): Likewise.
14043         * modules/posix_spawnp-tests (Depends-on): Likewise.
14044         * modules/unistd-safer-tests (Depends-on): Likewise.
14045         * modules/utimens-tests (Depends-on): Likewise.
14046         * doc/posix-functions/dup.texi: Mention the new module and the problem
14047         on MSVC.
14048
14049 2011-09-23  Bruno Haible  <bruno@clisp.org>
14050
14051         getdtablesize: Support for MSVC 9.
14052         * lib/getdtablesize.c: Include msvc-inval.h.
14053         (_setmaxstdio_nothrow): New function.
14054         (_setmaxstdio): Redefine it.
14055         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
14056         * modules/getdtablesize (Depends-on): Add msvc-inval.
14057         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
14058
14059 2011-09-23  Bruno Haible  <bruno@clisp.org>
14060
14061         signal-h: Rename from signal.
14062         * modules/signal-h: Renamed from modules/signal.
14063         * modules/pthread_sigmask (Depends-on): Update.
14064         * modules/raise (Depends-on): Likewise.
14065         * modules/sigaction (Depends-on): Likewise.
14066         * modules/sigpipe (Depends-on): Likewise.
14067         * modules/sigprocmask (Depends-on): Likewise.
14068         * modules/sys_select (Depends-on): Likewise.
14069         * modules/signal-h-tests: Renamed from modules/signal-tests.
14070         (Files, Depends-on, Makefile.am): Update.
14071         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
14072         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
14073         (Files, Makefile.am): Update.
14074         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
14075         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14076         * modules/signal: New placeholder file.
14077         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14078         * doc/posix-headers/signal.texi: Update.
14079         * NEWS: Mention the change.
14080
14081 2011-09-23  Bruno Haible  <bruno@clisp.org>
14082
14083         sigprocmask: Avoid crashes through signal() on MSVC 9.
14084         * lib/sigprocmask.c: Include msvc-inval.h.
14085         (signal_nothrow): New function.
14086         (signal): Redefine it.
14087         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14088         * modules/sigprocmask (Depends-on): Add msvc-inval.
14089         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14090
14091 2011-09-23  Bruno Haible  <bruno@clisp.org>
14092
14093         Tests for module 'raise'.
14094         * modules/raise-tests: New file.
14095         * tests/test-raise.c: New file.
14096
14097         raise: Support for MSVC.
14098         * lib/signal.in.h (raise): New declaration.
14099         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14100         for native Windows platforms.
14101         * m4/raise.m4: New file.
14102         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14103         HAVE_RAISE, REPLACE_RAISE.
14104         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14105         REPLACE_RAISE.
14106         * modules/raise (Status, Notice): Remove fields.
14107         (Files): Add m4/raise.m4.
14108         (Depends-on): Add signal, msvc-inval.
14109         (configure.ac): Use the common idioms.
14110         (Maintainer): Add me.
14111         * tests/test-signal-c++.cc: Check the signature of raise.
14112         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14113
14114 2011-09-23  Bruno Haible  <bruno@clisp.org>
14115
14116         pipe2: Fix compilation on pre-C99 compilers.
14117         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14118
14119 2011-09-23  Bruno Haible  <bruno@clisp.org>
14120
14121         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14122         * lib/msvc-nothrow.h: New file.
14123         * lib/msvc-nothrow.c: New file.
14124         * m4/msvc-nothrow.m4: New file.
14125         * modules/msvc-nothrow: New file.
14126         * lib/dup2.c: Include msvc-nothrow.h.
14127         (rpl_dup2): No need to protect _get_osfhandle call here.
14128         * lib/accept4.c: Include msvc-nothrow.h.
14129         * lib/error.c: Likewise.
14130         * lib/fcntl.c: Likewise.
14131         * lib/lseek.c: Likewise.
14132         * lib/nonblocking.c: Likewise.
14133         * lib/poll.c: Likewise.
14134         * lib/read.c: Likewise.
14135         * lib/select.c: Likewise.
14136         * lib/sockets.h: Likewise.
14137         * lib/sockets.c: Likewise.
14138         * lib/stdio-read.c: Likewise.
14139         * lib/stdio-write.c: Likewise.
14140         * lib/write.c: Likewise.
14141         * lib/w32sock.h: Likewise.
14142         * lib/w32spawn.h: Likewise.
14143         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14144         * lib/fsync.c: Likewise.
14145         * lib/isapipe.c: Likewise.
14146         * modules/dup2 (Depends-on): Add msvc-nothrow.
14147         * modules/accept4 (Depends-on): Likewise.
14148         * modules/error (Depends-on): Likewise.
14149         * modules/fcntl (Depends-on): Likewise.
14150         * modules/lseek (Depends-on): Likewise.
14151         * modules/nonblocking (Depends-on): Likewise.
14152         * modules/poll (Depends-on): Likewise.
14153         * modules/read (Depends-on): Likewise.
14154         * modules/select (Depends-on): Likewise.
14155         * modules/sockets (Depends-on): Likewise.
14156         * modules/sigpipe (Depends-on): Likewise.
14157         * modules/write (Depends-on): Likewise.
14158         * modules/accept (Depends-on): Likewise.
14159         * modules/bind (Depends-on): Likewise.
14160         * modules/connect (Depends-on): Likewise.
14161         * modules/gethostname (Depends-on): Likewise.
14162         * modules/getpeername (Depends-on): Likewise.
14163         * modules/getsockname (Depends-on): Likewise.
14164         * modules/getsockopt (Depends-on): Likewise.
14165         * modules/ioctl (Depends-on): Likewise.
14166         * modules/listen (Depends-on): Likewise.
14167         * modules/recv (Depends-on): Likewise.
14168         * modules/recvfrom (Depends-on): Likewise.
14169         * modules/send (Depends-on): Likewise.
14170         * modules/sendto (Depends-on): Likewise.
14171         * modules/setsockopt (Depends-on): Likewise.
14172         * modules/shutdown (Depends-on): Likewise.
14173         * modules/socket (Depends-on): Likewise.
14174         * modules/execute (Depends-on): Likewise.
14175         * modules/spawn-pipe (Depends-on): Likewise.
14176         * modules/flock (Depends-on): Likewise.
14177         * modules/fsync (Depends-on): Likewise.
14178         * modules/isapipe (Depends-on): Likewise.
14179         * tests/test-cloexec.c: Include msvc-nothrow.h.
14180         * tests/test-dup-safer.c: Likewise.
14181         * tests/test-dup2.c: Likewise.
14182         * tests/test-dup3.c: Likewise.
14183         * tests/test-fcntl.c: Likewise.
14184         * tests/test-pipe.c: Likewise.
14185         * tests/test-pipe2.c: Likewise.
14186         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14187         * modules/unistd-safer-tests (Depends-on): Likewise.
14188         * modules/dup2-tests (Depends-on): Likewise.
14189         * modules/dup3-tests (Depends-on): Likewise.
14190         * modules/fcntl-tests (Depends-on): Likewise.
14191         * modules/pipe-posix-tests (Depends-on): Likewise.
14192         * modules/pipe2-tests (Depends-on): Likewise.
14193
14194 2011-09-23  Bruno Haible  <bruno@clisp.org>
14195
14196         dup2: Make code more maintainable.
14197         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14198         (rpl_dup2): Use it.
14199         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14200         * modules/dup2 (configure.ac): Invoke it.
14201         Reported by Paul Eggert.
14202
14203 2011-09-23  Bruno Haible  <bruno@clisp.org>
14204
14205         msvc-inval: Fix compilation error.
14206         * lib/msvc-inval.h: Include <excpt.h>.
14207
14208 2011-09-23  Bruno Haible  <bruno@clisp.org>
14209
14210         mkdir: Tweak for MSVC 9.
14211         * lib/sys_stat.in.h: Update comments.
14212         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14213
14214         Tests for module 'chdir'.
14215         * modules/chdir-tests: New file.
14216         * tests/test-chdir.c: New file.
14217
14218         New module 'chdir'.
14219         * modules/chdir: New file.
14220         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14221         (chdir): New declaration.
14222         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14223         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14224         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14225         * tests/test-unistd-c++.cc: Check signature of chdir.
14226         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14227         * modules/chdir-long (Depends-on): Add chdir.
14228         * modules/fchdir (Depends-on): Likewise.
14229         * modules/rename (Depends-on): Likewise.
14230         * modules/savewd (Depends-on): Likewise.
14231
14232         rmdir: Support for mingw, MSVC 9.
14233         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14234         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14235
14236         getcwd: Tweak for MSVC 9.
14237         * lib/unistd.in.h: Update comments.
14238         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14239
14240 2011-09-22  Bruno Haible  <bruno@clisp.org>
14241
14242         strerror_r-posix: Avoid a link error on MSVC.
14243         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14244         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14245
14246 2011-09-22  Bruno Haible  <bruno@clisp.org>
14247
14248         select: Avoid link errors on MSVC.
14249         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14250         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14251         * modules/pselect (Link): Likewise.
14252         * NEWS: Mention the change.
14253         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14254         test-select-stdin against $(LIB_SELECT).
14255         * modules/pselect-tests (Makefile.am): Link test-pselect against
14256         $(LIB_SELECT).
14257
14258 2011-09-22  Bruno Haible  <bruno@clisp.org>
14259
14260         select: Avoid compilation error on MSVC.
14261         * lib/select.c: Don't include <stdbool.h>.
14262
14263 2011-09-21  Bruno Haible  <bruno@clisp.org>
14264
14265         Consolidate all uses of PATH_MAX in *.m4 files.
14266         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14267         macros.
14268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14269         and gl_PATHMAX_SNIPPET.
14270         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14271         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14272         * modules/chdir-long (Files): Add m4/pathmax.m4.
14273         * modules/getcwd (Files): Likewise.
14274
14275 2011-09-21  Bruno Haible  <bruno@clisp.org>
14276
14277         ftruncate: Un-deprecate, concentrate on Win32 support.
14278         * modules/ftruncate (Status, Notice): Remove sections.
14279         (Depends-on): Add largefile.
14280         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14281         non-mingw platforms.
14282         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14283         include <io.h>.
14284         * modules/perror-tests (Depends-on): Add ftruncate.
14285         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14286         'ftruncate' module.
14287
14288 2011-09-21  Bruno Haible  <bruno@clisp.org>
14289
14290         Add dependencies to new dirent related modules.
14291         * modules/opendir (Depends-on): Add closedir.
14292         * modules/getcwd (Depends-on): Add opendir, closedir.
14293         * modules/dirent-safer-tests (Depends-on): Likewise.
14294         * modules/fdopendir-tests (Depends-on): Likewise.
14295         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14296         * modules/renameat-tests (Depends-on): Likewise.
14297
14298 2011-09-21  Bruno Haible  <bruno@clisp.org>
14299
14300         opendir: Avoid compilation error on mingw.
14301         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14302         * modules/opendir (Depends-on): Add unistd.
14303
14304 2011-09-21  Bruno Haible  <bruno@clisp.org>
14305
14306         ftruncate tests: Avoid a test failure on mingw.
14307         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14308
14309 2011-09-21  Bruno Haible  <bruno@clisp.org>
14310
14311         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14312         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14313         native Windows.
14314
14315 2011-09-21  Bruno Haible  <bruno@clisp.org>
14316
14317         New module 'fdopen'.
14318         * lib/stdio.in.h (fdopen): New declaration.
14319         * lib/fdopen.c: New file.
14320         * m4/fdopen.m4: New file.
14321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14322         REPLACE_FDOPEN.
14323         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14324         REPLACE_FDOPEN.
14325         * modules/fdopen: New file.
14326         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14327         * tests/test-stdio-c++.cc: Check signature of fdopen.
14328         * doc/posix-functions/fdopen.texi: Mention the new module.
14329
14330 2011-09-21  Bruno Haible  <bruno@clisp.org>
14331
14332         unlockpt tests: Avoid test failure on NetBSD 5.1.
14333         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14334         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14335
14336 2011-09-21  Bruno Haible  <bruno@clisp.org>
14337
14338         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14339         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14340         * tests/test-getlogin_r.c (main): Likewise.
14341
14342 2011-09-20  Bruno Haible  <bruno@clisp.org>
14343
14344         time tests: Don't require pid_t.
14345         * doc/posix-headers/time.texi: Revert last change.
14346         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14347         * tests/test-time.c: Comment out the check for pid_t.
14348
14349 2011-09-20  Bruno Haible  <bruno@clisp.org>
14350
14351         fsync tests: Avoid a test failure on mingw.
14352         * tests/test-fsync.c (main): Allow a failure with EIO.
14353
14354 2011-09-20  Bruno Haible  <bruno@clisp.org>
14355
14356         euidaccess: Update comments.
14357         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14358
14359 2011-09-20  Bruno Haible  <bruno@clisp.org>
14360
14361         Ensure EBADF returns for socket functions on mingw.
14362         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14363         descriptor is invalid.
14364         * lib/bind.c (rpl_bind): Likewise.
14365         * lib/connect.c (rpl_connect): Likewise.
14366         * lib/getpeername.c (rpl_getpeername): Likewise.
14367         * lib/getsockname.c (rpl_getsockname): Likewise.
14368         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14369         * lib/listen.c (rpl_listen): Likewise.
14370         * lib/recv.c (rpl_recv): Likewise.
14371         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14372         * lib/send.c (rpl_send): Likewise.
14373         * lib/sendto.c (rpl_sendto): Likewise.
14374         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14375         * lib/shutdown.c (rpl_shutdown): Likewise.
14376
14377 2011-09-20  Bruno Haible  <bruno@clisp.org>
14378
14379         select tests: EBADF tests.
14380         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14381         test_bad_fd): New functions.
14382         (test_function): Invoke also test_bad_fd.
14383
14384 2011-09-20  Bruno Haible  <bruno@clisp.org>
14385
14386         Tests for module 'posix_spawn_file_actions_addopen.
14387         * modules/posix_spawn_file_actions_addopen-tests: New file.
14388         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14389
14390         Tests for module 'posix_spawn_file_actions_adddup2'.
14391         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14392         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14393
14394         Tests for module 'posix_spawn_file_actions_addclose'.
14395         * modules/posix_spawn_file_actions_addclose-tests: New file.
14396         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14397
14398 2011-09-20  Bruno Haible  <bruno@clisp.org>
14399
14400         Tests for module 'unlockpt'.
14401         * modules/unlockpt-tests: New file.
14402         * tests/test-unlockpt.c: New file.
14403         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14404
14405         Tests for module 'grantpt'.
14406         * modules/grantpt-tests: New file.
14407         * tests/test-grantpt.c: New file.
14408         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14409
14410 2011-09-20  Bruno Haible  <bruno@clisp.org>
14411
14412         freopen tests: EBADF tests.
14413         * tests/test-freopen.c: Include errno.h, unistd.h.
14414         (main): Add tests for EBADF, commented out for the moment.
14415
14416         fclose tests: EBADF tests.
14417         * tests/test-fclose.c (main): Add tests for EBADF.
14418
14419         fflush tests: EBADF tests.
14420         * tests/test-fflush.c: Include errno.h, macros.h.
14421         (main): Add tests for EBADF.
14422
14423         ftello tests: EBADF tests.
14424         * tests/test-ftello4.sh: New file.
14425         * tests/test-ftello4.c: New file.
14426         * modules/ftello-tests (Files): Add them.
14427         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14428
14429         fseeko tests: EBADF tests.
14430         * tests/test-fseeko4.sh: New file.
14431         * tests/test-fseeko4.c: New file.
14432         * modules/fseeko-tests (Files): Add them.
14433         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14434
14435         Tests for function fputc().
14436         * modules/fputc-tests: New file.
14437         * tests/test-fputc.c: New file.
14438         * modules/stdio-tests (Depends-on): Add fputc-tests.
14439
14440         Tests for function fgetc().
14441         * modules/fgetc-tests: New file.
14442         * tests/test-fgetc.c: New file.
14443         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14444
14445         Tests for function fdopen().
14446         * modules/fdopen-tests: New file.
14447         * tests/test-fdopen.c: New file.
14448         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14449
14450         Tests for module 'vdprintf'.
14451         * modules/vdprintf-tests: New file.
14452         * tests/test-vdprintf.c: New file.
14453
14454         Tests for module 'dprintf'.
14455         * modules/dprintf-tests: New file.
14456         * tests/test-dprintf.c: New file.
14457
14458 2011-09-20  Bruno Haible  <bruno@clisp.org>
14459
14460         Tests for module 'ioctl'.
14461         * modules/ioctl-tests: New file.
14462         * tests/test-ioctl.c: New file.
14463
14464 2011-09-20  Bruno Haible  <bruno@clisp.org>
14465
14466         fcntl tests: EBADF tests.
14467         * tests/test-fcntl.c (main): Add more tests for EBADF.
14468
14469 2011-09-20  Bruno Haible  <bruno@clisp.org>
14470
14471         utimensat tests: EBADF tests.
14472         * tests/test-utimensat.c (main): Add tests for EBADF.
14473
14474         renameat tests: EBADF tests.
14475         * tests/test-renameat.c (main): Add tests for EBADF.
14476
14477         mkfifoat tests: EBADF tests.
14478         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14479
14480         readlinkat tests: EBADF tests.
14481         * tests/test-readlinkat.c (main): Add tests for EBADF.
14482
14483         symlinkat tests: EBADF tests.
14484         * tests/test-symlinkat.c (main): Add tests for EBADF.
14485
14486         linkat tests: EBADF tests.
14487         * tests/test-linkat.c (main): Add tests for EBADF.
14488
14489         Tests for module 'faccessat'.
14490         * modules/faccessat-tests: New file.
14491         * tests/test-faccessat.c: New file.
14492
14493         fdopendir tests: EBADF tests.
14494         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14495
14496         openat tests: EBADF tests.
14497         * tests/test-fchownat.c (main): Add tests for EBADF.
14498         * tests/test-fstatat.c (main): Likewise.
14499         * tests/test-mkdirat.c (main): Likewise.
14500         * tests/test-openat.c (main): Likewise.
14501         * tests/test-unlinkat.c (main): Likewise.
14502         * tests/test-fchmodat.c: New file.
14503         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14504         (Makefile.am): Also run 'test-fchmodat'.
14505
14506 2011-09-20  Bruno Haible  <bruno@clisp.org>
14507
14508         utimens, futimens, fdutimensat tests: EBADF tests.
14509         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14510
14511         Tests for function fstat().
14512         * modules/fstat-tests: New file.
14513         * tests/test-fstat.c: New file.
14514         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14515
14516 2011-09-20  Bruno Haible  <bruno@clisp.org>
14517
14518         test-ttyname_r tests: EBADF tests.
14519         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14520
14521         Tests for module 'isatty'.
14522         * modules/isatty-tests: New file.
14523         * tests/test-isatty.c: New file.
14524
14525         Tests for module 'write'.
14526         * modules/write-tests: New file.
14527         * tests/test-write.c: New file.
14528
14529         Tests for module 'read'.
14530         * modules/read-tests: New file.
14531         * tests/test-read.c: New file.
14532
14533         pwrite tests: EBADF tests.
14534         * tests/test-pwrite.c (main): Add tests for EBADF.
14535
14536         pread tests: EBADF tests.
14537         * tests/test-pread.c (main): Add tests for EBADF.
14538
14539         lseek tests: EBADF tests.
14540         * tests/test-lseek.c (main): Add more tests for EBADF.
14541
14542         Tests for module 'ftruncate'.
14543         * modules/ftruncate-tests: New file.
14544         * tests/test-ftruncate.sh: New file.
14545         * tests/test-ftruncate.c: New file.
14546
14547         fsync tests: EBADF tests.
14548         * tests/test-fsync.c (main): Add more tests for EBADF.
14549
14550         fdatasync tests: EBADF tests.
14551         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14552
14553         Tests for module 'fchown'.
14554         * modules/fchown-tests: New file.
14555         * tests/test-fchown.c: New file.
14556
14557         Tests for module 'fchmod'.
14558         * modules/fchmod-tests: New file.
14559         * tests/test-fchmod.c: New file.
14560
14561         fchdir tests: EBADF tests.
14562         * tests/test-fchdir.c (main): Add more tests for EBADF.
14563
14564         dup2 tests: EBADF tests.
14565         * tests/test-dup2.c (main): Add more tests for EBADF.
14566
14567         Tests for module 'dup'.
14568         * modules/dup-tests: New file.
14569         * tests/test-dup.c: New file.
14570
14571         Tests for module 'close'.
14572         * modules/close-tests: New file.
14573         * tests/test-close.c: New file.
14574
14575 2011-09-20  Bruno Haible  <bruno@clisp.org>
14576
14577         Tests for module 'shutdown'.
14578         * modules/shutdown-tests: New file.
14579         * tests/test-shutdown.c: New file.
14580
14581         Tests for module 'setsockopt'.
14582         * modules/setsockopt-tests: New file.
14583         * tests/test-setsockopt.c: New file.
14584
14585         Tests for module 'sendto'.
14586         * modules/sendto-tests: New file.
14587         * tests/test-sendto.c: New file.
14588
14589         Tests for module 'send'.
14590         * modules/send-tests: New file.
14591         * tests/test-send.c: New file.
14592
14593         Tests for module 'recvfrom'.
14594         * modules/recvfrom-tests: New file.
14595         * tests/test-recvfrom.c: New file.
14596
14597         Tests for module 'recv'.
14598         * modules/recv-tests: New file.
14599         * tests/test-recv.c: New file.
14600
14601         Tests for module 'listen'.
14602         * modules/listen-tests: New file.
14603         * tests/test-listen.c: New file.
14604
14605         Tests for module 'getsockopt'.
14606         * modules/getsockopt-tests: New file.
14607         * tests/test-getsockopt.c: New file.
14608
14609         Tests for module 'getsockname'.
14610         * modules/getsockname-tests: New file.
14611         * tests/test-getsockname.c: New file.
14612
14613         Tests for module 'getpeername'.
14614         * modules/getpeername-tests: New file.
14615         * tests/test-getpeername.c: New file.
14616
14617         Tests for module 'connect'.
14618         * modules/connect-tests: New file.
14619         * tests/test-connect.c: New file.
14620
14621         Tests for module 'bind'.
14622         * modules/bind-tests: New file.
14623         * tests/test-bind.c: New file.
14624
14625         accept4 tests: Fix for native Windows.
14626         * tests/test-accept4.c: Include sockets.h.
14627         (main): Invoke gl_sockets_startup.
14628         * modules/accept4-tests (Depends-on): Add sockets.
14629
14630         accept tests: Fix for native Windows.
14631         * tests/test-accept.c: Include sockets.h.
14632         (main): Invoke gl_sockets_startup.
14633         * modules/accept-tests (Depends-on): Add sockets.
14634
14635 2011-09-19  Bruno Haible  <bruno@clisp.org>
14636
14637         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14638         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14639         do...while(0).
14640         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14641         Suggested by Paul Eggert.
14642
14643 2011-09-19  Bruno Haible  <bruno@clisp.org>
14644
14645         sched: Ensure pid_t is defined.
14646         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14647         not define pid_t.
14648         * lib/sched.in.h: Include <sys/types.h>.
14649         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14651
14652 2011-09-19  Bruno Haible  <bruno@clisp.org>
14653
14654         msvc-inval: Ensure the entire expansion is a single statement.
14655         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14656         of braces.
14657
14658 2011-09-19  Jim Meyering  <meyering@redhat.com>
14659
14660         tests: use printf, not echo in init.sh's warn_ function
14661         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14662         misbehave when given strings containing a backslash or starting
14663         with e.g., -n.  James Youngman suggested setting IFS.
14664
14665 2011-09-19  Eric Blake  <eblake@redhat.com>
14666
14667         futimens: enhance test
14668         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14669         closed non-negative fd.
14670
14671         date: accept 'hence' as opposite of 'ago'
14672         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14673         * tests/test-parse-datetime.c (main): Enhance test.
14674         Suggested by Jesse Wilson.
14675
14676 2011-09-19  Jim Meyering  <meyering@redhat.com>
14677
14678         getcwd: don't fail in a deep directory on a system without openat
14679         Before this change, getcwd would fail when called from a directory
14680         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14681         the non-openat implementation used "..", "../..", "../../..", etc.
14682         to access ancestor directories.  With too many, that string would
14683         be longer than PATH_MAX.
14684         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14685         using gnulib's openat replacement.
14686         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14687         we're using the replacement function.
14688
14689 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14690
14691         maint.mk: avoid warnings from perl about missing files
14692         * top/maint.mk (def_sym_regex): Ignore files listed in
14693         $(gl_other_headers_) that do not exist, say because a project
14694         does not use a corresponding module.
14695
14696 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14697
14698         stat: use pathmax.h only if needed
14699         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14700         This is better for Emacs, which does not have a mingw port and
14701         therefore can avoid the pathmax module.
14702
14703         utimens: remove dependency on dup2
14704         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14705         to work around the Linux kernel bug.
14706         * modules/utimens (Depends-on): Remove dup2.
14707
14708 2011-09-18  Bruno Haible  <bruno@clisp.org>
14709
14710         inet_ntop, inet_pton: Look for it also in libresolv.
14711         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14712         libnsl, search for it in libresolv.
14713         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14714         Needed on Solaris 7.
14715
14716 2011-09-18  Bruno Haible  <bruno@clisp.org>
14717
14718         accept, accept4 tests: Avoid link error on Solaris.
14719         * modules/accept-tests (Makefile.am): Link test-accept against
14720         $(LIBSOCKET).
14721         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14722         $(LIBSOCKET).
14723
14724         accept4: Avoid link error on Solaris.
14725         * modules/accept4 (Link): New section.
14726
14727         socket functions: Avoid link errors on Solaris.
14728         * modules/accept (Depends-on): Add socketlib.
14729         (Link): New section.
14730         * modules/bind (Depends-on): Add socketlib.
14731         (Link): New section.
14732         * modules/connect (Depends-on): Add socketlib.
14733         (Link): New section.
14734         * modules/getpeername (Depends-on): Add socketlib.
14735         (Link): New section.
14736         * modules/getsockname (Depends-on): Add socketlib.
14737         (Link): New section.
14738         * modules/getsockopt (Depends-on): Add socketlib.
14739         (Link): New section.
14740         * modules/listen (Depends-on): Add socketlib.
14741         (Link): New section.
14742         * modules/recv (Depends-on): Add socketlib.
14743         (Link): New section.
14744         * modules/recvfrom (Depends-on): Add socketlib.
14745         (Link): New section.
14746         * modules/send (Depends-on): Add socketlib.
14747         (Link): New section.
14748         * modules/sendto (Depends-on): Add socketlib.
14749         (Link): New section.
14750         * modules/setsockopt (Depends-on): Add socketlib.
14751         (Link): New section.
14752         * modules/shutdown (Depends-on): Add socketlib.
14753         (Link): New section.
14754         * modules/socket (Depends-on): Add socketlib.
14755         (Link): New section.
14756
14757 2011-09-18  Bruno Haible  <bruno@clisp.org>
14758
14759         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14760         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14761         than 5 seconds.
14762         * modules/ptsname-tests (configure.ac): Test for alarm.
14763
14764 2011-09-18  Bruno Haible  <bruno@clisp.org>
14765
14766         posix_spawn_file_actions_add*: Fix module dependencies.
14767         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14768         posix_spawn_file_actions_init.
14769         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14770         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14771
14772 2011-09-18  Bruno Haible  <bruno@clisp.org>
14773
14774         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14775         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14776         * tests/test-renameat.c (main): Likewise.
14777
14778 2011-09-18  Bruno Haible  <bruno@clisp.org>
14779
14780         Tests for module 'accept4'.
14781         * modules/accept4-tests: New file.
14782         * tests/test-accept4.c: New file.
14783
14784 2011-09-18  Bruno Haible  <bruno@clisp.org>
14785
14786         Tests for module 'accept'.
14787         * modules/accept-tests: New file.
14788         * tests/test-accept.c: New file.
14789
14790 2011-09-18  Bruno Haible  <bruno@clisp.org>
14791
14792         dup2: Support for MSVC.
14793         * lib/dup2.c: Include msvc-inval.h.
14794         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14795         _get_osfhandle calls.
14796         * modules/dup2 (Depends-on): Add msvc-inval.
14797         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14798
14799         New module 'msvc-inval'.
14800         * lib/msvc-inval.h: New file.
14801         * lib/msvc-inval.c: New file.
14802         * m4/msvc-inval.m4: New file.
14803         * modules/msvc-inval: New file.
14804
14805 2011-09-17  Bruno Haible  <bruno@clisp.org>
14806
14807         Tests for module 'pclose'.
14808         * modules/pclose-tests: New file.
14809
14810         New module 'pclose'.
14811         * lib/stdio.in.h (pclose): New declaration.
14812         * lib/pclose.c: New file.
14813         * m4/pclose.m4: New file.
14814         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14815         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14816         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14817         * modules/pclose: New file.
14818         * modules/popen-tests (Depends-on): Add pclose.
14819         * modules/popen-safer-tests (Depends-on): Likewise.
14820         * doc/posix-functions/pclose.texi: Mention the new module.
14821
14822 2011-09-17  Bruno Haible  <bruno@clisp.org>
14823
14824         popen: Support for MSVC.
14825         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14826         * lib/popen.c (popen): Provide alternate definition for native Windows.
14827         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14829         * modules/popen (Depends-on, configure.ac): Update condition.
14830         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14831         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14832         fixed.
14833
14834 2011-09-17  Bruno Haible  <bruno@clisp.org>
14835
14836         isnanl, isnand, isnanf: Work around MSVC bug.
14837         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14838
14839 2011-09-17  Bruno Haible  <bruno@clisp.org>
14840
14841         sys_socket tests: Fix recent mistake.
14842         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14843
14844 2011-09-17  Bruno Haible  <bruno@clisp.org>
14845
14846         putenv: Support for MSVC.
14847         * modules/putenv (Depends-on): Add environ.
14848         * lib/putenv.c (environ): Disable declaration.
14849         * lib/unistd.in.h: Update comment.
14850
14851 2011-09-17  Bruno Haible  <bruno@clisp.org>
14852
14853         math: Avoid macro redefinition warnings on MSVC.
14854         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14855         Undefine before redefining.
14856
14857 2011-09-17  Bruno Haible  <bruno@clisp.org>
14858
14859         doc: Mention functions which are declared as macros.
14860         * doc/posix-functions/*[fl].texi: Mention that some functions are
14861         defined as macros with arguments only.
14862
14863 2011-09-17  Bruno Haible  <bruno@clisp.org>
14864
14865         Add dependencies to new dirent related modules.
14866         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14867         * modules/fts (Depends-on): Likewise.
14868         * modules/glob (Depends-on): Likewise.
14869         * modules/savedir (Depends-on): Likewise.
14870         * modules/scandir (Depends-on): Likewise.
14871         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14872         * modules/fdopendir (Depends-on): Add opendir.
14873
14874 2011-09-17  Bruno Haible  <bruno@clisp.org>
14875
14876         inet_pton: Support for MSVC on Windows Vista or newer.
14877         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14878         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14879         HAVE_DECL_INET_PTON is defined.
14880         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14881         On platforms with <winsock2.h>, test whether inet_pton is declared in
14882         <ws2tcpip.h>. If so, arrange to replace it.
14883         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14884         REPLACE_INET_PTON.
14885         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14886         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14887         (Depends-on, configure.ac): Update condition.
14888         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14889
14890 2011-09-17  Bruno Haible  <bruno@clisp.org>
14891
14892         inet_ntop: Support for MSVC on Windows Vista or newer.
14893         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14894         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14895         HAVE_DECL_INET_NTOP is defined.
14896         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14897         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14898         <ws2tcpip.h>. If so, arrange to replace it.
14899         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14900         REPLACE_INET_NTOP.
14901         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14902         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14903         (Depends-on, configure.ac): Update condition.
14904         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14905
14906 2011-09-16  Eric Blake  <eblake@redhat.com>
14907
14908         test-fsync: yet another enhancement
14909         * tests/test-fsync.c (main): Also test behavior on read-only text
14910         file.
14911
14912 2011-09-16  Bruno Haible  <bruno@clisp.org>
14913
14914         Enhance fsync, fdatasync tests.
14915         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14916         * tests/test-fdatasync.c (main): Likewise.
14917
14918 2011-09-16  Bruno Haible  <bruno@clisp.org>
14919
14920         Support for MSVC compiler: Ensure mode_t gets defined.
14921         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14922         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14924         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14925         * tests/test-fcntl-h.c: Check that mode_t is defined.
14926         * tests/test-sys_stat.c: Likewise.
14927         * tests/test-sys_types.c: Likewise.
14928         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14929         * doc/posix-headers/sys_stat.texi: Likewise.
14930         * doc/posix-headers/sys_types.texi: Likewise.
14931
14932 2011-09-16  Bruno Haible  <bruno@clisp.org>
14933
14934         sys_stat: Support for MSVC.
14935         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14936         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14937         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14938         MSVC.
14939
14940 2011-09-16  Bruno Haible  <bruno@clisp.org>
14941
14942         Support for MSVC compiler: Ensure off_t gets defined.
14943         * lib/unistd.in.h: Include <sys/types.h>.
14944         * tests/test-fcntl-h.c: Check that off_t is defined.
14945         * tests/test-sys_stat.c: Likewise.
14946         * tests/test-sys_types.c: Likewise.
14947
14948 2011-09-16  Eric Blake  <eblake@redhat.com>
14949
14950         fdatasync: port to Solaris
14951         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14952         * modules/fdatasync (Link): Document it.
14953         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14954
14955         fdatasync: port to MacOS X 10.7
14956         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14957         declared.
14958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14959         * modules/unistd (Makefile.am): Substitute it.
14960         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14961         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14962
14963         fdatasync: minor improvements
14964         * modules/fdatasync (Depends-on): Add condition for fsync.
14965         * lib/fdatasync.c (fdatasync): Add comment.
14966         * tests/test-unistd-c++.cc: Test fdatasync.
14967
14968         unistd: update refs to newer POSIX
14969         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14970         Suggested by Bruno Haible.
14971
14972         fdatasync: new module
14973         * modules/fsync (Description): Document difference to fdatasync.
14974         * modules/fdatasync: New module.
14975         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14976         * lib/fdatasync.c (fdatasync): Likewise.
14977         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14978         defaults.
14979         * modules/unistd (Makefile.am): Set witnesses.
14980         * lib/unistd.in.h (fdatasync): Declare.
14981         * MODULES.html.sh: Document it.
14982         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14983         * modules/fdatasync-tests: New test.
14984         * tests/test-fdatasync.c: Likewise.
14985
14986 2011-09-16  Eric Blake  <eblake@redhat.com>
14987
14988         test-fsync: enhance tests
14989         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14990         * tests/test-fsync.c (main): Enhance test.
14991
14992 2011-09-15  Bruno Haible  <bruno@clisp.org>
14993
14994         Support for MSVC compiler: Ensure ssize_t gets defined.
14995         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14996         * doc/posix-headers/stdio.texi: Likewise.
14997         * modules/stdio (Depends-on): Add ssize_t.
14998         * modules/sys_socket (Depends-on): Likewise.
14999         * modules/sys_types (Depends-on): Likewise.
15000         * modules/sys_uio (Depends-on): Likewise.
15001         * modules/unistd (Depends-on): Likewise.
15002         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
15003         * tests/test-sys_types.c: Check that ssize_t is defined.
15004
15005 2011-09-14  Bruno Haible  <bruno@clisp.org>
15006
15007         Avoid using #, the m4 comment starter character, near brackets.
15008         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
15009         delimiter character in sed expressions.
15010         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
15011         Suggested by Eric Blake.
15012
15013         Properly quote AC_CHECK_DECLS' 4th argument.
15014         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
15015         argument.
15016         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15017         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15018         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15019         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15020         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15021         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
15022         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
15023         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
15024         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
15025         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15026         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
15027         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15028         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15029         * m4/isinf.m4 (gl_ISINF): Likewise.
15030         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15031         * m4/readutmp.m4 (gl_READUTMP): Likewise.
15032         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15033         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15035         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15036         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15037         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15038         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
15039         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15040         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15041         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
15043         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15045         Reported by Eric Blake.
15046
15047         Properly quote AC_CHECK_DECL's 4th argument.
15048         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
15049         argument.
15050         * m4/argp.m4 (gl_ARGP): Likewise.
15051         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15052         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15053         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15054         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15055         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
15056         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15057         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15058         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15059         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15060         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15061         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15062         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15063         Reported by Eric Blake.
15064
15065 2011-09-14  Eric Blake  <eblake@redhat.com>
15066
15067         opendir: avoid compile warning
15068         * lib/opendir.c (includes): Always include errno.h.
15069         Reported by Tatsuro MATSUOKA.
15070
15071 2011-09-14  Jim Meyering  <meyering@redhat.com>
15072
15073         maint.mk: sc_tight_scope: propagate failure from sub-make
15074         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
15075         Reported by Martin von Gagern.
15076
15077 2011-09-13  Bruno Haible  <bruno@clisp.org>
15078
15079         tempname: Support for MSVC.
15080         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15081         MSVC.
15082         * modules/tempname (Depends-on): Add fcntl-h.
15083
15084 2011-09-13  Bruno Haible  <bruno@clisp.org>
15085
15086         sys_time: Support for MSVC.
15087         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15088         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15089         include <winsock2.h>.
15090         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15091         function declarations that collide with POSIX.
15092         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15093         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15094
15095 2011-09-13  Bruno Haible  <bruno@clisp.org>
15096
15097         stat: Support for MSVC.
15098         * lib/stat.c: Include pathmax.h.
15099         * modules/stat (Depends-on): Add pathmax.
15100
15101         pathmax: Support for native Windows.
15102         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15103
15104 2011-09-12  Bruno Haible  <bruno@clisp.org>
15105
15106         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15107         * lib/dirent.in.h (struct dirent): New type.
15108         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15109         DT_WHT): New macros.
15110         (DIR): New type.
15111         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15112         (readdir, rewinddir): New declarations.
15113         * lib/dirent-private.h: New file.
15114         * lib/opendir.c: New file.
15115         * lib/readdir.c: New file.
15116         * lib/rewinddir.c: New file.
15117         * lib/closedir.c: New file.
15118         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15119         * m4/opendir.m4: New file.
15120         * m4/readdir.m4: New file.
15121         * m4/rewinddir.m4: New file.
15122         * m4/closedir.m4: New file.
15123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15124         REPLACE_CLOSEDIR here.
15125         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15126         readdir, rewinddir are declared.
15127         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15128         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15129         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15130         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15131         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15132         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15133         * modules/opendir: New file.
15134         * modules/readdir: New file.
15135         * modules/rewinddir: New file.
15136         * modules/closedir: New file.
15137         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15138         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15139         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15140         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15141         * NEWS: Mention the 'fchdir' change.
15142
15143 2011-09-11  Bruno Haible  <bruno@clisp.org>
15144
15145         asm-underscore.m4: Support for MSVC.
15146         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15147         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15148
15149 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15150
15151         Doc about crypt functions.
15152         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15153         needing for _GNU_SOURCE to get crypt.
15154         * doc/posix-functions/encrypt.texi: Likewise.
15155         * doc/posix-functions/setkey.texi: Likewise.
15156
15157 2011-09-11  Bruno Haible  <bruno@clisp.org>
15158
15159         doc: Update regarding MSVC 9.
15160         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15161         tested".
15162         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15163         * doc/posix-headers/*.texi: Likewise.
15164         * doc/pastposix-functions/*.texi: Likewise.
15165         * doc/glibc-functions/*.texi: Likewise.
15166         * doc/glibc-headers/*.texi: Likewise.
15167
15168 2011-09-11  Bruno Haible  <bruno@clisp.org>
15169
15170         unistd et al.: Don't assume <unistd.h> exists.
15171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15172         does not exist.
15173         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15174         exist. But include <stdlib.h>.
15175         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15176         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15177         symlink() does not exist.
15178         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15179         include <io.h> instead.
15180         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15181         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15182         include <direct.h> instead.
15183         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15184         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15185         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15186         <io.h> instead.
15187         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15188         correctly if the system does not have hard links.
15189         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15190         <direct.h> instead.
15191         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15192         it when looking for function declarations.
15193         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15194         <direct.h> and <io.h> instead.
15195         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15196
15197 2011-09-11  Bruno Haible  <bruno@clisp.org>
15198
15199         strcase: Support for MSVC.
15200         * modules/strcase (Status, Notice): Remove obsoletion mark.
15201         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15202         * doc/posix-functions/strncasecmp.texi: Likewise.
15203
15204         strings: Don't assume <strings.h> exists.
15205         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15206         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15207         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15208         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15209
15210 2011-09-11  Bruno Haible  <bruno@clisp.org>
15211
15212         dirent: Don't assume <dirent.h> exists.
15213         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15214         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15215         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15216         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15217
15218 2011-09-11  Bruno Haible  <bruno@clisp.org>
15219
15220         Fix wint_t on MSVC.
15221         * lib/wchar.in.h (wint_t): On MSVC, override it.
15222         * lib/wctype.in.h (wint_t): Likewise.
15223         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15224         MSVC.
15225         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15226         * doc/posix-headers/wctype.texi: Likewise.
15227
15228 2011-09-11  Bruno Haible  <bruno@clisp.org>
15229
15230         sys_types: Fix typo.
15231         * lib/sys_types.in.h: Fix typo in comment.
15232         Reported by Paul Eggert.
15233
15234         Support for MSVC compiler: Ensure size_t gets defined.
15235         * modules/strings (Depends-on): Add 'sys_types'.
15236         * modules/sys_uio (Depends-on): Likewise.
15237         * lib/sys_uio.in.h: Update comment.
15238
15239         C++ tests for module 'sys_types'.
15240         * modules/sys_types-c++-tests: New file.
15241         * tests/test-sys_types-c++.cc: New file.
15242
15243         Tests for module 'sys_types'.
15244         * modules/sys_types-tests: New file.
15245         * tests/test-sys_types.c: New file.
15246
15247         New module 'sys_types'.
15248         * lib/sys_types.in.h: New file.
15249         * m4/sys_types_h.m4: New file.
15250         * modules/sys_types: New file.
15251         * doc/posix-headers/sys_types.texi: Mention the new module and the
15252         size_t problem on MSVC 9.
15253
15254 2011-09-11  Bruno Haible  <bruno@clisp.org>
15255
15256         Support for MSVC compiler: Avoid division by a literal 0.
15257         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15258         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15259         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15260         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15261         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15262         * tests/infinity.h: New file.
15263         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15264         on MSVC.
15265         * tests/test-ceilf1.c: Include infinity.h.
15266         (main): Use Infinityf.
15267         * tests/test-ceil1.c: Include infinity.h.
15268         (main): Use Infinityd.
15269         * tests/test-ceill.c: Include infinity.h.
15270         (main): Use Infinityl.
15271         * tests/test-dprintf-posix.c: Include infinity.h.
15272         (test_function): Use Infinityd.
15273         * tests/test-floorf1.c: Include infinity.h.
15274         (main): Use Infinityf.
15275         * tests/test-floor1.c: Include infinity.h.
15276         (main): Use Infinityd.
15277         * tests/test-floorl.c: Include infinity.h.
15278         (main): Use Infinityl.
15279         * tests/test-fprintf-posix.c: Include infinity.h.
15280         (test_function): Use Infinityd.
15281         * tests/test-frexp.c: Include infinity.h.
15282         (main): Use Infinityd.
15283         * tests/test-frexpl.c: Include infinity.h.
15284         (main): Use Infinityl.
15285         * tests/test-isfinite.c: Include infinity.h.
15286         (test_isfinitef): Use Infinityf.
15287         (test_isfinited): Use Infinityd.
15288         (test_isfinitel): Use Infinityl.
15289         * tests/test-isinf.c: Include infinity.h.
15290         (test_isinff): Use Infinityf.
15291         (test_isinfd): Use Infinityd.
15292         (test_isinfl): Use Infinityl.
15293         * tests/test-isnan.c: Include infinity.h.
15294         (test_float): Use Infinityf.
15295         (test_double): Use Infinityd.
15296         (test_long_double): Use Infinityl.
15297         * tests/test-isnanf.h: Include infinity.h.
15298         (main): Use Infinityf.
15299         * tests/test-isnand.h: Include infinity.h.
15300         (main): Use Infinityd.
15301         * tests/test-isnanl.h: Include infinity.h.
15302         (main): Use Infinityl.
15303         * tests/test-ldexpl.c: Include infinity.h.
15304         (main): Use Infinityl.
15305         * tests/test-printf-posix.h: Include infinity.h.
15306         (test_function): Use Infinityd.
15307         * tests/test-roundf1.c: Include infinity.h.
15308         (main): Use Infinityf.
15309         * tests/test-round1.c: Include infinity.h.
15310         (main): Use Infinityd.
15311         * tests/test-roundl.c: Include infinity.h.
15312         (main): Use Infinityl.
15313         * tests/test-signbit.c: Include infinity.h.
15314         (test_signbitf): Use Infinityf.
15315         (test_signbitd): Use Infinityd.
15316         (test_signbitl): Use Infinityl.
15317         * tests/test-snprintf-posix.h: Include infinity.h.
15318         (test_function): Use Infinityd, Infinityl.
15319         * tests/test-sprintf-posix.h: Include infinity.h.
15320         (test_function): Use Infinityd, Infinityl.
15321         * tests/test-truncf1.c: Include infinity.h.
15322         (main): Use Infinityf.
15323         * tests/test-trunc1.c: Include infinity.h.
15324         (main): Use Infinityd.
15325         * tests/test-truncl.c: Include infinity.h.
15326         (main): Use Infinityl.
15327         * tests/test-vasnprintf-posix.c: Include infinity.h.
15328         (test_function): Use Infinityd, Infinityl.
15329         * tests/test-vasprintf-posix.c: Include infinity.h.
15330         (test_function): Use Infinityd, Infinityl.
15331         * modules/ceilf-tests (Files): Add tests/infinity.h.
15332         * modules/ceil-tests (Files): Likewise.
15333         * modules/ceill-tests (Files): Likewise.
15334         * modules/dprintf-posix-tests (Files): Likewise.
15335         * modules/floorf-tests (Files): Likewise.
15336         * modules/floor-tests (Files): Likewise.
15337         * modules/floorl-tests (Files): Likewise.
15338         * modules/fprintf-posix-tests (Files): Likewise.
15339         * modules/frexp-tests (Files): Likewise.
15340         * modules/frexp-nolibm-tests (Files): Likewise.
15341         * modules/frexpl-tests (Files): Likewise.
15342         * modules/frexpl-nolibm-tests (Files): Likewise.
15343         * modules/isfinite-tests (Files): Likewise.
15344         * modules/isinf-tests (Files): Likewise.
15345         * modules/isnan-tests (Files): Likewise.
15346         * modules/isnanf-tests (Files): Likewise.
15347         * modules/isnanf-nolibm-tests (Files): Likewise.
15348         * modules/isnand-tests (Files): Likewise.
15349         * modules/isnand-nolibm-tests (Files): Likewise.
15350         * modules/isnanl-tests (Files): Likewise.
15351         * modules/isnanl-nolibm-tests (Files): Likewise.
15352         * modules/ldexpl-tests (Files): Likewise.
15353         * modules/printf-posix-tests (Files): Likewise.
15354         * modules/roundf-tests (Files): Likewise.
15355         * modules/round-tests (Files): Likewise.
15356         * modules/roundl-tests (Files): Likewise.
15357         * modules/signbit-tests (Files): Likewise.
15358         * modules/snprintf-posix-tests (Files): Likewise.
15359         * modules/sprintf-posix-tests (Files): Likewise.
15360         * modules/truncf-tests (Files): Likewise.
15361         * modules/trunc-tests (Files): Likewise.
15362         * modules/truncl-tests (Files): Likewise.
15363         * modules/vasnprintf-posix-tests (Files): Likewise.
15364         * modules/vasprintf-posix-tests (Files): Likewise.
15365         * modules/vdprintf-posix-tests (Files): Likewise.
15366         * modules/vfprintf-posix-tests (Files): Likewise.
15367         * modules/vprintf-posix-tests (Files): Likewise.
15368         * modules/vsnprintf-posix-tests (Files): Likewise.
15369         * modules/vsprintf-posix-tests (Files): Likewise.
15370         * modules/xprintf-posix-tests (Files): Likewise.
15371
15372 2011-09-11  Bruno Haible  <bruno@clisp.org>
15373
15374         Ensure pid_t gets defined.
15375         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15376         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15377         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15378         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15379         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15380         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15381         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15382         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15383         * tests/test-fcntl-h.c: Check that pid_t is defined.
15384         * tests/test-sched.c: Likewise.
15385         * tests/test-termios.c: Likewise.
15386         * tests/test-time.c: Likewise.
15387         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15388         * doc/posix-headers/signal.texi: Likewise.
15389         * doc/posix-headers/sys_types.texi: Likewise.
15390         * doc/posix-headers/time.texi: Likewise.
15391
15392 2011-09-11  Bruno Haible  <bruno@clisp.org>
15393
15394         acl: Fix compilation on Solaris 10 (older version).
15395         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15396         of ACE_EVERYONE.
15397         * lib/set-mode-acl.c (qset_acl): Likewise.
15398         Reported by Christian Jullien <eligis@orange.fr>.
15399
15400 2011-09-10  Bruno Haible  <bruno@clisp.org>
15401
15402         iconv, unsetenv: Add support for MSVC compiler.
15403         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15404         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15405
15406 2011-09-10  Bruno Haible  <bruno@clisp.org>
15407
15408         *printf: Add support for MSVC compiler.
15409         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15410         handles the exception caused by the %n directive. When cross-compiling,
15411         guess no on native Windows.
15412         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15413         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15414         emulate it through vsnprintf.
15415         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15416         * doc/posix-functions/dprintf.texi: Update documentation regarding
15417         MSVC 9.
15418         * doc/posix-functions/fprintf.texi: Likewise.
15419         * doc/posix-functions/printf.texi: Likewise.
15420         * doc/posix-functions/snprintf.texi: Likewise.
15421         * doc/posix-functions/sprintf.texi: Likewise.
15422         * doc/posix-functions/swprintf.texi: Likewise.
15423         * doc/posix-functions/vdprintf.texi: Likewise.
15424         * doc/posix-functions/vfprintf.texi: Likewise.
15425         * doc/posix-functions/vprintf.texi: Likewise.
15426         * doc/posix-functions/vsnprintf.texi: Likewise.
15427         * doc/posix-functions/vsprintf.texi: Likewise.
15428         * doc/glibc-functions/asprintf.texi: Likewise.
15429         * doc/glibc-functions/obstack_printf.texi: Likewise.
15430         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15431         * doc/glibc-functions/vasprintf.texi: Likewise.
15432
15433 2011-09-10  Bruno Haible  <bruno@clisp.org>
15434
15435         nocrash: Add support for native Windows.
15436         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15437
15438 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15439             Bruno Haible  <bruno@clisp.org>
15440
15441         absolute-header, include-next: Add support for MSVC compiler.
15442         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15443         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15444         directory separator in #line directives.
15445         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15446         recognize also backslash as directory separator in #line directives.
15447
15448 2011-09-08  Jim Meyering  <meyering@redhat.com>
15449
15450         maint.mk: mark the post-release commit log with "maint: " prefix
15451         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15452         one-line commit-log summary.
15453
15454 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15455             Bruno Haible  <bruno@clisp.org>
15456
15457         Doc about crypt functions.
15458         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15459         systems.
15460         * doc/posix-functions/encrypt.texi: Likewise.
15461         * doc/posix-functions/setkey.texi: Likewise.
15462
15463 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15464
15465         * lib/gc.h: Fix copyright header.
15466
15467 2011-09-07  Bruno Haible  <bruno@clisp.org>
15468
15469         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15470         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15471         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15472
15473 2011-09-07  Bruno Haible  <bruno@clisp.org>
15474
15475         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15476         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15477         * lib/freopen.c: Likewise.
15478         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15479         * lib/lstat.c: Likewise.
15480         * lib/stat.c: Likewise.
15481         * lib/open.c: Use different syntax for include of <fcntl.h>.
15482         * lib/openat.c: Include fcntl.h again, explicitly.
15483
15484 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15485
15486         parse-datetime: document the newly accepted format
15487         * doc/parse-datetime.texi (Combined date and time of day items):
15488         New section.
15489
15490 2011-09-06  Bruno Haible  <bruno@clisp.org>
15491
15492         acl: Fix a test failure on newer Solaris 10 with ZFS.
15493         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15494         ENOSYS as no ACL.
15495         Reported by Jim Meyering.
15496
15497 2011-09-06  Bruno Haible  <bruno@clisp.org>
15498
15499         acl: Update for AIX >= 5.3 with NFS.
15500         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15501         ENOSYS as no ACL.
15502
15503         acl: Fix a test failure on AIX >= 5.3 with NFS.
15504         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15505         as no ACL.
15506
15507 2011-09-06  Bruno Haible  <bruno@clisp.org>
15508
15509         acl: Fix a test failure on IRIX 6.5 with NFS.
15510         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15511         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15512         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15513         * lib/copy-acl.c (qcopy_acl): Likewise.
15514
15515 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15516
15517         openat: port to AIX 7.1 with large files
15518         AIX 7.1 does a "#define openat open64at" if large files are in use,
15519         so we can't simply #undef openat.  Use the orig_openat trick (similar
15520         to orig_open in lib/open.c) to work around the problem.  Problem
15521         reported by Kevin Brott for GNU tar, in the thread containing
15522         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15523         * lib/openat.c (__need_system_fcntl_h): Define first.
15524         Include <fcntl.h> and <sys/types.h> before undefining.
15525         (orig_openat) [HAVE_OPENAT]: New inline function.
15526         (openat) [HAVE_OPENAT]: Do not undef.
15527         (rpl_openat): Use orig_openat, not openat.
15528
15529 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15530             Bruno Haible  <bruno@clisp.org>
15531
15532         acl: Avoid errors on NonStop Kernel.
15533         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15534         ENOTSUP errors.
15535
15536 2011-09-05  Bruno Haible  <bruno@clisp.org>
15537
15538         acl: Clean up Solaris code.
15539         * lib/acl-internal.h: Remove no-op #if.
15540         * lib/file-has-acl.c: Likewise.
15541         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15542         * lib/copy-acl.c (qcopy_acl): Likewise.
15543
15544 2011-09-05  Bruno Haible  <bruno@clisp.org>
15545
15546         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15547         binaries built on the original Solaris 10.
15548         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15549         trivial.
15550
15551 2011-09-05  Bruno Haible  <bruno@clisp.org>
15552
15553         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15554         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15555         10.
15556         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15557         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15558         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15559         instead of acl_get, facl_get, acl_set, facl_set.
15560
15561 2011-09-05  Bruno Haible  <bruno@clisp.org>
15562
15563         copy-file: Try unit tests on more file systems.
15564         * tests/test-copy-file-1.sh: New file.
15565         * tests/test-copy-file-2.sh: New file.
15566         * modules/copy-file-tests (Files): Add them.
15567         (Makefile.am): Add them to TESTS.
15568
15569         acl: Try unit tests on more file systems.
15570         * tests/test-file-has-acl-1.sh: New file.
15571         * tests/test-file-has-acl-2.sh: New file.
15572         * tests/test-set-mode-acl-1.sh: New file.
15573         * tests/test-set-mode-acl-2.sh: New file.
15574         * tests/test-copy-acl-1.sh: New file.
15575         * tests/test-copy-acl-2.sh: New file.
15576         * modules/acl-tests (Files): Add them.
15577         (Makefile.am): Add them to TESTS.
15578
15579 2011-09-04  Bruno Haible  <bruno@clisp.org>
15580
15581         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15582         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15583         10.
15584         (OLD_ALLOW, OLD_DENY): New macros.
15585         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15586         ACE_ACCESS_ALLOWED_ACE_TYPE.
15587         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15588         ACE_ACCESS_DENIED_ACE_TYPE.
15589         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15590         (NEW_ACE_EXECUTE): Fix value.
15591         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15592         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15593         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15594         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15595         NEW_ACE_SYNCHRONIZE): New macros.
15596         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15597         instead of acl_fromtext, acl_set, facl_set.
15598         Fixes a coreutils/tests/cp/perm failure.
15599
15600 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15601
15602         openat: test for fstatat (..., 0) bug
15603         Further testing with tar suggests that fstatat (..., 0)
15604         does not work in general, on AIX 7.1; see
15605         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15606         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15607         replacement fstatat (which is what older AIX releases were using
15608         anyway).
15609         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15610         use is now changed to orig_fstatat.  This was probably the right
15611         thing to do anyway.
15612         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15613         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15614         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15615         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15616         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15617         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15618         if the bug is found.
15619
15620         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15621         This tests for another fstatat bug on AIX 7.1:
15622         fstatat (AT_FDCWD, ..., 0) does not work.  See
15623         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15624         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15625         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15626         (rpl_fstatat): Adjust so that it works around either (or both)
15627         bugs if present.
15628         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15629
15630 2011-09-03  Karl Berry  <karl@gnu.org>
15631
15632         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15633         in index entries.
15634
15635 2011-09-02  Bruno Haible  <bruno@clisp.org>
15636
15637         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15638         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15639         values of AR, ARFLAGS, RANLIB.
15640         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15641
15642 2011-09-02  Bruno Haible  <bruno@clisp.org>
15643
15644         Find 'ar' program that fits with --host argument.
15645         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15646
15647 2011-09-02  Bruno Haible  <bruno@clisp.org>
15648
15649         tests: init.sh: Support any non-GNU diff.
15650         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15651         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15652         Solaris 8.
15653
15654 2011-09-02  Bruno Haible  <bruno@clisp.org>
15655
15656         tests: init.sh: work also with any non-GNU diff that supports -u
15657         * tests/init.sh: Relax check for diff -u support.
15658         Rather than checking for GNU diff via --version, simply check
15659         for support for -u itself.  Useful at least on OpenBSD 4.9,
15660         AIX 7.1, IRIX 6.5, and Solaris 10.
15661
15662 2011-09-01  Bruno Haible  <bruno@clisp.org>
15663
15664         strtoimax, strtoumax: Document problem on HP-UX 11.
15665         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15666         * doc/posix-functions/strtoumax.texi: Likewise.
15667
15668 2011-09-01  Bruno Haible  <bruno@clisp.org>
15669
15670         strtoumax: Avoid link error on OSF/1 with DTK cc.
15671         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15672         defined as a function.
15673         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15674         strtoumax is defined, not whether it is declared.
15675
15676 2011-09-01  Bruno Haible  <bruno@clisp.org>
15677
15678         strtoimax: Avoid link error on OSF/1 with DTK cc.
15679         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15680         defined as a function.
15681         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15682         strtoimax is defined, not whether it is declared.
15683
15684 2011-09-01  Bruno Haible  <bruno@clisp.org>
15685
15686         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15687         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15688         as a function.
15689         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15690         whether it is declared.
15691
15692 2011-09-01  Bruno Haible  <bruno@clisp.org>
15693
15694         imaxabs: Avoid link error on OSF/1 with DTK cc.
15695         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15696         as a function.
15697         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15698         whether it is declared.
15699
15700 2011-09-01  Bruno Haible  <bruno@clisp.org>
15701
15702         Tests for module 'strtoumax'.
15703         * modules/strtoumax-tests: New file.
15704         * tests/test-strtoumax.c: New file.
15705
15706         Tests for module 'strtoimax'.
15707         * modules/strtoimax-tests: New file.
15708         * tests/test-strtoimax.c: New file.
15709
15710         Tests for module 'imaxdiv'.
15711         * modules/imaxdiv-tests: New file.
15712         * tests/test-imaxdiv.c: New file.
15713
15714         Tests for module 'imaxabs'.
15715         * modules/imaxabs-tests: New file.
15716         * tests/test-imaxabs.c: New file.
15717
15718 2011-09-01  Bruno Haible  <bruno@clisp.org>
15719
15720         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15721         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15722         pthread_create.
15723
15724 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15725
15726         openat: work around AIX 7.1 fstatat issue
15727         This should fix the problem that was not properly fixed
15728         in the previous change, dated 2011-08-30.
15729         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15730         __need_system_stat_h defined.
15731         (orig_fstatat) [HAVE_FSTATAT]: New function.
15732         (rpl_fstatat): Go back to the old way of doing things,
15733         except call orig_fstatat instead of fstatat.
15734         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15735         Remove unnecessary check whether fstatat fills in st_size etc.
15736
15737 2011-09-01  Bruno Haible  <bruno@clisp.org>
15738
15739         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15740         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15741         just include the system's header.
15742
15743 2011-08-31  Jim Meyering  <meyering@redhat.com>
15744
15745         tests: avoid spurious assertion failure in test-float.c on ppc64
15746         * tests/test-float.c (test_long_double): Comment out an assertion,
15747         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15748         with gcc-4.4.4.
15749
15750         maint: indent with spaces, not TABs
15751         I need to get in the habit of running gnulib's "make check".
15752         Both of these would have been caught.
15753         * m4/largefile.m4: Indent with spaces, not TABs.
15754         * lib/parse-datetime.y (iso_8601_time): Likewise.
15755         Spotted by Pádraig Brady.
15756
15757         test-parse-datetime.c: accommodate a relatively strict gcc warning
15758         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15759         to avoid a warning from gcc's -Werror=missing-declarations.
15760         Insert a few spaces-before-funcall-parenthesis.
15761
15762 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15763
15764         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15765         The parser now accepts ISO 8601 date-time strings with "T" as the
15766         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15767         with a space between the date and time strings.  Now it also parses
15768         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15769         variants like "2004-02-29T16:21:42.333-07:00"
15770         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15771         of day representation using the 'T' separator character.
15772         * doc/parse-datetime.texi (General date syntax): replace use of
15773         deprecated --iso-8601 option with --rfc-3339 in example of date
15774         command output formats that can be parsed.
15775         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15776         lib/parse-datetime.y.
15777         (gmt_offset): New function.
15778         (main): Add additional test cases to validate ISO8601 extended
15779         date and time of day parsing.
15780
15781 2011-08-31  Bruno Haible  <bruno@clisp.org>
15782
15783         freopen: Documentation.
15784         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15785         name.
15786         Reported by Claudio Bley <claudio.bley@gmail.com>.
15787
15788 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15789
15790         freopen: Don't crash if the filename argument is NULL.
15791         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15792         NULL.
15793
15794 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15795
15796         openat: work around AIX 7.1 fstatat bug
15797         Problem reported by Kevin Brott for GNU tar, in the thread containing
15798         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15799         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15800         FSTATAT_ST_SIZE_ETC_BROKEN.
15801         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15802         rpl_fstatat.
15803         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15804         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15805         AC_CHECK_FUNCS_ONCE for fstatat.
15806         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15807         fchmodat, mkdirat, openat and unlinkat.
15808
15809 2011-08-30  Bruno Haible  <bruno@clisp.org>
15810
15811         Avoid endless recursions if config.h includes some header files.
15812         * lib/fopen.c (__need_FILE): Define already before including config.h.
15813         * lib/freopen.c (__need_FILE): Likewise.
15814         * lib/open.c (__need_system_fcntl_h): Likewise.
15815         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15816         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15817         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15818
15819 2011-08-25  Karl Berry  <karl@gnu.org>
15820
15821         * config/srclist.txt (ylwrap): new try.
15822         * build-aux/ylwrap: new file.
15823
15824 2011-08-23  Bruno Haible  <bruno@clisp.org>
15825
15826         tmpdir: Use a good default directory on native Windows.
15827         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15828         (P_tmpdir): Default to _P_tmpdir on native Windows.
15829         (path_search): On native Windows, try the value returned by GetTempPath
15830         before trying P_tmpdir.
15831         * modules/tmpdir (Depends-on): Add pathmax.
15832         Suggested by John Darrington <john@darrington.wattle.id.au>.
15833
15834 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15835
15836         doc: fix typo in README-release
15837         * top/README-release: Capitalize first word of a sentence.
15838
15839 2011-08-19  Jim Meyering  <meyering@redhat.com>
15840
15841         fts: do not exhaust memory when processing million-entry directories
15842         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15843         directory would require about 256*N bytes of memory.  Thus, it was
15844         easy to construct a directory too large to be processed by any of
15845         those tools.  With this change, fts' maximum memory utilization is
15846         now limited to around 30MB.
15847         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15848         (fts_read): When we've processed the final entry (i.e., when
15849         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15850         using the parent entry to read any remaining entries.  Dispatch
15851         depending on what fts_build returns:
15852         - NULL+stop, aka failure: stop
15853         - NULL otherwise: move up in the dir hierarchy
15854         - non-NULL: handle this new entry
15855         (fts_build): Declare and use new local, continue_readdir.
15856         Prepare to be called from fts_read, when the entries
15857         from a partially-read directory have just been exhausted.
15858         In that case, we'll skip the opendir and instead use the parent's
15859         fts_dirp and derive dir_fd from that.
15860         Finally, in the readdir loop, if we read max_entries entries,
15861         exit the loop ensuring *not* to call closedir.  This is required
15862         so that fts_dirp can be reused on a subsequent call.
15863         Prompted by Ben England's report of memory exhaustion in find
15864         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15865
15866         maint: fts: move decl of `dp' down into while loop; split a long line
15867         * lib/fts.c (fts_build): No semantic change.
15868
15869         fts: add/use new struct member, fts_dirp
15870         We are about to use this to manage any directory with
15871         too many entries to read all of them into memory at once.
15872         To do that, we'll need to save the DIR* pointer in each
15873         affected FTSENT struct.
15874         * lib/fts_.h: Include <dirent.h>.
15875         (struct FTSENT) [fts_dirp]: New member.
15876         * lib/fts.c (closedir_and_clear): Define.
15877         Use it in place of closedir so that we are sure to
15878         clear the new fts_dirp member when done with it.
15879         (fts_alloc): Initialize the new member.
15880         (fts_lfree): Free, if needed.
15881
15882         maint: fts: give __opendir2 a new parameter and rename
15883         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15884         than surreptitiously using sole caller's "dir_fd".
15885         (fts_opendir): Rename from __opendir2.
15886
15887         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15888         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15889
15890         maint: fts.c: correct off-by-one indentation
15891         * lib/fts.c (fts_build): Correct indentation, change style
15892         of a couple of block comments, and bracing style.
15893
15894         maint: fts.c: move __opendir2 #define "up" out of function body
15895         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15896
15897         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15898         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15899         out for a long time and besides was useful only on BSD systems.
15900
15901 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15902
15903         regex: port to Stratus OpenVOS
15904         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15905         define to empty, rather than attempting nonportable optimizations.
15906         Problem reported by Paul Green in:
15907         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15908         and fix suggested by Eric Blake in:
15909         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15910
15911 2011-08-17  Eric Blake  <eblake@redhat.com>
15912
15913         getcwd: fix test failures on mingw
15914         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15915         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15916         test if long directory cannot be created, and allow mingw errno.
15917
15918         getcwd-lgpl: fix m4 to match relaxed test for BSD
15919         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15920         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15921         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15922         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15923         signature problem.
15924
15925         getcwd: fix compilation on mingw64
15926         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15927         getcwd.
15928         Reported by Marc-André Lureau.
15929
15930         pipe2: silence compiler warning
15931         * lib/pipe2.c (pipe2): Hide label if it is not used.
15932
15933 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15934
15935         relocatable-prog: fix link error
15936         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15937         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15938         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15939         into modules/relocatable-lib without noticing that
15940         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15941         also needs to build relocatable.c.
15942
15943 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15944
15945         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15946         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15947         shell code: it contained a 'break' that was not in a loop.
15948         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15949         via a shell-language loop; this may have been true in old Autoconf
15950         versions, but it's not true in Autoconf 2.68.  I found this bug
15951         when testing coreutils git on Solaris 8, whose shell complains
15952         about the syntax error.
15953
15954 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15955
15956         * lib/base64.c: Fix comment to reference RFC 4648.
15957         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15958         <gvtulder@gmail.com>.
15959
15960 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15961
15962         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15963
15964         po/Makefile.in.in: fix make -q problem
15965         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15966         rule, since there's no file named 'check-macro-version' and its
15967         use as a file breaks make -q.
15968         (all): Don't depend on check-macro-version.
15969         (CHECK_MACRO_VERSION): New macro.
15970         (stamp-po): Use it.
15971
15972         configmake: fix make -q problem
15973         * modules/configmake (configmake.h): Update configmake.h's time stamp
15974         even if the file does not change.  Otherwise, 'make -q' fails.
15975         Problem reported by Simon Josefsson in
15976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15977
15978 2011-08-11  Jim Meyering  <meyering@redhat.com>
15979
15980         git-version-gen: correct the advice in a comment
15981         * build-aux/git-version-gen: Correct comment.
15982         Don't recommend to list .tarball-version in .gitignore.
15983
15984 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15985
15986         base64: fix off-by-one buffer size bug
15987         Problem and (trivial) fix reported by Gijs van Tulder in
15988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15989         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15990         * tests/test-base64.c (main): Catch the bug.
15991
15992 2011-08-10  Eric Blake  <eblake@redhat.com>
15993
15994         closein: correct comments
15995         * lib/closein.c (close_stdin): Improve comments.
15996
15997 2011-08-09  Bruno Haible  <bruno@clisp.org>
15998
15999         More tests for 'fseeko'.
16000         * tests/test-fseeko3.c: New file, from Eric Blake.
16001         * tests/test-fseeko3.sh: New file.
16002         * modules/fseeko-tests (Files): Add them.
16003         (TESTS): Add test-fseeko3.sh.
16004         (check_PROGRAMS): Add test-fseeko3.
16005
16006 2011-08-09  Eric Blake  <eblake@redhat.com>
16007
16008         fseeko: remove unneeded hack
16009         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
16010
16011         fseeko: fix bug on glibc
16012         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
16013         Reported by John W. Eaton.
16014
16015 2011-08-08  Bruno Haible  <bruno@clisp.org>
16016
16017         unictype/base: Fix interoperability with preinstalled libunistring.
16018         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
16019         Reported by Simon Josefsson.
16020
16021 2011-08-08  Bruno Haible  <bruno@clisp.org>
16022
16023         iswblank: Detect declaration correctly.
16024         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
16025         AC_CHECK_DECLS invocation.
16026
16027 2011-08-08  Bruno Haible  <bruno@clisp.org>
16028
16029         tcgetsid: Detect declaration correctly.
16030         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
16031         AC_CHECK_DECLS invocation.
16032         Reported by Simon Josefsson.
16033
16034 2011-08-08  Eric Blake  <eblake@redhat.com>
16035
16036         largefile: fix typo that regressed large file support
16037         * modules/largefile (configure.ac-early): Fix section name.
16038
16039 2011-08-06  Karl Berry  <karl@gnu.org>
16040
16041         * MODULES.html.sh (func_all_files): _Noreturn is no longer
16042         a separate module.
16043
16044 2011-08-05  Simon Josefsson  <simon@josefsson.org>
16045
16046         openat: Fix warnings and commens when building unlinkat.c on Hurd.
16047         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
16048         get prototype for free.
16049
16050 2011-08-04  Bruno Haible  <bruno@clisp.org>
16051
16052         Tests for module 'pathmax'.
16053         * modules/pathmax-tests: New file.
16054         * tests/test-pathmax.c: New file.
16055
16056         canonicalize-lgpl: Support larger filenames on the Hurd.
16057         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
16058         Reported by Paul Eggert.
16059
16060         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
16061         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
16062         * lib/chdir-long.h: Include pathmax.h.
16063         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
16064         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
16065         (PATH_MAX): Remove code that is done by pathmax.h.
16066         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
16067         * lib/tmpfile.c: Add a comment.
16068         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
16069         * modules/chdir-long (Depends-on): Add pathmax.
16070         * modules/getcwd (Depends-on): Add pathmax.
16071         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
16072         is not defined.
16073         * doc/posix-headers/limits.texi: Mention the pathmax module.
16074         * NEWS: Mention the change.
16075
16076 2011-08-02  Bruno Haible  <bruno@clisp.org>
16077
16078         pthread_sigmask: Actually use results of gl_THREADLIB.
16079         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16080         gl_THREADLIB, not gl_[]THREADLIB.
16081         Reported by Eric Blake.
16082
16083 2011-08-02  Jim Meyering  <meyering@redhat.com>
16084
16085         maint.mk: relax the default _gl_TS_function_match regexp
16086         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16087         space between function name and "(" in an "extern" declaration.
16088         That would fail to match a decl with no space there: extern void foo();
16089
16090 2011-07-31  Iain Nicol  <iain@thenicols.net>
16091
16092         git-version-gen: document that EXTRA_DIST must include .version
16093         * build-aux/git-version-gen: In the how-to-use comment, document
16094         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16095         will fail when run from an unpacked distribution tarball.
16096
16097 2011-08-01  Bruno Haible  <bruno@clisp.org>
16098
16099         wctype-h: Fix last change.
16100         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16101         REPLACE_TOWLOWER to 0.
16102         Reported by Sam Steingold <sds@gnu.org>.
16103
16104 2011-07-31  Bruno Haible  <bruno@clisp.org>
16105
16106         frexpl: Update autoconf test.
16107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16108         according to changes of 2011-06-20.
16109
16110 2011-07-31  Bruno Haible  <bruno@clisp.org>
16111
16112         sys_utsname: Add support for Minix.
16113         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16114         <sys/utsname.h>.
16115         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16116         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16117
16118 2011-07-31  Bruno Haible  <bruno@clisp.org>
16119
16120         strings: Add support for Minix.
16121         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16122         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16123         * doc/posix-headers/strings.texi: Document the Minix problem.
16124
16125 2011-07-31  Bruno Haible  <bruno@clisp.org>
16126
16127         wctype-h: Add support for Minix.
16128         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16129         REPLACE_TOWLOWER.
16130         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16131         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16132         REPLACE_ISWCNTRL.
16133
16134 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16135
16136         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16137         This is a performance improvement for 64-bit hosts: it causes the
16138         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16139
16140 2011-07-31  Bruno Haible  <bruno@clisp.org>
16141
16142         stdioext: Add support for Minix.
16143         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16144         * lib/fpurge.c (fpurge): Likewise.
16145         * lib/freadahead.c (freadahead): Likewise.
16146         * lib/freadable.c (freadable): Likewise.
16147         * lib/freading.c (freading): Likewise.
16148         * lib/freadptr.c (freadptr): Likewise.
16149         * lib/freadseek.c (freadptrinc): Likewise.
16150         * lib/fseeko.c (rpl_fseeko): Likewise.
16151         * lib/fseterr.c (fseterr): Likewise.
16152         * lib/fwritable.c (fwritable): Likewise.
16153         * lib/fwriting.c (fwriting): Likewise.
16154         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16155         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16156
16157 2011-07-31  Bruno Haible  <bruno@clisp.org>
16158
16159         errno: Port to Minix.
16160         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16161         ECONNABORTED are defined.
16162         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16163         GNULIB_defined_ECONNABORTED): New macros.
16164         * lib/strerror-override.h (strerror_override): Test also
16165         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16166         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16167         ECONNABORTED.
16168         * doc/posix-headers/errno.texi: Mention the Minix problem.
16169
16170 2011-07-31  Bruno Haible  <bruno@clisp.org>
16171
16172         Work around declaration collisions on Minix.
16173         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16174         defined, set REPLACE_MBSINIT.
16175         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16176         defined, set REPLACE_MBRTOWC.
16177         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16178         set REPLACE_MBRLEN.
16179         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16180         defined, set REPLACE_MBSRTOWCS.
16181         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16182         defined, set REPLACE_WCRTOMB.
16183         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16184         defined, set REPLACE_WCSRTOMBS.
16185
16186 2011-07-31  Bruno Haible  <bruno@clisp.org>
16187
16188         Add support for Minix with ACK compiler.
16189         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16190         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16191         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16192
16193 2011-07-31  Bruno Haible  <bruno@clisp.org>
16194
16195         Documentation about Minix.
16196         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16197         * doc/glibc-headers/*.texi: Likewise.
16198         * doc/posix-functions/*.texi: Likewise.
16199         * doc/glibc-functions/*.texi: Likewise.
16200
16201 2011-07-31  Bruno Haible  <bruno@clisp.org>
16202
16203         snippet/warn-on-use: Fix indentation.
16204         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16205
16206 2011-07-25  Jim Meyering  <meyering@redhat.com>
16207
16208         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16209         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16210         commands.
16211
16212 2011-07-27  Jim Meyering  <meyering@redhat.com>
16213
16214         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16215         * top/maint.mk (gl_extract_significant_defines_): Now that
16216         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16217         gnulib/lib/signal.in.h, and now that we recommend to
16218         define-if-undefined those two symbols in application code,
16219         we must filter them out of the "significant" list.
16220         This avoids a "make syntax-check" failure in coreutils.
16221
16222 2011-07-26  Eric Blake  <eblake@redhat.com>
16223
16224         warnings: add comments about previous patch
16225         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16226         * m4/include_next.m4: Likewise.
16227         * m4/warn-on-use.m4: Likewise.
16228         * m4/warnings.m4: Likewise, and simplify use.
16229         Suggested by Stefano Lattarini.
16230
16231         include-next, warnings: support older autoconf
16232         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16233         AS_VAR_PUSHDEF in a way that works with older autoconf.
16234         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16235         Reported by Daniel P. Berrange.
16236
16237 2011-07-25  Bruno Haible  <bruno@clisp.org>
16238
16239         fseek, ftell: Fix doc.
16240         * doc/posix-functions/fseek.texi: Reword statement about
16241         AC_SYS_LARGEFILE.
16242         * doc/posix-functions/ftell.texi: Likewise.
16243
16244 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16245             Bruno Haible  <bruno@clisp.org>
16246
16247         Add dependencies to the 'largefile' module.
16248         * modules/fopen (Depends-on): Add 'largefile'.
16249         * modules/freopen (Depends-on): Likewise.
16250         * modules/fseeko (Depends-on): Likewise.
16251         * modules/ftello (Depends-on): Likewise.
16252         * modules/glob (Depends-on): Likewise.
16253         * modules/lseek (Depends-on): Likewise.
16254         * modules/lstat (Depends-on): Likewise.
16255         * modules/mkostemp (Depends-on): Likewise.
16256         * modules/mkostemps (Depends-on): Likewise.
16257         * modules/mkstemp (Depends-on): Likewise.
16258         * modules/mkstemps (Depends-on): Likewise.
16259         * modules/open (Depends-on): Likewise.
16260         * modules/openat (Depends-on): Likewise.
16261         * modules/pread (Depends-on): Likewise.
16262         * modules/pwrite (Depends-on): Likewise.
16263         * modules/scandir (Depends-on): Likewise.
16264         * modules/stat (Depends-on): Likewise.
16265         * modules/tmpfile (Depends-on): Likewise.
16266         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16267         since the containing module now depends on the largefile module.
16268         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16269         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16270         off_t is fixed by gnulib.
16271         * doc/posix-functions/freopen.texi: Likewise.
16272         * doc/posix-functions/fseeko.texi: Likewise.
16273         * doc/posix-functions/fstatat.texi: Likewise.
16274         * doc/posix-functions/ftello.texi: Likewise.
16275         * doc/posix-functions/glob.texi: Likewise.
16276         * doc/posix-functions/lseek.texi: Likewise.
16277         * doc/posix-functions/lstat.texi: Likewise.
16278         * doc/posix-functions/mkstemp.texi: Likewise.
16279         * doc/posix-functions/open.texi: Likewise.
16280         * doc/posix-functions/openat.texi: Likewise.
16281         * doc/posix-functions/pread.texi: Likewise.
16282         * doc/posix-functions/pwrite.texi: Likewise.
16283         * doc/posix-functions/scandir.texi: Likewise.
16284         * doc/posix-functions/stat.texi: Likewise.
16285         * doc/posix-functions/tmpfile.texi: Likewise.
16286         * doc/glibc-functions/mkostemp.texi: Likewise.
16287         * doc/glibc-functions/mkostemps.texi: Likewise.
16288         * doc/glibc-functions/mkstemps.texi: Likewise.
16289
16290 2011-07-25  Bruno Haible  <bruno@clisp.org>
16291
16292         fcntl: Move AC_LIBOBJ invocation to module description.
16293         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16294         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16295
16296         fcntl: Remove call-in from fchdir.m4.
16297         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16299
16300         dup3: Remove potential call-in from fchdir.m4.
16301         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16303
16304         dup2: Move AC_LIBOBJ invocation to module description.
16305         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16306         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16307         Don't invoke AC_LIBOBJ.
16308         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16309
16310         dup2: Remove call-in from fchdir.m4.
16311         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16312         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16313
16314         fclose: Move AC_LIBOBJ invocation to module description.
16315         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16316         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16317         to 1.
16318         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16319
16320         fclose: Remove call-in from close.m4.
16321         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16322         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16323
16324         close: Move AC_LIBOBJ invocation to module description.
16325         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16326         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16327         1.
16328         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16329
16330         close: Remove call-in from fchdir.m4.
16331         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16333
16334         open: Move AC_LIBOBJ invocation to module description.
16335         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16336         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16337         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16338
16339         open: Remove call-in from fchdir.m4.
16340         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16342
16343         fchdir: Start to remove gl_REPLACE_* idiom.
16344         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16345         (gl_FUNC_FCHDIR): Invoke it.
16346
16347 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16348
16349         * lib/ftell.c (ftell): Comment out cast.
16350
16351         close: use gl_REPLACE_FCLOSE only if defined
16352         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16353         is defined.  The close module doesn't depend on the fclose module
16354         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16356         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16357
16358 2011-07-24  Jim Meyering  <meyering@redhat.com>
16359
16360         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16361         * tests/test-select.h (test_function): Declare as "static".
16362
16363 2011-07-24  Bruno Haible  <bruno@clisp.org>
16364
16365         doc: Mention the effects of AC_SYS_LARGEFILE.
16366         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16367         on this function.
16368         * doc/posix-functions/aio_error.texi: Likewise.
16369         * doc/posix-functions/aio_fsync.texi: Likewise.
16370         * doc/posix-functions/aio_read.texi: Likewise.
16371         * doc/posix-functions/aio_return.texi: Likewise.
16372         * doc/posix-functions/aio_suspend.texi: Likewise.
16373         * doc/posix-functions/aio_write.texi: Likewise.
16374         * doc/posix-functions/fgetpos.texi: Likewise.
16375         * doc/posix-functions/fopen.texi: Likewise.
16376         * doc/posix-functions/freopen.texi: Likewise.
16377         * doc/posix-functions/fsetpos.texi: Likewise.
16378         * doc/posix-functions/fstatvfs.texi: Likewise.
16379         * doc/posix-functions/ftruncate.texi: Likewise.
16380         * doc/posix-functions/ftw.texi: Likewise.
16381         * doc/posix-functions/getrlimit.texi: Likewise.
16382         * doc/posix-functions/glob.texi: Likewise.
16383         * doc/posix-functions/lio_listio.texi: Likewise.
16384         * doc/posix-functions/lockf.texi: Likewise.
16385         * doc/posix-functions/mkstemp.texi: Likewise.
16386         * doc/posix-functions/mmap.texi: Likewise.
16387         * doc/posix-functions/nftw.texi: Likewise.
16388         * doc/posix-functions/openat.texi: Likewise.
16389         * doc/posix-functions/opendir.texi: Likewise.
16390         * doc/posix-functions/posix_fadvise.texi: Likewise.
16391         * doc/posix-functions/posix_fallocate.texi: Likewise.
16392         * doc/posix-functions/pread.texi: Likewise.
16393         * doc/posix-functions/pwrite.texi: Likewise.
16394         * doc/posix-functions/readdir.texi: Likewise.
16395         * doc/posix-functions/readdir_r.texi: Likewise.
16396         * doc/posix-functions/rewinddir.texi: Likewise.
16397         * doc/posix-functions/scandir.texi: Likewise.
16398         * doc/posix-functions/seekdir.texi: Likewise.
16399         * doc/posix-functions/setrlimit.texi: Likewise.
16400         * doc/posix-functions/statvfs.texi: Likewise.
16401         * doc/posix-functions/telldir.texi: Likewise.
16402         * doc/posix-functions/tmpfile.texi: Likewise.
16403         * doc/posix-functions/truncate.texi: Likewise.
16404         * doc/glibc-functions/fallocate.texi: Likewise.
16405         * doc/glibc-functions/fstatfs.texi: Likewise.
16406         * doc/glibc-functions/fts_children.texi: Likewise.
16407         * doc/glibc-functions/fts_read.texi: Likewise.
16408         * doc/glibc-functions/getdirentries.texi: Likewise.
16409         * doc/glibc-functions/mkostemp.texi: Likewise.
16410         * doc/glibc-functions/mkostemps.texi: Likewise.
16411         * doc/glibc-functions/mkstemps.texi: Likewise.
16412         * doc/glibc-functions/preadv.texi: Likewise.
16413         * doc/glibc-functions/pwritev.texi: Likewise.
16414         * doc/glibc-functions/sendfile.texi: Likewise.
16415         * doc/glibc-functions/statfs.texi: Likewise.
16416
16417 2011-07-24  Bruno Haible  <bruno@clisp.org>
16418
16419         doc: Fix typo.
16420         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16421
16422 2011-07-24  Bruno Haible  <bruno@clisp.org>
16423
16424         doc: Mention fsusage.
16425         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16426
16427 2011-07-24  Bruno Haible  <bruno@clisp.org>
16428
16429         doc: Mention new glibc headers and functions.
16430         * doc/glibc-headers/gshadow.texi: New file.
16431         * doc/glibc-functions/endsgent.texi: New file.
16432         * doc/glibc-functions/fgetsgent.texi: New file.
16433         * doc/glibc-functions/fgetsgent_r.texi: New file.
16434         * doc/glibc-functions/getsgent.texi: New file.
16435         * doc/glibc-functions/getsgent_r.texi: New file.
16436         * doc/glibc-functions/getsgnam.texi: New file.
16437         * doc/glibc-functions/getsgnam_r.texi: New file.
16438         * doc/glibc-functions/putsgent.texi: New file.
16439         * doc/glibc-functions/setsgent.texi: New file.
16440         * doc/glibc-functions/sgetsgent.texi: New file.
16441         * doc/glibc-functions/sgetsgent_r.texi: New file.
16442         * doc/glibc-functions/malloc_info.texi: New file.
16443         * doc/glibc-functions/preadv.texi: New file.
16444         * doc/glibc-functions/pwritev.texi: New file.
16445         * doc/glibc-functions/register_printf_modifier.texi: New file.
16446         * doc/glibc-functions/register_printf_specifier.texi: New file.
16447         * doc/glibc-functions/register_printf_type.texi: New file.
16448         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16449         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16450         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16451         * doc/glibc-functions/pthread_getname_np.texi: New file.
16452         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16453         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16454         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16455         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16456         * doc/glibc-functions/pthread_setname_np.texi: New file.
16457         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16458         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16459         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16460         * doc/glibc-functions/qsort_r.texi: New file.
16461         * doc/glibc-functions/quick_exit.texi: New file.
16462         * doc/glibc-functions/syncfs.texi: New file.
16463         * doc/gnulib.texi: Include them.
16464         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16465         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16466         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16467         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16468         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16469         * doc/glibc-functions/execvpe.texi: Likewise.
16470
16471 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16472
16473         ftell: don't include <unistd.h>
16474         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16475         guaranteed to define off_t, and the ftell module depends on the
16476         stdio module.
16477
16478         ftell: do not assume wraparound signed arithmetic
16479         * lib/ftell.c: Include <limits.h>.
16480         (ftell): Don't assume wraparound signed arithmetic.
16481
16482 2011-07-24  Bruno Haible  <bruno@clisp.org>
16483
16484         close: No longer depend on module 'fclose'.
16485         * modules/close (Depends-on): Remove fclose.
16486         * NEWS: Mention the change.
16487         Suggested by Sam Steingold <sds@gnu.org>.
16488
16489 2011-07-24  Bruno Haible  <bruno@clisp.org>
16490
16491         fsusage: Enable large volume support on AIX >= 5.2.
16492         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16493         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16494         instead of STAT_STATVFS.
16495         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16496
16497         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16498         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16499         f_blocks field only on MacOS X.
16500
16501         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16502         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16503         * modules/fsusage (Depends-on): Add largefile.
16504
16505 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16506
16507         * README: Modernize discussion of signed integers.
16508         Assuming overflow wraparound is no longer safe.
16509         Mention ones' complement and signed magnitude.
16510
16511 2011-07-22  Bruno Haible  <bruno@clisp.org>
16512
16513         select tests, pselect tests: Refactor.
16514         * tests/test-select.h: New file, extracted from tests/test-select.c.
16515         (select_fn): New type.
16516         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16517         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16518         test_pipe): Add my_select argument.
16519         (test_function): Renamed from main. Add my_select argument.
16520         * tests/test-select.c: Move most code to tests/test-select.h. Include
16521         test-select.h.
16522         * modules/select-tests (Files): Add tests/test-select.h.
16523         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16524         (my_select, main): New functions.
16525         * modules/pselect-tests (Files): Add tests/test-select.h,
16526         tests/macros.h, tests/signature.h.
16527         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16528         (configure.ac): Check for <sys/wait.h>.
16529
16530 2011-07-22  Bruno Haible  <bruno@clisp.org>
16531
16532         sys_select tests: Check the signature of FD_*.
16533         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16534         signature tests from here...
16535         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16536         here.
16537         * modules/sys_select-tests (Files): Add tests/signature.h.
16538
16539 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16540
16541         largefile: new module, replacing large-inode
16542         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16543         * MODULES.html.sh: Add largefile, remove large-inode.
16544         * modules/largefile, m4/largefile.m4: New files.
16545         * modules/large-inode, m4/large-inode.m4: Remove.
16546
16547         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16548         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16549         implementations that use only 32 bits to count blocks.
16550         On typical hosts with 1024-byte blocks, this fails with file
16551         systems as small as 4 TiB.  Problem reported by Herb Wartens
16552         <http://debbugs.gnu.org/9140> and this should also fix a similar
16553         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16554
16555         large-inode: New module
16556         * MODULES.html.sh: Add it.
16557         * modules/large-inode, m4/large-inode.m4: New files.
16558
16559         extensions: Enable extensions on MacOS X 10.5 and later.
16560         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16561
16562 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16563
16564         file-has-acl: use acl_extended_file_nofollow if available
16565         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16566         (acl_extended_file): New macro.
16567         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16568         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16569
16570 2011-07-21  Bruno Haible  <bruno@clisp.org>
16571
16572         Declare system functions in a way that works with C++.
16573         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16574         declare fdopendir as extern "C".
16575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16576         declare frexpl as extern "C".
16577         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16578         declare gai_strerror as extern "C".
16579         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16580         programs, declare gai_strerror as extern "C".
16581         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16582         declare getlogin_r as extern "C".
16583         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16584         as extern "C".
16585         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16586         declare ldexpl as extern "C".
16587         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16588         as extern "C".
16589         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16590         program, declare getmntinfo as extern "C".
16591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16592         stpncpy as extern "C".
16593         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16594         program, declare __xpg_strerror_r as extern "C".
16595         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16596         strndup as extern "C".
16597         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16598         declare memset and bzero as extern "C".
16599         Reported by Sam Steingold <sds@gnu.org>.
16600
16601 2011-07-12  Jim Meyering  <meyering@redhat.com>
16602
16603         maint.mk: prohibit inclusion of "verify.h" without use
16604         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16605
16606 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16607
16608         timer-time: A new module to check for timer_settime()
16609         * m4/timer_time.m4: Check for the posix function.
16610         * modules/timer-time: Add the new module.
16611         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16612         Mention it.
16613
16614 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16615             Bruno Haible  <bruno@clisp.org>
16616
16617         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16618         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16619         not defined, assume POSIX threads and look for pthread_sigmask in
16620         $LIBS, without changing $CPPFLAGS.
16621
16622 2011-07-19  Bruno Haible  <bruno@clisp.org>
16623
16624         strstr: Update cross-compilation guess.
16625         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16626         CPUs, guess no, in view of glibc
16627         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16628         Suggested by Eric Blake. Reported by Reuben Thomas.
16629
16630 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16631
16632         getopt-gnu: suppress core dumps from detection code
16633         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16634         to suppress core dumps that may well occur on glibc systems.
16635         * modules/getopt-gnu: Depend on nocrash.
16636
16637 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16638
16639         pthread_sigmask: ensure usleep is declared
16640         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16641         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16642
16643 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16644
16645         doc: Document NonStop portability issues.
16646         * doc/posix-functions/sigaction.texi (sigaction):
16647         * doc/posix-headers/signal.texi (signal.h):
16648         Document NonStop.  See Joachim Schmitz in
16649         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16650
16651 2011-07-15  Bruno Haible  <bruno@clisp.org>
16652
16653         ffsl, ffsll: Avoid unportable behaviour.
16654         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16655
16656 2011-07-15  Bruno Haible  <bruno@clisp.org>
16657
16658         ffs: More tests.
16659         * tests/test-ffs.c (NBITS): New macro.
16660         (main): Add more tests.
16661         * tests/test-ffsl.c (NBITS): New macro.
16662         (main): Add more tests.
16663         * tests/test-ffsll.c (NBITS): New macro.
16664         (main): Add more tests.
16665
16666 2011-07-15  Eric Blake  <eblake@redhat.com>
16667
16668         ffsl, ffsll: new modules
16669         * modules/ffsl: New file.
16670         * modules/ffsll: Likewise.
16671         * m4/ffsl.m4: Likewise.
16672         * m4/ffsll.m4: Likewise.
16673         * lib/ffsl.c: Likewise.
16674         * lib/ffsl.h: Likewise.
16675         * lib/ffsll.c: Likewise.
16676         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16677         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16678         * modules/string (Makefile.am): Substitute witnesses.
16679         * lib/strings.in.h (ffsl, ffsll): Declare.
16680         * modules/ffsl-tests: New test file.
16681         * modules/ffsll-tests: Likewise.
16682         * tests/test-ffsl.c: Likewise.
16683         * tests/test-ffsll.c: Likewise.
16684         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16685         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16686         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16687
16688         ffs: fix m4 prerequisite
16689         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16690
16691         ffs: avoid undefined behavior
16692         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16693         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16694         Reported by Bruno Haible.
16695
16696 2011-07-12  Bruno Haible  <bruno@clisp.org>
16697
16698         pthread_sigmask: Rely on module 'threadlib'.
16699         * modules/pthread_sigmask (Depends-on): Add threadlib.
16700         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16701         is defined.
16702
16703 2011-07-12  Bruno Haible  <bruno@clisp.org>
16704
16705         regex: Depend on module 'strcase'.
16706         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16707
16708 2011-07-12  Jim Meyering  <meyering@redhat.com>
16709
16710         warn-on-use: fix typo in file name
16711         * modules/snippet/warn-on-use (Files): Correct file name:
16712         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16713
16714 2011-07-12  Bruno Haible  <bruno@clisp.org>
16715
16716         strings: Document module.
16717         * doc/posix-headers/strings.texi: Mention module 'strings'.
16718
16719 2011-07-12  Bruno Haible  <bruno@clisp.org>
16720
16721         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16722         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16723         (Files, Makefile.am): Update.
16724         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16725         * modules/stdlib (Depends-on): Update.
16726
16727 2011-07-12  Bruno Haible  <bruno@clisp.org>
16728
16729         * NEWS: Mention the changes.
16730
16731         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16732         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16733         (Files, Makefile.am): Update.
16734         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16735         * modules/arpa_inet (Depends-on): Update.
16736         * modules/ctype (Depends-on): Update.
16737         * modules/dirent (Depends-on): Update.
16738         * modules/fcntl-h (Depends-on): Update.
16739         * modules/glob (Depends-on): Update.
16740         * modules/iconv-h (Depends-on): Update.
16741         * modules/inttypes-incomplete (Depends-on): Update.
16742         * modules/langinfo (Depends-on): Update.
16743         * modules/locale (Depends-on): Update.
16744         * modules/math (Depends-on): Update.
16745         * modules/netdb (Depends-on): Update.
16746         * modules/poll-h (Depends-on): Update.
16747         * modules/pty (Depends-on): Update.
16748         * modules/search (Depends-on): Update.
16749         * modules/signal (Depends-on): Update.
16750         * modules/spawn (Depends-on): Update.
16751         * modules/stdio (Depends-on): Update.
16752         * modules/stdlib (Depends-on): Update.
16753         * modules/string (Depends-on): Update.
16754         * modules/strings (Depends-on): Update.
16755         * modules/sys_file (Depends-on): Update.
16756         * modules/sys_ioctl (Depends-on): Update.
16757         * modules/sys_select (Depends-on): Update.
16758         * modules/sys_socket (Depends-on): Update.
16759         * modules/sys_stat (Depends-on): Update.
16760         * modules/sys_time (Depends-on): Update.
16761         * modules/sys_times (Depends-on): Update.
16762         * modules/sys_utsname (Depends-on): Update.
16763         * modules/sys_wait (Depends-on): Update.
16764         * modules/termios (Depends-on): Update.
16765         * modules/time (Depends-on): Update.
16766         * modules/unistd (Depends-on): Update.
16767         * modules/wchar (Depends-on): Update.
16768         * modules/wctype-h (Depends-on): Update.
16769         * MODULES.html.sh (Support for building libraries and executables):
16770         Update.
16771
16772         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16773         * modules/snippet/unused-parameter: Renamed from
16774         modules/unused-parameter.
16775         (Files, Makefile.am): Update.
16776         * build-aux/snippet/unused-parameter.h: Renamed from
16777         build-aux/unused-parameter.h.
16778         * modules/selinux-h (Depends-on): Update.
16779         * modules/unistr/base (Depends-on): Update.
16780         * MODULES.html.sh (Core language properties): Update.
16781
16782         Rename module 'link-warning' to 'snippet/link-warning'.
16783         * modules/snippet/link-warning: Renamed from modules/link-warning.
16784         (Files, Makefile.am): Update.
16785         * build-aux/snippet/link-warning.h: Renamed from
16786         build-aux/link-warning.h.
16787         * MODULES.html.sh (Support for building libraries and executables):
16788         Update.
16789
16790         Rename module 'c++defs' to 'snippet/c++defs'.
16791         * modules/snippet/c++defs: Renamed from modules/c++defs.
16792         (Files, Makefile.am): Update.
16793         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16794         * modules/arpa_inet (Depends-on): Update.
16795         * modules/ctype (Depends-on): Update.
16796         * modules/dirent (Depends-on): Update.
16797         * modules/fcntl-h (Depends-on): Update.
16798         * modules/glob (Depends-on): Update.
16799         * modules/iconv-h (Depends-on): Update.
16800         * modules/langinfo (Depends-on): Update.
16801         * modules/locale (Depends-on): Update.
16802         * modules/math (Depends-on): Update.
16803         * modules/netdb (Depends-on): Update.
16804         * modules/poll-h (Depends-on): Update.
16805         * modules/pty (Depends-on): Update.
16806         * modules/search (Depends-on): Update.
16807         * modules/signal (Depends-on): Update.
16808         * modules/spawn (Depends-on): Update.
16809         * modules/stdio (Depends-on): Update.
16810         * modules/stdlib (Depends-on): Update.
16811         * modules/string (Depends-on): Update.
16812         * modules/strings (Depends-on): Update.
16813         * modules/sys_ioctl (Depends-on): Update.
16814         * modules/sys_select (Depends-on): Update.
16815         * modules/sys_socket (Depends-on): Update.
16816         * modules/sys_stat (Depends-on): Update.
16817         * modules/sys_time (Depends-on): Update.
16818         * modules/sys_wait (Depends-on): Update.
16819         * modules/termios (Depends-on): Update.
16820         * modules/time (Depends-on): Update.
16821         * modules/unistd (Depends-on): Update.
16822         * modules/wchar (Depends-on): Update.
16823         * modules/wctype-h (Depends-on): Update.
16824
16825         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16826         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16827         (Files, Makefile.am): Update.
16828         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16829         * modules/argv-iter (Depends-on): Update.
16830         * modules/arpa_inet (Depends-on): Update.
16831         * modules/dirent (Depends-on): Update.
16832         * modules/fcntl-h (Depends-on): Update.
16833         * modules/fnmatch (Depends-on): Update.
16834         * modules/getopt-posix (Depends-on): Update.
16835         * modules/glob (Depends-on): Update.
16836         * modules/iconv-h (Depends-on): Update.
16837         * modules/inttypes-incomplete (Depends-on): Update.
16838         * modules/locale (Depends-on): Update.
16839         * modules/math (Depends-on): Update.
16840         * modules/netdb (Depends-on): Update.
16841         * modules/search (Depends-on): Update.
16842         * modules/signal (Depends-on): Update.
16843         * modules/spawn (Depends-on): Update.
16844         * modules/stdio (Depends-on): Update.
16845         * modules/stdlib (Depends-on): Update.
16846         * modules/string (Depends-on): Update.
16847         * modules/strings (Depends-on): Update.
16848         * modules/sys_socket (Depends-on): Update.
16849         * modules/sys_stat (Depends-on): Update.
16850         * modules/sys_time (Depends-on): Update.
16851         * modules/sys_times (Depends-on): Update.
16852         * modules/sys_utsname (Depends-on): Update.
16853         * modules/time (Depends-on): Update.
16854         * modules/unistd (Depends-on): Update.
16855         * modules/wchar (Depends-on): Update.
16856         * MODULES.html.sh (Support for building libraries and executables):
16857         Update.
16858
16859 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16860
16861         Improvements on _Noreturn and related modules.
16862
16863         modules/_Exit-tests: test _Noreturn too
16864         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16865         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16866         (main): Use them.
16867
16868         stdnoreturn, stdnoreturn-tests: remove modules
16869         They're not needed here and a bit premature for use elsewhere.  See
16870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16871         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16872         * tests/test-stdnoreturn.c: Remove files.
16873         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16874         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16875         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16876         and using noreturn.
16877         * modules/openat, modules/sigpipe-die, modules/xalloc:
16878         * modules/xmemdup0, modules/xstrtol:
16879         Remove dependency on stdnoreturn.
16880
16881         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16882         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16883         Reparenthesize to avoid GCC warning.
16884         Support Microsoft's syntax.
16885         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16886
16887         _Noreturn-tests: remove module
16888         * modules/_Noreturn-tests: Remove.
16889         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16890         * tests/test-_Noreturn.c: Remove.
16891         * tests/test-stdnoreturn.c: Merge from the old
16892         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16893
16894 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16895
16896         _Noreturn, stdnoreturn, and related modules.
16897
16898         * top/maint.mk: Adjust to new noreturn support.
16899         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16900         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16901
16902         xalloc: use stdnoreturn.h
16903         * lib/xalloc.h: Include <stdnoreturn.h>.
16904         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16905         * modules/xalloc (Depends-on): Add stdnoreturn.
16906
16907         xstrtol: use stdnoreturn.h
16908         * lib/xstrtol.h: Include <stdnoreturn.h>.
16909         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16910         * modules/xstrtol (Depends-on): Add stdnoreturn.
16911
16912         xmemdup0: use stdnoreturn.h
16913         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16914         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16915         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16916
16917         sigpipe-die: use stdnoreturn.h
16918         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16919         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16920         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16921
16922         openat: use stdnoreturn.h
16923         * lib/openat.h: Include <stdnoreturn.h>.
16924         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16925         * modules/openat (Depends-on): Add stdnoreturn.
16926
16927         * lib/openat-die.c (openat_save_fail): Modernize comment.
16928
16929         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16930
16931         * lib/glthread/thread.h: Modernize comment.
16932
16933         obstack: use _Noreturn
16934         * lib/obstack.c (__attribute__): Remove macro.
16935         (print_and_abort): Use _Noreturn.
16936
16937         c-stack: use _Noreturn
16938         * lib/c-stack.c (die, overflow_handler, segv_handler):
16939         Use _Noreturn rather than __attribute__((noreturn)).
16940
16941         argmatch-tests, exclude_tests: use _Noreturn
16942         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16943         Remove.
16944         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16945
16946         stdlib: use _Noreturn
16947         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16948         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16949         * modules/stdlib (Depends-on): Add _Noreturn.
16950         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16951
16952         stdnoreturn-tests: new module
16953         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16954
16955         stdnoreturn: new module
16956         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16957         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16958
16959         _Noreturn-tests: new module
16960         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16961
16962         _Noreturn: new module
16963         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16964         New section, mentioning it.
16965         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16966
16967         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16968
16969 2011-07-11  Eric Blake  <eblake@redhat.com>
16970
16971         ffs: new module
16972         * modules/ffs: New file.
16973         * m4/ffs.m4: Likewise.
16974         * lib/ffs.c: Likewise.
16975         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16976         * modules/strings (Makefile.am): Substitute witness.
16977         (Depends-on): Add c++defs.
16978         * lib/strings.in.h (ffs): Declare.
16979         * modules/ffs-tests: New test file.
16980         * tests/test-ffs.c: Test new module.
16981         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16982         * doc/posix-functions/ffs.texi (ffs): Likewise.
16983
16984         regex: avoid compiler warning
16985         * lib/regex.c (includes): Include <strings.h>, for use of
16986         strcasecmp in regcomp.c.
16987         Reported by Joachim Schmitz.
16988
16989 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16990
16991         stdint: respect system's intmax_t if INTMAX_MAX
16992         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16993         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16994         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16995         long but int64_t is long long, and where we will clash with the
16996         system intmax_t if we override it.  See
16997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16998         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16999         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
17000         similarly for UINTMAX_C.
17001
17002 2011-07-08  Bruno Haible  <bruno@clisp.org>
17003
17004         pthread_sigmask tests: Avoid a compiler warning.
17005         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
17006         non-zero.
17007
17008         sigprocmask tests: A better way to avoid a compiler warning.
17009         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
17010         (main): Complain if system() returns non-zero.
17011         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
17012
17013 2011-07-08  Bruno Haible  <bruno@clisp.org>
17014
17015         pthread_sigmask: Work around IRIX bug.
17016         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
17017         bug.
17018         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
17019         there may be unblocked pending signals.
17020         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
17021
17022 2011-07-08  Bruno Haible  <bruno@clisp.org>
17023
17024         pthread_sigmask: Work around Cygwin bug.
17025         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
17026         bug.
17027         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
17028         the system's pthread_sigmask function.
17029         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
17030
17031 2011-07-08  Bruno Haible  <bruno@clisp.org>
17032
17033         pthread_sigmask: Work around bug in single-threaded implementation.
17034         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
17035         FreeBSD, HP-UX, Solaris bug.
17036         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
17037         * lib/pthread_sigmask.c: Include <stddef.h>.
17038         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
17039         the system's pthread_sigmask function.
17040         * modules/pthread_sigmask (configure.ac): Invoke
17041         gl_PREREQ_PTHREAD_SIGMASK.
17042         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
17043         HP-UX, Solaris.
17044
17045 2011-07-08  Eric Blake  <eblake@redhat.com>
17046
17047         test-sigprocmask: avoid compiler warning
17048         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
17049         * tests/test-sigprocmask.c (main): Use it to silence warning.
17050         Reported by Jim Meyering.
17051
17052         test-snprintf: avoid compiler warning
17053         * tests/test-snprintf.c (main): Avoid shadowed declaration.
17054         * tests/test-vsnprintf.c (main): Likewise.
17055         Reported by Jim Meyering.
17056
17057 2011-07-08  Bruno Haible  <bruno@clisp.org>
17058
17059         Tests for module 'pthread_sigmask'.
17060         * modules/pthread_sigmask-tests: New file.
17061         * tests/test-pthread_sigmask1.c: New file, based on
17062         tests/test-sigprocmask.c.
17063         * tests/test-pthread_sigmask2.c: New file.
17064
17065 2011-07-08  Jim Meyering  <meyering@redhat.com>
17066
17067         test-getopt.h: avoid warning about an unused variable
17068         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
17069
17070 2011-07-07  Jim Meyering  <meyering@redhat.com>
17071
17072         maint: reduce list of files exempt from sc_prohibit_leading_TABs
17073         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
17074         now that it no longer contains leading TABs.
17075         Remove unused "url=FIXME" statement.
17076
17077 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17078
17079         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17080         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17081         When gl_THREADLIB is not in use, assume that the POSIX sematics
17082         are desired.  This is better for Emacs, which uses POSIX semantics
17083         on GNUish and/or POSIXish platforms, and does not use threads at
17084         all otherwise.
17085
17086         pthread_sigmask: fix typo when testing for libraries
17087         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17088         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17089
17090 2011-07-08  Eric Blake  <eblake@redhat.com>
17091
17092         fts: introduce FTS_NOATIME
17093         * lib/fts_.h (FTS_NOATIME): New bit flag.
17094         (FTS_OPTIONMASK): Adjust.
17095         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17096         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17097
17098 2011-07-08  Bruno Haible  <bruno@clisp.org>
17099
17100         Tests for module 'thread'.
17101         * modules/thread-tests: New file.
17102         * tests/test-thread_self.c: New file.
17103         * tests/test-thread_create.cc: New file.
17104
17105 2011-07-08  Bruno Haible  <bruno@clisp.org>
17106
17107         thread: Avoid gcc warnings when using gl_thread_self().
17108         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17109         'void *'.
17110         (gl_thread_self_pointer): Update.
17111
17112 2011-07-07  Bruno Haible  <bruno@clisp.org>
17113
17114         signal-c++-tests: Check declaration of pthread_sigmask.
17115         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17116         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17117         $(LIB_PTHREAD_SIGMASK).
17118
17119 2011-07-07  Bruno Haible  <bruno@clisp.org>
17120
17121         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17122         * lib/signal.in.h (pthread_sigmask): Override if
17123         REPLACE_PTHREAD_SIGMASK is 1.
17124         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17125         REPLACE_PTHREAD_SIGMASK.
17126         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17127         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17128         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17129         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17130         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17131
17132 2011-07-07  Bruno Haible  <bruno@clisp.org>
17133
17134         pthread_sigmask: Ensure declaration in <signal.h>.
17135         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17136         include <pthread.h>.
17137         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17138         problem.
17139
17140 2011-07-07  Bruno Haible  <bruno@clisp.org>
17141
17142         pthread_sigmask: Document the module.
17143         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17144
17145 2011-07-07  Bruno Haible  <bruno@clisp.org>
17146
17147         pthread_sigmask: Follow gnulib conventions.
17148         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17149         gl_PTHREAD_SIGMASK.
17150         * modules/pthread_sigmask (configure.ac): Update.
17151
17152 2011-07-07  Bruno Haible  <bruno@clisp.org>
17153
17154         pthread_sigmask: Make declaration C++ safe.
17155         * lib/signal.in.h: In two special conditions, just do an #include_next.
17156         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17157         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17158         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17159         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17160         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17161         not REPLACE_PTHREAD_MASK.
17162         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17163         not REPLACE_PTHREAD_MASK.
17164         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17165
17166 2011-07-07  Bruno Haible  <bruno@clisp.org>
17167
17168         pthread_sigmask: Fix return value.
17169         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17170         * lib/pthread_sigmask.c: New file.
17171         * modules/pthread_sigmask (Files): Add it.
17172         (configure.ac): Invoke AC_LIBOBJ.
17173
17174 2011-07-07  Eric Blake  <eblake@redhat.com>
17175
17176         getopt: more portable argv creation
17177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17178         const, use char arrays rather than strings.
17179         Suggested by Paul Eggert.
17180
17181 2011-07-07  Bruno Haible  <bruno@clisp.org>
17182
17183         Tests for module 'sigprocmask'.
17184         * modules/sigprocmask-tests: New file.
17185         * tests/test-sigprocmask.c: New file.
17186
17187 2011-07-07  Bruno Haible  <bruno@clisp.org>
17188
17189         float tests: Tweak.
17190         * tests/test-float.c (main): Tweak skip message.
17191
17192 2011-07-07  Eric Blake  <eblake@redhat.com>
17193
17194         getopt: avoid compiler warning during configure
17195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17196         assigning string literals to non-const pointer.
17197
17198         getopt-gnu: avoid crash in glibc getopt
17199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17200         * tests/test-getopt.h (test_getopt): Enhance test.
17201         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17202         * doc/posix-functions/getopt.texi (getopt): Document it.
17203         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17204         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17205         Likewise.
17206
17207 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17208
17209         getopt: handle W; without long options in getopt [BZ #12922]
17210         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17211         but no long options are defined, just return 'W'.
17212
17213 2011-07-07  Bruno Haible  <bruno@clisp.org>
17214
17215         Avoid literal tabs.
17216         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17217         variable containing a tab instead of a literal tab.
17218         Reported by Jim Meyering.
17219
17220 2011-07-07  Bruno Haible  <bruno@clisp.org>
17221
17222         Comments.
17223         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17224
17225 2011-07-06  Bruno Haible  <bruno@clisp.org>
17226
17227         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17228         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17229         <winsock2.h>.
17230         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17231         lib/sys_socket.in.h.
17232         (close, gethostname): Hide declarations from <winsock2.h>.
17233         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17234         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17235         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17236         (select): Don't override if gnulib's <sys/select.h> was already
17237         included.
17238         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17239         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17240         setsockopt, shutdown, select): Tweak indentation.
17241
17242 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17243
17244         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17245         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17246         in an application that does not use the sys_select module.
17247
17248 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17249
17250         poll: do not return 0 on timeout=-1
17251         * lib/poll.c: Loop with yield if no events occurred.
17252
17253 2011-07-06  Eric Blake  <eblake@redhat.com>
17254
17255         pthread_sigmask: always replace when not using pthread
17256         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17257         replacement when using some threading other than pthread.  Fix
17258         logic bug.
17259
17260 2011-07-06  Bruno Haible  <bruno@clisp.org>
17261
17262         Comments.
17263         * m4/printf.m4: Update comments about mingw.
17264
17265 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17266
17267         sys_select: define sigset_t more portably
17268         * lib/sys_select.in.h: Always include <sys/types.h>, since
17269         we now need sigset_t and mingw defines it there.
17270         Include <signal.h> before split inclusion guard, to avoid
17271         mishaps on Solaris, whose <signal.h> eventually includes us.
17272         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17273         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17274         which come from ...
17275         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17276         gl_CHECK_TYPE_SIGSET_T.
17277         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17278         does the real work.
17279         * modules/sys_select (Depends-on): Add 'signal'.
17280
17281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17282         Suggested by Bruno Haible.
17283
17284         pselect: Use pthread_sigmask, not sigprocmask.
17285         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17286         multithreaded apps better than sigprocmask does.
17287         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17288         sigprocmask directly.
17289
17290 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17291
17292         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17293         Don't #undef,  since we don't need any underlying pselect.
17294         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17295         (Depends-on): Add select.
17296         (Link): Add $(LIBSOCKET).
17297         These changes suggested by Bruno Haible.
17298
17299         pselect: document better
17300         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17301         * doc/posix-functions/pselect.texi (pselect): Document new module.
17302
17303         pthread_sigmask: new module
17304         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17305         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17306         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17307         This is done only as a macro; I don't know how well that'll
17308         work for C++.  Move <sys/types.h> include before the include_next,
17309         to avoid mishap on Solaris.
17310         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17311         * modules/signal (Makefile.am): Substitute the check's results.
17312         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17313
17314         test-pselect: new module
17315         * modules/pselect-tests, tests/test-pselect.c: New files.
17316         * tests/test-select.c, tests/test-sys_select-c++.cc:
17317         If TEST_PSELECT is defined, test pselect instead of testing select.
17318
17319         * tests/test-sys_select.c (sigset_t): Test for it, too.
17320         Suggested by Bruno Haible.
17321
17322 2011-07-05  Eric Blake  <eblake@redhat.com>
17323
17324         snprintf: guarantee %1$d, for libintl
17325         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17326         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17327         * doc/posix-functions/snprintf.texi (snprintf): Update.
17328         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17329         * tests/test-snprintf.c (main): Enhance test.
17330         * tests/test-vsnprintf.c (main): Likewise.
17331
17332 2011-07-05  Jim Meyering  <meyering@redhat.com>
17333
17334         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17335         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17336         per Bruno's request, to accommodate this idiom (no space after "#")
17337         even when the function is inside an #if block:
17338         char *
17339         gets (char *s)
17340         #undef gets
17341         {
17342           ...
17343         }
17344
17345 2011-07-04  Jim Meyering  <meyering@redhat.com>
17346
17347         maint: indent with spaces, not TABs, and add a rule to check this
17348         * tests/test-userspec.c: Indent with spaces, not TABs.
17349         * tests/test-argp.c: Likewise.
17350         * tests/test-c-stack2.sh: Likewise.
17351         * tests/test-parse-duration.sh: Likewise
17352         * m4/strtod.m4: Likewise.
17353         * m4/alloca.m4: Likewise.
17354         * m4/pselect.m4: Likewise.
17355         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17356
17357 2011-07-03  Jim Meyering  <meyering@redhat.com>
17358
17359         maint.mk: correct omissions in prohibit_argmatch_without_use check
17360         This rule would mistakenly report that argmatch.h is included without
17361         use even when both the argmatch and invalid_arg macro were used.
17362         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17363         of argmatch and invalid_arg.
17364
17365 2011-07-03  Bruno Haible  <bruno@clisp.org>
17366
17367         Comments about EINTR.
17368         * lib/safe-read.h: Explain the purpose of this module.
17369         * lib/safe-write.h: Likewise.
17370         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17371         module.
17372         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17373         module.
17374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17375
17376 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17377
17378         xnanosleep: Rewrite to use new dtotimespec module.
17379         It has the conversion code that used to be in xnanosleep.
17380         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17381         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17382         (TIME_T_MAX): Remove.
17383         (xnanosleep): Rewrite in terms of dtotimespec.
17384         * modules/xnanosleep (Depends-on): Add dtotimespec.
17385         Remove intprops, stdbool.
17386
17387         timespec-add, timespec-sub: new modules
17388         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17389         * lib/timespec-add.c, lib/timespec-sub.c:
17390         * modules/timespec-add, modules/timespec-sub: New files.
17391
17392         dtotimespec: new module
17393         * lib/timespec.h (dtotimespec): New decl.
17394         * lib/dtotimespec.c, modules/dtotimespec: New files.
17395
17396         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17397
17398         pselect: new module
17399         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17400         (pselect): New decls.
17401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17402         since the standard pselect decl uses 'restrict'.
17403         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17404         HAVE_PSELECT, REPLACE_PSELECT.
17405         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17406         HAVE_PSELECT, REPLACE_PSELECT.
17407         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17408
17409         sys_select: don't depend on sys_socket
17410         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17412         This fix works on GNU and GNU-like platforms, but has not been tested
17413         on native Windows.
17414         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17416         gl_HEADER_SYS_SOCKET.
17417         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17418         gl_PREREQ_SYS_H_WINSOCK2.
17419
17420 2011-06-29  Eric Blake  <eblake@redhat.com>
17421
17422         pipe2: fix C89 compile problem
17423         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17424         Reported by Bruno Haible.
17425
17426         pipe, pipe2: don't corrupt fd on error
17427         * lib/pipe.c (pipe): Leave fd unchanged on error.
17428         * lib/pipe2.c (pipe2): Likewise.
17429         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17430         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17431
17432 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17433
17434         mmap-anon: do not use regular expressions inadvertently
17435         * m4/mmap-anon.m4: Remove trailing period from strings sought
17436         in the output.
17437
17438 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17439
17440         nanosleep: fix integer overflow problem
17441         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17442         arithmetic wraps around on overflow.
17443
17444         nanosleep: simplify carrying
17445         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17446         first call to the underyling nanosleep, not for the last one.
17447         This doesn't fix any bugs, but it simplifies the computation of
17448         the remaining delay.  Found while auditing integer overflow issues.
17449
17450         dup2: remove test for existence of fcntl
17451         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17452         "#if HAVE_FCNTL", in the configure-time test program.
17453         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17454         and therefore speeds up "configure" a bit.  Found while
17455         adding the dup2 module to Emacs.
17456
17457 2011-06-24  Eric Blake  <eblake@redhat.com>
17458
17459         maint.mk: enhance useless header checks
17460         * top/maint.mk (_sc_header_without_use): Check both include
17461         styles.
17462         (sc_prohibit_assert_without_use)
17463         (sc_prohibit_close_stream_without_use)
17464         (sc_prohibit_getopt_without_use)
17465         (sc_prohibit_quotearg_without_use)
17466         (sc_prohibit_quote_without_use)
17467         (sc_prohibit_long_options_without_use)
17468         (sc_prohibit_inttostr_without_use)
17469         (sc_prohibit_ignore_value_without_use)
17470         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17471         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17472         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17473         (sc_prohibit_hash_pjw_without_use)
17474         (sc_prohibit_safe_read_without_use)
17475         (sc_prohibit_argmatch_without_use)
17476         (sc_prohibit_canonicalize_without_use)
17477         (sc_prohibit_root_dev_ino_without_use)
17478         (sc_prohibit_openat_without_use)
17479         (sc_prohibit_c_ctype_without_use)
17480         (sc_prohibit_signal_without_use)
17481         (sc_prohibit_stdio--_without_use)
17482         (sc_prohibit_stdio-safer_without_use)
17483         (sc_prohibit_strings_without_use)
17484         (sc_prohibit_intprops_without_use)
17485         (sc_prohibit_stddef_without_use)
17486         (sc_prohibit_xfreopen_without_use): Update clients.
17487
17488 2011-06-24  Jim Meyering  <meyering@redhat.com>
17489
17490         syntax-check: keep one maint.mk rule in sync with its header
17491         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17492         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17493         I prefer to avoid temporary files here, so use <(...), but that
17494         is not supported by /bin/sh, so...
17495         (SHELL): Define to /bin/bash.
17496
17497 2011-06-24  Eric Blake  <eblake@redhat.com>
17498
17499         maint.mk: update sc_prohibit_intprops_without_use
17500         * top/maint.mk (_intprops_names): Match recent changes.
17501
17502 2011-06-24  Bruno Haible  <bruno@clisp.org>
17503
17504         strerror-override: No-op tweak.
17505         * lib/strerror-override.h (strerror_override): Reorder conditions,
17506         for consistency with lib/strerror-override.c.
17507
17508 2011-06-23  Eric Blake  <eblake@redhat.com>
17509
17510         maint.mk: test further PATH_MAX issues
17511         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17512         (sc_prohibit_path_max_allocation): ...and also test alloca.
17513         Suggested by Jim Meyering.
17514
17515 2011-06-22  Eric Blake  <eblake@redhat.com>
17516
17517         maint.mk: add syntax-check to avoid char[PATH_MAX]
17518         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17519
17520         stat: be robust to PATH_MAX definition
17521         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17522         * modules/stat (Depends-on): Add verify.
17523
17524         link: work around IRIX bug
17525         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17526         * lib/link.c (rpl_link): Work around it.
17527         * tests/test-link.h (test_link): Enhance test.
17528         * doc/posix-functions/link.texi (link): Document the bug.
17529
17530         getopt: silence clang warning
17531         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17532         dereference.
17533         Reported by Gustavo Martin Domato.
17534
17535 2011-06-22  Jim Meyering  <meyering@redhat.com>
17536
17537         bootstrap: do not insert a blank line into each .gitignore file
17538         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17539
17540 2011-06-21  Eric Blake  <eblake@redhat.com>
17541
17542         perror: test for output mismatch
17543         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17544         perror on IRIX.
17545
17546         strerror_r: fix OpenBSD behavior on out-of-range
17547         * lib/strerror_r.c (strerror_r): Always use maximal string.
17548         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17549
17550         strerror_r: fix OpenBSD behavior on 0
17551         * lib/strerror-override.c (strerror_override): Also override 0
17552         when needed.
17553         * lib/strerror-override.h (strerror_override): Likewise.
17554         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17555         earlier.
17556         * lib/strerror_r.c (strerror_r): Likewise.
17557         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17558         behavior...
17559         (gl_FUNC_STRERROR_0): ...into new macro.
17560         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17561         is overridden.
17562         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17563         * modules/strerror-override (Files): Add strerror.m4.
17564         (configure.ac): Also provide override for 0 when needed.
17565         * doc/posix-functions/strerror.texi (strerror): Document this.
17566         * doc/posix-functions/perror.texi (perror): Likewise.
17567
17568         perror: adjust array size
17569         * modules/perror (Depends-on): Add strerror-override.
17570         * lib/perror.c (perror): Use it to avoid magic number.
17571
17572         strerror-override: reduce size
17573         * lib/strerror-override.c (strerror_override): Use fewer lines.
17574
17575 2011-06-20  Bruno Haible  <bruno@clisp.org>
17576
17577         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17578         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17579
17580 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17581
17582         alloca: port to compilers that can optimize like GCC 4.6.0
17583         * lib/alloca.c (find_stack_direction): New signature, taken from
17584         Autoconf git.  This works with GCC 4.6.0.  This code should never
17585         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17586         be used with other compilers that optimize as well as GCC 4.6.0 does.
17587         (alloca): Adjust to new signature.
17588         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17589         New macro, which patches Autoconf in a similar way.
17590
17591         c-stack: stop worrying about stack direction
17592         * lib/c-stack.c (find_stack_direction): Remove.
17593         (segv_handler): Don't worry about stack direction growth, as it's
17594         too much of a pain to configure this correctly, given how compilers
17595         are optimizing-away our stack-growth detection code.  Instead, assume
17596         that any access to just before or just after the stack is OK.
17597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17598         Don't require AC_FUNC_ALLOCA; no longer needed.
17599
17600 2011-06-20  Eric Blake  <eblake@redhat.com>
17601
17602         test-stat: don't allocate PATH_MAX bytes
17603         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17604         PATH_MAX-sized buffer.
17605         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17606         * modules/stat-tests (Depends-on): Likewise.
17607         * tests/test-fstatat.c (includes): Drop pathmax.h.
17608         * tests/test-stat.c (includes): Likewise.
17609         Reported by Bruno Haible.
17610
17611 2011-06-20  Bruno Haible  <bruno@clisp.org>
17612
17613         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17614         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17615         * lib/float.c: New file.
17616         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17617         REPLACE_FLOAT_LDBL.
17618         * modules/float (Files): Add lib/float.c.
17619         (configure.ac): Invoke AC_LIBOBJ.
17620         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17621
17622 2011-06-20  Bruno Haible  <bruno@clisp.org>
17623
17624         Tests for module 'float'.
17625         * modules/float-tests: New file.
17626         * tests/test-float.c: New file.
17627
17628 2011-06-19  Bruno Haible  <bruno@clisp.org>
17629
17630         isinf: Coding style.
17631         * lib/isinf.c: Use GNU coding style.
17632
17633 2011-06-19  Bruno Haible  <bruno@clisp.org>
17634
17635         linkat test: Avoid test failure on AIX 7.1.
17636         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17637         * tests/test-link.h (test_link): Likewise.
17638
17639 2011-06-19  Bruno Haible  <bruno@clisp.org>
17640
17641         pread test: Avoid test failure on OpenBSD 4.9.
17642         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17643
17644 2011-06-19  Bruno Haible  <bruno@clisp.org>
17645
17646         sprintf-posix: Fix test failure on AIX 7.1.
17647         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17648         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17649         on AIX.
17650         * doc/posix-functions/fprintf.texi: Likewise.
17651         * doc/posix-functions/printf.texi: Likewise.
17652         * doc/posix-functions/snprintf.texi: Likewise.
17653         * doc/posix-functions/sprintf.texi: Likewise.
17654         * doc/posix-functions/vdprintf.texi: Likewise.
17655         * doc/posix-functions/vfprintf.texi: Likewise.
17656         * doc/posix-functions/vprintf.texi: Likewise.
17657         * doc/posix-functions/vsnprintf.texi: Likewise.
17658         * doc/posix-functions/vsprintf.texi: Likewise.
17659
17660 2011-06-19  Bruno Haible  <bruno@clisp.org>
17661
17662         roundl-ieee: Fix test failure on AIX 7.1.
17663         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17664         * doc/posix-functions/roundl.texi: Mention problem with negative
17665         arguments.
17666
17667 2011-06-19  Bruno Haible  <bruno@clisp.org>
17668
17669         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17670         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17671         * doc/posix-functions/round.texi: Mention problem with negative
17672         arguments.
17673         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17674
17675 2011-06-19  Bruno Haible  <bruno@clisp.org>
17676
17677         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17678         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17679         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17680         * doc/posix-functions/roundf.texi: Mention problem with negative
17681         arguments.
17682         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17683
17684 2011-06-19  Bruno Haible  <bruno@clisp.org>
17685
17686         ceilf-ieee: Work around bug on MacOS X 10.5.
17687         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17688
17689         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17690         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17691         IEEE compliant, avoid compiler optimizations.
17692         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17693         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17694         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17695         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17696         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17697         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17699         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17700         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17701         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17702
17703 2011-06-19  Bruno Haible  <bruno@clisp.org>
17704
17705         ceilf-ieee: Work around bug on AIX 7.1.
17706         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17707         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17708
17709 2011-06-19  Bruno Haible  <bruno@clisp.org>
17710
17711         ceil-ieee: Work around bug on AIX 7.1.
17712         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17713         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17714
17715 2011-06-18  Bruno Haible  <bruno@clisp.org>
17716
17717         fsync test: Avoid test failure on MacOS X and AIX.
17718         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17719         EINVAL.
17720
17721 2011-06-18  Bruno Haible  <bruno@clisp.org>
17722
17723         openat, fdopendir tests: Fix link errors.
17724         * modules/openat-tests (Depends-on): Add progname.
17725         * modules/fdopendir-tests (Depends-on): Likewise.
17726         * tests/test-fchownat.c: Include progname.h.
17727         (main): Call set_program_name.
17728         * tests/test-fstatat.c: Include progname.h.
17729         (main): Call set_program_name.
17730         * tests/test-mkdirat.c: Include progname.h.
17731         (main): Call set_program_name.
17732         * tests/test-openat.c: Include progname.h.
17733         (main): Call set_program_name.
17734         * tests/test-unlinkat.c: Include progname.h.
17735         (main): Call set_program_name.
17736         * tests/test-fdopendir.c: Include progname.h.
17737         (main): Call set_program_name.
17738
17739 2011-06-18  Bruno Haible  <bruno@clisp.org>
17740
17741         Doc update.
17742         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17743         HP-UX.
17744         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17745
17746 2011-06-18  Bruno Haible  <bruno@clisp.org>
17747
17748         getcwd tests: Avoid compilation error on HP-UX 11.31.
17749         * modules/getcwd-tests (Depends-on): Add pathmax.
17750         * tests/test-getcwd.c: Include pathmax.h.
17751
17752 2011-06-18  Bruno Haible  <bruno@clisp.org>
17753
17754         isfinite, isinf: Fix link error on AIX 6 and 7.
17755         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17756         needed, also test the macro with a 'float' argument.
17757         * m4/isinf.m4 (gl_ISINF): Likewise.
17758
17759 2011-06-18  Bruno Haible  <bruno@clisp.org>
17760
17761         getloadavg: Don't clobber LIBS. Regression from previous commit.
17762         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17763         AC_CHECK_LIB from here...
17764         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17765         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17766         gl_func_getloadavg_done.
17767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17768
17769 2011-06-18  Bruno Haible  <bruno@clisp.org>
17770
17771         clean-temp: Improve documentation.
17772         * lib/clean-temp.h: Explain better how to use this module.
17773         Reported by John Darrington <john@darrington.wattle.id.au>.
17774
17775 2011-06-17  Bruno Haible  <bruno@clisp.org>
17776
17777         pread, pwrite: Avoid cc warning on AIX.
17778         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17779         (pwrite): Likewise.
17780
17781 2011-06-17  Bruno Haible  <bruno@clisp.org>
17782
17783         spawn-pipe tests: Fix link error.
17784         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17786
17787 2011-06-17  Bruno Haible  <bruno@clisp.org>
17788
17789         Tests: Remove unnecessary dependency.
17790         * modules/canonicalize-tests (Depends-on): Remove progname.
17791         * modules/chown-tests (Depends-on): Likewise.
17792         * modules/dirname-tests (Depends-on): Likewise.
17793         * modules/fdopendir-tests (Depends-on): Likewise.
17794         * modules/fdutimensat-tests (Depends-on): Likewise.
17795         * modules/hash-tests (Depends-on): Likewise.
17796         * modules/lchown-tests (Depends-on): Likewise.
17797         * modules/linkat-tests (Depends-on): Likewise.
17798         * modules/renameat-tests (Depends-on): Likewise.
17799         * modules/spawn-pipe-tests (Depends-on): Likewise.
17800         * modules/utimensat-tests (Depends-on): Likewise.
17801
17802 2011-06-17  Bruno Haible  <bruno@clisp.org>
17803
17804         spawn-pipe tests: Fix link error.
17805         * tests/test-spawn-pipe-child.c: Undefine fflush.
17806
17807 2011-06-17  Bruno Haible  <bruno@clisp.org>
17808
17809         Fix tests link errors.
17810         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17811         * modules/chown-tests (Makefile.am): Don't link test-chown with
17812         LIBINTL.
17813         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17814         LIBINTL.
17815         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17816         LIBINTL.
17817         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17818         LIBINTL.
17819
17820 2011-06-16  Bruno Haible  <bruno@clisp.org>
17821
17822         crypto/gc-sha1: Fix recent regression.
17823         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17824         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17825
17826         crypto/gc-md5: Fix recent regression.
17827         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17828
17829         crypto/gc-md4: Fix recent regression.
17830         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17831         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17832
17833         crypto/gc-arctwo: Fix recent regression.
17834         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17835         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17836
17837         crypto/gc-rijndael: Fix recent regression.
17838         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17839         (configure.ac): Invoke AC_LIBOBJ here.
17840         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17842
17843         crypto/gc-hmac-sha1: Fix recent regression.
17844         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17845         (configure.ac): Invoke AC_LIBOBJ here.
17846         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17848
17849         crypto/gc-hmac-md5: Fix recent regression.
17850         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17851         (configure.ac): Invoke AC_LIBOBJ here.
17852         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17854
17855         crypto/gc-des: Fix recent regression.
17856         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17857         (configure.ac): Invoke AC_LIBOBJ here.
17858         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17859         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17860
17861         crypto/gc-arcfour: Fix recent regression.
17862         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17863         (configure.ac): Invoke AC_LIBOBJ here.
17864         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17866
17867 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17868
17869         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17870         After the 2011-05-21 change, this macro requires
17871         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17872         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17873
17874 2011-06-16  Bruno Haible  <bruno@clisp.org>
17875
17876         fprintftime: Move AC_LIBOBJ invocations to module description.
17877         * m4/fprintftime.m4: Remove file.
17878         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17879         (configure.ac): Remove gl_FPRINTFTIME call.
17880         (Makefile.am): Augment lib_SOURCES.
17881         Reported by Jim Meyering.
17882
17883 2011-06-16  Bruno Haible  <bruno@clisp.org>
17884
17885         tmpfile-safer: Finish 2011-05-23 commit.
17886         * m4/stdio-safer.m4: Really remove file.
17887         Reported by Jim Meyering.
17888
17889 2011-06-16  Bruno Haible  <bruno@clisp.org>
17890
17891         syntax-check: Fix typo.
17892         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17893         printf-posix.m4.
17894         Reported by Jim Meyering.
17895
17896 2011-06-13  Jim Meyering  <meyering@redhat.com>
17897
17898         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17899         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17900
17901 2011-05-23  Bruno Haible  <bruno@clisp.org>
17902
17903         yesno: Move AC_LIBOBJ invocations to module description.
17904         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17905         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17906
17907 2011-05-23  Bruno Haible  <bruno@clisp.org>
17908
17909         xstrtol: Move AC_LIBOBJ invocations to module description.
17910         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17911         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17912
17913 2011-05-23  Bruno Haible  <bruno@clisp.org>
17914
17915         xstrtold: Move AC_LIBOBJ invocations to module description.
17916         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17917         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17918
17919 2011-05-23  Bruno Haible  <bruno@clisp.org>
17920
17921         xstrtod: Move AC_LIBOBJ invocations to module description.
17922         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17923         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17924
17925 2011-05-23  Bruno Haible  <bruno@clisp.org>
17926
17927         xnanosleep: Move AC_LIBOBJ invocations to module description.
17928         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17929         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17930
17931 2011-05-23  Bruno Haible  <bruno@clisp.org>
17932
17933         xgetcwd: Move AC_LIBOBJ invocations to module description.
17934         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17935         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17936
17937 2011-05-23  Bruno Haible  <bruno@clisp.org>
17938
17939         xalloc: Move AC_LIBOBJ invocations to module description.
17940         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17941         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17942
17943 2011-05-23  Bruno Haible  <bruno@clisp.org>
17944
17945         write-any-file: Move AC_LIBOBJ invocations to module description.
17946         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17947         invocation.
17948         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17949
17950 2011-05-23  Bruno Haible  <bruno@clisp.org>
17951
17952         utimens: Move AC_LIBOBJ invocations to module description.
17953         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17954         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17955
17956 2011-05-23  Bruno Haible  <bruno@clisp.org>
17957
17958         utimecmp: Move AC_LIBOBJ invocations to module description.
17959         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17960         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17961
17962 2011-05-23  Bruno Haible  <bruno@clisp.org>
17963
17964         userspec: Move AC_LIBOBJ invocations to module description.
17965         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17966         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17967
17968 2011-05-23  Bruno Haible  <bruno@clisp.org>
17969
17970         unlinkdir: Move AC_LIBOBJ invocations to module description.
17971         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17972         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17973
17974 2011-05-23  Bruno Haible  <bruno@clisp.org>
17975
17976         unistd-safer: Move AC_LIBOBJ invocations to module description.
17977         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17978         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17979
17980 2011-05-23  Bruno Haible  <bruno@clisp.org>
17981
17982         tempname: Move AC_LIBOBJ invocations to module description.
17983         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17984         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17985
17986 2011-05-23  Bruno Haible  <bruno@clisp.org>
17987
17988         strftime: Move AC_LIBOBJ invocations to module description.
17989         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17990         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17991
17992 2011-05-23  Bruno Haible  <bruno@clisp.org>
17993
17994         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17995         * m4/stdlib-safer.m4: Remove file.
17996         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17997         (configure.ac): Remove gl_STDLIB_SAFER call.
17998         (Makefile.am): Augment lib_SOURCES.
17999
18000 2011-05-23  Bruno Haible  <bruno@clisp.org>
18001
18002         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
18003         * m4/stdio-safer.m4: Remove file.
18004         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
18005         (configure.ac): Remove gl_TMPFILE_SAFER call.
18006         (Makefile.am): Augment lib_SOURCES.
18007
18008 2011-05-23  Bruno Haible  <bruno@clisp.org>
18009
18010         popen-safer: Move AC_LIBOBJ invocations to module description.
18011         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
18012         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
18013         (configure.ac): Remove gl_POPEN_SAFER call.
18014         (Makefile.am): Augment lib_SOURCES.
18015
18016 2011-05-23  Bruno Haible  <bruno@clisp.org>
18017
18018         freopen-safer: Move AC_LIBOBJ invocations to module description.
18019         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
18020         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
18021         (configure.ac): Remove gl_FREOPEN_SAFER call.
18022         (Makefile.am): Augment lib_SOURCES.
18023
18024 2011-05-23  Bruno Haible  <bruno@clisp.org>
18025
18026         fopen-safer: Move AC_LIBOBJ invocations to module description.
18027         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
18028         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
18029         (configure.ac): Remove gl_FOPEN_SAFER call.
18030         (Makefile.am): Augment lib_SOURCES.
18031
18032 2011-05-23  Bruno Haible  <bruno@clisp.org>
18033
18034         crypto/sha512: Move AC_LIBOBJ invocations to module description.
18035         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
18036         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
18037
18038 2011-05-23  Bruno Haible  <bruno@clisp.org>
18039
18040         crypto/sha256: Move AC_LIBOBJ invocations to module description.
18041         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
18042         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
18043
18044 2011-05-23  Bruno Haible  <bruno@clisp.org>
18045
18046         crypto/sha1: Move AC_LIBOBJ invocations to module description.
18047         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
18048         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
18049
18050 2011-05-23  Bruno Haible  <bruno@clisp.org>
18051
18052         settime: Move AC_LIBOBJ invocations to module description.
18053         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
18054         * modules/settime (Makefile.am): Augment lib_SOURCES.
18055
18056 2011-05-23  Bruno Haible  <bruno@clisp.org>
18057
18058         savedir: Move AC_LIBOBJ invocations to module description.
18059         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
18060         * modules/savedir (Makefile.am): Augment lib_SOURCES.
18061
18062 2011-05-23  Bruno Haible  <bruno@clisp.org>
18063
18064         save-cwd: Move AC_LIBOBJ invocations to module description.
18065         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
18066         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
18067
18068 2011-05-23  Bruno Haible  <bruno@clisp.org>
18069
18070         same: Move AC_LIBOBJ invocations to module description.
18071         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
18072         * modules/same (Makefile.am): Augment lib_SOURCES.
18073
18074 2011-05-23  Bruno Haible  <bruno@clisp.org>
18075
18076         safe-write: Move AC_LIBOBJ invocations to module description.
18077         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18078         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18079         instead of gl_SAFE_WRITE.
18080         (Makefile.am): Augment lib_SOURCES.
18081
18082 2011-05-23  Bruno Haible  <bruno@clisp.org>
18083
18084         safe-read: Move AC_LIBOBJ invocations to module description.
18085         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18086         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18087         of gl_SAFE_READ.
18088         (Makefile.am): Augment lib_SOURCES.
18089
18090 2011-05-23  Bruno Haible  <bruno@clisp.org>
18091
18092         safe-alloc: Move AC_LIBOBJ invocations to module description.
18093         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18094         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18095
18096 2011-05-23  Bruno Haible  <bruno@clisp.org>
18097
18098         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18099         * m4/rijndael.m4: Remove file.
18100         * modules/crypto/rijndael (Files): Remove it.
18101         (configure.ac): Remove gl_RIJNDAEL call.
18102         (Makefile.am): Augment lib_SOURCES.
18103
18104 2011-05-23  Bruno Haible  <bruno@clisp.org>
18105
18106         readtokens: Move AC_LIBOBJ invocations to module description.
18107         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18108         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18109
18110 2011-05-23  Bruno Haible  <bruno@clisp.org>
18111
18112         read-file: Move AC_LIBOBJ invocations to module description.
18113         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18114         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18115         of gl_FUNC_READ_FILE.
18116         (Makefile.am): Augment lib_SOURCES.
18117
18118 2011-05-23  Bruno Haible  <bruno@clisp.org>
18119
18120         quotearg: Move AC_LIBOBJ invocations to module description.
18121         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18122         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18123
18124 2011-05-23  Bruno Haible  <bruno@clisp.org>
18125
18126         quote: Move AC_LIBOBJ invocations to module description.
18127         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18128         * modules/quote (Makefile.am): Augment lib_SOURCES.
18129
18130 2011-05-23  Bruno Haible  <bruno@clisp.org>
18131
18132         posixver: Move AC_LIBOBJ invocations to module description.
18133         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18134         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18135
18136 2011-05-23  Bruno Haible  <bruno@clisp.org>
18137
18138         posixtm: Move AC_LIBOBJ invocations to module description.
18139         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18140         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18141
18142 2011-05-23  Bruno Haible  <bruno@clisp.org>
18143
18144         physmem: Move AC_LIBOBJ invocations to module description.
18145         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18146         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18147
18148 2011-05-23  Bruno Haible  <bruno@clisp.org>
18149
18150         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18151         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18152         invocation.
18153         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18154
18155 2011-05-23  Bruno Haible  <bruno@clisp.org>
18156
18157         mpsort: Move AC_LIBOBJ invocations to module description.
18158         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18159         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18160
18161 2011-05-23  Bruno Haible  <bruno@clisp.org>
18162
18163         modechange: Move AC_LIBOBJ invocations to module description.
18164         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18165         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18166
18167 2011-05-23  Bruno Haible  <bruno@clisp.org>
18168
18169         mkdir-p: Move AC_LIBOBJ invocations to module description.
18170         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18171         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18172
18173 2011-05-23  Bruno Haible  <bruno@clisp.org>
18174
18175         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18176         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18177         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18178
18179 2011-05-23  Bruno Haible  <bruno@clisp.org>
18180
18181         mgetgroups: Move AC_LIBOBJ invocations to module description.
18182         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18183         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18184
18185 2011-05-23  Bruno Haible  <bruno@clisp.org>
18186
18187         memxor: Move AC_LIBOBJ invocations to module description.
18188         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18189         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18190
18191 2011-05-23  Bruno Haible  <bruno@clisp.org>
18192
18193         memcoll: Move AC_LIBOBJ invocations to module description.
18194         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18195         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18196
18197 2011-05-23  Bruno Haible  <bruno@clisp.org>
18198
18199         memcasecmp: Move AC_LIBOBJ invocations to module description.
18200         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18201         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18202
18203 2011-05-23  Bruno Haible  <bruno@clisp.org>
18204
18205         crypto/md5: Move AC_LIBOBJ invocations to module description.
18206         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18207         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18208
18209 2011-05-23  Bruno Haible  <bruno@clisp.org>
18210
18211         crypto/md4: Move AC_LIBOBJ invocations to module description.
18212         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18213         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18214
18215 2011-05-23  Bruno Haible  <bruno@clisp.org>
18216
18217         crypto/md2: Move AC_LIBOBJ invocations to module description.
18218         * m4/md2.m4: Remove file.
18219         * modules/crypto/md2 (Files): Remove it.
18220         (configure.ac): Remove gl_MD2 call.
18221         (Makefile.am): Augment lib_SOURCES.
18222
18223 2011-05-23  Bruno Haible  <bruno@clisp.org>
18224
18225         long-options: Move AC_LIBOBJ invocations to module description.
18226         * m4/long-options.m4: Remove file.
18227         * modules/long-options (Files): Remove it.
18228         (configure.ac): Remove gl_LONG_OPTIONS call.
18229         (Makefile.am): Augment lib_SOURCES.
18230
18231 2011-05-23  Bruno Haible  <bruno@clisp.org>
18232
18233         i-ring: Move AC_LIBOBJ invocations to module description.
18234         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18235         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18236
18237 2011-05-23  Bruno Haible  <bruno@clisp.org>
18238
18239         idcache: Move AC_LIBOBJ invocations to module description.
18240         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18241         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18242
18243 2011-05-23  Bruno Haible  <bruno@clisp.org>
18244
18245         human: Move AC_LIBOBJ invocations to module description.
18246         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18247         * modules/human (Makefile.am): Augment lib_SOURCES.
18248
18249 2011-05-23  Bruno Haible  <bruno@clisp.org>
18250
18251         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18252         * m4/hmac-sha1.m4: Remove file.
18253         * modules/crypto/hmac-sha1 (Files): Remove it.
18254         (configure.ac): Remove gl_HMAC_SHA1 call.
18255         (Makefile.am): Augment lib_SOURCES.
18256
18257 2011-05-23  Bruno Haible  <bruno@clisp.org>
18258
18259         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18260         * m4/hmac-md5.m4: Remove file.
18261         * modules/crypto/hmac-md5 (Files): Remove it.
18262         (configure.ac): Remove gl_HMAC_MD5 call.
18263         (Makefile.am): Augment lib_SOURCES.
18264
18265 2011-05-23  Bruno Haible  <bruno@clisp.org>
18266
18267         hash: Move AC_LIBOBJ invocations to module description.
18268         * m4/hash.m4: Remove file.
18269         * modules/hash (Files): Remove it.
18270         (configure.ac): Remove gl_HASH call.
18271         (Makefile.am): Augment lib_SOURCES.
18272
18273 2011-05-23  Bruno Haible  <bruno@clisp.org>
18274
18275         hard-locale: Move AC_LIBOBJ invocations to module description.
18276         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18277         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18278
18279 2011-05-23  Bruno Haible  <bruno@clisp.org>
18280
18281         getugroups: Move AC_LIBOBJ invocations to module description.
18282         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18283         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18284
18285 2011-05-23  Bruno Haible  <bruno@clisp.org>
18286
18287         gettime: Move AC_LIBOBJ invocations to module description.
18288         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18289         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18290
18291 2011-05-23  Bruno Haible  <bruno@clisp.org>
18292
18293         getndelim2: Move AC_LIBOBJ invocations to module description.
18294         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18295         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18296
18297 2011-05-23  Bruno Haible  <bruno@clisp.org>
18298
18299         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18300         * m4/gc-pbkdf2-sha1.m4: Remove file.
18301         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18302         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18303         (Makefile.am): Augment lib_SOURCES.
18304
18305 2011-05-23  Bruno Haible  <bruno@clisp.org>
18306
18307         fts: Move AC_LIBOBJ invocations to module description.
18308         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18309         * modules/fts (configure.ac): ... to here.
18310
18311 2011-05-23  Bruno Haible  <bruno@clisp.org>
18312
18313         file-type: Move AC_LIBOBJ invocations to module description.
18314         * m4/file-type.m4: Remove file.
18315         * modules/file-type (Files): Remove it.
18316         (configure.ac): Remove gl_FILE_TYPE call.
18317         (Makefile.am): Augment lib_SOURCES.
18318
18319 2011-05-23  Bruno Haible  <bruno@clisp.org>
18320
18321         filenamecat*: Respect rules for use of AC_LIBOBJ.
18322         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18323         Remove AC_LIBOBJ invocation.
18324         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18325         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18326
18327 2011-05-23  Bruno Haible  <bruno@clisp.org>
18328
18329         filemode: Move AC_LIBOBJ invocations to module description.
18330         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18331         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18332
18333 2011-05-23  Bruno Haible  <bruno@clisp.org>
18334
18335         openat-safer: Move AC_LIBOBJ invocations to module description.
18336         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18337         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18338
18339 2011-05-23  Bruno Haible  <bruno@clisp.org>
18340
18341         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18342         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18343         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18344
18345 2011-05-23  Bruno Haible  <bruno@clisp.org>
18346
18347         exclude: Move AC_LIBOBJ invocations to module description.
18348         * m4/exclude.m4: Remove file.
18349         * modules/exclude (Files): Remove it.
18350         (configure.ac): Remove gl_EXCLUDE call.
18351         (Makefile.am): Augment lib_SOURCES.
18352
18353 2011-05-23  Bruno Haible  <bruno@clisp.org>
18354
18355         dirname*: Respect rules for use of AC_LIBOBJ.
18356         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18357         invocations.
18358         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18359         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18360
18361 2011-05-23  Bruno Haible  <bruno@clisp.org>
18362
18363         dirent-safer: Move AC_LIBOBJ invocations to module description.
18364         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18365         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18366
18367 2011-05-23  Bruno Haible  <bruno@clisp.org>
18368
18369         crypto/des: Move AC_LIBOBJ invocations to module description.
18370         * m4/des.m4: Remove file.
18371         * modules/crypto/des (Files): Remove it.
18372         (configure.ac): Remove gl_DES call.
18373         (Makefile.am): Augment lib_SOURCES.
18374
18375 2011-05-23  Bruno Haible  <bruno@clisp.org>
18376
18377         cycle-check: Move AC_LIBOBJ invocations to module description.
18378         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18379         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18380
18381 2011-05-23  Bruno Haible  <bruno@clisp.org>
18382
18383         c-strtold: Move AC_LIBOBJ invocations to module description.
18384         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18385         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18386
18387 2011-05-23  Bruno Haible  <bruno@clisp.org>
18388
18389         c-strtod: Move AC_LIBOBJ invocations to module description.
18390         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18391         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18392
18393 2011-05-23  Bruno Haible  <bruno@clisp.org>
18394
18395         crc: Move AC_LIBOBJ invocations to module description.
18396         * m4/crc.m4: Remove file.
18397         * modules/crc (Files): Remove it.
18398         (configure.ac): Remove gl_CRC call.
18399         (Makefile.am): Augment lib_SOURCES.
18400
18401 2011-05-23  Bruno Haible  <bruno@clisp.org>
18402
18403         close-stream: Move AC_LIBOBJ invocations to module description.
18404         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18405         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18406
18407 2011-05-23  Bruno Haible  <bruno@clisp.org>
18408
18409         closeout: Move AC_LIBOBJ invocations to module description.
18410         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18411         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18412
18413 2011-05-23  Bruno Haible  <bruno@clisp.org>
18414
18415         closein: Move AC_LIBOBJ invocations to module description.
18416         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18417         * modules/closein (Makefile.am): Augment lib_SOURCES.
18418
18419 2011-05-23  Bruno Haible  <bruno@clisp.org>
18420
18421         cloexec: Move AC_LIBOBJ invocations to module description.
18422         * m4/cloexec.m4: Remove file.
18423         * modules/cloexec (Files): Remove it.
18424         (configure.ac): Remove gl_CLOEXEC call.
18425         (Makefile.am): Augment lib_SOURCES.
18426
18427 2011-05-23  Bruno Haible  <bruno@clisp.org>
18428
18429         check-version: Move AC_LIBOBJ invocations to module description.
18430         * m4/check-version.m4: Remove file.
18431         * modules/check-version (Files): Remove it.
18432         (configure.ac): Remove gl_CHECK_VERSION call.
18433         (Makefile.am): Augment lib_SOURCES.
18434
18435 2011-05-23  Bruno Haible  <bruno@clisp.org>
18436
18437         chdir-safer: Move AC_LIBOBJ invocations to module description.
18438         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18439         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18440
18441 2011-05-23  Bruno Haible  <bruno@clisp.org>
18442
18443         canonicalize: Move AC_LIBOBJ invocations to module description.
18444         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18445         AC_LIBOBJ invocation.
18446         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18447
18448 2011-05-23  Bruno Haible  <bruno@clisp.org>
18449
18450         canon-host: Move AC_LIBOBJ invocations to module description.
18451         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18452         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18453         instead of gl_CANON_HOST.
18454         (Makefile.am): Augment lib_SOURCES.
18455
18456 2011-05-23  Bruno Haible  <bruno@clisp.org>
18457
18458         backupfile: Move AC_LIBOBJ invocations to module description.
18459         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18460         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18461
18462 2011-05-23  Bruno Haible  <bruno@clisp.org>
18463
18464         argmatch: Move AC_LIBOBJ invocations to module description.
18465         * m4/argmatch.m4: Remove file.
18466         * modules/argmatch (Files): Remove it.
18467         (configure.ac): Remove gl_ARGMATCH call.
18468         (Makefile.am): Augment lib_SOURCES.
18469
18470 2011-05-23  Bruno Haible  <bruno@clisp.org>
18471
18472         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18473         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18474         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18475
18476 2011-05-23  Bruno Haible  <bruno@clisp.org>
18477
18478         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18479         * m4/arcfour.m4: Remove file.
18480         * modules/crypto/arcfour (Files): Remove it.
18481         (configure.ac): Remove gl_ARCFOUR call.
18482         (Makefile.am): Augment lib_SOURCES.
18483
18484 2011-05-22  Bruno Haible  <bruno@clisp.org>
18485
18486         write: Move AC_LIBOBJ invocations to module description.
18487         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18488         * modules/write (configure.ac): ... to here.
18489
18490 2011-05-22  Bruno Haible  <bruno@clisp.org>
18491
18492         wmemset: Move AC_LIBOBJ invocations to module description.
18493         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18494         here...
18495         * modules/wmemset (configure.ac): ... to here.
18496
18497 2011-05-22  Bruno Haible  <bruno@clisp.org>
18498
18499         wmemmove: Move AC_LIBOBJ invocations to module description.
18500         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18501         here...
18502         * modules/wmemmove (configure.ac): ... to here.
18503
18504 2011-05-22  Bruno Haible  <bruno@clisp.org>
18505
18506         wmemcpy: Move AC_LIBOBJ invocations to module description.
18507         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18508         here...
18509         * modules/wmemcpy (configure.ac): ... to here.
18510
18511 2011-05-22  Bruno Haible  <bruno@clisp.org>
18512
18513         wmemcmp: Move AC_LIBOBJ invocations to module description.
18514         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18515         here...
18516         * modules/wmemcmp (configure.ac): ... to here.
18517
18518 2011-05-22  Bruno Haible  <bruno@clisp.org>
18519
18520         wmemchr: Move AC_LIBOBJ invocations to module description.
18521         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18522         here...
18523         * modules/wmemchr (configure.ac): ... to here.
18524
18525 2011-05-22  Bruno Haible  <bruno@clisp.org>
18526
18527         wcswidth: Move AC_LIBOBJ invocations to module description.
18528         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18529         here...
18530         * modules/wcswidth (configure.ac): ... to here.
18531
18532 2011-05-22  Bruno Haible  <bruno@clisp.org>
18533
18534         wcwidth: Respect rules for use of AC_LIBOBJ.
18535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18536         invocation from here...
18537         * modules/wcwidth (configure.ac): ... to here.
18538         (Depends-on): Update conditions.
18539
18540 2011-05-22  Bruno Haible  <bruno@clisp.org>
18541
18542         wctype: Move AC_LIBOBJ invocations to module description.
18543         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18544         invocation from here...
18545         * modules/wctype (configure.ac): ... to here.
18546         (Depends-on): Update conditions.
18547
18548 2011-05-22  Bruno Haible  <bruno@clisp.org>
18549
18550         wctrans: Move AC_LIBOBJ invocations to module description.
18551         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18552         invocation from here...
18553         * modules/wctrans (configure.ac): ... to here.
18554
18555 2011-05-22  Bruno Haible  <bruno@clisp.org>
18556
18557         wctomb: Move AC_LIBOBJ invocations to module description.
18558         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18559         invocations from here...
18560         * modules/wctomb (configure.ac): ... to here.
18561
18562 2011-05-22  Bruno Haible  <bruno@clisp.org>
18563
18564         wctob: Move AC_LIBOBJ invocations to module description.
18565         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18566         gl_PREREQ_WCTOB invocations from here...
18567         * modules/wctob (configure.ac): ... to here.
18568         (Depends-on): Update conditions.
18569
18570 2011-05-22  Bruno Haible  <bruno@clisp.org>
18571
18572         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18573         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18574         here...
18575         * modules/wcsxfrm (configure.ac): ... to here.
18576
18577 2011-05-22  Bruno Haible  <bruno@clisp.org>
18578
18579         wcstok: Move AC_LIBOBJ invocations to module description.
18580         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18581         * modules/wcstok (configure.ac): ... to here.
18582
18583 2011-05-22  Bruno Haible  <bruno@clisp.org>
18584
18585         wcsstr: Move AC_LIBOBJ invocations to module description.
18586         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18587         * modules/wcsstr (configure.ac): ... to here.
18588
18589 2011-05-22  Bruno Haible  <bruno@clisp.org>
18590
18591         wcsspn: Move AC_LIBOBJ invocations to module description.
18592         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18593         * modules/wcsspn (configure.ac): ... to here.
18594
18595 2011-05-22  Bruno Haible  <bruno@clisp.org>
18596
18597         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18598         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18599         gl_PREREQ_WCSRTOMBS invocations from here...
18600         * modules/wcsrtombs (configure.ac): ... to here.
18601
18602 2011-05-22  Bruno Haible  <bruno@clisp.org>
18603
18604         wcsrchr: Move AC_LIBOBJ invocations to module description.
18605         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18606         here...
18607         * modules/wcsrchr (configure.ac): ... to here.
18608
18609 2011-05-22  Bruno Haible  <bruno@clisp.org>
18610
18611         wcspbrk: Move AC_LIBOBJ invocations to module description.
18612         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18613         here...
18614         * modules/wcspbrk (configure.ac): ... to here.
18615
18616 2011-05-22  Bruno Haible  <bruno@clisp.org>
18617
18618         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18619         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18620         gl_PREREQ_WCSNRTOMBS invocations from here...
18621         * modules/wcsnrtombs (configure.ac): ... to here.
18622
18623 2011-05-22  Bruno Haible  <bruno@clisp.org>
18624
18625         wcsnlen: Move AC_LIBOBJ invocations to module description.
18626         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18627         here...
18628         * modules/wcsnlen (configure.ac): ... to here.
18629
18630 2011-05-22  Bruno Haible  <bruno@clisp.org>
18631
18632         wcsncpy: Move AC_LIBOBJ invocations to module description.
18633         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18634         here...
18635         * modules/wcsncpy (configure.ac): ... to here.
18636
18637 2011-05-22  Bruno Haible  <bruno@clisp.org>
18638
18639         wcsncmp: Move AC_LIBOBJ invocations to module description.
18640         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18641         here...
18642         * modules/wcsncmp (configure.ac): ... to here.
18643
18644 2011-05-22  Bruno Haible  <bruno@clisp.org>
18645
18646         wcsncat: Move AC_LIBOBJ invocations to module description.
18647         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18648         here...
18649         * modules/wcsncat (configure.ac): ... to here.
18650
18651 2011-05-22  Bruno Haible  <bruno@clisp.org>
18652
18653         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18654         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18655         from here...
18656         * modules/wcsncasecmp (configure.ac): ... to here.
18657
18658 2011-05-22  Bruno Haible  <bruno@clisp.org>
18659
18660         wcslen: Move AC_LIBOBJ invocations to module description.
18661         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18662         * modules/wcslen (configure.ac): ... to here.
18663
18664 2011-05-22  Bruno Haible  <bruno@clisp.org>
18665
18666         wcsdup: Move AC_LIBOBJ invocations to module description.
18667         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18668         * modules/wcsdup (configure.ac): ... to here.
18669
18670 2011-05-22  Bruno Haible  <bruno@clisp.org>
18671
18672         wcscspn: Move AC_LIBOBJ invocations to module description.
18673         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18674         here...
18675         * modules/wcscspn (configure.ac): ... to here.
18676
18677 2011-05-22  Bruno Haible  <bruno@clisp.org>
18678
18679         wcscpy: Move AC_LIBOBJ invocations to module description.
18680         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18681         * modules/wcscpy (configure.ac): ... to here.
18682
18683 2011-05-22  Bruno Haible  <bruno@clisp.org>
18684
18685         wcscoll: Move AC_LIBOBJ invocations to module description.
18686         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18687         here...
18688         * modules/wcscoll (configure.ac): ... to here.
18689
18690 2011-05-22  Bruno Haible  <bruno@clisp.org>
18691
18692         wcscmp: Move AC_LIBOBJ invocations to module description.
18693         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18694         * modules/wcscmp (configure.ac): ... to here.
18695
18696 2011-05-22  Bruno Haible  <bruno@clisp.org>
18697
18698         wcschr: Move AC_LIBOBJ invocations to module description.
18699         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18700         * modules/wcschr (configure.ac): ... to here.
18701
18702 2011-05-22  Bruno Haible  <bruno@clisp.org>
18703
18704         wcscat: Move AC_LIBOBJ invocations to module description.
18705         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18706         * modules/wcscat (configure.ac): ... to here.
18707
18708 2011-05-22  Bruno Haible  <bruno@clisp.org>
18709
18710         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18711         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18712         here...
18713         * modules/wcscasecmp (configure.ac): ... to here.
18714
18715 2011-05-22  Bruno Haible  <bruno@clisp.org>
18716
18717         wcrtomb: Move AC_LIBOBJ invocations to module description.
18718         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18719         invocations from here...
18720         * modules/wcrtomb (configure.ac): ... to here.
18721
18722 2011-05-22  Bruno Haible  <bruno@clisp.org>
18723
18724         wcpncpy: Move AC_LIBOBJ invocations to module description.
18725         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18726         here...
18727         * modules/wcpncpy (configure.ac): ... to here.
18728
18729 2011-05-22  Bruno Haible  <bruno@clisp.org>
18730
18731         wcpcpy: Move AC_LIBOBJ invocations to module description.
18732         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18733         * modules/wcpcpy (configure.ac): ... to here.
18734
18735 2011-05-22  Bruno Haible  <bruno@clisp.org>
18736
18737         waitpid: Move AC_LIBOBJ invocations to module description.
18738         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18739         invocation from here...
18740         * modules/waitpid (configure.ac): ... to here.
18741
18742 2011-05-22  Bruno Haible  <bruno@clisp.org>
18743
18744         utimensat: Move AC_LIBOBJ invocations to module description.
18745         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18746         here...
18747         * modules/utimensat (configure.ac): ... to here.
18748
18749 2011-05-22  Bruno Haible  <bruno@clisp.org>
18750
18751         usleep: Move AC_LIBOBJ invocations to module description.
18752         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18753         here...
18754         * modules/usleep (configure.ac): ... to here.
18755
18756 2011-05-22  Bruno Haible  <bruno@clisp.org>
18757
18758         unlockpt: Move AC_LIBOBJ invocations to module description.
18759         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18760         gl_PREREQ_UNLOCKPT invocations from here...
18761         * modules/unlockpt (configure.ac): ... to here.
18762
18763 2011-05-22  Bruno Haible  <bruno@clisp.org>
18764
18765         unlink: Respect rules for use of AC_LIBOBJ.
18766         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18767         * modules/unlink (configure.ac): ... to here.
18768
18769 2011-05-22  Bruno Haible  <bruno@clisp.org>
18770
18771         uname: Move AC_LIBOBJ invocations to module description.
18772         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18773         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18774         here...
18775         * modules/uname (configure.ac): ... to here.
18776
18777 2011-05-22  Bruno Haible  <bruno@clisp.org>
18778
18779         ttyname_r: Move AC_LIBOBJ invocations to module description.
18780         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18781         gl_PREREQ_TTYNAME_R invocations from here...
18782         * modules/ttyname_r (configure.ac): ... to here.
18783
18784 2011-05-22  Bruno Haible  <bruno@clisp.org>
18785
18786         tsearch: Move AC_LIBOBJ invocations to module description.
18787         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18788         invocations from here...
18789         * modules/tsearch (configure.ac): ... to here.
18790
18791 2011-05-22  Bruno Haible  <bruno@clisp.org>
18792
18793         towctrans: Move AC_LIBOBJ invocations to module description.
18794         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18795         AC_LIBOBJ invocation from here...
18796         * modules/towctrans (configure.ac): ... to here.
18797
18798 2011-05-22  Bruno Haible  <bruno@clisp.org>
18799
18800         tmpfile: Move AC_LIBOBJ invocations to module description.
18801         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18802         invocations from here...
18803         * modules/tmpfile (configure.ac): ... to here.
18804
18805 2011-05-22  Bruno Haible  <bruno@clisp.org>
18806
18807         times: Move AC_LIBOBJ invocations to module description.
18808         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18809         * modules/times (configure.ac): ... to here.
18810
18811 2011-05-22  Bruno Haible  <bruno@clisp.org>
18812
18813         time_r: Move AC_LIBOBJ invocations to module description.
18814         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18815         invocations from here...
18816         * modules/time_r (configure.ac): ... to here.
18817
18818 2011-05-22  Bruno Haible  <bruno@clisp.org>
18819
18820         timegm: Move AC_LIBOBJ invocations to module description.
18821         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18822         invocations from here...
18823         * modules/timegm (configure.ac): ... to here.
18824
18825 2011-05-22  Bruno Haible  <bruno@clisp.org>
18826
18827         tcgetsid: Move AC_LIBOBJ invocations to module description.
18828         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18829         and gl_PREREQ_TCGETSID invocations from here...
18830         * modules/tcgetsid (configure.ac): ... to here.
18831         (Depends-on): Update conditions.
18832
18833 2011-05-22  Bruno Haible  <bruno@clisp.org>
18834
18835         symlinkat: Move AC_LIBOBJ invocations to module description.
18836         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18837         here...
18838         * modules/symlinkat (configure.ac): ... to here.
18839
18840 2011-05-22  Bruno Haible  <bruno@clisp.org>
18841
18842         symlink: Move AC_LIBOBJ invocations to module description.
18843         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18844         here...
18845         * modules/symlink (configure.ac): ... to here.
18846
18847 2011-05-22  Bruno Haible  <bruno@clisp.org>
18848
18849         strverscmp: Move AC_LIBOBJ invocations to module description.
18850         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18852         from here...
18853         * modules/strverscmp (configure.ac): ... to here.
18854
18855 2011-05-22  Bruno Haible  <bruno@clisp.org>
18856
18857         strtok_r: Move AC_LIBOBJ invocations to module description.
18858         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18859         and gl_PREREQ_STRTOK_R invocations from here...
18860         * modules/strtok_r (configure.ac): ... to here.
18861         (Depends-on): Update conditions.
18862
18863 2011-05-22  Bruno Haible  <bruno@clisp.org>
18864
18865         strtoumax: Move AC_LIBOBJ invocations to module description.
18866         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18867         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18868         from here...
18869         * modules/strtoumax (configure.ac): ... to here.
18870
18871 2011-05-22  Bruno Haible  <bruno@clisp.org>
18872
18873         strtoimax: Move AC_LIBOBJ invocations to module description.
18874         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18875         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18876         from here...
18877         * modules/strtoimax (configure.ac): ... to here.
18878
18879 2011-05-22  Bruno Haible  <bruno@clisp.org>
18880
18881         strtoull: Move AC_LIBOBJ invocations to module description.
18882         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18883         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18884         from here...
18885         * modules/strtoull (configure.ac): ... to here.
18886
18887 2011-05-22  Bruno Haible  <bruno@clisp.org>
18888
18889         strtoll: Move AC_LIBOBJ invocations to module description.
18890         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18891         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18892         here...
18893         * modules/strtoll (configure.ac): ... to here.
18894
18895 2011-05-22  Bruno Haible  <bruno@clisp.org>
18896
18897         strtoul: Move AC_LIBOBJ invocations to module description.
18898         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18899         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18900         * modules/strtoul (configure.ac): ... to here.
18901
18902 2011-05-22  Bruno Haible  <bruno@clisp.org>
18903
18904         strtol: Move AC_LIBOBJ invocations to module description.
18905         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18906         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18907         * modules/strtol (configure.ac): ... to here.
18908
18909 2011-05-22  Bruno Haible  <bruno@clisp.org>
18910
18911         strtod: Move AC_LIBOBJ invocations to module description.
18912         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18913         invocations from here...
18914         * modules/strtod (configure.ac): ... to here.
18915
18916 2011-05-22  Bruno Haible  <bruno@clisp.org>
18917
18918         strstr*: Move AC_LIBOBJ invocations to module description.
18919         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18920         invocations from here...
18921         * modules/strstr-simple (configure.ac): ... to here.
18922         * modules/strstr (configure.ac): ... and here.
18923
18924 2011-05-22  Bruno Haible  <bruno@clisp.org>
18925
18926         strsignal: Move AC_LIBOBJ invocations to module description.
18927         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18928         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18929         * modules/strsignal (configure.ac): ... to here.
18930         (Depends-on): Update conditions.
18931
18932 2011-05-22  Bruno Haible  <bruno@clisp.org>
18933
18934         strsep: Move AC_LIBOBJ invocations to module description.
18935         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18936         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18937         here...
18938         * modules/strsep (configure.ac): ... to here.
18939
18940 2011-05-22  Bruno Haible  <bruno@clisp.org>
18941
18942         strptime: Move AC_LIBOBJ invocations to module description.
18943         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18944         gl_PREREQ_STRPTIME invocations from here...
18945         * modules/strptime (configure.ac): ... to here.
18946
18947 2011-05-22  Bruno Haible  <bruno@clisp.org>
18948
18949         strpbrk: Move AC_LIBOBJ invocations to module description.
18950         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18951         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18952         here...
18953         * modules/strpbrk (configure.ac): ... to here.
18954
18955 2011-05-22  Bruno Haible  <bruno@clisp.org>
18956
18957         strnlen: Move AC_LIBOBJ invocations to module description.
18958         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18959         invocations from here...
18960         * modules/strnlen (configure.ac): ... to here.
18961
18962 2011-05-22  Bruno Haible  <bruno@clisp.org>
18963
18964         strndup: Move AC_LIBOBJ invocations to module description.
18965         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18966         invocations from here...
18967         * modules/strndup (configure.ac): ... to here.
18968         (Depends-on): Update conditions.
18969
18970 2011-05-22  Bruno Haible  <bruno@clisp.org>
18971
18972         strncat: Move AC_LIBOBJ invocations to module description.
18973         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18974         invocations from here...
18975         * modules/strncat (configure.ac): ... to here.
18976
18977 2011-05-22  Bruno Haible  <bruno@clisp.org>
18978
18979         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18980         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18981         invocations from here...
18982         * modules/strdup (configure.ac): ... to here.
18983         * modules/strdup-posix (configure.ac): ... and here.
18984
18985 2011-05-22  Bruno Haible  <bruno@clisp.org>
18986
18987         strcspn: Move AC_LIBOBJ invocations to module description.
18988         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18989         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18990         here...
18991         * modules/strcspn (configure.ac): ... to here.
18992
18993 2011-05-22  Bruno Haible  <bruno@clisp.org>
18994
18995         strchrnul: Move AC_LIBOBJ invocations to module description.
18996         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18997         gl_PREREQ_STRCHRNUL invocations from here...
18998         * modules/strchrnul (configure.ac): ... to here.
18999
19000 2011-05-22  Bruno Haible  <bruno@clisp.org>
19001
19002         strcasestr*: Move AC_LIBOBJ invocations to module description.
19003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19004         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
19005         * modules/strcasestr-simple (configure.ac): ... to here.
19006         * modules/strcasestr (configure.ac): ... and here.
19007
19008 2011-05-22  Bruno Haible  <bruno@clisp.org>
19009
19010         strcase: Move AC_LIBOBJ invocations to module description.
19011         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
19012         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
19013         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
19014         gl_PREREQ_STRNCASECMP invocations from here...
19015         * modules/strcase (configure.ac): ... to here.
19016
19017 2011-05-22  Bruno Haible  <bruno@clisp.org>
19018
19019         stpncpy: Move AC_LIBOBJ invocations to module description.
19020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
19021         here...
19022         * modules/stpncpy (configure.ac): ... to here.
19023
19024 2011-05-22  Bruno Haible  <bruno@clisp.org>
19025
19026         stpcpy: Move AC_LIBOBJ invocations to module description.
19027         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
19028         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
19029         here...
19030         * modules/stpcpy (configure.ac): ... to here.
19031
19032 2011-05-21  Bruno Haible  <bruno@clisp.org>
19033
19034         stat: Move AC_LIBOBJ invocations to module description.
19035         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
19036         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
19037         here...
19038         * modules/stat (configure.ac): ... to here.
19039
19040 2011-05-21  Bruno Haible  <bruno@clisp.org>
19041
19042         sleep: Move AC_LIBOBJ invocations to module description.
19043         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
19044         * modules/sleep (configure.ac): ... to here.
19045
19046 2011-05-21  Bruno Haible  <bruno@clisp.org>
19047
19048         signbit: Move AC_LIBOBJ invocations to module description.
19049         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
19050         * modules/signbit (configure.ac): ... to here.
19051
19052 2011-05-21  Bruno Haible  <bruno@clisp.org>
19053
19054         sigprocmask: Move AC_LIBOBJ invocations to module description.
19055         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
19056         gl_PREREQ_SIGPROMASK invocations from here...
19057         * modules/sigprocmask (configure.ac): ... to here.
19058
19059 2011-05-21  Bruno Haible  <bruno@clisp.org>
19060
19061         sigaction: Move AC_LIBOBJ invocations to module description.
19062         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
19063         gl_PREREQ_SIGACTION invocations from here...
19064         * modules/sigaction (configure.ac): ... to here.
19065
19066 2011-05-21  Bruno Haible  <bruno@clisp.org>
19067
19068         sig2str: Move AC_LIBOBJ invocations to module description.
19069         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
19070         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
19071         here...
19072         * modules/sig2str (configure.ac): ... to here.
19073
19074 2011-05-21  Bruno Haible  <bruno@clisp.org>
19075
19076         setlocale: Move AC_LIBOBJ invocations to module description.
19077         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19078         gl_PREREQ_SETLOCALE invocations from here...
19079         * modules/setlocale (configure.ac): ... to here.
19080
19081 2011-05-21  Bruno Haible  <bruno@clisp.org>
19082
19083         unsetenv: Move AC_LIBOBJ invocations to module description.
19084         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19085         and gl_PREREQ_UNSETENV invocations from here...
19086         * modules/unsetenv (configure.ac): ... to here.
19087         (Depends-on): Update.
19088
19089 2011-05-21  Bruno Haible  <bruno@clisp.org>
19090
19091         setenv: Move AC_LIBOBJ invocations to module description.
19092         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19093         here...
19094         * modules/setenv (configure.ac): ... to here.
19095
19096 2011-05-21  Bruno Haible  <bruno@clisp.org>
19097
19098         selinux-h: Move AC_LIBOBJ invocations to module description.
19099         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19100         AC_LIBOBJ invocation from here...
19101         * modules/selinux-h (configure.ac): ... to here.
19102
19103 2011-05-21  Bruno Haible  <bruno@clisp.org>
19104
19105         select: Respect rules for use of AC_LIBOBJ.
19106         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19107         here...
19108         * modules/select (configure.ac): ... to here.
19109
19110 2011-05-21  Bruno Haible  <bruno@clisp.org>
19111
19112         scandir: Move AC_LIBOBJ invocations to module description.
19113         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19114         invocations from here...
19115         * modules/scandir (configure.ac): ... to here.
19116
19117 2011-05-21  Bruno Haible  <bruno@clisp.org>
19118
19119         rpmatch: Move AC_LIBOBJ invocations to module description.
19120         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19121         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19122         here...
19123         * modules/rpmatch (configure.ac): ... to here.
19124
19125 2011-05-21  Bruno Haible  <bruno@clisp.org>
19126
19127         rmdir: Respect rules for use of AC_LIBOBJ.
19128         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19129         * modules/rmdir (configure.ac): ... to here.
19130
19131 2011-05-21  Bruno Haible  <bruno@clisp.org>
19132
19133         renameat: Move AC_LIBOBJ invocations to module description.
19134         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19135         here...
19136         * modules/renameat (configure.ac): ... to here.
19137
19138 2011-05-21  Bruno Haible  <bruno@clisp.org>
19139
19140         rename: Respect rules for use of AC_LIBOBJ.
19141         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19142         here...
19143         * modules/rename (configure.ac): ... to here.
19144
19145 2011-05-21  Bruno Haible  <bruno@clisp.org>
19146
19147         remove: Move AC_LIBOBJ invocations to module description.
19148         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19149         here...
19150         * modules/remove (configure.ac): ... to here.
19151
19152 2011-05-21  Bruno Haible  <bruno@clisp.org>
19153
19154         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19155         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19156         macro.
19157         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19158         * modules/relocatable-lib (configure.ac): ... to here.
19159         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19160         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19161
19162 2011-05-21  Bruno Haible  <bruno@clisp.org>
19163
19164         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19165         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19166         here...
19167         * modules/relocatable-prog (configure.ac): ... to here.
19168
19169 2011-05-21  Bruno Haible  <bruno@clisp.org>
19170
19171         regex: Move AC_LIBOBJ invocations to module description.
19172         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19173         invocations from here...
19174         * modules/regex (configure.ac): ... to here.
19175
19176 2011-05-21  Bruno Haible  <bruno@clisp.org>
19177
19178         realloc-*: Move AC_LIBOBJ invocations to module description.
19179         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19180         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19181         AC_LIBOBJ invocations from here...
19182         * modules/realloc-gnu (configure.ac): ... to here.
19183         * modules/realloc-posix (configure.ac): ... and here.
19184
19185 2011-05-21  Bruno Haible  <bruno@clisp.org>
19186
19187         readutmp: Move AC_LIBOBJ invocations to module description.
19188         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19189         * modules/readutmp (configure.ac): ... to here.
19190
19191 2011-05-21  Bruno Haible  <bruno@clisp.org>
19192
19193         readlinkat: Move AC_LIBOBJ invocations to module description.
19194         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19195         here...
19196         * modules/readlinkat (configure.ac): ... to here.
19197
19198 2011-05-21  Bruno Haible  <bruno@clisp.org>
19199
19200         readlink: Move AC_LIBOBJ invocations to module description.
19201         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19202         gl_PREREQ_READLINK invocations from here...
19203         * modules/readlink (configure.ac): ... to here.
19204
19205 2011-05-21  Bruno Haible  <bruno@clisp.org>
19206
19207         readline: Move AC_LIBOBJ invocations to module description.
19208         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19209         gl_PREREQ_READLINE invocations from here...
19210         * modules/readline (configure.ac): ... to here.
19211
19212 2011-05-21  Bruno Haible  <bruno@clisp.org>
19213
19214         read: Move AC_LIBOBJ invocations to module description.
19215         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19216         * modules/read (configure.ac): ... to here.
19217
19218 2011-05-21  Bruno Haible  <bruno@clisp.org>
19219
19220         rawmemchr: Move AC_LIBOBJ invocations to module description.
19221         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19222         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19223         from here...
19224         * modules/rawmemchr (configure.ac): ... to here.
19225
19226 2011-05-21  Bruno Haible  <bruno@clisp.org>
19227
19228         random_r: Move AC_LIBOBJ invocations to module description.
19229         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19230         gl_PREREQ_RANDOM_R invocations from here...
19231         * modules/random_r (configure.ac): ... to here.
19232
19233 2011-05-21  Bruno Haible  <bruno@clisp.org>
19234
19235         pwrite: Move AC_LIBOBJ invocations to module description.
19236         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19237         * modules/pwrite (configure.ac): ... to here.
19238
19239 2011-05-21  Bruno Haible  <bruno@clisp.org>
19240
19241         putenv: Move AC_LIBOBJ invocations to module description.
19242         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19243         * modules/putenv (configure.ac): ... to here.
19244
19245 2011-05-21  Bruno Haible  <bruno@clisp.org>
19246
19247         login_tty: Move AC_LIBOBJ invocations to module description.
19248         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19249         * modules/login_tty (configure.ac): ... to here.
19250
19251 2011-05-21  Bruno Haible  <bruno@clisp.org>
19252
19253         openpty: Move AC_LIBOBJ invocations to module description.
19254         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19255         * modules/openpty (configure.ac): ... to here.
19256
19257 2011-05-21  Bruno Haible  <bruno@clisp.org>
19258
19259         forkpty: Move AC_LIBOBJ invocations to module description.
19260         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19261         * modules/forkpty (configure.ac): ... to here.
19262
19263 2011-05-21  Bruno Haible  <bruno@clisp.org>
19264
19265         ptsname: Move AC_LIBOBJ invocations to module description.
19266         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19267         invocations from here...
19268         * modules/ptsname (configure.ac): ... to here.
19269
19270 2011-05-21  Bruno Haible  <bruno@clisp.org>
19271
19272         pread: Move AC_LIBOBJ invocations to module description.
19273         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19274         * modules/pread (configure.ac): ... to here.
19275
19276 2011-05-21  Bruno Haible  <bruno@clisp.org>
19277
19278         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19279         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19280         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19281         * modules/posix_spawn (configure.ac): ... to here.
19282         * modules/posix_spawnp (configure.ac): ... and here.
19283
19284 2011-05-21  Bruno Haible  <bruno@clisp.org>
19285
19286         popen: Move AC_LIBOBJ invocations to module description.
19287         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19288         invocations from here...
19289         * modules/popen (configure.ac): ... to here.
19290
19291 2011-05-21  Bruno Haible  <bruno@clisp.org>
19292
19293         poll: Move AC_LIBOBJ invocations to module description.
19294         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19295         invocations from here...
19296         * modules/poll (configure.ac): ... to here.
19297
19298 2011-05-21  Bruno Haible  <bruno@clisp.org>
19299
19300         pipe-posix: Move AC_LIBOBJ invocations to module description.
19301         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19302         * modules/pipe-posix (configure.ac): ... to here.
19303
19304 2011-05-21  Bruno Haible  <bruno@clisp.org>
19305
19306         openat: Respect rules for use of AC_LIBOBJ.
19307         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19308         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19309         * modules/openat (configure.ac): ... to here.
19310
19311 2011-05-21  Bruno Haible  <bruno@clisp.org>
19312
19313         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19314         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19315         invocation from here...
19316         * modules/obstack-printf (configure.ac): ... to here.
19317         * modules/obstack-printf-posix (configure.ac): ... and here.
19318
19319 2011-05-21  Bruno Haible  <bruno@clisp.org>
19320
19321         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19322         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19323         from here...
19324         * modules/nl_langinfo (configure.ac): ... to here.
19325
19326 2011-05-21  Bruno Haible  <bruno@clisp.org>
19327
19328         nanosleep: Move AC_LIBOBJ invocations to module description.
19329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19330         gl_PREREQ_NANOSLEEP invocations from here...
19331         * modules/nanosleep (configure.ac): ... to here.
19332
19333 2011-05-21  Bruno Haible  <bruno@clisp.org>
19334
19335         mountlist: Move AC_LIBOBJ invocations to module description.
19336         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19337         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19338         * modules/mountlist (configure.ac): ... to here.
19339
19340 2011-05-21  Bruno Haible  <bruno@clisp.org>
19341
19342         mktime: Respect rules for use of AC_LIBOBJ.
19343         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19344         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19345         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19346         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19347         * modules/mktime (configure.ac): ... to here.
19348         * modules/mktime-internal (configure.ac): ... and here.
19349         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19350
19351 2011-05-21  Bruno Haible  <bruno@clisp.org>
19352
19353         mkstemps: Move AC_LIBOBJ invocations to module description.
19354         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19355         here...
19356         * modules/mkstemps (configure.ac): ... to here.
19357
19358 2011-05-21  Bruno Haible  <bruno@clisp.org>
19359
19360         mkstemp: Move AC_LIBOBJ invocations to module description.
19361         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19362         gl_PREREQ_MKSTEMP invocations from here...
19363         * modules/mkstemp (configure.ac): ... to here.
19364
19365 2011-05-21  Bruno Haible  <bruno@clisp.org>
19366
19367         mkostemps: Move AC_LIBOBJ invocations to module description.
19368         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19369         here...
19370         * modules/mkostemps (configure.ac): ... to here.
19371
19372 2011-05-21  Bruno Haible  <bruno@clisp.org>
19373
19374         mkostemp: Move AC_LIBOBJ invocations to module description.
19375         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19376         gl_PREREQ_MKOSTEMP invocations from here...
19377         * modules/mkostemp (configure.ac): ... to here.
19378
19379 2011-05-21  Bruno Haible  <bruno@clisp.org>
19380
19381         mknod: Move AC_LIBOBJ invocations to module description.
19382         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19383         * modules/mknod (configure.ac): ... to here.
19384
19385 2011-05-21  Bruno Haible  <bruno@clisp.org>
19386
19387         mkfifoat: Move AC_LIBOBJ invocations to module description.
19388         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19389         here...
19390         * modules/mkfifoat (configure.ac): ... to here.
19391
19392 2011-05-21  Bruno Haible  <bruno@clisp.org>
19393
19394         mkfifo: Respect rules for use of AC_LIBOBJ.
19395         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19396         here...
19397         * modules/mkfifo (configure.ac): ... to here.
19398
19399 2011-05-21  Bruno Haible  <bruno@clisp.org>
19400
19401         mkdtemp: Move AC_LIBOBJ invocations to module description.
19402         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19403         invocations from here...
19404         * modules/mkdtemp (configure.ac): ... to here.
19405
19406 2011-05-21  Bruno Haible  <bruno@clisp.org>
19407
19408         mkdir: Move AC_LIBOBJ invocations to module description.
19409         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19410         * modules/mkdir (configure.ac): ... to here.
19411
19412 2011-05-21  Bruno Haible  <bruno@clisp.org>
19413
19414         memset: Move AC_LIBOBJ invocations to module description.
19415         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19416         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19417         here...
19418         * modules/memset (configure.ac): ... to here.
19419
19420 2011-05-21  Bruno Haible  <bruno@clisp.org>
19421
19422         memrchr: Move AC_LIBOBJ invocations to module description.
19423         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19424         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19425         here...
19426         * modules/memrchr (configure.ac): ... to here.
19427
19428 2011-05-21  Bruno Haible  <bruno@clisp.org>
19429
19430         mempcpy: Move AC_LIBOBJ invocations to module description.
19431         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19432         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19433         here...
19434         * modules/mempcpy (configure.ac): ... to here.
19435
19436 2011-05-21  Bruno Haible  <bruno@clisp.org>
19437
19438         memmove: Move AC_LIBOBJ invocations to module description.
19439         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19440         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19441         here...
19442         * modules/memmove (configure.ac): ... to here.
19443
19444 2011-05-21  Bruno Haible  <bruno@clisp.org>
19445
19446         memmem*: Move AC_LIBOBJ invocations to module description.
19447         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19448         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19449         here...
19450         (gl_FUNC_MEMMEM): ... and here...
19451         * modules/memmem-simple (configure.ac): ... to here.
19452         * modules/memmem (configure.ac): ... and here.
19453
19454 2011-05-21  Bruno Haible  <bruno@clisp.org>
19455
19456         memcpy: Move AC_LIBOBJ invocations to module description.
19457         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19458         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19459         here...
19460         * modules/memcpy (configure.ac): ... to here.
19461
19462 2011-05-21  Bruno Haible  <bruno@clisp.org>
19463
19464         memcmp: Simplify autoconf macro.
19465         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19466         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19467         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19468
19469 2011-05-21  Bruno Haible  <bruno@clisp.org>
19470
19471         memcmp: Move AC_LIBOBJ invocations to module description.
19472         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19473         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19474         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19475         * modules/memcmp (configure.ac): ... to here.
19476         (Depends-on): Update conditions.
19477
19478 2011-05-21  Bruno Haible  <bruno@clisp.org>
19479
19480         memchr: Respect rules for use of AC_LIBOBJ.
19481         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19482         invocations from here...
19483         * modules/memchr (configure.ac): ... to here.
19484
19485 2011-05-21  Bruno Haible  <bruno@clisp.org>
19486
19487         mbtowc: Move AC_LIBOBJ invocations to module description.
19488         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19489         invocations from here...
19490         * modules/mbtowc (configure.ac): ... to here.
19491
19492 2011-05-21  Bruno Haible  <bruno@clisp.org>
19493
19494         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19495         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19496         gl_PREREQ_MBSRTOWCS invocations from here...
19497         * modules/mbsrtowcs (configure.ac): ... to here.
19498
19499 2011-05-21  Bruno Haible  <bruno@clisp.org>
19500
19501         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19502         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19503         gl_PREREQ_MBSNRTOWCS invocations from here...
19504         * modules/mbsnrtowcs (configure.ac): ... to here.
19505
19506 2011-05-21  Bruno Haible  <bruno@clisp.org>
19507
19508         mbsinit: Move AC_LIBOBJ invocations to module description.
19509         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19510         invocations from here...
19511         * modules/mbsinit (configure.ac): ... to here.
19512
19513 2011-05-21  Bruno Haible  <bruno@clisp.org>
19514
19515         mbrlen: Move AC_LIBOBJ invocations to module description.
19516         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19517         invocations from here...
19518         * modules/mbrlen (configure.ac): ... to here.
19519
19520 2011-05-21  Bruno Haible  <bruno@clisp.org>
19521
19522         mbrtowc: Respect rules for use of AC_LIBOBJ.
19523         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19524         invocations from here...
19525         * modules/mbrtowc (configure.ac): ... to here.
19526
19527 2011-05-21  Bruno Haible  <bruno@clisp.org>
19528
19529         malloc-*: Move AC_LIBOBJ invocations to module description.
19530         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19531         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19532         AC_LIBOBJ invocations from here...
19533         * modules/malloc-gnu (configure.ac): ... to here.
19534         * modules/malloc-posix (configure.ac): ... and here.
19535
19536 2011-05-21  Bruno Haible  <bruno@clisp.org>
19537
19538         lstat, openat: Respect rules for use of AC_LIBOBJ.
19539         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19540         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19541         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19542         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19543         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19544         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19545         here.
19546         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19547
19548 2011-05-21  Bruno Haible  <bruno@clisp.org>
19549
19550         lseek: Move AC_LIBOBJ invocations to module description.
19551         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19552         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19553         * modules/lseek (configure.ac): ... to here.
19554
19555 2011-05-21  Bruno Haible  <bruno@clisp.org>
19556
19557         linkat: Move AC_LIBOBJ invocations to module description.
19558         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19559         here...
19560         * modules/linkat (configure.ac): ... to here.
19561
19562 2011-05-21  Bruno Haible  <bruno@clisp.org>
19563
19564         link: Respect rules for use of AC_LIBOBJ.
19565         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19566         * modules/link (configure.ac): ... to here.
19567
19568 2011-05-21  Bruno Haible  <bruno@clisp.org>
19569
19570         lchown: Move AC_LIBOBJ invocations to module description.
19571         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19572         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19573         * modules/lchown (configure.ac): ... to here.
19574
19575 2011-05-21  Bruno Haible  <bruno@clisp.org>
19576
19577         iswctype: Move AC_LIBOBJ invocations to module description.
19578         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19579         here...
19580         * modules/iswctype (configure.ac): ... to here.
19581
19582 2011-05-21  Bruno Haible  <bruno@clisp.org>
19583
19584         iswblank: Move AC_LIBOBJ invocations to module description.
19585         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19586         here...
19587         * modules/iswblank (configure.ac): ... to here.
19588
19589 2011-05-21  Bruno Haible  <bruno@clisp.org>
19590
19591         atanl: Move AC_LIBOBJ invocations to module description.
19592         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19593         * modules/atanl (configure.ac): ... to here.
19594
19595 2011-05-21  Bruno Haible  <bruno@clisp.org>
19596
19597         acosl: Move AC_LIBOBJ invocations to module description.
19598         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19599         * modules/acosl (configure.ac): ... to here.
19600
19601 2011-05-21  Bruno Haible  <bruno@clisp.org>
19602
19603         asinl: Respect rules for use of AC_LIBOBJ.
19604         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19605         * modules/asinl (configure.ac): ... to here.
19606
19607 2011-05-21  Bruno Haible  <bruno@clisp.org>
19608
19609         tanl: Move AC_LIBOBJ invocations to module description.
19610         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19611         * modules/tanl (configure.ac): ... to here.
19612
19613 2011-05-21  Bruno Haible  <bruno@clisp.org>
19614
19615         cosl: Move AC_LIBOBJ invocations to module description.
19616         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19617         * modules/cosl (configure.ac): ... to here.
19618
19619 2011-05-21  Bruno Haible  <bruno@clisp.org>
19620
19621         sinl: Move AC_LIBOBJ invocations to module description.
19622         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19623         * modules/sinl (configure.ac): ... to here.
19624
19625 2011-05-21  Bruno Haible  <bruno@clisp.org>
19626
19627         logl: Move AC_LIBOBJ invocations to module description.
19628         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19629         * modules/logl (configure.ac): ... to here.
19630
19631 2011-05-21  Bruno Haible  <bruno@clisp.org>
19632
19633         expl: Move AC_LIBOBJ invocations to module description.
19634         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19635         * modules/expl (configure.ac): ... to here.
19636
19637 2011-05-21  Bruno Haible  <bruno@clisp.org>
19638
19639         roundl: Move AC_LIBOBJ invocations to module description.
19640         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19641         * modules/roundl (configure.ac): ... to here.
19642
19643 2011-05-21  Bruno Haible  <bruno@clisp.org>
19644
19645         round: Move AC_LIBOBJ invocations to module description.
19646         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19647         * modules/round (configure.ac): ... to here.
19648
19649 2011-05-21  Bruno Haible  <bruno@clisp.org>
19650
19651         roundf: Move AC_LIBOBJ invocations to module description.
19652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19653         * modules/roundf (configure.ac): ... to here.
19654
19655 2011-05-21  Bruno Haible  <bruno@clisp.org>
19656
19657         truncl: Move AC_LIBOBJ invocations to module description.
19658         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19659         * modules/truncl (configure.ac): ... to here.
19660
19661 2011-05-21  Bruno Haible  <bruno@clisp.org>
19662
19663         trunc: Move AC_LIBOBJ invocations to module description.
19664         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19665         * modules/trunc (configure.ac): ... to here.
19666
19667 2011-05-21  Bruno Haible  <bruno@clisp.org>
19668
19669         truncf: Move AC_LIBOBJ invocations to module description.
19670         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19671         * modules/truncf (configure.ac): ... to here.
19672
19673 2011-05-21  Bruno Haible  <bruno@clisp.org>
19674
19675         ceill: Move AC_LIBOBJ invocations to module description.
19676         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19677         * modules/ceill (configure.ac): ... to here.
19678
19679 2011-05-21  Bruno Haible  <bruno@clisp.org>
19680
19681         ceil: Move AC_LIBOBJ invocations to module description.
19682         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19683         * modules/ceil (configure.ac): ... to here.
19684
19685 2011-05-21  Bruno Haible  <bruno@clisp.org>
19686
19687         ceilf: Move AC_LIBOBJ invocations to module description.
19688         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19689         * modules/ceilf (configure.ac): ... to here.
19690
19691 2011-05-21  Bruno Haible  <bruno@clisp.org>
19692
19693         floorl: Respect rules for use of AC_LIBOBJ.
19694         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19695         * modules/floorl (configure.ac): ... to here.
19696
19697 2011-05-21  Bruno Haible  <bruno@clisp.org>
19698
19699         floor: Respect rules for use of AC_LIBOBJ.
19700         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19701         * modules/floor (configure.ac): ... to here.
19702
19703 2011-05-21  Bruno Haible  <bruno@clisp.org>
19704
19705         floorf: Move AC_LIBOBJ invocations to module description.
19706         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19707         * modules/floorf (configure.ac): ... to here.
19708
19709 2011-05-20  Bruno Haible  <bruno@clisp.org>
19710
19711         sqrtl: Respect rules for use of AC_LIBOBJ.
19712         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19713         * modules/sqrtl (configure.ac): ... to here.
19714
19715 2011-05-20  Bruno Haible  <bruno@clisp.org>
19716
19717         ldexpl: Respect rules for use of AC_LIBOBJ.
19718         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19719         * modules/ldexpl (configure.ac): ... to here.
19720
19721 2011-05-20  Bruno Haible  <bruno@clisp.org>
19722
19723         frexpl*: Respect rules for use of AC_LIBOBJ.
19724         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19725         invocation from here...
19726         * modules/frexpl (configure.ac): ... to here.
19727         * modules/frexpl-nolibm (configure.ac): ... and here.
19728
19729 2011-05-20  Bruno Haible  <bruno@clisp.org>
19730
19731         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19732         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19733         invocation from here...
19734         * modules/frexp (configure.ac): ... to here.
19735         * modules/frexp-nolibm (configure.ac): ... and here.
19736
19737 2011-05-20  Bruno Haible  <bruno@clisp.org>
19738
19739         isnan: Respect rules for use of AC_LIBOBJ.
19740         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19741         invocations here.
19742         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19743         REPLACE_ISNAN.
19744         * modules/isnand (configure.ac): Likewise.
19745         * modules/isnanl (configure.ac): Likewise.
19746
19747 2011-05-20  Bruno Haible  <bruno@clisp.org>
19748
19749         isnanl*: Respect rules for use of AC_LIBOBJ.
19750         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19751         invocation from here...
19752         * modules/isnanl (configure.ac): ... to here.
19753         * modules/isnanl-nolibm (configure.ac): ... and here.
19754
19755 2011-05-20  Bruno Haible  <bruno@clisp.org>
19756
19757         isnand*: Move AC_LIBOBJ invocations to module description.
19758         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19759         invocation from here...
19760         * modules/isnand (configure.ac): ... to here.
19761         * modules/isnand-nolibm (configure.ac): ... and here.
19762
19763 2011-05-20  Bruno Haible  <bruno@clisp.org>
19764
19765         isnanf*: Move AC_LIBOBJ invocations to module description.
19766         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19767         invocation from here...
19768         * modules/isnanf (configure.ac): ... to here.
19769         * modules/isnanf-nolibm (configure.ac): ... and here.
19770
19771 2011-05-20  Bruno Haible  <bruno@clisp.org>
19772
19773         isnan*: Separate the AC_LIBOBJ invocations.
19774         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19775         AC_LIBOBJ invocation.
19776         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19777         here.
19778         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19779         AC_LIBOBJ invocation.
19780         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19781         here.
19782         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19783         AC_LIBOBJ invocation.
19784         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19785         here.
19786         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19787
19788 2011-05-08  Bruno Haible  <bruno@clisp.org>
19789
19790         isinf: Move AC_LIBOBJ invocations to module description.
19791         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19792         * modules/isinf (configure.ac): ... to here.
19793
19794 2011-05-08  Bruno Haible  <bruno@clisp.org>
19795
19796         isfinite: Move AC_LIBOBJ invocations to module description.
19797         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19798         * modules/isfinite (configure.ac): ... to here.
19799
19800 2011-05-08  Bruno Haible  <bruno@clisp.org>
19801
19802         isblank: Move AC_LIBOBJ invocations to module description.
19803         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19804         here...
19805         * modules/isblank (configure.ac): ... to here.
19806
19807 2011-05-08  Bruno Haible  <bruno@clisp.org>
19808
19809         isapipe: Move AC_LIBOBJ invocations to module description.
19810         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19811         gl_PREREQ_ISAPIPE invocations from here...
19812         * modules/isapipe (configure.ac): ... to here.
19813         (Depends-on): Update condition.
19814
19815 2011-05-08  Bruno Haible  <bruno@clisp.org>
19816
19817         ioctl: Move AC_LIBOBJ invocations to module description.
19818         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19819         invocations from here...
19820         * modules/ioctl (configure.ac): ... to here.
19821         (Depends-on): Update condition.
19822
19823 2011-05-08  Bruno Haible  <bruno@clisp.org>
19824
19825         imaxdiv: Move AC_LIBOBJ invocations to module description.
19826         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19827         invocations from here...
19828         * modules/imaxdiv (configure.ac): ... to here.
19829
19830 2011-05-08  Bruno Haible  <bruno@clisp.org>
19831
19832         imaxabs: Move AC_LIBOBJ invocations to module description.
19833         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19834         invocations from here...
19835         * modules/imaxabs (configure.ac): ... to here.
19836
19837 2011-05-08  Bruno Haible  <bruno@clisp.org>
19838
19839         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19840         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19841         AC_LIBOBJ invocations from here...
19842         * modules/getaddrinfo (configure.ac): ... to here.
19843         (Depends-on): Add conditions.
19844
19845 2011-05-08  Bruno Haible  <bruno@clisp.org>
19846
19847         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19848         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19849         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19850         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19851         (gl_PREREQ_INET_PTON): ... from here.
19852         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19853         gl_PREREQ_INET_PTON here.
19854         (Depends-on): Update condition.
19855
19856 2011-05-08  Bruno Haible  <bruno@clisp.org>
19857
19858         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19859         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19860         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19861         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19862         (gl_PREREQ_INET_NTOP): ... from here.
19863         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19864         gl_PREREQ_INET_NTOP here.
19865         (Depends-on): Update condition.
19866
19867 2011-05-08  Bruno Haible  <bruno@clisp.org>
19868
19869         iconv_open: Move AC_LIBOBJ invocations to module description.
19870         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19871         AC_LIBOBJ invocations from here...
19872         * modules/iconv_open (configure.ac): ... to here.
19873
19874 2011-05-08  Bruno Haible  <bruno@clisp.org>
19875
19876         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19877         If module 'iconv_open' is among the main modules and module
19878         'iconv_open-utf' is among the tests dependencies, then
19879         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19880         return the special iconv_t values. Therefore iconv() and iconv_close()
19881         must support these special iconv_t values, already in lib, not only in
19882         tests.
19883         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19884         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19885         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19886         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19887         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19888         (Depends-on): Add the dependencies of iconv_open-utf.
19889         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19890         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19891         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19892
19893 2011-05-08  Bruno Haible  <bruno@clisp.org>
19894
19895         group-member: Move AC_LIBOBJ invocations to module description.
19896         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19897         gl_PREREQ_GROUP_MEMBER invocations from here...
19898         * modules/group-member (configure.ac): ... to here.
19899
19900 2011-05-08  Bruno Haible  <bruno@clisp.org>
19901
19902         grantpt: Move AC_LIBOBJ invocations to module description.
19903         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19904         invocations from here...
19905         * modules/grantpt (configure.ac): ... to here.
19906
19907 2011-05-08  Bruno Haible  <bruno@clisp.org>
19908
19909         glob: Move AC_LIBOBJ invocations to module description.
19910         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19911         from here...
19912         * modules/glob (configure.ac): ... to here.
19913
19914 2011-05-08  Bruno Haible  <bruno@clisp.org>
19915
19916         getusershell: Move AC_LIBOBJ invocations to module description.
19917         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19918         Move AC_LIBOBJ invocation from here...
19919         * modules/getusershell (configure.ac): ... to here.
19920         (Depends-on): Update condition.
19921
19922 2011-05-08  Bruno Haible  <bruno@clisp.org>
19923
19924         gettimeofday: Move AC_LIBOBJ invocations to module description.
19925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19926         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19927         gl_PREREQ_GETTIMEOFDAY invocations from here...
19928         * modules/gettimeofday (configure.ac): ... to here.
19929
19930 2011-05-08  Bruno Haible  <bruno@clisp.org>
19931
19932         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19933         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19934         just gl_FUNC_TZSET.
19935         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19936         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19938         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19939
19940 2011-05-08  Bruno Haible  <bruno@clisp.org>
19941
19942         getsubopt: Move AC_LIBOBJ invocations to module description.
19943         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19944         gl_PREREQ_GETSUBOPT invocations from here...
19945         * modules/getsubopt (configure.ac): ... to here.
19946
19947 2011-05-08  Bruno Haible  <bruno@clisp.org>
19948
19949         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19950         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19951         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19952         * modules/getpass-gnu (configure.ac): ... to here.
19953
19954 2011-05-08  Bruno Haible  <bruno@clisp.org>
19955
19956         getpass: Move AC_LIBOBJ invocations to module description.
19957         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19958         gl_PREREQ_GETPASS invocations from here...
19959         * modules/getpass (configure.ac): ... to here.
19960
19961 2011-05-08  Bruno Haible  <bruno@clisp.org>
19962
19963         getpagesize: Move AC_LIBOBJ invocations to module description.
19964         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19965         from here...
19966         * modules/getpagesize (configure.ac): ... to here.
19967
19968 2011-05-08  Bruno Haible  <bruno@clisp.org>
19969
19970         getopt: Move AC_LIBOBJ invocations to module description.
19971         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19972         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19973         invocations from here...
19974         * modules/getopt-gnu (configure.ac): ... to here.
19975         * modules/getopt-posix (configure.ac): ... and here.
19976         (Depends-on): Update condition.
19977
19978 2011-05-08  Bruno Haible  <bruno@clisp.org>
19979
19980         getopt, argp: Respect rules for use of AC_LIBOBJ.
19981         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19982         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19983         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19984         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19985
19986 2011-05-08  Bruno Haible  <bruno@clisp.org>
19987
19988         getlogin_r: Move AC_LIBOBJ invocations to module description.
19989         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19990         gl_PREREQ_GETLOGIN_R invocations from here...
19991         * modules/getlogin_r (configure.ac): ... to here.
19992
19993 2011-05-08  Bruno Haible  <bruno@clisp.org>
19994
19995         getlogin: Move AC_LIBOBJ invocations to module description.
19996         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19997         here...
19998         * modules/getlogin (configure.ac): ... to here.
19999
20000 2011-05-08  Bruno Haible  <bruno@clisp.org>
20001
20002         getloadavg: Move AC_LIBOBJ invocations to module description.
20003         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
20004         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
20005         * modules/getloadavg (configure.ac): ... to here.
20006
20007 2011-05-08  Bruno Haible  <bruno@clisp.org>
20008
20009         gethrxtime: Move AC_LIBOBJ invocations to module description.
20010         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
20011         LIB_GETHRXTIME from here...
20012         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
20013         invocations from here...
20014         * modules/gethrxtime (configure.ac): ... to here.
20015
20016 2011-05-08  Bruno Haible  <bruno@clisp.org>
20017
20018         gethostname: Move AC_LIBOBJ invocations to module description.
20019         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
20020         gl_PREREQ_GETHOSTNAME invocations from here...
20021         * modules/gethostname (configure.ac): ... to here.
20022
20023 2011-05-08  Bruno Haible  <bruno@clisp.org>
20024
20025         getgroups: Move AC_LIBOBJ invocations to module description.
20026         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
20027         here...
20028         * modules/getgroups (configure.ac): ... to here.
20029
20030 2011-05-08  Bruno Haible  <bruno@clisp.org>
20031
20032         getdtablesize: Move AC_LIBOBJ invocations to module description.
20033         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
20034         invocation from here...
20035         * modules/getdtablesize (configure.ac): ... to here.
20036
20037 2011-05-08  Bruno Haible  <bruno@clisp.org>
20038
20039         getdomainname: Move AC_LIBOBJ invocations to module description.
20040         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
20041         gl_PREREQ_GETDOMAINNAME invocations from here...
20042         * modules/getdomainname (configure.ac): ... to here.
20043
20044 2011-05-08  Bruno Haible  <bruno@clisp.org>
20045
20046         getline: Move AC_LIBOBJ invocations to module description.
20047         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
20048         invocations from here...
20049         * modules/getline (configure.ac): ... to here.
20050
20051 2011-05-08  Bruno Haible  <bruno@clisp.org>
20052
20053         getline: Simplify.
20054         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
20055         It's already handled through the module dependency.
20056
20057 2011-05-08  Bruno Haible  <bruno@clisp.org>
20058
20059         getdelim: Move AC_LIBOBJ invocations to module description.
20060         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
20061         and gl_PREREQ_GETDELIM invocations from here...
20062         * modules/getdelim (configure.ac): ... to here.
20063         (Depends-on): Fix condition.
20064
20065 2011-05-08  Bruno Haible  <bruno@clisp.org>
20066
20067         getcwd: Move AC_LIBOBJ invocations to module description.
20068         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
20069         invocations from here...
20070         * modules/getcwd (configure.ac): ... to here.
20071
20072 2011-05-08  Bruno Haible  <bruno@clisp.org>
20073
20074         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
20075         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20076         here...
20077         * modules/getcwd-lgpl (configure.ac): ... to here.
20078
20079 2011-05-07  Bruno Haible  <bruno@clisp.org>
20080
20081         crypto/gc: Move AC_LIBOBJ invocations to module description.
20082         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20083         * modules/crypto/gc (configure.ac): ... to here.
20084
20085 2011-05-07  Bruno Haible  <bruno@clisp.org>
20086
20087         fwriting: Move AC_LIBOBJ invocations to module description.
20088         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20089         here...
20090         * modules/fwriting (configure.ac): ... to here.
20091
20092 2011-05-07  Bruno Haible  <bruno@clisp.org>
20093
20094         fwritable: Move AC_LIBOBJ invocations to module description.
20095         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20096         here...
20097         * modules/fwritable (configure.ac): ... to here.
20098
20099 2011-05-07  Bruno Haible  <bruno@clisp.org>
20100
20101         futimens: Move AC_LIBOBJ invocations to module description.
20102         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20103         here...
20104         * modules/futimens (configure.ac): ... to here.
20105
20106 2011-05-07  Bruno Haible  <bruno@clisp.org>
20107
20108         ftruncate: Move AC_LIBOBJ invocations to module description.
20109         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20110         gl_PREREQ_FTRUNCATE invocations from here...
20111         * modules/ftruncate (configure.ac): ... to here.
20112
20113 2011-05-07  Bruno Haible  <bruno@clisp.org>
20114
20115         fsync: Move AC_LIBOBJ invocations to module description.
20116         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20117         invocations from here...
20118         * modules/fsync (configure.ac): ... to here.
20119
20120 2011-05-07  Bruno Haible  <bruno@clisp.org>
20121
20122         fsusage: Move AC_LIBOBJ invocations to module description.
20123         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20124         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20125         * modules/fsusage (configure.ac): ... to here.
20126
20127 2011-05-07  Bruno Haible  <bruno@clisp.org>
20128
20129         freopen: Move AC_LIBOBJ invocations to module description.
20130         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20131         invocations from here...
20132         * modules/freopen (configure.ac): ... to here.
20133
20134 2011-05-07  Bruno Haible  <bruno@clisp.org>
20135
20136         free: Move AC_LIBOBJ invocations to module description.
20137         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20138         invocations from here...
20139         * modules/free (configure.ac): ... to here.
20140
20141 2011-05-07  Bruno Haible  <bruno@clisp.org>
20142
20143         freadable: Move AC_LIBOBJ invocations to module description.
20144         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20145         here...
20146         * modules/freadable (configure.ac): ... to here.
20147
20148 2011-05-07  Bruno Haible  <bruno@clisp.org>
20149
20150         fpurge: Move AC_LIBOBJ invocations to module description.
20151         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20152         invocations from here...
20153         * modules/fpurge (configure.ac): ... to here.
20154
20155 2011-05-07  Bruno Haible  <bruno@clisp.org>
20156
20157         fpending: Move AC_LIBOBJ invocations to module description.
20158         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20159         gl_FUNC_FPENDING.
20160         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20161         invocations from here...
20162         * modules/fpending (configure.ac): ... to here.
20163
20164 2011-05-07  Bruno Haible  <bruno@clisp.org>
20165
20166         fopen: Move AC_LIBOBJ invocations to module description.
20167         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20168         invocations from here...
20169         * modules/fopen (configure.ac): ... to here.
20170
20171 2011-05-07  Bruno Haible  <bruno@clisp.org>
20172
20173         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20174         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20175         gl_FUNC_FNMATCH_POSIX.
20176         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20177         invocations from here...
20178         * modules/fnmatch (configure.ac): ... to here.
20179         * modules/fnmatch-gnu (configure.ac): ... and here.
20180
20181 2011-05-07  Bruno Haible  <bruno@clisp.org>
20182
20183         flock: Move AC_LIBOBJ invocations to module description.
20184         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20185         invocations from here...
20186         * modules/flock (configure.ac): ... to here.
20187
20188 2011-05-07  Bruno Haible  <bruno@clisp.org>
20189
20190         fileblocks: Move AC_LIBOBJ invocations to module description.
20191         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20192         gl_PREREQ_FILEBLOCKS invocations from here...
20193         * modules/fileblocks (configure.ac): ... to here.
20194
20195 2011-05-06  Bruno Haible  <bruno@clisp.org>
20196
20197         fflush: Move AC_LIBOBJ invocations to module description.
20198         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20199         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20200         invocations from here...
20201         * modules/fflush (configure.ac): ... to here.
20202
20203 2011-05-06  Bruno Haible  <bruno@clisp.org>
20204
20205         fdopendir: Move AC_LIBOBJ invocations to module description.
20206         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20207         here...
20208         * modules/fdopendir (configure.ac): ... to here.
20209         (Depends-on): Improve conditions.
20210
20211 2011-05-06  Bruno Haible  <bruno@clisp.org>
20212
20213         _Exit: Move AC_LIBOBJ invocations to module description.
20214         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20215         invocations from here...
20216         * modules/_Exit (configure.ac): ... to here.
20217
20218 2011-05-21  Bruno Haible  <bruno@clisp.org>
20219
20220         euidaccess: Respect rules for use of AC_LIBOBJ.
20221         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20222         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20223         from here...
20224         * modules/euidaccess (configure.ac): ... to here.
20225
20226 2011-05-06  Bruno Haible  <bruno@clisp.org>
20227
20228         error: Move AC_LIBOBJ invocations to module description.
20229         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20230         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20231         invocations from here...
20232         * modules/error (configure.ac): ... to here.
20233
20234 2011-05-06  Bruno Haible  <bruno@clisp.org>
20235
20236         duplocale: Move AC_LIBOBJ invocations to module description.
20237         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20238         gl_PREREQ_DUPLOCALE invocations from here...
20239         * modules/duplocale (configure.ac): ... to here.
20240
20241 2011-05-05  Bruno Haible  <bruno@clisp.org>
20242
20243         dirfd: Move AC_LIBOBJ invocations to module description.
20244         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20245         gl_FUNC_DIRFD.
20246         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20247         here...
20248         * modules/dirfd (configure.ac): ... to here.
20249         (Depends-on): Fix condition.
20250
20251 2011-05-05  Bruno Haible  <bruno@clisp.org>
20252
20253         chown: Respect rules for use of AC_LIBOBJ.
20254         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20255         * modules/chown (configure.ac): ... to here.
20256
20257 2011-05-05  Bruno Haible  <bruno@clisp.org>
20258
20259         chdir-long: Move AC_LIBOBJ invocations to module description.
20260         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20261         gl_PREREQ_CHDIR_LONG invocations from here...
20262         * modules/chdir-long (configure.ac): ... to here.
20263
20264 2011-05-05  Bruno Haible  <bruno@clisp.org>
20265
20266         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20267         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20268         from here...
20269         * modules/canonicalize-lgpl (configure.ac): ... to here.
20270
20271 2011-05-05  Bruno Haible  <bruno@clisp.org>
20272
20273         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20274         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20275         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20276         REPLACE_CALLOC.
20277         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20278         * modules/calloc-gnu (configure.ac): Likewise.
20279
20280 2011-05-05  Bruno Haible  <bruno@clisp.org>
20281
20282         btowc: Move AC_LIBOBJ invocations to module description.
20283         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20284         invocations from here...
20285         * modules/btowc (configure.ac): ... to here.
20286
20287 2011-05-21  Bruno Haible  <bruno@clisp.org>
20288
20289         atexit: Move AC_LIBOBJ invocations to module description.
20290         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20291         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20292         here...
20293         * modules/atexit (configure.ac): ... to here.
20294
20295 2011-05-05  Bruno Haible  <bruno@clisp.org>
20296
20297         atoll: Move AC_LIBOBJ invocations to module description.
20298         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20299         invocations from here...
20300         * modules/atoll (configure.ac): ... to here.
20301
20302 2011-05-05  Bruno Haible  <bruno@clisp.org>
20303
20304         argz: Move AC_LIBOBJ invocations to module description.
20305         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20306         * modules/argz (configure.ac): ... to here.
20307
20308 2011-05-05  Bruno Haible  <bruno@clisp.org>
20309
20310         alphasort: Move AC_LIBOBJ invocations to module description.
20311         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20312         gl_PREREQ_ALPHASORT invocations from here...
20313         * modules/alphasort (configure.ac): ... to here.
20314
20315 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20316
20317         verify: new macro verify_expr; verify_true deprecated
20318         * NEWS: Mention this.
20319         * doc/verify.texi (Compile-time Assertions): Document this.
20320         * lib/verify.h (verify_true): Deprecate.
20321         (verify_expr): New macro.
20322         * tests/test-verify.c (function): Test verify_expr.
20323
20324 2011-06-14  Jim Meyering  <meyering@redhat.com>
20325
20326         init.sh: give more portable redirection-related advice in a comment
20327         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20328         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20329         for lots of discussion.  Stefano Lattarini suggested the solution
20330         of putting "9>&2" after the command.  Reported by Bruno Haible.
20331
20332 2011-06-13  Bruno Haible  <bruno@clisp.org>
20333
20334         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20335         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20336         'none'.
20337
20338 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20339
20340         ftoastr: use strtof only if HAVE_STRTOF
20341         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20343         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20344         * modules/ftoastr (configure.ac): Check for strtof.
20345
20346 2011-06-13  Bruno Haible  <bruno@clisp.org>
20347
20348         gnulib-tool: Addendum to 2011-06-08 commit.
20349         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20350         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20351
20352 2011-06-13  Bruno Haible  <bruno@clisp.org>
20353
20354         fseeko: Provide a non-inline replacement of fseek().
20355         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20356         * modules/fseeko (Depends-on): Add fseek.
20357         * modules/fseek (License): Change to LGPLv2+.
20358
20359 2011-06-13  Bruno Haible  <bruno@clisp.org>
20360
20361         ftello: Provide a non-inline replacement of ftell().
20362         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20363         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20364         not have ftello() (such as on mingw).
20365         * modules/ftello (Depends-on): Add ftell.
20366         * modules/ftell (License): Change to LGPLv2+.
20367
20368 2011-05-07  Bruno Haible  <bruno@clisp.org>
20369
20370         ftell: Move AC_LIBOBJ invocations to module description.
20371         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20372         * modules/ftell (configure.ac): ... to here.
20373
20374 2011-05-07  Bruno Haible  <bruno@clisp.org>
20375
20376         ftello: Respect rules for use of AC_LIBOBJ.
20377         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20378         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20379         here...
20380         * modules/ftello (configure.ac): ... to here.
20381
20382 2011-05-07  Bruno Haible  <bruno@clisp.org>
20383
20384         fseeko: Simplify.
20385         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20386         (gl_FUNC_FSEEKO): Inline it here.
20387
20388 2011-05-07  Bruno Haible  <bruno@clisp.org>
20389
20390         fseek: Move AC_LIBOBJ invocations to module description.
20391         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20392         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20393         * modules/fseek (configure.ac): ... to here.
20394
20395 2011-05-07  Bruno Haible  <bruno@clisp.org>
20396
20397         fseek: Respect rules for use of AC_LIBOBJ.
20398         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20399         here...
20400         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20401
20402 2011-05-07  Bruno Haible  <bruno@clisp.org>
20403
20404         fseeko: Respect rules for use of AC_LIBOBJ.
20405         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20406         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20407         here...
20408         * modules/fseeko (configure.ac): ... to here.
20409
20410 2011-06-13  Bruno Haible  <bruno@clisp.org>
20411
20412         gnulib-tool: Allow comments in the 'Depends-on' section.
20413         * doc/gnulib.texi (Module description): Mention comment syntax in the
20414         Depends-on section.
20415         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20416
20417 2011-06-13  Bruno Haible  <bruno@clisp.org>
20418
20419         file-set.h: guard __attibute__ use, now that it's not always defined
20420         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20421         versions that support it.  This fixes a coreutils build failure with
20422         the vendor cc on HP-UX 11.31.
20423
20424 2011-06-12  Bruno Haible  <bruno@clisp.org>
20425
20426         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20427         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20428         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20429         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20430         (acl, aclsort): New declarations.
20431         (aclv_nontrivial): New declaration.
20432         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20433         (file_has_acl): Read also the second kind of HP-UX ACLs.
20434         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20435         kind of HP-UX ACLs if the first kind fails.
20436         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20437         second kind of HP-UX ACLs.
20438         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20439         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20440         agree.
20441         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20442         hpuxjfs.
20443         Handle hpuxjfs.
20444         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20445         hpuxjfs.
20446         Handle hpuxjfs.
20447         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20448         (func_test_same_acls): Use both lsacl and getacl.
20449         Handle hpuxjfs.
20450         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20451         (func_test_same_acls): Use both lsacl and getacl.
20452         Handle hpuxjfs.
20453
20454 2011-06-12  Bruno Haible  <bruno@clisp.org>
20455
20456         acl: Complete the 2010-08-10 fix.
20457         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20458         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20459         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20460         explicitly.
20461         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20462         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20463
20464 2011-06-12  Bruno Haible  <bruno@clisp.org>
20465
20466         spawn-pipe tests: Comments.
20467         * tests/test-spawn-pipe-child.c (main): Update comment.
20468         Reported by James Youngman <jay@gnu.org>.
20469
20470 2011-06-11  James Youngman  <jay@gnu.org>
20471
20472         New module 'stat-size'.
20473         * modules/stat-size: New module.  Provides macros for accessing
20474         file size information in instances of struct stat.  Depends on the
20475         fileblocks module because it calls st_blocks.
20476         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20477         * doc/gnulib.texi: Include stat-size.texi.
20478         * doc/stat-size.texi: Documentation for this module.
20479         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20480         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20481         AC_STRUCT_ST_BLOCKS.
20482
20483 2011-06-09  Bruno Haible  <bruno@clisp.org>
20484
20485         thread: Support pthreads-win32.
20486         * lib/glthread/thread.h (gl_thread_self): Define differently on
20487         pthreads-win32.
20488         (gl_null_thread): New declaration.
20489         (gl_thread_self_pointer): New macro.
20490         * lib/glthread/thread.c (gl_null_thread): New constant.
20491         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20492         gl_thread_self.
20493         * tests/test-tls.c: Likewise.
20494         Suggested by Paul Eggert. Reported by Eric Blake.
20495
20496 2011-06-09  Bruno Haible  <bruno@clisp.org>
20497
20498         thread: Fix confusion between NULL and 0.
20499         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20500         Reported by Paul Eggert.
20501
20502 2011-06-09  Bruno Haible  <bruno@clisp.org>
20503
20504         spawn-pipe tests: Avoid test failure on HP-UX 11.
20505         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20506         is closed.
20507
20508 2011-06-09  Bruno Haible  <bruno@clisp.org>
20509
20510         acl tests: Fix compilation error on HP-UX 11.
20511         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20512
20513 2011-06-09  Bruno Haible  <bruno@clisp.org>
20514
20515         rmdir: Avoid test failure on HP-UX 10.20.
20516         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20517         EEXIST.
20518
20519 2011-06-08  Eric Blake  <eblake@redhat.com>
20520
20521         perror: fix test on mingw
20522         * modules/perror-tests (Depends-on): Add dup2.
20523
20524         strerror_r-posix: fix on MacOS
20525         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20526         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20527         logic bug.
20528         * lib/strerror_r.c (strerror_r): Fix the bug.
20529         * lib/strerror.c (strerror): Likewise.
20530         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20531         problem.
20532         * doc/posix-functions/strerror.texi (strerror): Likewise.
20533         * doc/posix-functions/perror.texi (perror): Likewise.
20534         * tests/test-strerror.c (main): Enhance test.
20535         * tests/test-strerror_r.c (main): Likewise.
20536
20537 2011-06-08  Bruno Haible  <bruno@clisp.org>
20538
20539         gnulib-tool: Better isolation between different gnulib-tool invocations.
20540         * gnulib-tool: New option --witness-c-macro.
20541         (witness_c_macro): New variable.
20542         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20543         AM_CPPFLAGS define it as a C macro.
20544         (func_emit_tests_Makefile_am): Likewise.
20545         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20546         read it from there.
20547         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20548         m4_define, not AC_DEFUN.
20549         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20550         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20551         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20552         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20553         s|...|...|, to substitute the values of the GNULIB_* module indicator
20554         variables.
20555         * modules/dirent (Makefile.am): Likewise.
20556         * modules/fcntl-h (Makefile.am): Likewise.
20557         * modules/iconv-h (Makefile.am): Likewise.
20558         * modules/langinfo (Makefile.am): Likewise.
20559         * modules/locale (Makefile.am): Likewise.
20560         * modules/math (Makefile.am): Likewise.
20561         * modules/netdb (Makefile.am): Likewise.
20562         * modules/poll-h (Makefile.am): Likewise.
20563         * modules/pty (Makefile.am): Likewise.
20564         * modules/search (Makefile.am): Likewise.
20565         * modules/signal (Makefile.am): Likewise.
20566         * modules/spawn (Makefile.am): Likewise.
20567         * modules/stdio (Makefile.am): Likewise.
20568         * modules/stdlib (Makefile.am): Likewise.
20569         * modules/string (Makefile.am): Likewise.
20570         * modules/sys_ioctl (Makefile.am): Likewise.
20571         * modules/sys_select (Makefile.am): Likewise.
20572         * modules/sys_socket (Makefile.am): Likewise.
20573         * modules/sys_stat (Makefile.am): Likewise.
20574         * modules/sys_times (Makefile.am): Likewise.
20575         * modules/sys_utsname (Makefile.am): Likewise.
20576         * modules/sys_wait (Makefile.am): Likewise.
20577         * modules/termios (Makefile.am): Likewise.
20578         * modules/time (Makefile.am): Likewise.
20579         * modules/unistd (Makefile.am): Likewise.
20580         * modules/wchar (Makefile.am): Likewise.
20581
20582 2011-06-08  Eric Blake  <eblake@redhat.com>
20583
20584         strerror: simplify replacement
20585         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20586         * modules/strerror (configure.ac): No prereqs needed here...
20587         * modules/strerror-override (configure.ac): ...but this needs it.
20588         (Files): Add file for needed prereq macro.
20589
20590 2011-06-08  Bruno Haible  <bruno@clisp.org>
20591
20592         strerror_r-posix: Tweaks.
20593         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20594         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20596         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20597         (gl_FUNC_STRERROR_R): ... to here.
20598         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20599
20600 2011-06-07  Eric Blake  <eblake@redhat.com>
20601
20602         perror: document fixed bugs
20603         * doc/posix-functions/perror.texi (perror): Document recent
20604         patches.
20605
20606 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20607
20608         stat-time: get_stat_birthtime failure is better-defined
20609         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20610         return a timestamp whose tv_sec and tv_nsec values are both -1.
20611         Previously, the spec said only that the tv_nsec value was negative.
20612         This upward-compatible change simplifies GNU tar a bit.
20613
20614 2011-06-07  Eric Blake  <eblake@redhat.com>
20615
20616         strerror_r-posix: work around cygwin 1.7.9
20617         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20618         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20619         bug without replacing strerror_r.
20620         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20621         strerror_r is buggy, but without requiring strerror_r compilation.
20622         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20623
20624         test-perror: relax test to ignore cygwin bug
20625         * tests/test-perror2.c (main): Relax test on requiring detection
20626         of stream errors, and use unbuffered stream.
20627         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20628         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20629         * doc/posix-functions/fputc.texi (fputc): Likewise.
20630         * doc/posix-functions/fputs.texi (fputs): Likewise.
20631         * doc/posix-functions/fputws.texi (fputws): Likewise.
20632         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20633         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20634         * doc/posix-functions/getopt.texi (getopt): Likewise.
20635         * doc/posix-functions/perror.texi (perror): Likewise.
20636         * doc/posix-functions/printf.texi (printf): Likewise.
20637         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20638         * doc/posix-functions/psignal.texi (psignal): Likewise.
20639         * doc/posix-functions/putc.texi (putc): Likewise.
20640         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20641         Likewise.
20642         * doc/posix-functions/putchar.texi (putchar): Likewise.
20643         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20644         Likewise.
20645         * doc/posix-functions/puts.texi (puts): Likewise.
20646         * doc/posix-functions/putwc.texi (putwc): Likewise.
20647         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20648         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20649         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20650         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20651         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20652         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20653         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20654         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20655
20656 2011-05-22  Bruno Haible  <bruno@clisp.org>
20657
20658         strerror: Move AC_LIBOBJ invocations to module description.
20659         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20660         gl_PREREQ_STRERROR invocations from here...
20661         * modules/strerror (configure.ac): ... to here.
20662
20663 2011-05-21  Bruno Haible  <bruno@clisp.org>
20664
20665         perror: Use common idiom.
20666         * modules/perror (configure.ac): Reorder statements.
20667
20668 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20669
20670         tests: fix usage message in 'mktempd_'
20671         * tests/init.sh (mktempd_): In the usage message, use literal
20672         'mktempd_', not '$ME' (which is even undefined), as the name of
20673         the subroutine.
20674
20675 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20676
20677         tests init: new function 'fatal_', for hard errors
20678         Before this patch, the only way offered by tests/init.sh to
20679         properly signal a hard error was the `framework_failure_'
20680         function.  But the error message issued by that function,
20681         as its name would suggest, refers to a set-up failure in the
20682         testsuite, while hard errors can obviously also be due to
20683         other reasons.  The best way to fix this inconsistency is to
20684         introduce a new function with a more general error message.
20685         * tests/init.sh (fatal_): New function.
20686
20687 2011-06-06  Eric Blake  <eblake@redhat.com>
20688
20689         canonicalize-lgpl: use common idiom
20690         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20691         over newer POSIX -Rf.
20692         Reported by Bruno Haible.
20693
20694         canonicalize-lgpl: work around AIX realpath bug
20695         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20696         * doc/posix-functions/realpath.texi (realpath): Document it.
20697         Reported by Bruno Haible.
20698
20699         strerror: work around FreeBSD bug
20700         * lib/strerror.c (strerror): Special case 0.
20701         Reported by Bruno Haible.
20702
20703         strerror-override: avoid bloating errno module
20704         * modules/errno (Files, configure.ac): Move replacement strings...
20705         * modules/strerror-override: ...to new module.
20706         * modules/strerror (Depends-on): Add strerror-override.
20707         * modules/strerror_r-posix (Depends-on): Likewise.
20708         * MODULES.html.sh: Document new module.
20709         Reported by Bruno Haible.
20710
20711 2011-06-06  Bruno Haible  <bruno@clisp.org>
20712
20713         spawn-pipe tests: Rename program.
20714         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20715         * tests/test-spawn-pipe-child.c: Update comment.
20716         * tests/test-spawn-pipe.sh: Update.
20717         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20718
20719         spawn-pipe tests: Link the child program only against libc.
20720         * tests/test-spawn-pipe-child.c: New file, extracted from
20721         tests/test-spawn-pipe.c.
20722         (main): Expect only one argument.
20723         (is_open): New function, copied from tests/test-pipe.c.
20724         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20725         (child_main): Remove function.
20726         (test_pipe): Pass only one argument to the child program.
20727         (main): Remove child process code. Expect the child program's name as
20728         first argument.
20729         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20730         argument.
20731         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20732         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20733         test-spawn-pipe-child against no libraries.
20734
20735 2011-06-06  Bruno Haible  <bruno@clisp.org>
20736
20737         careadlinkat: Avoid mismatch between ssize_t and int.
20738         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20739         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20740
20741 2011-06-06  Jim Meyering  <meyering@redhat.com>
20742
20743         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20744         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20745         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20746
20747 2011-06-05  Bruno Haible  <bruno@clisp.org>
20748
20749         ansi-c++-opt: Interoperability with libtool.
20750         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20751         set the variable to "no", not to ":".
20752         * NEWS: Mention the change.
20753
20754 2011-06-05  Bruno Haible  <bruno@clisp.org>
20755
20756         acl: Fix test failure on AIX 7.
20757         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20758         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20759
20760 2011-06-05  Bruno Haible  <bruno@clisp.org>
20761
20762         pipe-filter-ii: Fix test failure on AIX and IRIX.
20763         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20764         with EAGAIN, retry with a smaller buffer size.
20765
20766 2011-06-05  Bruno Haible  <bruno@clisp.org>
20767
20768         localename: Fix link dependencies.
20769         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20770         * modules/localename-tests (Makefile.am): Link test-localename with
20771         $(LIBTHREAD).
20772
20773 2011-06-05  Bruno Haible  <bruno@clisp.org>
20774
20775         error: Avoid gcc warning.
20776         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20777
20778 2011-06-05  Bruno Haible  <bruno@clisp.org>
20779
20780         unsetenv: Avoid gcc warning.
20781         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20782
20783 2011-06-05  Bruno Haible  <bruno@clisp.org>
20784
20785         setenv: Avoid gcc warning.
20786         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20787
20788 2011-06-05  Bruno Haible  <bruno@clisp.org>
20789
20790         sys_select: Ensure memset is declared also on AIX 7.
20791         * lib/sys_select.in.h: Include <string.h> also on AIX.
20792         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20793         self-contained also on AIX 7.1.
20794
20795 2011-06-04  Jim Meyering  <meyering@redhat.com>
20796
20797         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20798         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20799         function name, "error".
20800         (_gl_translatable_diag_func_re): New configurable variable.
20801
20802 2011-06-04  Bruno Haible  <bruno@clisp.org>
20803
20804         getopt: Avoid gcc warning.
20805         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20806
20807 2011-06-04  Bruno Haible  <bruno@clisp.org>
20808
20809         strerror_r: Fix comments.
20810         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20811         commit.
20812
20813 2011-06-04  Bruno Haible  <bruno@clisp.org>
20814
20815         perror: Fix compilation error.
20816         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20817         Undefine fprintf, not sprintf.
20818         * modules/perror (Depends-on): Remove intprops, verify.
20819
20820 2011-06-04  Bruno Haible  <bruno@clisp.org>
20821
20822         setlocale: Enable replacement on Cygwin 1.5.
20823         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20824         Cygwin 1.5.x.
20825         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20826         LC_CTYPE category also exists on Cygwin 1.5.x.
20827
20828 2011-06-04  Bruno Haible  <bruno@clisp.org>
20829
20830         strerror-override: Don't disable symbol renamings.
20831         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20832         * lib/strerror-override.c: Include config.h.
20833         (strerror_override): Don't undefine.
20834
20835 2011-06-03  Bruno Haible  <bruno@clisp.org>
20836
20837         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20838         * lib/localename.h: Update copyright header.
20839         * lib/localename.c: Likewise.
20840         * lib/relocatable.h: Likewise.
20841         * lib/relocatable.c: Likewise.
20842
20843 2011-06-02  Bruno Haible  <bruno@clisp.org>
20844
20845         doc: Fix a module name.
20846         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20847
20848 2011-06-02  Bruno Haible  <bruno@clisp.org>
20849
20850         pipe2: Remove dependency on 'nonblocking' module.
20851         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20852         O_NONBLOCK is defined by gnulib.
20853         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20854         is zero.
20855         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20856         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20857         defined by gnulib.
20858         (get_nonblocking_flag): New function.
20859         (main): Test O_NONBLOCK flag only if it is nonzero.
20860         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20861
20862 2011-06-03  Jim Meyering  <meyering@redhat.com>
20863
20864         maint: three new prohibit-header-without-use rules
20865         Prohibit use of cloexec.h, posixver.h, same.h without use.
20866         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20867         (sc_prohibit_posixver_without_use): Likewise.
20868         (sc_prohibit_same_without_use): Likewise.
20869
20870 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20871
20872         allocator: 'die' routine is now given requested size
20873         * lib/allocator.h (struct allocator.die): New size arg.
20874         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20875         If the actual problem is an ssize_t limitation, not a size_t or
20876         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20877
20878 2011-06-01  Eric Blake  <eblake@redhat.com>
20879
20880         strerror: drop strerror_r dependency
20881         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20882         * lib/strerror-override.c (strerror_override): ...to new file.
20883         * lib/strerror-override.h: Add prototype.
20884         * lib/strerror-impl.h: Delete.
20885         * lib/strerror.c (strerror): New implementation.
20886         * modules/errno (Files): Add new files.
20887         (configure.ac): Compile new file as appropriate.
20888         * modules/strerror (Files): Drop unused file.
20889         (Depends-on): Drop strerror_r-posix.
20890         * MODULES.html.sh: Document strerror_r-posix.
20891         Requested by Sam Steingold.
20892
20893         perror: call strerror_r directly
20894         * modules/perror (Files): Drop strerror-impl.h.
20895         * lib/perror.c (perror): Use our own stack buffer, rather than
20896         calling a wrapper that uses static storage.
20897         * doc/posix-functions/perror.texi (perror): Document a limitation
20898         of our replacement.
20899
20900         strerror_r: fix includes for FreeBSD
20901         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20902         since we use abort on some platforms.
20903         Reported by Matthias Bolte.
20904
20905 2011-05-31  Bruno Haible  <bruno@clisp.org>
20906
20907         Fix link errors in tests: openat-die uses gettext-h.
20908         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20909         against $(LIBINTL).
20910         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20911         against $(LIBINTL).
20912         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20913         $(LIBINTL).
20914         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20915         against $(LIBINTL).
20916         * modules/linkat-tests (Makefile.am): Link test-linkat against
20917         $(LIBINTL).
20918         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20919         $(LIBINTL).
20920         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20921         against $(LIBINTL).
20922         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20923         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20924         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20925         $(LIBINTL).
20926         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20927         $(LIBINTL).
20928         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20929         $(LIBINTL).
20930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20931
20932 2011-05-31  Bruno Haible  <bruno@clisp.org>
20933
20934         Fix link errors in tests: wait-process uses gettext-h.
20935         * modules/nonblocking-pipe-tests (Makefile.am): Set
20936         test_nonblocking_pipe_main_LDADD.
20937         * modules/nonblocking-socket-tests (Makefile.am): Link
20938         test-nonblocking-socket-main against $(LIBINTL).
20939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20940
20941 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20942
20943         assert-h: work around 'verify' incompatibility
20944         * lib/verify.h: Use @...@ directives, not ifdef.
20945         * modules/assert-h (assert.h): Implement the directives.
20946         (assert.h): Substitute the symbol-prefix more consistently.
20947
20948 2011-05-29  Jim Meyering  <meyering@redhat.com>
20949
20950         trim: remove three superfluous assignments
20951         * lib/trim.c (trim2): Remove three superfluous assignments
20952         and correct brace positioning.
20953
20954 2011-05-29  Bruno Haible  <bruno@clisp.org>
20955
20956         wctype-h: Avoid namespace pollution on Solaris 2.6.
20957         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20958         identifiers.
20959         * doc/posix-headers/wctype.texi: Mention the problem.
20960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20961
20962 2011-05-28  Jim Meyering  <meyering@redhat.com>
20963
20964         parse-datetime.y: accommodate -Wstrict-overflow
20965         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20966         placate -Wstrict-overflow.
20967
20968         trim: avoid a warning from -O2 -Wstrict-overflow
20969         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20970
20971 2011-05-29  Bruno Haible  <bruno@clisp.org>
20972
20973         gnulib-tool: Fix bug in yesterday's commit.
20974         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20975         twice.
20976
20977 2011-05-29  Bruno Haible  <bruno@clisp.org>
20978
20979         Allow multiple gnulib generated include files to be combined.
20980         * gnulib-tool (func_compute_include_guard_prefix): New function.
20981         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20982         ${gl_include_guard_prefix} references.
20983         (func_import, func_create_testdir): Invoke
20984         func_compute_include_guard_prefix.
20985         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20986         * lib/ctype.in.h: Likewise.
20987         * lib/dirent.in.h: Likewise.
20988         * lib/errno.in.h: Likewise.
20989         * lib/fcntl.in.h: Likewise.
20990         * lib/float.in.h: Likewise.
20991         * lib/getopt.in.h: Likewise.
20992         * lib/iconv.in.h: Likewise.
20993         * lib/langinfo.in.h: Likewise.
20994         * lib/locale.in.h: Likewise.
20995         * lib/math.in.h: Likewise.
20996         * lib/netdb.in.h: Likewise.
20997         * lib/netinet_in.in.h: Likewise.
20998         * lib/poll.in.h: Likewise.
20999         * lib/pthread.in.h: Likewise.
21000         * lib/pty.in.h: Likewise.
21001         * lib/sched.in.h: Likewise.
21002         * lib/se-selinux.in.h: Likewise.
21003         * lib/search.in.h: Likewise.
21004         * lib/signal.in.h: Likewise.
21005         * lib/spawn.in.h: Likewise.
21006         * lib/stdarg.in.h: Likewise.
21007         * lib/stddef.in.h: Likewise.
21008         * lib/stdint.in.h: Likewise.
21009         * lib/stdio.in.h: Likewise.
21010         * lib/stdlib.in.h: Likewise.
21011         * lib/string.in.h: Likewise.
21012         * lib/strings.in.h: Likewise.
21013         * lib/sys_file.in.h: Likewise.
21014         * lib/sys_ioctl.in.h: Likewise.
21015         * lib/sys_select.in.h: Likewise.
21016         * lib/sys_socket.in.h: Likewise.
21017         * lib/sys_stat.in.h: Likewise.
21018         * lib/sys_time.in.h: Likewise.
21019         * lib/sys_times.in.h: Likewise.
21020         * lib/sys_uio.in.h: Likewise.
21021         * lib/sys_utsname.in.h: Likewise.
21022         * lib/sys_wait.in.h: Likewise.
21023         * lib/sysexits.in.h: Likewise.
21024         * lib/termios.in.h: Likewise.
21025         * lib/time.in.h: Likewise.
21026         * lib/unistd.in.h: Likewise.
21027         * lib/wchar.in.h: Likewise.
21028         * lib/wctype.in.h: Likewise.
21029         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
21030         * modules/ctype (Makefile.am): Likewise.
21031         * modules/dirent (Makefile.am): Likewise.
21032         * modules/errno (Makefile.am): Likewise.
21033         * modules/fcntl-h (Makefile.am): Likewise.
21034         * modules/float (Makefile.am): Likewise.
21035         * modules/getopt-posix (Makefile.am): Likewise.
21036         * modules/iconv-h (Makefile.am): Likewise.
21037         * modules/langinfo (Makefile.am): Likewise.
21038         * modules/locale (Makefile.am): Likewise.
21039         * modules/math (Makefile.am): Likewise.
21040         * modules/netdb (Makefile.am): Likewise.
21041         * modules/netinet_in (Makefile.am): Likewise.
21042         * modules/poll-h (Makefile.am): Likewise.
21043         * modules/pthread (Makefile.am): Likewise.
21044         * modules/pty (Makefile.am): Likewise.
21045         * modules/sched (Makefile.am): Likewise.
21046         * modules/search (Makefile.am): Likewise.
21047         * modules/selinux-h (Makefile.am): Likewise.
21048         * modules/signal (Makefile.am): Likewise.
21049         * modules/spawn (Makefile.am): Likewise.
21050         * modules/stdarg (Makefile.am): Likewise.
21051         * modules/stddef (Makefile.am): Likewise.
21052         * modules/stdint (Makefile.am): Likewise.
21053         * modules/stdio (Makefile.am): Likewise.
21054         * modules/stdlib (Makefile.am): Likewise.
21055         * modules/string (Makefile.am): Likewise.
21056         * modules/strings (Makefile.am): Likewise.
21057         * modules/sys_file (Makefile.am): Likewise.
21058         * modules/sys_ioctl (Makefile.am): Likewise.
21059         * modules/sys_select (Makefile.am): Likewise.
21060         * modules/sys_socket (Makefile.am): Likewise.
21061         * modules/sys_stat (Makefile.am): Likewise.
21062         * modules/sys_time (Makefile.am): Likewise.
21063         * modules/sys_times (Makefile.am): Likewise.
21064         * modules/sys_uio (Makefile.am): Likewise.
21065         * modules/sys_utsname (Makefile.am): Likewise.
21066         * modules/sys_wait (Makefile.am): Likewise.
21067         * modules/sysexits (Makefile.am): Likewise.
21068         * modules/termios (Makefile.am): Likewise.
21069         * modules/time (Makefile.am): Likewise.
21070         * modules/unistd (Makefile.am): Likewise.
21071         * modules/wchar (Makefile.am): Likewise.
21072         * modules/wctype-h (Makefile.am): Likewise.
21073         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
21074
21075 2011-05-29  Bruno Haible  <bruno@clisp.org>
21076
21077         assert-h: Allow multiple gnulib generated replacements to coexist.
21078         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21079
21080 2011-05-29  Bruno Haible  <bruno@clisp.org>
21081
21082         argp: Allow coexistence with strerror_r-posix module.
21083         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21084         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21085         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21086         not the glibc signature.
21087
21088 2011-05-28  Bruno Haible  <bruno@clisp.org>
21089
21090         gnulib-tool: Alternative structure of testdirs, similar to --import.
21091         * gnulib-tool: New option --single-configure.
21092         (func_usage): Document it.
21093         (single_configure): New variable.
21094         (func_modules_transitive_closure_separately,
21095         func_modules_transitive_closure_separately,
21096         func_determine_use_libtests, func_modules_add_dummy_separately,
21097         func_modules_to_filelist_separately): New functions, extracted from
21098         func_import.
21099         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21100         (func_import): Use the new functions.
21101         (func_create_testdir): Set final_modules. Handle $single_configure =
21102         true case.
21103
21104 2011-05-28  Bruno Haible  <bruno@clisp.org>
21105
21106         getloadavg: Remove an unreliable safety check.
21107         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21108         getloadavg.c is in place.
21109         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21110         Reported by Sam Steingold <sds@gnu.org>.
21111
21112 2011-05-28  Bruno Haible  <bruno@clisp.org>
21113
21114         doc: Cleanup yet another file produced by texinfo.tex.
21115         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21116
21117 2011-05-28  Bruno Haible  <bruno@clisp.org>
21118
21119         Finish the conditional dependencies mechanism.
21120         * gnulib-tool: New option --no-conditional-dependencies.
21121         (func_usage): Document it. Don't mark --conditional-dependencies as
21122         experimental.
21123         (cond_dependencies): The possible values can now be true, false, empty.
21124         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21125         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21126         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21127
21128 2011-05-28  Bruno Haible  <bruno@clisp.org>
21129
21130         doc: Use a recent texinfo.tex.
21131         * doc/Makefile (tex_opts): New variable.
21132         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21133
21134 2011-05-28  Jim Meyering  <meyering@redhat.com>
21135
21136         intprops.h: adjust comment to match code change
21137         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21138         only once, it *may* have side effects.  Also fix an unrelated typo.
21139         (_GL_INT_SIGNED): Likewise.
21140
21141 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21142
21143         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21144
21145 2011-05-26  Bruno Haible  <bruno@clisp.org>
21146
21147         mbsrchr: Avoid collision with system function on Interix.
21148         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21149         Reported by Markus Duft <mduft@gentoo.org>.
21150
21151 2011-05-15  James Youngman  <jay@gnu.org>
21152
21153         getopt: for ambiguous options, enumerate the possibilities.
21154         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21155         the ambiguous options when an ambiguous prefix is given. This was
21156         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21157         glibc change was
21158         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21159
21160 2011-05-25  Eric Blake  <eblake@redhat.com>
21161
21162         getcwd: work around mingw bug
21163         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21164         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21165         Reported by Matthias Bolte.
21166
21167 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21168
21169         test-intprops: disable -Wtype-limits diagnostics
21170         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21171         diagnostics.  Otherwise, the integer overflow macros generate many
21172         diagnostics.  Reported by Jim Meyering in
21173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21174
21175         intprops: shorten, to pacify gcc -Woverlength-strings
21176         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21177         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21178         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21179         likely to run afoul of C compiler limits for string constant lengths.
21180         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21181
21182 2011-05-24  Eric Blake  <eblake@redhat.com>
21183
21184         docs: document recently fixed glibc printf bug
21185         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21186         * doc/posix-functions/printf.texi (printf): Likewise.
21187         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21188         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21189
21190         closein-tests: convert to init.sh
21191         * modules/closein-tests (Files): Add init.sh
21192         * tests/test-closein.sh Use it.
21193
21194         yesno-tests: convert to init.sh
21195         * modules/yesno-tests (Files): Add init.sh.
21196         * tests/test-yesno.sh: Use it.
21197
21198         atexit-tests: ensure reliable exit status
21199         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21200         Reported by Bruno Haible.
21201
21202 2011-05-24  Bruno Haible  <bruno@clisp.org>
21203
21204         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21205         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21206         gl_PREREQ_STRERROR_R invocations from here...
21207         * modules/strerror_r-posix (configure.ac): ... to here.
21208
21209 2011-05-24  Eric Blake  <eblake@redhat.com>
21210
21211         strerror_r: fix missing header
21212         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21213
21214         strerror_r: fix AIX test failures
21215         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21216         ERANGE failure.
21217
21218         strerror_r: fix Solaris test failures
21219         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21220         failures.
21221         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21222
21223         strerror_r: enforce POSIX recommendations
21224         * lib/strerror_r.c (safe_copy): New helper method.
21225         (strerror_r): Guarantee a non-empty string.
21226         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21227         recent POSIX rulings and to match our strerror guarantees.
21228         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21229
21230 2011-05-24  Jim Meyering  <meyering@redhat.com>
21231
21232         test-perror2.c: avoid warning about unused variable
21233         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21234
21235 2011-05-24  Eric Blake  <eblake@redhat.com>
21236
21237         perror: avoid spurious test failure on HP-UX
21238         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21239
21240         tests: fix logic bug in init.sh
21241         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21242         shell.
21243
21244 2011-05-24  Jim Meyering  <meyering@redhat.com>
21245
21246         utimensat: do not reference an out-of-scope buffer
21247         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21248         declared in an inner scope, yet "times" would be dereferenced outside
21249         the scope in which "ts" was valid.
21250         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21251         of ts[2] "out/up", so that the use of aliased "times" (via
21252         "times = ts;") does not end up referencing an out-of-scope "ts"
21253
21254         opendir-safer.c: don't clobber errno; don't close negative FD
21255         * lib/opendir-safer.c (opendir_safer):
21256         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21257         file descriptor, and more importantly, don't clobber the
21258         offending errno value with EINVAL.  Before, upon failure
21259         of dup_safer, we would pass the negative file descriptor to
21260         fdopendir, which would clobber errno.
21261
21262 2011-05-23  Bruno Haible  <bruno@clisp.org>
21263
21264         idcache: Fix module description.
21265         * modules/idcache (Include): Set to "idcache.h".
21266
21267 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21268
21269         gnulib-tool: fix portability problem with MacOS sed
21270         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21271         before the "}".  Problem reported by Leo in
21272         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21273         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21274         sed_extract_condition1, sed_extract_condition2.
21275
21276 2011-05-23  Bruno Haible  <bruno@clisp.org>
21277
21278         hash: Simplify autoconf macro.
21279         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21280
21281 2011-05-23  Bruno Haible  <bruno@clisp.org>
21282
21283         getugroups: Fix module description.
21284         * modules/getugroups (Include): Set to "getugroups.h".
21285
21286 2011-05-23  Bruno Haible  <bruno@clisp.org>
21287
21288         linkat: Simplify autoconf macro.
21289         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21290
21291 2011-05-23  Bruno Haible  <bruno@clisp.org>
21292             Eric Blake  <eblake@redhat.com>
21293
21294         linkat, renameat: Update dependencies.
21295         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21296         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21297         symlinkat.
21298
21299 2011-05-23  Jim Meyering  <meyering@redhat.com>
21300
21301         maint.mk: more tight_scope improvements
21302         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21303         (_gl_TS_headers): Define only in if-0'd block.
21304         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21305         sometimes we must *not* use it.  Adjust uses accordingly.
21306         (sc_tight_scope): Use much simpler grep-based test to determine
21307         whether we skip this rule.
21308
21309         maint.mk: generalize/improve the tight-scope rule
21310         * top/maint.mk: Emit a warning when the test is skipped.
21311         (_gl_TS_dir): Add $(srcdir)/ prefix.
21312         (_gl_TS_function_match): Simplify, rather than trying
21313         to enumerate common types.  Otherwise, it would fail to match an
21314         "extern unsigned char const *" declaration in idutils.
21315         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21316         a way to support use of that type of macro.
21317         (_gl_TS_var_match): Simplify regexp.
21318         (_gl_TS_obj_files): New configurable variable.
21319         (_gl_TS_headers): Likewise.
21320
21321 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21322
21323         verify: fix bug when gnulib <assert.h> is also included
21324         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21325         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21326         Perhaps there's a better way, but this fixes the immediate problem.
21327         Problem reported by Bruno Haible in
21328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21329
21330 2011-05-22  Bruno Haible  <bruno@clisp.org>
21331
21332         xgetcwd: Simplify autoconf macro.
21333         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21334
21335 2011-05-22  Bruno Haible  <bruno@clisp.org>
21336
21337         New module 'mktime-internal'.
21338         * modules/mktime-internal: New file.
21339         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21340         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21341         mktime_internal as a C macro if libc has __mktime_internal.
21342         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21343         conditions.
21344         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21345
21346 2011-05-22  Bruno Haible  <bruno@clisp.org>
21347
21348         timegm: Correct mktime replacement statements.
21349         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21350         defining mktime as a C macro. This completes a 2009-07-28 commit.
21351
21352 2011-05-22  Bruno Haible  <bruno@clisp.org>
21353
21354         timegm: Simplify autoconf macro.
21355         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21356
21357 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21358
21359         clock-time: change to LGPLv2+.
21360         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21361         BSD-like but we have no mark for that; this is good enough for now.
21362
21363 2011-05-21  Bruno Haible  <bruno@clisp.org>
21364
21365         strerror_r: Fix comments.
21366         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21367
21368 2011-05-21  Bruno Haible  <bruno@clisp.org>
21369
21370         relocatable-prog-wrapper: Fix possible link error.
21371         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21372         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21373         (gl_FUNC_SETENV): ... to here.
21374         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21375         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21376
21377 2011-05-21  Bruno Haible  <bruno@clisp.org>
21378
21379         relocatable-prog-wrapper: Assume strerror() exists.
21380         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21381         m4/strerror.m4.
21382         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21383         * lib/relocwrapper.c: Remove mention of strerror module.
21384         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21385         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21386         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21387         C macro.
21388
21389 2011-05-21  Bruno Haible  <bruno@clisp.org>
21390
21391         select: Simplify replacement idiom.
21392         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21393         Win32 platforms.
21394         * lib/sys_select.in.h (select): Simplify accordingly.
21395         * modules/select (Depends-on): Likewise.
21396
21397 2011-05-21  Bruno Haible  <bruno@clisp.org>
21398
21399         mkdir-p: Simplify autoconf macro.
21400         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21401         gl_FUNC_LCHOWN.
21402
21403 2011-05-21  Eric Blake  <eblake@redhat.com>
21404
21405         strerror_r: avoid clobbering strerror on cygwin
21406         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21407         fall back instead to sys_errlist.
21408         * modules/strerror (configure.ac): Add witness.
21409         * tests/test-strerror_r.c (main): Enhance test.
21410         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21411         * tests/test-perror2.c (main): Free memory before exit.
21412
21413 2011-05-21  Bruno Haible  <bruno@clisp.org>
21414
21415         mkdtemp: Use gnulib naming conventions.
21416         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21417         * modules/mkdtemp (configure.ac): Update.
21418
21419 2011-05-20  Eric Blake  <eblake@redhat.com>
21420
21421         strerror_r: avoid corrupting errno on Solaris
21422         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21423         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21424
21425         strerror_r: avoid compiler warning
21426         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21427
21428         strerror_r: simplify AIX code
21429         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21430
21431         test-perror: avoid spurious failure on FreeBSD
21432         * modules/perror-tests (Depends-on): Add strerror, now that
21433         strerror_r no longer pulls it in.
21434
21435 2011-05-20  Bruno Haible  <bruno@clisp.org>
21436
21437         strerror_r-posix: Remove unused dependencies.
21438         * modules/strerror_r-posix (Depends-on): Remove strerror.
21439         Reported by Eric Blake.
21440
21441 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21442
21443         intprops: remove assumption about A|B representation
21444         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21445         is a valid integer if both A and B are.  Although this is true for
21446         all known practical hosts, the C standard doesn't guarantee it,
21447         and the code need not assume it.  Also, this change may work around
21448         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21450
21451 2011-05-20  Eric Blake  <eblake@redhat.com>
21452
21453         perror: work around FreeBSD bug
21454         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21455         is broken.  Move AC_LIBOBJ...
21456         * modules/perror (configure.ac): Here.
21457         * doc/posix-functions/perror.texi (perror): Document this.
21458         * tests/test-perror2.c (main): Enhance test.
21459
21460         test-perror: check for strerror interactions
21461         * tests/macros.h (STREQ): Add macro.
21462         * modules/perror-tests (Files): Add second test.
21463         * tests/test-perror2.c (main): New file.
21464         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21465
21466         test-perror: rewrite to use init script
21467         * modules/perror-tests (Files): Add init.sh.
21468         * tests/test-perror.sh: Use temporary directory.
21469
21470 2011-05-20  Jim Meyering  <meyering@redhat.com>
21471
21472         maint: replace misused "a" with "an"
21473         * doc/intprops.texi: "a integer"
21474         * doc/regex.texi: "a explanation"
21475         * lib/alignof.h: "a object"
21476         * lib/argmatch.h: "a explanation"
21477         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21478         * lib/stdint.in.h: "a integer"
21479         * lib/userspec.c: "a owner"
21480         * doc/gnulib.texi: Fix "a idea", and reword.
21481
21482 2011-05-19  Jim Meyering  <meyering@redhat.com>
21483
21484         maint: correct misuse of "a" and "an"
21485         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21486         * lib/argp-help.c: "an docum...": s/an/a/
21487         * lib/argp-parse.c: "An vector": s/An/A/
21488         * lib/execute.c: "an native": s/an/a/
21489         * lib/spawn-pipe.c: Likewise.
21490         * lib/gc.h: "an Gc_rc": s/an/a/
21491         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21492         * lib/fts.c: "an stat.st_dev": s/an/a/
21493
21494 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21495
21496         intprops-tests: work around HP-UX 11.23 cc bug with constants
21497         * tests/test-intprops.c (VERIFY): New macro.
21498         (main): Use it, instead of verify, to work around the compiler bug; see
21499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21500
21501         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21502         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21503         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21504         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21505         (_GL_REMAINDER_OVERFLOW): Use it.
21506
21507         intprops-tests: revert unsigned part of previous change
21508         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21509         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21510         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21512
21513 2011-05-19  Bruno Haible  <bruno@clisp.org>
21514
21515         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21516         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21517         strerror_r() returned without filling the buffer.
21518         Reported by Eric Blake.
21519
21520 2011-05-19  Eric Blake  <eblake@redhat.com>
21521
21522         strerror_r: guarantee unchanged errno
21523         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21524         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21525         failure.
21526         * tests/test-strerror_r.c (main): Enhance test.
21527
21528 2011-05-19  Bruno Haible  <bruno@clisp.org>
21529
21530         strerror_r: Reorder #if blocks.
21531         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21532         for consistency with the previous commit.
21533
21534 2011-05-19  Bruno Haible  <bruno@clisp.org>
21535
21536         perror: Avoid clobbering the strerror buffer when possible.
21537         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21538         * lib/strerror.c: Include it.
21539         * modules/strerror (Files): Add lib/strerror-impl.h.
21540         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21541         (my_strerror): New function, defined through lib/strerror-impl.h.
21542         (perror): Use it instead of strerror.
21543         * modules/perror (Files): Add lib/strerror-impl.h.
21544         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21545
21546 2011-05-19  Eric Blake  <eblake@redhat.com>
21547
21548         strerror_r: fix on newer cygwin
21549         * lib/strerror_r.c (strerror_r): Cygwin now has
21550         __xpg_strerror_r, use it.
21551
21552 2011-05-19  Bruno Haible  <bruno@clisp.org>
21553
21554         strerror_r: Avoid clobbering the strerror buffer when possible.
21555         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21556         (sys_nerr, sys_errlist): New declarations.
21557         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21558         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21559         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21560
21561 2011-05-19  Bruno Haible  <bruno@clisp.org>
21562
21563         strerror_r: Fix test failure on mingw.
21564         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21565         EXTEND_STRERROR_R.
21566         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21567         macros from errno.in.h instead.
21568
21569 2011-05-19  Eric Blake  <eblake@redhat.com>
21570
21571         strerror: relax test for Solaris
21572         * tests/test-strerror.c (main): Permit Solaris behavior.
21573         * tests/test-strerror_r.c (main): Likewise.
21574
21575         strerror: enforce POSIX ruling on strerror(0)
21576         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21577         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21578         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21579         * doc/posix-functions/strerror.texi (strerror): Document it.
21580         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21581         * tests/test-strerror.c (main): Strengthen test.
21582         * tests/test-strerror_r.c (main): Likewise.
21583
21584 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21585
21586         intprop-tests: port to older and more-pedantic compilers
21587         * modules/intprops-tests (Files): Add tests/macros.h.
21588         * tests/test-intprops.c: Include macros.h.
21589         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21590         it's no longer documented to expand to an integer constant expression.
21591         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21592         argument is floating point, as it's no longer documented to expand
21593         to an integer constant expression in that case.
21594         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21595         compiler bugs reported by Bruno Haible.  See
21596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21597         (U0, U1): New constants, to work around the same bugs.  Also,
21598         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21599
21600         intprops: work around C compiler bugs
21601         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21602         bug in Sun C 5.11 2010/08/13 and other compilers; see
21603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21604
21605         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21606         * doc/intprops.texi (Integer Type Determination): Fix
21607         documentation for TYPE_IS_INTEGER: it returns an constant
21608         expression, not an integer constant expression.  Fix doc for
21609         TYPE_SIGNED: it returns an integer constant expression only if its
21610         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21611         hardly worth documented that way....)
21612
21613 2011-05-18  Bruno Haible  <bruno@clisp.org>
21614
21615         strerror_r: Avoid clobbering the strerror buffer when possible.
21616         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21617         Handle gnulib defined errno values here. When strerror() returns NULL
21618         or an empty string, return EINVAL.
21619         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21620         gnulib defined errno values here.
21621         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21622
21623 2011-05-18  Eric Blake  <eblake@redhat.com>
21624
21625         fnmatch: avoid compiler warning
21626         * lib/fnmatch_loop.c (FCT): Use correct type.
21627         Reported by Matthias Bolte.
21628
21629 2011-05-13  Jim Meyering  <meyering@redhat.com>
21630
21631         maint.mk: three new prohibit_<HDR>_without_use rules
21632         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21633         (sc_prohibit_stdio-safer_without_use): Likewise.
21634         (sc_prohibit_xfreopen_without_use): Likewise.
21635
21636 2011-05-17  Jim Meyering  <meyering@redhat.com>
21637
21638         announce-gen: fail if the NEWS delta is empty
21639         If there's nothing noteworthy in NEWS, then either you forgot
21640         or you shouldn't be releasing.
21641         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21642
21643 2011-05-17  Pádraig Brady <P@draigBrady.com>
21644
21645         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21646         reserved symbols starting with double underscore from the check.
21647
21648 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21649
21650         intprops: add doc
21651         * doc/intprops.texi: New file, documenting intprops.
21652         * doc/gnulib.texi (Particular Modules): Include it.
21653
21654         verify: add doc to gnulib manual and fix example
21655         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21656         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21657         (Compile-time Assertions): Fix example so it can't overflow.
21658
21659 2011-05-17  Jim Meyering  <meyering@redhat.com>
21660
21661         warnings.m4: don't usurp save_CPPFLAGS variable name
21662         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21663
21664         doc: fix typo
21665         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21666
21667 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21668             Bruno Haible  <bruno@clisp.org>
21669
21670         doc: Tweak recent change.
21671         * README (Portability guidelines): Tweak new text.
21672         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21673         Interix 6.1.
21674
21675 2011-05-16  Eric Blake  <eblake@redhat.com>
21676
21677         inttypes: avoid autoconf warning
21678         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21679         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21680
21681 2011-05-16  Sam Steingold <sds@gnu.org>
21682         and Eric Blake  <eblake@redhat.com>
21683
21684         vc-list-files: accept multiple directory operands
21685         * build-aux/vc-list-files: Iterate over all remaining operands.
21686
21687 2011-05-16  Bruno Haible  <bruno@clisp.org>
21688
21689         Fix confusion regarding deprecated modules.
21690         * modules/calloc (Status, Notice): Mark module as deprecated, not
21691         obsolete.
21692         * modules/fnmatch-posix (Status, Notice): Likewise.
21693         * modules/getdate (Status, Notice): Likewise.
21694         * modules/getopt (Status, Notice): Likewise.
21695         * modules/malloc (Status, Notice): Likewise.
21696         * modules/pipe (Status, Notice): Likewise.
21697         * modules/realloc (Status, Notice): Likewise.
21698         * modules/rename-dest-slash (Status, Notice): Likewise.
21699         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21700         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21701         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21702         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21703         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21704
21705 2011-05-16  Bruno Haible  <bruno@clisp.org>
21706
21707         doc: List the target platforms.
21708         * doc/gnulib-intro.texi (Target Platforms): New section.
21709         * doc/gnulib.texi (Introduction): Update menu.
21710         * README (Portability guidelines): Refer to the new section. Update
21711         statement about oldest supported environment. Remove rationale why
21712         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21713         unportable C89 function.
21714         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21715         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21716
21717 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21718
21719         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21720
21721 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21722
21723         intprops-tests: new module
21724         * modules/intprops-tests, tests/test-intprops.c: New files.
21725
21726         intprops: add safe, portable integer overflow checking
21727         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21728         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21729         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21730         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21731         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21732         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21733         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21734         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21735         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21736         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21737         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21738
21739 2011-05-12  James Youngman  <jay@gnu.org>
21740
21741         Add a test for glibc's Bugzilla bug #12378.
21742         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21743         doesn't allow the literal matching of a lone "[" (which is
21744         required by POSIX).
21745         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21746
21747 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21748
21749         Sync glibc change fixing Bugzilla bug #12378.
21750         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21751         beginning and fall back to matching as normal character if the
21752         string ends before the matching ']' is found.  This is what POSIX
21753         requires.
21754
21755 2011-05-13  Eric Blake  <eblake@redhat.com>
21756
21757         getcwd-lgpl: relax test for FreeBSD
21758         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21759         issue.
21760         * tests/test-getcwd-lgpl.c (main): Relax test.
21761         Reported by Matthias Bolte.
21762
21763 2011-05-11  Eric Blake  <eblake@redhat.com>
21764
21765         test-fflush: silence compiler warning
21766         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21767
21768 2011-05-11  Bruno Haible  <bruno@clisp.org>
21769
21770         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21771         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21772         * modules/canonicalize (Depends-on): Add 'nocrash'.
21773         * modules/canonicalize-lgpl (Depends-on): Likewise.
21774         * doc/posix-functions/realpath.texi: Update platforms list.
21775         Reported by Ryan Schmidt <ryandesign@macports.org>.
21776
21777 2011-05-11  Bruno Haible  <bruno@clisp.org>
21778
21779         group-member: Declare function in <unistd.h>.
21780         * lib/unistd.in.h (group_member): New declaration.
21781         * lib/group-member.h: Remove file.
21782         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21783         * tests/test-unistd-c++.cc: Check signature of group_member.
21784         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21785         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21786         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21787         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21788         HAVE_GROUP_MEMBER.
21789         * modules/group-member (Files): Remove lib/group-member.h.
21790         (Depends-on): Add unistd. Specify conditions.
21791         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21792         (Include): Change to <unistd.h>.
21793         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21794         HAVE_GROUP_MEMBER.
21795         * NEWS: Mention the change.
21796         * lib/euidaccess.c: Don't include group-member.h.
21797
21798 2011-05-11  Bruno Haible  <bruno@clisp.org>
21799
21800         group-member: Document module.
21801         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21802         module.
21803
21804 2011-05-11  Bruno Haible  <bruno@clisp.org>
21805
21806         fclose: Fix mistake earlier today.
21807         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21808
21809 2011-05-11  Eric Blake  <eblake@redhat.com>
21810
21811         fclose: preserve fflush errors
21812         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21813         Reported by Jim Meyering.
21814
21815         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21816         * build-aux/bootstrap (check_versions): When no specific version
21817         is required, merely check that the app produces an exit status
21818         that indicates its existence.
21819
21820         maint.mk: drop redundant check
21821         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21822         the same but better.
21823
21824 2011-05-11  Bruno Haible  <bruno@clisp.org>
21825
21826         fclose: Fix possible link error.
21827         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21828         unregister_shadow_fd. Improve comments.
21829         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21830         Eric Blake.
21831
21832 2011-05-11  Jim Meyering  <meyering@redhat.com>
21833
21834         maint.mk: improve "can not" detection and generalize rule name
21835         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21836         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21837         Use the same technique as in sc_prohibit_doubled_word, so that
21838         we recognize "can not" also when the words are separated by a newline.
21839         Suggested by Eric Blake.
21840         (perl_filename_lineno_text_): Define.  Factored out of...
21841         (prohibit_doubled_word_): ...here.  Use the new definition.
21842         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21843         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21844         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21845
21846 2011-05-10  Eric Blake  <eblake@redhat.com>
21847
21848         fclose: avoid double close race when possible
21849         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21850         all but WINDOWS_SOCKETS.
21851
21852 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21853
21854         openat: correct new comment
21855         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21856
21857 2011-05-10  Jim Meyering  <meyering@redhat.com>
21858
21859         openat: add comments
21860         * lib/openat-proc.c (openat_proc_name): Add comments,
21861         mostly from Eric Blake.
21862
21863 2011-05-09  Eric Blake  <eblake@redhat.com>
21864
21865         openat: reduce syscalls in first probe of /proc
21866         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21867         be a directory.  Simplify the probe for .. bugs.
21868         * modules/openat (Depends-on): Drop same-inode.
21869         Reported by Bastien ROUCARIES.
21870
21871 2011-05-09  Jim Meyering  <meyering@redhat.com>
21872
21873         maint.mk: change semantics/name of tight_scope variables
21874         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21875         Rename variables to align with semantics that make them more useful.
21876
21877         maint.mk: tweak new rule's name not to impinge
21878         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21879         (sc_tight_scope): Use new rule name rather than $@-0.
21880
21881         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21882         * top/maint.mk (sc_tight_scope): New rule.
21883         (sc_tight_scope-0): New rule, ifdef'd out.
21884         (_gl_TS_dir): Default.
21885         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21886         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21887
21888 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21889
21890         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21891         Haible <bruno@clisp.org>.
21892
21893 2011-05-08  Bruno Haible  <bruno@clisp.org>
21894
21895         Comments.
21896         * m4/isnanf.m4: Add comment.
21897         * m4/isnanl.m4: Likewise.
21898
21899 2011-05-08  Bruno Haible  <bruno@clisp.org>
21900
21901         glob: Remove obsolete macro.
21902         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21903
21904 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21905
21906         intprops: Sun C 5.11 supports __typeof__
21907         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21908         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21909         which is new.
21910         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21911
21912         intprops: switch to usual gnulib indenting and naming
21913         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21914         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21915
21916         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21917
21918 2011-05-08  Jim Meyering  <meyering@redhat.com>
21919
21920         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21921         * top/maint.mk (release-prep): Use make's --no-print-directory
21922         option when generating the announcement.  This eliminates the
21923         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21924         generated announcement template.
21925
21926 2011-05-08  Bruno Haible  <bruno@clisp.org>
21927
21928         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21929         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21930         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21931
21932 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21933
21934         ignore-value, verify: Omit include files from lib_SOURCES.
21935         * modules/ignore-value, modules/verify (Makefile.am):
21936         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21937         that leads Automake to duplicate use of am__objects_... variables
21938         in Makefile.in.  See
21939         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21940
21941 2011-05-07  Bruno Haible  <bruno@clisp.org>
21942
21943         fclose: Simplify autoconf macro.
21944         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21945         defined.
21946
21947 2011-05-07  Bruno Haible  <bruno@clisp.org>
21948
21949         canonicalize-lgpl: Fix autoconf macro ordering bug.
21950         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21951         gl_STDLIB_H_DEFAULTS.
21952
21953 2011-05-06  Eric Blake  <eblake@redhat.com>
21954
21955         maintainer-makefile: make sc_po_check easier to tune
21956         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21957         to probe for strings, such as an alternate location for gnulib.
21958
21959         fclose: guarantee behavior on seekable stdin
21960         * modules/fclose (Depends-on): Add fflush.
21961         * doc/posix-functions/fclose.texi (fclose): Document this.
21962         * tests/test-fclose.c (main): Make test for this unconditional.
21963
21964 2011-05-06  Bruno Haible  <bruno@clisp.org>
21965
21966         fflush, fpurge: Relicense under LGPLv2+.
21967         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21968         * modules/fpurge (License): Likewise.
21969         With permission from Eric Blake and Jim Meyering.
21970         Suggested by Eric Blake.
21971
21972 2011-05-06  Karl Berry  <karl@gnu.org>
21973
21974         * MODULES.html.sh (func_all_modules): remove exit.
21975
21976 2011-05-06  Jim Meyering  <meyering@redhat.com>
21977
21978         maint.mk: use info-gnu@ as the default only for a stable release
21979         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21980         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21981         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21982         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21983
21984 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21985
21986         assert-h: new module, which supports C1X-style static_assert
21987         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21988         * lib/verify.h: Revamp so that this can be copied into assert.h,
21989         while retaining the ability to use it standalone as before.
21990         Rename private identifiers so as not to encroach on the
21991         standard C namespace, since this is now used by assert.h.
21992         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21993         the old verify_true.
21994         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21995         the old verify_true.  Use _GL_VERIFY_TYPE.
21996         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21997         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21998         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21999         defined when this file is copied into the replacement assert.h.
22000         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
22001         and _Static_assert is not built in.
22002         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
22003         defined, and use the new macros mentioned above.
22004         * doc/posix-headers/assert.texi: Document this.
22005
22006 2011-05-05  Bruno Haible  <bruno@clisp.org>
22007
22008         fclose, fflush: Respect rules for use of AC_LIBOBJ.
22009         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
22010         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
22011         gl_REPLACE_FCLOSE here.
22012         * modules/fflush (Depends-on): Remove fclose.
22013         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
22014         combination with module 'fclose'.
22015
22016 2011-05-05  Bruno Haible  <bruno@clisp.org>
22017
22018         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
22019         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
22020         gl_FUNC_FFLUSH.
22021         (gl_FUNC_FFLUSH): Use it.
22022         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
22023         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
22024         gl_REPLACE_FSEEKO here.
22025
22026 2011-05-05  Bruno Haible  <bruno@clisp.org>
22027
22028         tzset: Relicense under LGPL.
22029         * modules/tzset (License): Change to LGPL.
22030         No agreement needed; it's a no-op.
22031
22032         strtoimax, strtoumax: Relicense under LGPL.
22033         * modules/strtoimax (License): Change to LGPL.
22034         * modules/strtoumax (License): Likewise.
22035         With permission from Jim Meyering, Paul Eggert:
22036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
22037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
22038
22039         getgroups: Relicense under LGPL.
22040         * modules/getgroups (License): Change to LGPL.
22041         With permission from Jim Meyering, Paul Eggert, Eric Blake:
22042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22045
22046         nanosleep: Relicense under LGPL.
22047         * modules/nanosleep (License): Change to LGPL.
22048         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
22049         Haible:
22050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22054
22055         futimens: Relicense under LGPL.
22056         * modules/futimens (License): Change to LGPL.
22057         With permission from Eric Blake:
22058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22059
22060         fflush: Relicense under LGPL.
22061         * modules/fflush (License): Change to LGPL.
22062         With permission from Eric Blake, Bruno Haible, Jim Meyering:
22063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
22066
22067         tmpfile: Relicense under LGPL.
22068         * modules/tmpfile (License): Change to LGPL.
22069         With permission from Ben Pfaff:
22070         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22071
22072         isfinite: Relicense under LGPL.
22073         * modules/isfinite (License): Change to LGPL.
22074         With permission from Ben Pfaff, Bruno Haible:
22075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22077
22078         acosl..tanl: Relicense under LGPL.
22079         * modules/acosl (License): Change to LGPL.
22080         * modules/asinl (License): Likewise.
22081         * modules/atanl (License): Likewise.
22082         * modules/cosl (License): Likewise.
22083         * modules/expl (License): Likewise.
22084         * modules/logl (License): Likewise.
22085         * modules/sinl (License): Likewise.
22086         * modules/sqrtl (License): Likewise.
22087         * modules/tanl (License): Likewise.
22088         Source code originally from glibc and Paolo Bonzini. Agreements:
22089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22091
22092 2011-05-05  Bruno Haible  <bruno@clisp.org>
22093
22094         signal: Define sighandler_t.
22095         * lib/signal.in.h (sighandler_t): New type.
22096         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22097         whether sighandler_t is defined.
22098         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22099         * modules/signal (Depends-on): Add extensions.
22100         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22101         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22102         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22103
22104 2011-05-05  Eric Blake  <eblake@redhat.com>
22105
22106         maint: remove useless REPLACE_*_H macros
22107         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22108         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22109         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22110         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22111         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22112         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22113         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22114         * m4/btowc.m4: Update callers.
22115         * m4/dirfd.m4: Likewise.
22116         * m4/duplocale.m4: Likewise.
22117         * m4/fchdir.m4: Likewise.
22118         * m4/fdopendir.m4: Likewise.
22119         * m4/inet_ntop.m4: Likewise.
22120         * m4/inet_pton.m4: Likewise.
22121         * m4/ioctl.m4: Likewise.
22122         * m4/mbrlen.m4: Likewise.
22123         * m4/mbrtowc.m4: Likewise.
22124         * m4/mbsinit.m4: Likewise.
22125         * m4/mbsnrtowcs.m4: Likewise.
22126         * m4/mbsrtowcs.m4: Likewise.
22127         * m4/poll.m4: Likewise.
22128         * m4/setlocale.m4: Likewise.
22129         * m4/wcrtomb.m4: Likewise.
22130         * m4/wcsnrtombs.m4: Likewise.
22131         * m4/wcsrtombs.m4: Likewise.
22132         * m4/wctob.m4: Likewise.
22133         * m4/wcwidth.m4: Likewise.
22134         * modules/posix_spawn: Likewise.
22135         * modules/posix_spawn_file_actions_addclose: Likewise.
22136         * modules/posix_spawn_file_actions_adddup2: Likewise.
22137         * modules/posix_spawn_file_actions_addopen: Likewise.
22138         * modules/posix_spawn_file_actions_destroy: Likewise.
22139         * modules/posix_spawn_file_actions_init: Likewise.
22140         * modules/posix_spawnattr_destroy: Likewise.
22141         * modules/posix_spawnattr_getflags: Likewise.
22142         * modules/posix_spawnattr_getpgroup: Likewise.
22143         * modules/posix_spawnattr_getschedparam: Likewise.
22144         * modules/posix_spawnattr_getschedpolicy: Likewise.
22145         * modules/posix_spawnattr_getsigdefault: Likewise.
22146         * modules/posix_spawnattr_getsigmask: Likewise.
22147         * modules/posix_spawnattr_init: Likewise.
22148         * modules/posix_spawnattr_setflags: Likewise.
22149         * modules/posix_spawnattr_setpgroup: Likewise.
22150         * modules/posix_spawnattr_setschedparam: Likewise.
22151         * modules/posix_spawnattr_setschedpolicy: Likewise.
22152         * modules/posix_spawnattr_setsigdefault: Likewise.
22153         * modules/posix_spawnattr_setsigmask: Likewise.
22154         * modules/posix_spawnp: Likewise.
22155
22156 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22157
22158         Add option to do-release-commit-and-tag to specify branch.
22159         * build-aux/do-release-commit-and-tag: Add --branch.
22160
22161 2011-05-03  Bruno Haible  <bruno@clisp.org>
22162
22163         Avoid unnecessary compilation units, through conditional dependencies.
22164         * modules/accept (Depends-on): Add conditions to the dependencies.
22165         * modules/acosl (Depends-on): Likewise.
22166         * modules/argz (Depends-on): Likewise.
22167         * modules/asinl (Depends-on): Likewise.
22168         * modules/atanl (Depends-on): Likewise.
22169         * modules/atoll (Depends-on): Likewise.
22170         * modules/bind (Depends-on): Likewise.
22171         * modules/btowc (Depends-on): Likewise.
22172         * modules/canonicalize-lgpl (Depends-on): Likewise.
22173         * modules/ceil (Depends-on): Likewise.
22174         * modules/ceilf (Depends-on): Likewise.
22175         * modules/ceill (Depends-on): Likewise.
22176         * modules/chdir-long (Depends-on): Likewise.
22177         * modules/chown (Depends-on): Likewise.
22178         * modules/close (Depends-on): Likewise.
22179         * modules/connect (Depends-on): Likewise.
22180         * modules/cosl (Depends-on): Likewise.
22181         * modules/dirfd (Depends-on): Likewise.
22182         * modules/dprintf (Depends-on): Likewise.
22183         * modules/dprintf-posix (Depends-on): Likewise.
22184         * modules/error (Depends-on): Likewise.
22185         * modules/euidaccess (Depends-on): Likewise.
22186         * modules/expl (Depends-on): Likewise.
22187         * modules/faccessat (Depends-on): Likewise.
22188         * modules/fchdir (Depends-on): Likewise.
22189         * modules/fclose (Depends-on): Likewise.
22190         * modules/fcntl (Depends-on): Likewise.
22191         * modules/fdopendir (Depends-on): Likewise.
22192         * modules/fflush (Depends-on): Likewise.
22193         * modules/floor (Depends-on): Likewise.
22194         * modules/floorf (Depends-on): Likewise.
22195         * modules/floorl (Depends-on): Likewise.
22196         * modules/fnmatch (Depends-on): Likewise.
22197         * modules/fopen (Depends-on): Likewise.
22198         * modules/fprintf-posix (Depends-on): Likewise.
22199         * modules/frexp (Depends-on): Likewise.
22200         * modules/frexp-nolibm (Depends-on): Likewise.
22201         * modules/frexpl (Depends-on): Likewise.
22202         * modules/frexpl-nolibm (Depends-on): Likewise.
22203         * modules/fseek (Depends-on): Likewise.
22204         * modules/fsusage (Depends-on): Likewise.
22205         * modules/ftell (Depends-on): Likewise.
22206         * modules/ftello (Depends-on): Likewise.
22207         * modules/futimens (Depends-on): Likewise.
22208         * modules/getcwd (Depends-on): Likewise.
22209         * modules/getcwd-lgpl (Depends-on): Likewise.
22210         * modules/getdelim (Depends-on): Likewise.
22211         * modules/getdomainname (Depends-on): Likewise.
22212         * modules/getgroups (Depends-on): Likewise.
22213         * modules/gethostname (Depends-on): Likewise.
22214         * modules/getline (Depends-on): Likewise.
22215         * modules/getlogin_r (Depends-on): Likewise.
22216         * modules/getopt-posix (Depends-on): Likewise.
22217         * modules/getpeername (Depends-on): Likewise.
22218         * modules/getsockname (Depends-on): Likewise.
22219         * modules/getsockopt (Depends-on): Likewise.
22220         * modules/getsubopt (Depends-on): Likewise.
22221         * modules/getusershell (Depends-on): Likewise.
22222         * modules/glob (Depends-on): Likewise.
22223         * modules/grantpt (Depends-on): Likewise.
22224         * modules/iconv_open (Depends-on): Likewise.
22225         * modules/iconv_open-utf (Depends-on): Likewise.
22226         * modules/inet_ntop (Depends-on): Likewise.
22227         * modules/inet_pton (Depends-on): Likewise.
22228         * modules/ioctl (Depends-on): Likewise.
22229         * modules/isapipe (Depends-on): Likewise.
22230         * modules/isfinite (Depends-on): Likewise.
22231         * modules/isinf (Depends-on): Likewise.
22232         * modules/lchown (Depends-on): Likewise.
22233         * modules/ldexpl (Depends-on): Likewise.
22234         * modules/link (Depends-on): Likewise.
22235         * modules/linkat (Depends-on): Likewise.
22236         * modules/listen (Depends-on): Likewise.
22237         * modules/logl (Depends-on): Likewise.
22238         * modules/lstat (Depends-on): Likewise.
22239         * modules/mbrlen (Depends-on): Likewise.
22240         * modules/mbrtowc (Depends-on): Likewise.
22241         * modules/mbsinit (Depends-on): Likewise.
22242         * modules/mbsnrtowcs (Depends-on): Likewise.
22243         * modules/mbsrtowcs (Depends-on): Likewise.
22244         * modules/mbtowc (Depends-on): Likewise.
22245         * modules/memcmp (Depends-on): Likewise.
22246         * modules/mkdir (Depends-on): Likewise.
22247         * modules/mkdtemp (Depends-on): Likewise.
22248         * modules/mkfifo (Depends-on): Likewise.
22249         * modules/mkfifoat (Depends-on): Likewise.
22250         * modules/mknod (Depends-on): Likewise.
22251         * modules/mkostemp (Depends-on): Likewise.
22252         * modules/mkostemps (Depends-on): Likewise.
22253         * modules/mkstemp (Depends-on): Likewise.
22254         * modules/mkstemps (Depends-on): Likewise.
22255         * modules/mktime (Depends-on): Likewise.
22256         * modules/nanosleep (Depends-on): Likewise.
22257         * modules/open (Depends-on): Likewise.
22258         * modules/openat (Depends-on): Likewise.
22259         * modules/perror (Depends-on): Likewise.
22260         * modules/poll (Depends-on): Likewise.
22261         * modules/popen (Depends-on): Likewise.
22262         * modules/posix_spawn (Depends-on): Likewise.
22263         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22264         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22265         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22266         * modules/posix_spawnp (Depends-on): Likewise.
22267         * modules/pread (Depends-on): Likewise.
22268         * modules/printf-posix (Depends-on): Likewise.
22269         * modules/ptsname (Depends-on): Likewise.
22270         * modules/putenv (Depends-on): Likewise.
22271         * modules/pwrite (Depends-on): Likewise.
22272         * modules/readline (Depends-on): Likewise.
22273         * modules/readlink (Depends-on): Likewise.
22274         * modules/readlinkat (Depends-on): Likewise.
22275         * modules/recv (Depends-on): Likewise.
22276         * modules/recvfrom (Depends-on): Likewise.
22277         * modules/regex (Depends-on): Likewise.
22278         * modules/remove (Depends-on): Likewise.
22279         * modules/rename (Depends-on): Likewise.
22280         * modules/renameat (Depends-on): Likewise.
22281         * modules/rmdir (Depends-on): Likewise.
22282         * modules/round (Depends-on): Likewise.
22283         * modules/roundf (Depends-on): Likewise.
22284         * modules/roundl (Depends-on): Likewise.
22285         * modules/rpmatch (Depends-on): Likewise.
22286         * modules/select (Depends-on): Likewise.
22287         * modules/send (Depends-on): Likewise.
22288         * modules/sendto (Depends-on): Likewise.
22289         * modules/setenv (Depends-on): Likewise.
22290         * modules/setlocale (Depends-on): Likewise.
22291         * modules/setsockopt (Depends-on): Likewise.
22292         * modules/shutdown (Depends-on): Likewise.
22293         * modules/sigaction (Depends-on): Likewise.
22294         * modules/signbit (Depends-on): Likewise.
22295         * modules/sigprocmask (Depends-on): Likewise.
22296         * modules/sinl (Depends-on): Likewise.
22297         * modules/sleep (Depends-on): Likewise.
22298         * modules/snprintf (Depends-on): Likewise.
22299         * modules/snprintf-posix (Depends-on): Likewise.
22300         * modules/socket (Depends-on): Likewise.
22301         * modules/sprintf-posix (Depends-on): Likewise.
22302         * modules/sqrtl (Depends-on): Likewise.
22303         * modules/stat (Depends-on): Likewise.
22304         * modules/strchrnul (Depends-on): Likewise.
22305         * modules/strdup-posix (Depends-on): Likewise.
22306         * modules/strerror (Depends-on): Likewise.
22307         * modules/strerror_r-posix (Depends-on): Likewise.
22308         * modules/strndup (Depends-on): Likewise.
22309         * modules/strnlen (Depends-on): Likewise.
22310         * modules/strptime (Depends-on): Likewise.
22311         * modules/strsep (Depends-on): Likewise.
22312         * modules/strsignal (Depends-on): Likewise.
22313         * modules/strstr-simple (Depends-on): Likewise.
22314         * modules/strtod (Depends-on): Likewise.
22315         * modules/strtoimax (Depends-on): Likewise.
22316         * modules/strtok_r (Depends-on): Likewise.
22317         * modules/strtoumax (Depends-on): Likewise.
22318         * modules/symlink (Depends-on): Likewise.
22319         * modules/symlinkat (Depends-on): Likewise.
22320         * modules/tanl (Depends-on): Likewise.
22321         * modules/tcgetsid (Depends-on): Likewise.
22322         * modules/tmpfile (Depends-on): Likewise.
22323         * modules/trunc (Depends-on): Likewise.
22324         * modules/truncf (Depends-on): Likewise.
22325         * modules/truncl (Depends-on): Likewise.
22326         * modules/uname (Depends-on): Likewise.
22327         * modules/unlink (Depends-on): Likewise.
22328         * modules/unlockpt (Depends-on): Likewise.
22329         * modules/unsetenv (Depends-on): Likewise.
22330         * modules/usleep (Depends-on): Likewise.
22331         * modules/utimensat (Depends-on): Likewise.
22332         * modules/vasprintf (Depends-on): Likewise.
22333         * modules/vdprintf (Depends-on): Likewise.
22334         * modules/vdprintf-posix (Depends-on): Likewise.
22335         * modules/vfprintf-posix (Depends-on): Likewise.
22336         * modules/vprintf-posix (Depends-on): Likewise.
22337         * modules/vsnprintf (Depends-on): Likewise.
22338         * modules/vsnprintf-posix (Depends-on): Likewise.
22339         * modules/vsprintf-posix (Depends-on): Likewise.
22340         * modules/wcrtomb (Depends-on): Likewise.
22341         * modules/wcscasecmp (Depends-on): Likewise.
22342         * modules/wcscspn (Depends-on): Likewise.
22343         * modules/wcsdup (Depends-on): Likewise.
22344         * modules/wcsncasecmp (Depends-on): Likewise.
22345         * modules/wcsnrtombs (Depends-on): Likewise.
22346         * modules/wcspbrk (Depends-on): Likewise.
22347         * modules/wcsrtombs (Depends-on): Likewise.
22348         * modules/wcsspn (Depends-on): Likewise.
22349         * modules/wcsstr (Depends-on): Likewise.
22350         * modules/wcstok (Depends-on): Likewise.
22351         * modules/wcswidth (Depends-on): Likewise.
22352         * modules/wctob (Depends-on): Likewise.
22353         * modules/wctomb (Depends-on): Likewise.
22354         * modules/wctype (Depends-on): Likewise.
22355         * modules/wcwidth (Depends-on): Likewise.
22356         * modules/write (Depends-on): Likewise.
22357
22358 2011-05-03  Bruno Haible  <bruno@clisp.org>
22359
22360         Support for conditional dependencies.
22361         * doc/gnulib.texi (Module description): Document the syntax of
22362         conditional dependencies.
22363         * gnulib-tool: New option --conditional-dependencies.
22364         (func_usage): Document it.
22365         (cond_dependencies): New variable.
22366         (func_get_automake_snippet_conditional,
22367         func_get_automake_snippet_unconditional): New functions, extracted from
22368         func_get_automake_snippet.
22369         (func_get_automake_snippet): Use them.
22370         (sed_first_32_chars): New variable.
22371         (func_module_shellfunc_name): New function.
22372         (func_module_shellvar_name): New function.
22373         (func_module_conditional_name): New function.
22374         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22375         func_cond_module_condition): New functions.
22376         (func_modules_transitive_closure): Add support for conditional
22377         dependencies.
22378         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22379         conditional automake snippet in an automake conditional.
22380         (func_emit_autoconf_snippets): Emit shell functions that contain the
22381         code for conditional modules.
22382         (func_import, func_create_testdir): Update specification.
22383
22384 2011-05-03  Eric Blake  <eblake@redhat.com>
22385
22386         test-getaddrinfo: report error information
22387         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22388
22389 2011-05-03  Jim Meyering  <meyering@redhat.com>
22390
22391         bootstrap: avoid build failure when $GZIP is set
22392         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22393         program name.  If defined at all, it is supposed to list gzip options.
22394         Reported by Alan Curry in http://debbugs.gnu.org/8609
22395
22396 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22397
22398         readme-release: new module with release instructions
22399         * modules/readme-release: New module.
22400         * top/README-release: New file, from coreutils, grep, diffutils.
22401         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22402
22403 2011-05-02  Eric Blake  <eblake@redhat.com>
22404
22405         fflush: also replace fclose when fixing fflush
22406         * modules/fflush (Depends-on): Add fclose.
22407         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22408         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22409         memstreams with no backing fd.
22410         * doc/posix-functions/fclose.texi (fclose): Document the use of
22411         fflush module to fix the bug.
22412         * tests/test-fclose.c (main): Relax test when fclose is used in
22413         isolation.
22414
22415         fclose: add some tests
22416         * modules/fclose-tests: New test module.
22417         * tests/test-fclose.c: New file.
22418         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22419
22420         fclose: reduced dependencies
22421         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22422         simpler lseek.
22423         * lib/fclose.c (rpl_fclose): Likewise.
22424         Reported by Simon Josefsson.
22425
22426         exit: drop remaining clients
22427         * modules/argmatch (Depends-on): Replace exit with stdlib.
22428         * modules/copy-file (Depends-on): Likewise.
22429         * modules/execute (Depends-on): Likewise.
22430         * modules/exitfail (Depends-on): Likewise.
22431         * modules/obstack (Depends-on): Likewise.
22432         * modules/pagealign_alloc (Depends-on): Likewise.
22433         * modules/pipe-filter-gi (Depends-on): Likewise.
22434         * modules/pipe-filter-ii (Depends-on): Likewise.
22435         * modules/savewd (Depends-on): Likewise.
22436         * modules/spawn-pipe (Depends-on): Likewise.
22437         * modules/wait-process (Depends-on): Likewise.
22438         * modules/xsetenv (Depends-on): Likewise.
22439         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22440         * modules/git-merge-changelog (Depends-on): Likewise.
22441         * modules/long-options (Depends-on): Likewise.
22442         * modules/pt_chown (Depends-on): Likewise.
22443         * modules/sysexits (Depends-on): Likewise.
22444
22445         freading: relax license from LGPLv3+ to LGPLv2+
22446         * modules/freading (License): Relax LGPL version.
22447
22448 2011-05-02  Bruno Haible  <bruno@clisp.org>
22449
22450         fchdir: Remove unused dependencies.
22451         * modules/fchdir (Depends-on): Remove include_next.
22452
22453 2011-05-02  Bruno Haible  <bruno@clisp.org>
22454
22455         gnulib-tool: Refactor.
22456         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22457         from func_emit_autoconf_snippets.
22458         (func_emit_autoconf_snippets): Use it.
22459
22460 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22461
22462         * NEWS: Document removal of 'exit'.
22463         * modules/exit: Remove file.
22464
22465 2011-05-01  Bruno Haible  <bruno@clisp.org>
22466
22467         Update DEPENDENCIES.
22468         * DEPENDENCIES (gettext): Recommend the newest release.
22469         Reported by Simon Josefsson.
22470
22471 2011-05-01  Bruno Haible  <bruno@clisp.org>
22472
22473         gnulib-tool: Reduce code duplication.
22474         * gnulib-tool (func_emit_autoconf_snippets): New function.
22475         (func_import, func_create_testdir): Use it.
22476
22477 2011-04-30  Eric Blake  <eblake@redhat.com>
22478
22479         fclose: don't fail on non-seekable input stream
22480         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22481         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22482         since fflush is allowed to fail in that case.
22483
22484 2011-04-30  Bruno Haible  <bruno@clisp.org>
22485
22486         dup3: cleanup
22487         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22488
22489 2011-04-30  Bruno Haible  <bruno@clisp.org>
22490
22491         netdb: Make it work in C++ mode.
22492         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22493         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22494         module.
22495         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22496         gl_MODULE_INDICATOR_FOR_TESTS.
22497         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22498         * modules/netdb-c++-tests: New file.
22499         * tests/test-netdb-c++.cc: New file.
22500
22501 2011-04-30  Bruno Haible  <bruno@clisp.org>
22502
22503         New modules 'vfscanf', 'vscanf'.
22504         * modules/vfscanf: New file.
22505         * modules/vscanf: New file.
22506         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22507         here.
22508         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22509         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22510
22511 2011-04-30  Bruno Haible  <bruno@clisp.org>
22512
22513         passfd: Add comments.
22514         * lib/passfd.c: Add comments about platforms.
22515
22516 2011-04-30  Bruno Haible  <bruno@clisp.org>
22517
22518         sys_uio: Make <sys/uio.h> self-contained.
22519         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22520         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22521
22522 2011-04-30  Bruno Haible  <bruno@clisp.org>
22523
22524         sys_socket: Ensure 'struct iovec' definition.
22525         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22526         <sys/socket.h>.
22527         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22528
22529 2011-04-30  Bruno Haible  <bruno@clisp.org>
22530
22531         sys_uio: Protect definition of 'struct iovec'.
22532         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22533         it as a C struct.
22534
22535 2011-04-30  Bruno Haible  <bruno@clisp.org>
22536
22537         manywarnings: fix indentation
22538         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22539
22540 2011-04-30  Pádraig Brady <P@draigBrady.com>
22541
22542         manywarnings: add -Wno-missing-field-initializers if needed.
22543         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22544         option if it's needed to allow initialization with { 0, }
22545
22546 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22547
22548         announce-gen: cosmetic improvement
22549         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22550
22551 2011-04-29  Jim Meyering  <meyering@redhat.com>
22552
22553         vc-list-files: indent with spaces, not TABs
22554         * build-aux/vc-list-files: Convert leading TABs to spaces,
22555         to match the style of most other files in gnulib.
22556
22557         announce-gen: indent with spaces, not TABs
22558         * build-aux/announce-gen: Convert all TABs to spaces, to match
22559         the style of most other files in gnulib.
22560
22561 2011-04-29  Eric Blake  <eblake@redhat.com>
22562
22563         quotearg: avoid uninitialized variable use
22564         * lib/quotearg.c (quoting_options_from_style): Initialize
22565         remaining fields, and ensure that custom styles are only used via
22566         quoting_options rather than quoting_style.
22567
22568 2011-04-29  Jim Meyering  <meyering@redhat.com>
22569
22570         maint.mk: remove unused VC-tag variable
22571         * top/maint.mk (VC-tag): Remove unused variable.
22572
22573 2011-04-29  Bruno Haible  <bruno@clisp.org>
22574
22575         netdb: fix gai_strerror replacements
22576         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22577         * modules/netdb: Substitute it.
22578
22579 2011-04-29  Jim Meyering  <meyering@redhat.com>
22580
22581         test-getcwd.c: avoid new set-but-not-used warning
22582         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22583         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22584         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22585         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22586
22587         test-hash.c: avoid a new shadowing warning
22588         * tests/test-hash.c (main): Don't shadow "dup".
22589
22590 2011-04-28  Eric Blake  <eblake@redhat.com>
22591
22592         getaddrinfo: fix gai_strerror signature
22593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22594         and work around mingw with UNICODE defined.
22595         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22596         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22597         * modules/netdb (Makefile.am): Substitute it.
22598         * lib/netdb.in.h (gai_strerror): Declare replacement.
22599         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22600         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22601         the fix.
22602
22603         getsockopt: avoid compiler warning
22604         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22605         Reported by Matthias Bolte.
22606
22607         tests: drop unused link dependency
22608         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22609         * modules/dirent-safer-tests (Makefile.am): Likewise.
22610         * modules/fdopendir-tests (Makefile.am): Likewise.
22611         * modules/mkfifoat-tests (Makefile.am): Likewise.
22612         * modules/openat-safer-tests (Makefile.am): Likewise.
22613         * modules/openat-tests (Makefile.am): Likewise.
22614         * modules/readlinkat-tests (Makefile.am): Likewise.
22615         * modules/symlinkat-tests (Makefile.am): Likewise.
22616         * modules/linkat-tests (Makefile.am): Likewise.
22617         (Depends-on): Switch to filenamecat-lgpl.
22618         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22619         LIBINTL.
22620         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22621         * tests/test-linkat.c (main): Don't require xalloc.
22622
22623         hash, mgetgroups: drop xalloc dependency
22624         * lib/hash.c (includes): Adjust includes.
22625         * lib/mgetgroups.c (includes): Likewise.
22626         (xgetgroups): Move...
22627         * lib/xgetgroups.c: ...to new file.
22628         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22629         * modules/xgetgroups: New file, split from...
22630         * modules/mgetgroups: ...here.
22631         (Depends-on): Add xalloc-oversized.
22632         * modules/hash (Depends-on): Likewise.
22633         * modules/hash-tests (Depends-on): Drop xalloc.
22634         (test_hash_LDADD): Drop unused library.
22635         * tests/test-hash.c (main): Break xalloc dependency.
22636         (includes): Drop unused include.
22637
22638         xalloc-oversized: new module
22639         * modules/xalloc-oversized: New module.
22640         * modules/xalloc (Depends-on): Add it.
22641         * lib/xalloc.h (xalloc_oversized): Move...
22642         * lib/xalloc-oversized.h: ...into new file.
22643
22644         utimecmp: drop dependency on xmalloc
22645         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22646         due to memory pressure.
22647         * modules/utimecmp (Depends-on): Drop xalloc.
22648
22649 2011-04-27  Eric Blake  <eblake@redhat.com>
22650
22651         getcwd: fix mingw bugs
22652         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22653         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22654         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22655
22656 2011-04-27  Bruno Haible  <bruno@clisp.org>
22657
22658         mkstemps: Ensure declaration on MacOS X 10.5.
22659         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22660         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22661         MacOS X.
22662
22663 2011-04-27  Bruno Haible  <bruno@clisp.org>
22664
22665         mkstemp: More documentation.
22666         * doc/posix-functions/mkstemp.texi: Document header file problem on
22667         MacOS X.
22668
22669 2011-04-27  Bruno Haible  <bruno@clisp.org>
22670
22671         mkstemp: Tweak configure message when cross-compiling.
22672         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22673         result as a guess.
22674
22675 2011-04-27  Bruno Haible  <bruno@clisp.org>
22676
22677         clean-temp: Clarify what it does.
22678         * lib/clean-temp.h: Add more comments.
22679         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22680         module.
22681         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22682         * doc/glibc-functions/mkstemps.texi: Likewise.
22683         * doc/glibc-functions/mkostemps.texi: Likewise.
22684
22685 2011-04-27  Eric Blake  <eblake@redhat.com>
22686
22687         fchdir: avoid extra chdir and fix test
22688         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22689         getcwd-lgpl.
22690         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22691         have to be canonical.
22692         (canonicalize_file_name): Drop unused macro.
22693         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22694
22695         filenamecat-lgpl: fix licence
22696         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22697         when it was first created.
22698
22699         linkat, renameat: add missing dependency
22700         * modules/linkat (Depends-on): Require getcwd-lgpl.
22701         * modules/renameat (Depends-on): Likewise.
22702
22703         tests: reduce dependencies
22704         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22705         * tests/test-renameat.c (main): Likewise.
22706         * modules/linkat-tests (Depends-on): Relax dependency.
22707         * modules/renameat-tests (Depends-on): Likewise.
22708         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22709         dependency explicit.
22710
22711         save-cwd: reduce default dependency
22712         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22713         * lib/save-cwd.c: Update comments.
22714         * NEWS: Document the semantic change.
22715
22716         getcwd: enhance tests
22717         * tests/test-getcwd-lgpl.c: New file, taken from...
22718         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22719         repeat long path stress tests from m4 probe.
22720         * modules/getcwd-lgpl-tests: New module.
22721         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22722         * m4/getcwd-abort-bug.m4: Update comment.
22723         * m4/getcwd-path-max.m4: Likewise.
22724
22725         getcwd-lgpl: new module
22726         * modules/getcwd-lgpl: New module.
22727         * lib/getcwd-lgpl.c: New file.
22728         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22729         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22730         * modules/getcwd (configure.ac): Set C witness.
22731         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22732
22733         getcwd: tweak comments
22734         * m4/getcwd-abort-bug.m4: Fix comments.
22735         * m4/getcwd-path-max.m4: Likewise.
22736         * m4/getcwd.m4: Likewise.
22737
22738 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22739         and Eric Blake  <eblake@redhat.com>
22740
22741         mkstemp: replace if system version uses wrong permissions
22742         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22743         read/write mode bits set in file created by mkstemp.
22744         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22745
22746 2011-04-27  Eric Blake  <eblake@redhat.com>
22747
22748         passfd: avoid compiler warning
22749         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22750         Reported by Laine Stump.
22751
22752 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22753
22754         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22755         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22756
22757 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22758         and Eric Blake  <eblake@redhat.com>
22759
22760         mkstemp: mention clean-temp module
22761         * lib/mkstemp.c: Add comment.
22762         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22763
22764 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22765
22766         inttypes: also provide default values for 32-bit tests
22767         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22768         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22769
22770 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22771
22772         strtoumax: remove dependency on strtoimax
22773         This is like the strtoull change of yesterday.
22774         * modules/strtoumax (Files): Add lib/strtoimax.c.
22775         (Depends-on): Remove strtoimax and add verify.
22776
22777         inttypes-incomplete: new module
22778         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22779         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22780         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22781         of gl_INTTYPES_H.
22782         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22783         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22784         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22785         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22786         * modules/strtoumax, modules/xstrtol (Depends-on):
22787         Depend on inttypes-incomplete, not inttypes.
22788         * modules/inttypes-incomplete: New module, containing the contents
22789         of the old modules/inttypes module, except that the Files: section
22790         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22791         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22792         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22793         (Depends-on): Depend only on inttypes-incomplete.
22794         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22795
22796         inttypes: omit now-redundant strtoimax and strtoumax work
22797         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22798         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22799
22800         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22801         This supports apps that need pointers to strtoimax and strtoumax,
22802         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22803         nonexistent functions.  See
22804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22805         et seq.
22806         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22807         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22808         a macro.
22809         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22810
22811 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22812
22813         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22814
22815 2011-04-25  Bruno Haible  <bruno@clisp.org>
22816
22817         strtol, strtoul: Mark modules as obsolete.
22818         * modules/strtol (Status, Notice): New sections.
22819         * modules/strtoul (Status, Notice): New sections.
22820
22821 2011-04-25  Bruno Haible  <bruno@clisp.org>
22822
22823         strtod: Remove check for strtod, unless supporting old platforms.
22824         * modules/strtod-obsolete: New file.
22825         * m4/strtod-obsolete.m4: New file.
22826         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22827         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22828         * modules/strtod (Depends-on): Add strtod-obsolete.
22829         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22830
22831 2011-04-25  Bruno Haible  <bruno@clisp.org>
22832
22833         strcase: Make module obsolete.
22834         * modules/strcase (Status, Notice): New sections.
22835
22836 2011-04-25  Bruno Haible  <bruno@clisp.org>
22837
22838         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22839         * modules/dup2-obsolete: New file.
22840         * m4/dup2-obsolete.m4: New file.
22841         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22842         gl_FUNC_DUP2_OBSOLETE is not also defined.
22843         * modules/dup2 (Depends-on): Add dup2-obsolete.
22844         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22845
22846 2011-04-25  Bruno Haible  <bruno@clisp.org>
22847
22848         strnlen: Avoid memchr related link error on old obsolete platforms.
22849         * modules/memchr-obsolete: New file.
22850         * m4/memchr-obsolete.m4: New file.
22851         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22852         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22853         * modules/memchr (Depends-on): Add memchr-obsolete.
22854         * modules/strnlen (Depends-on): Likewise.
22855         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22856
22857 2011-04-25  Jim Meyering  <meyering@redhat.com>
22858
22859         maint.mk: makefile_at_at_check extend and clean up
22860         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22861         in addition to */Makefile.am.
22862         Exempt legitimate uses of @VAR@ notation, e.g.,
22863         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22864         Remove obsolete coreutils-specific comment.
22865         Prompted by discussion here:
22866         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22867
22868 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22869
22870         strtoul: remove dependency on strtol
22871         This is so that 'configure' need not check for strtol merely because
22872         the application needs strtoul.
22873         * modules/strtoul (Files): Add lib/strtol.c.
22874         (Depends-on): Remove strtol.
22875
22876         strtoull: remove dependency on strtoul
22877         This is like the strtoll change.
22878         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22879         (Depends-on): Remove strtoul.
22880
22881         strtoll: remove dependency on strtol
22882         This is so that 'configure' need not check for strtol merely because
22883         the application needs strtoll.
22884         * modules/strtoll (Files): Add lib/strtol.c.
22885         (Depends-on): Remove strtol.
22886
22887 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22888
22889         inttypes: Move some configure check to module 'imaxdiv'.
22890         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22891         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22892         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22893
22894 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22895
22896         inttypes: Move some configure check to module 'imaxabs'.
22897         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22898         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22899         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22900
22901 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22902
22903         inttypes: Remove configure tests that are not needed since 2009-12-31.
22904         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22905         gl_cv_header_working_inttypes_h.
22906
22907 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22908
22909         * modules/strnlen (Depends-on): Remove memchr.
22910         The strnlen implementation doesn't need the memchr module's fixes; see
22911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22912
22913         strtol: remove dependency on wchar
22914         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22915         * modules/strtol (Depends-on): Remove wchar.
22916
22917 2011-04-21  Eric Blake  <eblake@redhat.com>
22918
22919         passfd: fix test regression on Linux
22920         * modules/passfd-tests (configure.ac): Correct socketpair check.
22921
22922         passfd: speed up configure and drop unused code
22923         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22924         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22925         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22926         Instead of probing at configure for unix_scm_rights_bsd44_way,
22927         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22928         check to a struct member probe.
22929         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22930         (sendfd, recvfd): Update preprocessor checks.
22931         * modules/passfd (Files): Reflect rename, and drop unused file.
22932         (Depends-on): Drop unused dependency.
22933
22934         passfd: allow compilation on mingw
22935         * modules/sys_socket (Depends-on): Add sys_uio.
22936         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22937         iovec and a minimal struct msghdr.
22938         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22939         * tests/test-sys_socket.c (main): Enhance test.
22940         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22941         guaranteed to provide what we need.
22942         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22943         * modules/passfd-tests (Depends-on): Add sys_wait.
22944         * tests/test-passfd.c (main): Skip test on mingw, for now.
22945         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22946         partial 'struct msghdr' implementation.
22947
22948         sys_uio: new module
22949         * modules/sys_uio: New module.
22950         * modules/sys_uio-tests: Likewise.
22951         * lib/sys_uio.in.h: New file.
22952         * m4/sys_uio_h.m4: Likewise.
22953         * tests/test-sys_uio.c: Likewise.
22954         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22955         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22956
22957 2011-04-20  Jim Meyering  <meyering@redhat.com>
22958
22959         useless-if-before-free: avoid false-positive
22960         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22961         disjunct so that it too requires a terminating ";".  Without that,
22962         this script would identify as useless one statement from gcc that
22963         was not:
22964           if (aligned_ptr)
22965             free (((void **) aligned_ptr) [-1]);
22966
22967 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22968
22969         doc: update users.txt.
22970         * users.txt: Add barcode.
22971
22972 2011-04-19  Bruno Haible  <bruno@clisp.org>
22973
22974         ioctl: Remove link dependency on native Windows.
22975         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22976         (gl_close_fn, gl_ioctl_fn): New types.
22977         (struct fd_hook): Renamed from struct close_hook. Change type of
22978         private_close_fn field. Add private_ioctl_fn field.
22979         (close_hook_fn): Add parameter for primary close method.
22980         (execute_close_hooks, execute_all_close_hooks): Likewise.
22981         (ioctl_hook_fn): New type.
22982         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22983         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22984         argument.
22985         (unregister_fd_hook): Renamed from unregister_close_hook.
22986         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22987         Don't include <unistd.h>.
22988         (close): Remove undef.
22989         (anchor): Update.
22990         (execute_close_hooks): Add argument for primary close method.
22991         (execute_all_close_hooks): Likewise.
22992         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22993         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22994         argument. Allow each argument to be NULL.
22995         (unregister_fd_hook): Renamed from unregister_close_hook.
22996         * lib/close.c (rpl_close): Pass 'close' function pointer to
22997         execute_all_close_hooks.
22998         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22999         (primary_ioctl): New function.
23000         (ioctl): Don't call ioctlsocket here. Instead, call
23001         execute_all_ioctl_hooks.
23002         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
23003         close method.
23004         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
23005         (fd_sockets_hook): Renamed from close_sockets_hook.
23006         (gl_sockets_startup, gl_sockets_cleanup): Update.
23007         * modules/fd-hook: Renamed from modules/close-hook. Update.
23008         * modules/close (Depends-on): Add fd-hook, remove close-hook.
23009         * modules/sockets (Depends-on): Likewise.
23010         * modules/ioctl (Depends-on): Add fd-hook.
23011         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
23012         GNULIB_SOCKET.
23013
23014 2011-04-19  Bruno Haible  <bruno@clisp.org>
23015
23016         Move the support of O_NONBLOCK in open() to the 'open' module.
23017         * modules/nonblocking (Depends-on): Remove 'open'.
23018         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
23019         gl_cv_have_open_O_NONBLOCK.
23020         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
23021         O_NONBLOCK support.
23022         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
23023
23024 2011-04-17  Bruno Haible  <bruno@clisp.org>
23025
23026         pipe2: Simplify code.
23027         * lib/pipe2.c (pipe2): Reduce code duplication.
23028
23029 2011-04-17  Bruno Haible  <bruno@clisp.org>
23030
23031         nonblocking: Add comment.
23032         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
23033
23034 2011-04-17  Bruno Haible  <bruno@clisp.org>
23035
23036         nonblocking: Add tests for sockets.
23037         * tests/test-nonblocking-socket.sh: New file.
23038         * tests/test-nonblocking-socket-main.c: New file.
23039         * tests/test-nonblocking-socket-child.c: New file.
23040         * tests/test-nonblocking-socket.h: New file.
23041         * tests/socket-server.h: New file.
23042         * tests/socket-client.h: New file.
23043         * modules/nonblocking-socket-tests: New file.
23044         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
23045
23046 2011-04-17  Bruno Haible  <bruno@clisp.org>
23047
23048         nonblocking: Add tests for pipes.
23049         * tests/test-nonblocking-pipe.sh: New file.
23050         * tests/test-nonblocking-pipe-main.c: New file.
23051         * tests/test-nonblocking-pipe-child.c: New file.
23052         * tests/test-nonblocking-pipe.h: New file.
23053         * tests/test-nonblocking-writer.h: New file.
23054         * tests/test-nonblocking-reader.h: New file.
23055         * tests/test-nonblocking-misc.h: New file.
23056         * modules/nonblocking-pipe-tests: New file.
23057         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
23058
23059 2011-04-16  Bruno Haible  <bruno@clisp.org>
23060
23061         gettext: Clarify the needed programmer actions.
23062         * modules/gettext (Notice): New field.
23063         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23064
23065 2011-04-16  Bruno Haible  <bruno@clisp.org>
23066
23067         strchrnul: Tweak last commit.
23068         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
23069         bug.
23070         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
23071         as in _GL_FUNCDECL_SYS.
23072         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
23073         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
23074
23075 2011-04-15  Eric Blake  <eblake@redhat.com>
23076
23077         strchrnul: work around cygwin bug
23078         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23079         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23081         * modules/string (Makefile.am): Substitute it.
23082         * lib/string.in.h (strchrnul): Use it.
23083
23084 2011-04-15  Bruno Haible  <bruno@clisp.org>
23085
23086         Don't require lib/stdio-write.c when only module 'stdio' is used.
23087         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23088         invocation.
23089         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23090
23091 2011-04-14  Bruno Haible  <bruno@clisp.org>
23092
23093         Support non-blocking pipe I/O in read() on native Windows.
23094         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23095         (read): New declaration.
23096         * lib/read.c: New file.
23097         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23098         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23099         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23100         vscanf): New declarations.
23101         * lib/stdio-read.c: New file.
23102         * m4/read.m4: New file.
23103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23104         REPLACE_READ.
23105         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23106         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23107         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23108         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23109         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23110         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23111         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23112         * modules/read: New file.
23113         * modules/nonblocking (Files): Add lib/stdio-read.c.
23114         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23115         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23116         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23117         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23118         * modules/pread (Depends-on): Add read.
23119         * modules/safe-read (Depends-on): Likewise.
23120         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23121         gets, scanf, vfscanf, vscanf): Verify signatures.
23122         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23123         problem with non-blocking pipes.
23124         * doc/posix-functions/fgetc.texi: Likewise.
23125         * doc/posix-functions/fgets.texi: Likewise.
23126         * doc/posix-functions/fread.texi: Likewise.
23127         * doc/posix-functions/fscanf.texi: Likewise.
23128         * doc/posix-functions/getc.texi: Likewise.
23129         * doc/posix-functions/getchar.texi: Likewise.
23130         * doc/posix-functions/gets.texi: Likewise.
23131         * doc/posix-functions/scanf.texi: Likewise.
23132         * doc/posix-functions/vfscanf.texi: Likewise.
23133         * doc/posix-functions/vscanf.texi: Likewise.
23134
23135 2011-04-14  Bruno Haible  <bruno@clisp.org>
23136
23137         Support non-blocking pipe I/O in write() on native Windows.
23138         * lib/write.c (rpl_write): Split a write request that failed merely
23139         because the byte count was larger than the pipe buffer's size.
23140         * doc/posix-functions/write.texi: Mention the problem with large byte
23141         counts.
23142
23143 2011-04-14  Bruno Haible  <bruno@clisp.org>
23144
23145         wchar: Ensure that wchar_t gets defined on uClibc.
23146         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23147         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23148
23149 2011-04-13  Bruno Haible  <bruno@clisp.org>
23150
23151         safe-write, full-read: Avoid unnecessary compilation units.
23152         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23153         (Depends-on): Remove safe-read. Add ssize_t.
23154         * modules/full-read (Files): Add lib/full-write.c.
23155         (Depends-on): Add full-write.
23156
23157 2011-04-13  Bruno Haible  <bruno@clisp.org>
23158
23159         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23160         * modules/pwrite (Depends-on): Add 'write'.
23161
23162 2011-04-13  Bruno Haible  <bruno@clisp.org>
23163
23164         Support non-blocking pipe I/O in write() on native Windows.
23165         * lib/unistd.in.h (write): Enable replacement also if
23166         GNULIB_UNISTD_H_NONBLOCKING is 1.
23167         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23168         (rpl_write): When failing to write on a non-blocking pipe, change
23169         errno from ENOSPC to EAGAIN.
23170         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23171         putchar, puts, vfprintf, vprintf): Enable replacement also if
23172         GNULIB_STDIO_H_NONBLOCKING is 1.
23173         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23174         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23175         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23176         CALL_WITH_SIGPIPE_EMULATION.
23177         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23178         * m4/nonblocking.m4: New file.
23179         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23180         for non-blocking I/O support.
23181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23182         GNULIB_UNISTD_H_NONBLOCKING.
23183         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23184         required for non-blocking I/O support.
23185         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23186         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23187         lib/stdio-write.c, m4/asm-underscore.m4.
23188         (Depends-on): Add stdio, unistd.
23189         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23190         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23191         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23192         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23193         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23194         problem with non-blocking pipes.
23195         * doc/posix-functions/fputc.texi: Likewise.
23196         * doc/posix-functions/fputs.texi: Likewise.
23197         * doc/posix-functions/fwrite.texi: Likewise.
23198         * doc/posix-functions/printf.texi: Likewise.
23199         * doc/posix-functions/putc.texi: Likewise.
23200         * doc/posix-functions/putchar.texi: Likewise.
23201         * doc/posix-functions/puts.texi: Likewise.
23202         * doc/posix-functions/vfprintf.texi: Likewise.
23203         * doc/posix-functions/vprintf.texi: Likewise.
23204         * doc/posix-functions/write.texi: Likewise.
23205
23206 2011-04-10  Jim Meyering  <meyering@redhat.com>
23207
23208         maint.mk: prohibit doubled words
23209         Detect them also when they're separated by a newline.
23210         There are 3 ways to customize it:
23211           - disable the test on a per file basis, as usual with rules using
23212             $(VC_LIST_EXCEPT)
23213           - replace the default doubled-word-selecting regexp (affects all files)
23214           - ignore a particular file-vs-doubled-word match
23215         I nearly used that last one to ignore the "is is" match in
23216         coreutils' NEWS file, since the text was "ls -is is ..."
23217         To do that, I would have added this line to cfg.mk:
23218           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23219         but it would have ignored any "is is" match in NEWS.
23220         Low probability, but still...
23221         Instead, I changed the text, slightly:
23222           -  ls -is is now consistent with ls -lis in ignoring values returned
23223           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23224         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23225         (prohibit_doubled_word_): Define.
23226         (sc_prohibit_doubled_word): New rule.
23227         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23228
23229 2011-04-10  Jim Meyering  <meyering@redhat.com>
23230
23231         maint: fix doubled-word typo in comment
23232         * m4/gethostname.m4: s/is is/it is/
23233         * m4/getdomainname.m4: Likewise.
23234
23235 2011-04-10  Jim Meyering  <meyering@redhat.com>
23236
23237         maint: remove doubled word: s/it it/it/
23238         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23239
23240 2011-04-10  Jim Meyering  <meyering@redhat.com>
23241
23242         maint.mk: remove useless semicolon and backslash
23243         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23244         semicolon and backslash.
23245
23246 2011-04-10  Bruno Haible  <bruno@clisp.org>
23247
23248         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23249         * modules/stdint-tests (Depends-on): Add wchar.
23250
23251 2011-04-10  Jim Meyering  <meyering@redhat.com>
23252
23253         maint: remove doubled words in comments, e.g., s/a a/a/
23254         * lib/strptime.c (day_of_the_week): s/the the/the/
23255         * tests/test-chown.h (test_chown): s/a a/a/
23256
23257         test-chown.h: correct a cast
23258         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23259         when the destination is a stat.st_gid.
23260
23261 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23262
23263         getaddrinfo: Fix test for sa_len member.
23264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23265         include <sys/types.h> before <sys/socket.h>.
23266
23267 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23268
23269         maint: change "can not" to "cannot"
23270         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23271         boundaries.
23272
23273 2011-04-09  Jim Meyering  <meyering@redhat.com>
23274
23275         maint: change "a a" to "a"
23276         * tests/test-lchown.h (test_lchown): s/a a/a/
23277
23278         maint.mk: prohibit \<the the\>
23279         * top/maint.mk (sc_prohibit_the_the): New rule.
23280
23281         maint: fix "the the" in comment
23282         * lib/count-one-bits.h: s/the the/the/
23283
23284         maint: change "can not" to "cannot"
23285         But do not change the occurrences in maintain.texi or in
23286         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23287         * doc/gnulib-tool.texi: s/can not/cannot/
23288         * doc/posix-functions/accept.texi (accept): Likewise.
23289         * doc/posix-functions/socket.texi (socket): Likewise.
23290         * lib/mbrtowc.c: Likewise.
23291
23292         maint.mk: prohibit use of "can not"
23293         * top/maint.mk (sc_prohibit_can_not): New rule.
23294         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23295
23296 2011-04-09  Bruno Haible  <bruno@clisp.org>
23297
23298         careadlinkat: Guard against misuse of careadlinkatcwd.
23299         * lib/careadlinkat.c: Include <stdlib.h>.
23300         (careadlinkatcwd): Check that the fd argument is as expected.
23301
23302 2011-04-09  Bruno Haible  <bruno@clisp.org>
23303
23304         careadlinkat: Use common coding style.
23305         * lib/careadlinkat.c: Move gnulib includes after system includes.
23306
23307 2011-04-09  Bruno Haible  <bruno@clisp.org>
23308
23309         careadlinkat: Clarify specification.
23310         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23311         (careadlinkatcwd): Add comment.
23312         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23313
23314 2011-04-09  Bruno Haible  <bruno@clisp.org>
23315
23316         areadlinkat: Avoid link error on many platforms.
23317         * modules/areadlinkat (Depends-on): Add areadlink.
23318
23319 2011-04-09  Bruno Haible  <bruno@clisp.org>
23320
23321         allocator, careadlinkat: Fix double-inclusion guard.
23322         * lib/allocator.h: Fix double-inclusion guard.
23323         * lib/careadlinkat.h: Likewise.
23324
23325 2011-04-09  Bruno Haible  <bruno@clisp.org>
23326
23327         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23328         * lib/relocwrapper.c: Update dependencies hierarchy.
23329         * build-aux/install-reloc: Update list of files to be compiled.
23330         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23331         lib/allocator.[hc].
23332
23333 2011-04-08  Eric Blake  <eblake@redhat.com>
23334
23335         strftime: silence gnulib-tool warning
23336         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23337
23338 2011-04-08  Bruno Haible  <bruno@clisp.org>
23339
23340         verify: Fix syntax error with GCC 4.6 in C++ mode.
23341         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23342         (HAVE_STATIC_ASSERT): New macro.
23343         (verify_true, verify): Use 'static_assert' if it is supported and
23344         '_Static_assert' is not supported.
23345
23346 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23347
23348         allocator: New module.
23349         * modules/allocator, lib/allocator.c: New files.
23350         * lib/allocator.h (stdlib_allocator): New decl.
23351         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23352         Remove.  Do not include <stdlib.h>.
23353         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23354         * modules/careadlinkat (Files): Remove lib/allocator.h.
23355         (Depends-on): Add allocator.
23356
23357         stdlib: let modules use system malloc, realloc
23358         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23359         if !_GL_USE_STDLIB_ALLOC.
23360         (malloc, realloc): Limit this change to a smaller scope.
23361
23362         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23363         (malloc, realloc): Don't #undef; no longer needed.
23364         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23365         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23366         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23367         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23368         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23369         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23370         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23371         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23372
23373         careadlinkat: rename members to avoid problem
23374         * lib/allocator.h (struct allocator): Rename members from
23375         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23376         and realloc are #define'd.  Reported by Eric Blake in
23377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23378         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23379
23380 2011-04-08  Eric Blake  <eblake@redhat.com>
23381
23382         nonblocking: reduce dependency
23383         * tests/test-nonblocking.c: Only test sockets when in use.
23384         * modules/nonblocking-tests (Depends-on): Drop socket.
23385         (Makefile.am): Link even if sockets are not present.
23386         * modules/pipe2-tests (Makefile.am): Likewise.
23387         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23388
23389         pipe2: fix O_NONBLOCK support on mingw
23390         * modules/pipe2 (Depends-on): Add nonblocking.
23391         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23392         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23393         * tests/test-nonblocking.c (main): Likewise.
23394         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23395
23396         fcntl-h: fix O_ACCMODE on cygwin
23397         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23398         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23399
23400         pipe-filter: drop O_NONBLOCK workarounds
23401         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23402         * modules/pipe-filter-ii (Depends-on): Likewise.
23403         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23404
23405         nonblocking: provide O_NONBLOCK for mingw
23406         * modules/nonblocking (Depends-on): Add open.
23407         (configure.ac): Set new witness macro.
23408         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23409         * modules/fcntl-h (Makefile.am): Substitute it.
23410         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23411         nonblocking module is in use.
23412         * lib/nonblocking.c: Adjust portability test.
23413         * lib/open.c (open): Don't let native open see gnulib flag.
23414         * tests/test-fcntl-h.c (main): Enhance test.
23415         * tests/test-open.h (test_open): Likewise.
23416         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23417
23418         careadlinkat: fix compilation error on mingw
23419         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23420         within struct allocator.
23421
23422 2011-04-06  Eric Blake  <eblake@redhat.com>
23423
23424         binary-io: relicense under LGPLv2+
23425         * modules/binary-io (License): Relax to LGPLv2+.
23426         Requested for libvirt, and required by pipe2.
23427
23428 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23429
23430         verify: use _Static_assert if available
23431         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23432         (verify_true, verify): Use it if available.  This generates better
23433         diagnostics with GCC 4.6.0 and later.
23434
23435 2011-04-05  Bruno Haible  <bruno@clisp.org>
23436
23437         Remove leftover generated .h files after config.status changed.
23438
23439         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23440         GL_GENERATE_ALLOCA_H.
23441         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23442         GL_GENERATE_ALLOCA_H evaluates to false.
23443
23444         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23445         GL_GENERATE_ARGZ_H.
23446         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23447         evaluates to false.
23448
23449         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23450         GL_GENERATE_BYTESWAP_H.
23451         * modules/byteswap (Makefile.am): Remove byteswap.h if
23452         GL_GENERATE_BYTESWAP_H evaluates to false.
23453
23454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23455         GL_GENERATE_ERRNO_H.
23456         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23457         evaluates to false.
23458
23459         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23460         GL_GENERATE_FLOAT_H.
23461         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23462         evaluates to false.
23463
23464         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23465         GL_GENERATE_FNMATCH_H.
23466         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23467         GL_GENERATE_FNMATCH_H evaluates to false.
23468
23469         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23470         GL_GENERATE_GLOB_H.
23471         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23472         evaluates to false.
23473
23474         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23475         automake conditional GL_GENERATE_ICONV_H.
23476         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23477         evaluates to false.
23478
23479         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23480         GL_GENERATE_NETINET_IN_H.
23481         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23482         GL_GENERATE_NETINET_IN_H evaluates to false.
23483
23484         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23485         conditional GL_GENERATE_PTHREAD_H.
23486         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23487         * modules/pthread (Makefile.am): Remove pthread.h if
23488         GL_GENERATE_PTHREAD_H evaluates to false.
23489
23490         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23491         GL_GENERATE_SCHED_H.
23492         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23493         evaluates to false.
23494
23495         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23496         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23497         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23498         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23499
23500         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23501         GL_GENERATE_STDARG_H.
23502         * modules/stdarg (Makefile.am): Remove stdarg.h if
23503         GL_GENERATE_STDARG_H evaluates to false.
23504
23505         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23506         GL_GENERATE_STDBOOL_H.
23507         * modules/stdbool (Makefile.am): Remove stdbool.h if
23508         GL_GENERATE_STDBOOL_H evaluates to false.
23509
23510         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23511         conditional GL_GENERATE_STDDEF_H.
23512         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23513         * modules/stddef (Makefile.am): Remove stddef.h if
23514         GL_GENERATE_STDDEF_H evaluates to false.
23515
23516         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23517         GL_GENERATE_STDINT_H.
23518         * modules/stdint (Makefile.am): Remove stdint.h if
23519         GL_GENERATE_STDINT_H evaluates to false.
23520
23521         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23522         GL_GENERATE_SYSEXITS_H.
23523         * modules/sysexits (Makefile.am): Remove sysexits.h if
23524         GL_GENERATE_SYSEXITS_H evaluates to false.
23525
23526         Reported by Karl Berry and Ralf Wildenhues.
23527
23528 2011-04-05  Bruno Haible  <bruno@clisp.org>
23529
23530         Ensure to rebuild generated .h files when config.status has changed.
23531         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23532         config.status.
23533         * modules/ctype (Makefile.am): Likewise.
23534         * modules/dirent (Makefile.am): Likewise.
23535         * modules/errno (Makefile.am): Likewise.
23536         * modules/fcntl-h (Makefile.am): Likewise.
23537         * modules/float (Makefile.am): Likewise.
23538         * modules/getopt-posix (Makefile.am): Likewise.
23539         * modules/glob (Makefile.am): Likewise.
23540         * modules/iconv-h (Makefile.am): Likewise.
23541         * modules/inttypes (Makefile.am): Likewise.
23542         * modules/langinfo (Makefile.am): Likewise.
23543         * modules/locale (Makefile.am): Likewise.
23544         * modules/math (Makefile.am): Likewise.
23545         * modules/netdb (Makefile.am): Likewise.
23546         * modules/netinet_in (Makefile.am): Likewise.
23547         * modules/poll-h (Makefile.am): Likewise.
23548         * modules/pthread (Makefile.am): Likewise.
23549         * modules/pty (Makefile.am): Likewise.
23550         * modules/sched (Makefile.am): Likewise.
23551         * modules/search (Makefile.am): Likewise.
23552         * modules/selinux-h (Makefile.am): Likewise.
23553         * modules/signal (Makefile.am): Likewise.
23554         * modules/spawn (Makefile.am): Likewise.
23555         * modules/stdarg (Makefile.am): Likewise.
23556         * modules/stdbool (Makefile.am): Likewise.
23557         * modules/stddef (Makefile.am): Likewise.
23558         * modules/stdint (Makefile.am): Likewise.
23559         * modules/stdio (Makefile.am): Likewise.
23560         * modules/stdlib (Makefile.am): Likewise.
23561         * modules/string (Makefile.am): Likewise.
23562         * modules/strings (Makefile.am): Likewise.
23563         * modules/sys_file (Makefile.am): Likewise.
23564         * modules/sys_ioctl (Makefile.am): Likewise.
23565         * modules/sys_select (Makefile.am): Likewise.
23566         * modules/sys_socket (Makefile.am): Likewise.
23567         * modules/sys_stat (Makefile.am): Likewise.
23568         * modules/sys_time (Makefile.am): Likewise.
23569         * modules/sys_times (Makefile.am): Likewise.
23570         * modules/sys_utsname (Makefile.am): Likewise.
23571         * modules/sys_wait (Makefile.am): Likewise.
23572         * modules/sysexits (Makefile.am): Likewise.
23573         * modules/termios (Makefile.am): Likewise.
23574         * modules/time (Makefile.am): Likewise.
23575         * modules/unistd (Makefile.am): Likewise.
23576         * modules/wchar (Makefile.am): Likewise.
23577         * modules/wctype-h (Makefile.am): Likewise.
23578         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23579
23580 2011-04-05  Bruno Haible  <bruno@clisp.org>
23581
23582         pipe2: Relicense under LGPLv2+.
23583         * modules/pipe2 (License): Change to LGPLv2+.
23584         Requested by Eric Blake, for libvirt.
23585
23586 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23587
23588         bootstrap: compute gnulib_extra_files after updating build_aux
23589         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23590         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23591
23592 2011-04-05  Eric Blake  <eblake@redhat.com>
23593
23594         bootstrap: preserve git whitelist item sorting
23595         * build-aux/bootstrap (sort_patterns): New function.
23596         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23597
23598 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23599
23600         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23601         sc_space_tab check.
23602
23603 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23604
23605         areadlink, areadlinkat: rewrite in terms of careadlinkat
23606         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23607         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23608         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23609         (malloc, realloc): Remove #undefs.
23610         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23611         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23612         readlink, ssize_t, stdint, unistd.
23613         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23614         areadlink, stdint.
23615
23616         careadlinkat: new module
23617         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23618         * modules/careadlinkat: New files, written by me with
23619         a review and feedback from Ben Pfaff in
23620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23621
23622 2011-04-01  Bruno Haible  <bruno@clisp.org>
23623
23624         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23625         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23626         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23627         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23628         Reported by Bruce Korb <bruce.korb@gmail.com>.
23629
23630 2011-04-01  Bruno Haible  <bruno@clisp.org>
23631
23632         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23633         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23634         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23635         * modules/wcpcpy (Depends-on): Add extensions.
23636         * modules/wcpncpy (Depends-on): Likewise.
23637         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23638         systems.
23639         * doc/posix-functions/wcpncpy.texi: Likewise.
23640         * doc/posix-functions/wcwidth.texi: Likewise.
23641
23642 2011-03-31  Eric Blake  <eblake@redhat.com>
23643
23644         nonblocking: fix mingw test failures
23645         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23646         non-blocking flag on regular file.
23647         (get_nonblocking_flag): Set errno on invalid fd.
23648         * tests/test-nonblocking.c (main): Avoid test failure on
23649         directories if fchdir is not active.
23650         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23651
23652 2011-03-31  Bruno Haible  <bruno@clisp.org>
23653
23654         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23655         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23656         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23657         Reported by Simon Josefsson <simon@josefsson.org>.
23658
23659 2011-03-31  Bruno Haible  <bruno@clisp.org>
23660         and Eric Blake  <eblake@redhat.com>
23661
23662         nonblocking: new module
23663         * modules/nonblocking: New module.
23664         * modules/nonblocking-tests: Likewise.
23665         * lib/nonblocking.h: New file.
23666         * lib/nonblocking.c: Likewise.
23667         * tests/test-nonblocking.c: New test.
23668         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23669
23670 2011-03-30  Bruno Haible  <bruno@clisp.org>
23671
23672         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23673         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23674         instead of 'printf' format for GCC >= 4.4.
23675         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23676         (fprintf, printf, vfprintf, vprintf): Declare with
23677         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23678         the system's vfprintf() function.
23679         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23680
23681 2011-03-30  Eric Blake  <eblake@redhat.com>
23682
23683         passfd: fix scoping bug
23684         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23685         before sendmsg/recvmsg.
23686
23687         passfd: standardize coding conventions
23688         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23689         can be learned at compile time.
23690         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23691         ifdefs.
23692         (sendfd, recvfd): Follow gnulib code conventions.
23693
23694         passfd: fix incorrect sendmsg arguments
23695         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23696         incorrect msg_controllen value.
23697         * modules/passfd-tests (Depends-on): Check for alarm.
23698         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23699         Reported by Bastien ROUCARIES.
23700
23701 2011-03-30  Bruno Haible  <bruno@clisp.org>
23702
23703         c-strcasestr: Relicense under LGPLv2+.
23704         * modules/c-strcasestr (License): Change to LGPLv2+.
23705         Requested by Eric Blake, for libvirt.
23706
23707 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23708
23709         * users.txt: Add libidn2.  Fix libtasn1 link.
23710
23711 2011-03-30  Jim Meyering  <meyering@redhat.com>
23712
23713         tests: readlink* ("",... fails with EINVAL on newer kernels
23714         readlink and readlinkat have typically failed with ENOENT for
23715         the invalid, empty file name,  "".  However, with the advent
23716         of linux-2.6.39, they fail with EINVAL.
23717         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23718         when operating on the empty file name.
23719         * tests/test-readlink.h (test_readlink): Likewise.
23720
23721 2011-03-29  Bruno Haible  <bruno@clisp.org>
23722
23723         Relicense some modules under LGPLv2+, for libidn2.
23724         * modules/array-mergesort (License): Change to LGPLv2+.
23725         * modules/c-strcaseeq (License): Likewise.
23726         * modules/striconveh (License): Likewise.
23727         * modules/striconveha (License): Likewise.
23728         * modules/uniconv/base (License): Likewise.
23729         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23730         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23731         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23732         * modules/unictype/base (License): Likewise.
23733         * modules/unictype/bidiclass-of (License): Likewise.
23734         * modules/unictype/category-M (License): Likewise.
23735         * modules/unictype/category-none (License): Likewise.
23736         * modules/unictype/category-of (License): Likewise.
23737         * modules/unictype/category-test (License): Likewise.
23738         * modules/unictype/category-test-withtable (License): Likewise.
23739         * modules/unictype/combining-class (License): Likewise.
23740         * modules/unictype/joiningtype-of (License): Likewise.
23741         * modules/unictype/scripts (License): Likewise.
23742         * modules/uninorm/base (License): Likewise.
23743         * modules/uninorm/canonical-decomposition (License): Likewise.
23744         * modules/uninorm/composition (License): Likewise.
23745         * modules/uninorm/decompose-internal (License): Likewise.
23746         * modules/uninorm/decomposition-table (License): Likewise.
23747         * modules/uninorm/nfc (License): Likewise.
23748         * modules/uninorm/nfd (License): Likewise.
23749         * modules/uninorm/u32-normalize (License): Likewise.
23750         * modules/unistr/base (License): Likewise.
23751         * modules/unistr/u32-cpy (License): Likewise.
23752         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23753         * modules/unistr/u32-to-u8 (License): Likewise.
23754         * modules/unistr/u32-uctomb (License): Likewise.
23755         * modules/unistr/u8-check (License): Likewise.
23756         * modules/unistr/u8-mblen (License): Likewise.
23757         * modules/unistr/u8-mbtouc (License): Likewise.
23758         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23759         * modules/unistr/u8-mbtoucr (License): Likewise.
23760         * modules/unistr/u8-prev (License): Likewise.
23761         * modules/unistr/u8-strlen (License): Likewise.
23762         * modules/unistr/u8-to-u32 (License): Likewise.
23763         * modules/unistr/u8-uctomb (License): Likewise.
23764         * modules/unitypes (License): Likewise.
23765         Requested by Simon Josefsson.
23766
23767 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23768
23769         lib-symbol-visibility: Add a notice.
23770         * modules/lib-symbol-visibility (Notice): New field.
23771
23772 2011-03-29  Bruno Haible  <bruno@clisp.org>
23773
23774         getaddrinfo: Doc fix.
23775         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23776         section "fixed in Gnulib".
23777
23778 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23779
23780         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23781         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23782
23783 2011-03-26  Bruno Haible  <bruno@clisp.org>
23784
23785         unictype/property-byname: Reduce the number of load-time relocations.
23786         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23787         (UC_PROPERTY_INDEX_*): New enumeration values.
23788         (uc_property_byname): Convert an index from the lookup table to an
23789         uc_property_t.
23790         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23791         values.
23792
23793 2011-03-26  Bruno Haible  <bruno@clisp.org>
23794
23795         unictype/property-byname: Allow omitted word separators and aliases.
23796         * lib/unictype/pr_byname.gperf: Add property names without word
23797         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23798         for 'space'.
23799
23800 2011-03-26  Bruno Haible  <bruno@clisp.org>
23801
23802         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23803         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23804         also hyphens to space.
23805         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23806         without spaces.
23807         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23808
23809 2011-03-26  Bruno Haible  <bruno@clisp.org>
23810
23811         unictype/joiningtype-byname: Recognize long names as well.
23812         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23813         a long name.
23814         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23815         unictype/joiningtype_byname.h.
23816         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23817         * lib/unictype/joiningtype_byname.gperf: New file.
23818         * modules/unictype/joiningtype-byname (Files): Add
23819         lib/unictype/joiningtype_byname.gperf.
23820         (Depends-on): Add gperf.
23821         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23822         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23823         long names.
23824
23825         Tests for module 'unictype/joiningtype-longname'.
23826         * modules/unictype/joiningtype-longname-tests: New file.
23827         * tests/unictype/test-joiningtype_longname.c: New file.
23828
23829         New module 'unictype/joiningtype-longname'.
23830         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23831         * lib/unictype/joiningtype_longname.c: New file.
23832         * modules/unictype/joiningtype-longname: New file.
23833         * modules/unictype/joiningtype-all (Depends-on): Add
23834         unictype/joiningtype-longname.
23835
23836 2011-03-26  Bruno Haible  <bruno@clisp.org>
23837
23838         unictype/bidiclass-byname: Recognize long names as well.
23839         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23840         name.
23841         * lib/unictype/bidi_byname.c: Include <string.h>,
23842         unictype/bidi_byname.h.
23843         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23844         * lib/unictype/bidi_byname.gperf: New file.
23845         * modules/unictype/bidiclass-byname (Files): Add
23846         lib/unictype/bidi_byname.gperf.
23847         (Depends-on): Add gperf.
23848         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23849         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23850         long names.
23851
23852         Tests for module 'unictype/bidiclass-longname'.
23853         * modules/unictype/bidiclass-longname-tests: New file.
23854         * tests/unictype/test-bidi_longname.c: New file.
23855
23856         New module 'unictype/bidiclass-longname'.
23857         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23858         * lib/unictype/bidi_longname.c: New file.
23859         * modules/unictype/bidiclass-longname: New file.
23860         * modules/unictype/bidiclass-all (Depends-on): Add
23861         unictype/bidiclass-longname.
23862
23863 2011-03-26  Bruno Haible  <bruno@clisp.org>
23864
23865         unictype/bidi*: Rename modules.
23866         * modules/unictype/bidiclass-all: Renamed from
23867         modules/unictype/bidicategory-all.
23868         * modules/unictype/bidiclass-name: Renamed from
23869         modules/unictype/bidiclass-name.
23870         (Description): Update.
23871         * modules/unictype/bidiclass-name-tests: Renamed from
23872         modules/unictype/bidicategory-name-tests.
23873         * modules/unictype/bidiclass-byname: Renamed from
23874         modules/unictype/bidicategory-byname.
23875         (Description): Update.
23876         * modules/unictype/bidiclass-byname-tests: Renamed from
23877         modules/unictype/bidicategory-byname-tests.
23878         * modules/unictype/bidiclass-of: Renamed from
23879         modules/unictype/bidicategory-of.
23880         (Description): Update.
23881         * modules/unictype/bidiclass-of-tests: Renamed from
23882         modules/unictype/bidicategory-of-tests.
23883         * modules/unictype/bidiclass-test: Renamed from
23884         modules/unictype/bidicategory-test.
23885         (Description): Update.
23886         * modules/unictype/bidiclass-test-tests: Renamed from
23887         modules/unictype/bidicategory-test-tests.
23888         * modules/unictype/bidicategory-all: New file, a simple redirection.
23889         * modules/unictype/bidicategory-name: Likewise.
23890         * modules/unictype/bidicategory-byname: Likewise.
23891         * modules/unictype/bidicategory-of: Likewise.
23892         * modules/unictype/bidicategory-test: Likewise.
23893         * modules/unictype/property-bidi-* (Dependencies): Update.
23894         * lib/unictype/bidi_*.c: Update comment.
23895
23896 2011-03-26  Bruno Haible  <bruno@clisp.org>
23897
23898         unictype/bidi*: Rename functions, part 2.
23899         * modules/unictype/bidicategory-name (configure.ac): Update required
23900         libunistring version.
23901         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23902
23903 2011-03-25  Bruno Haible  <bruno@clisp.org>
23904
23905         New module 'unictype/combining-class-all'.
23906         * modules/unictype/combining-class-all: New file.
23907
23908         Tests for module 'unictype/combining-class-byname'.
23909         * modules/unictype/combining-class-byname-tests: New file.
23910         * tests/unictype/test-combiningclass_byname.c: New file.
23911
23912         New module 'unictype/combining-class-byname'.
23913         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23914         * lib/unictype/combiningclass_byname.c: New file.
23915         * lib/unictype/combiningclass_byname.gperf: New file.
23916         * modules/unictype/combining-class-byname: New file.
23917
23918         Tests for module 'unictype/combining-class-longname'.
23919         * modules/unictype/combining-class-longname-tests: New file.
23920         * tests/unictype/test-combiningclass_longname.c: New file.
23921
23922         New module 'unictype/combining-class-longname'.
23923         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23924         * lib/unictype/combiningclass_longname.c: New file.
23925         * modules/unictype/combining-class-longname: New file.
23926
23927         Tests for module 'unictype/combining-class-name'.
23928         * modules/unictype/combining-class-name-tests: New file.
23929         * tests/unictype/test-combiningclass_name.c: New file.
23930
23931         New module 'unictype/combining-class-name'.
23932         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23933         * lib/unictype/combiningclass_name.c: New file.
23934         * modules/unictype/combining-class-name: New file.
23935
23936 2011-03-25  Bruno Haible  <bruno@clisp.org>
23937
23938         unictype/combining-class: Rename source files.
23939         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23940         of unictype/combining.h.
23941         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23942         Update.
23943         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23944         * modules/unictype/combining-class (Description): Fix.
23945         (Files, Makefile.am): Update.
23946         * tests/unictype/test-combiningclass.c: Renamed from
23947         tests/unictype/test-combining.c.
23948         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23949
23950 2011-03-25  Bruno Haible  <bruno@clisp.org>
23951
23952         unictype: Update list of canonical combining classes.
23953         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23954
23955 2011-03-25  Bruno Haible  <bruno@clisp.org>
23956
23957         unictype/category-byname: Recognize long names as well.
23958         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23959         a long name.
23960         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23961         unictype/categ_byname.h.
23962         (UC_CATEGORY_INDEX_*): New enumeration values.
23963         (uc_general_category_byname): Use uc_general_category_lookup and
23964         convert from index to value.
23965         * lib/unictype/categ_byname.gperf: New file.
23966         * modules/unictype/category-byname (Files): Add
23967         lib/unictype/categ_byname.gperf.
23968         (Depends-on): Add gperf.
23969         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23970         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23971         long names.
23972
23973         Tests for module 'unictype/category-longname'.
23974         * modules/unictype/category-longname-tests: New file.
23975         * tests/unictype/test-categ_longname.c: New file.
23976
23977         New module 'unictype/category-longname'.
23978         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23979         * lib/unictype/categ_longname.c: New file.
23980         * modules/unictype/category-longname: New file.
23981         * modules/unictype/category-all (Depends-on): Add it.
23982
23983 2011-03-25  Bruno Haible  <bruno@clisp.org>
23984
23985         Tests for module 'unictype/category-LC'.
23986         * modules/unictype/category-LC-tests: New file.
23987         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23988
23989         New module 'unictype/category-LC'.
23990         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23991         (UC_CATEGORY_LC): New declaration.
23992         (UC_CASED_LETTER): New macro.
23993         * lib/gen-uni-tables.c (is_category_LC): New function.
23994         (output_categories): Also handle category LC.
23995         (UC_CATEGORY_MASK_LC): New enumeration value.
23996         (general_category_byname): Also handle category LC.
23997         * lib/unictype/categ_LC.c: New file.
23998         * lib/unictype/categ_LC.h: New file, automatically generated.
23999         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
24000         category LC.
24001         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
24002         * modules/unictype/category-LC: New file.
24003         * modules/unictype/category-byname (Depends-on): Add
24004         unictype/category-LC.
24005         * modules/unictype/category-all (Depends-on): Likewise.
24006
24007 2011-03-25  Eric Blake  <eblake@redhat.com>
24008
24009         xmalloc: revert yesterday's regression
24010         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
24011         realloc's underlying behavior (allowing allocation of zero-size
24012         objects, especially if malloc-gnu is also in use).
24013
24014 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
24015
24016         maint.mk: add missing version to VC-tag
24017         * top/maint.mk: git tag was missing actual tag name; add it.
24018
24019         valgrind: do leak checking, and exit with code 1 on error (not 0)
24020         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
24021         to VALGRIND.
24022
24023 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
24024
24025         posix-modules: say what it does.
24026         * posix-modules: Add a line to the --help output saying what it does.
24027
24028 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24029
24030         xmalloc: Do not leak if underlying realloc is C99 compatible.
24031         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
24032         This avoids a leak on C99-based systems.  See
24033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
24034
24035 2011-03-24  Eric Blake  <eblake@redhat.com>
24036
24037         realloc: document portability problem
24038         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
24039         passing 0 size to realloc.
24040
24041 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
24042
24043         doc: update users.txt
24044         * users.txt: Add cvsps, tmpwatch
24045
24046 2011-03-23  Matt Rice  <ratmice@gmail.com>
24047
24048         doc: update users.txt
24049         * users.txt: Add gdb.
24050
24051 2011-03-23  Jim Meyering  <meyering@redhat.com>
24052
24053         doc: update users.txt
24054         Looking through matches up to the following URL (there are still
24055         several more pages), I found several projects that use gnulib:
24056         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
24057         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
24058         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
24059
24060 2011-03-22  Bruno Haible  <bruno@clisp.org>
24061
24062         unictype/bidi*: Rename functions.
24063         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
24064         uc_bidi_class, uc_is_bidi_class): New declarations.
24065         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
24066         uc_bidi_category_byname.
24067         (uc_bidi_category_byname): New function.
24068         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
24069         u_bidi_category_name.
24070         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
24071         (uc_bidi_category_name): New function.
24072         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
24073         uc_bidi_category.
24074         (uc_bidi_category): New function.
24075         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24076         uc_is_bidi_category. Invoke uc_bidi_class.
24077         (uc_is_bidi_category): New function.
24078         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24079         instead of uc_bidi_category_byname.
24080         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24081         instead of uc_bidi_category_name.
24082         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24083         uc_bidi_category.
24084         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24085         instead of uc_is_bidi_category.
24086
24087 2011-03-21  Bruno Haible  <bruno@clisp.org>
24088
24089         New module 'unictype/joininggroup-all'.
24090         * modules/unictype/joininggroup-all: New file.
24091
24092         Tests for module 'unictype/joininggroup-of'.
24093         * modules/unictype/joininggroup-of-tests: New file.
24094         * tests/unictype/test-joininggroup_of.c: New file.
24095         * tests/unictype/test-joininggroup_of.h: New file, automatically
24096         generated by gen-uni-tables.
24097
24098         New module 'unictype/joininggroup-of'.
24099         * modules/unictype/joininggroup-of: New file.
24100         * lib/unictype/joininggroup_of.c: New file.
24101         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24102         gen-uni-tables.
24103
24104         Tests for module 'unictype/joininggroup-byname'.
24105         * modules/unictype/joininggroup-byname-tests: New file.
24106         * tests/unictype/test-joininggroup_byname.c: New file.
24107
24108         New module 'unictype/joininggroup-byname'.
24109         * modules/unictype/joininggroup-byname: New file.
24110         * lib/unictype/joininggroup_byname.c: New file.
24111         * lib/unictype/joininggroup_byname.gperf: New file.
24112
24113         Tests for module 'unictype/joininggroup-name'.
24114         * modules/unictype/joininggroup-name-tests: New file.
24115         * tests/unictype/test-joininggroup_name.c: New file.
24116
24117         New module 'unictype/joininggroup-name'.
24118         * modules/unictype/joininggroup-name: New file.
24119         * lib/unictype/joininggroup_name.c: New file.
24120         * lib/unictype/joininggroup_name.h: New file.
24121
24122         New module 'unictype/joiningtype-all'.
24123         * modules/unictype/joiningtype-all: New file.
24124
24125         Tests for module 'unictype/joiningtype-of'.
24126         * modules/unictype/joiningtype-of-tests: New file.
24127         * tests/unictype/test-joiningtype_of.c: New file.
24128         * tests/unictype/test-joiningtype_of.h: New file, automatically
24129         generated by gen-uni-tables.
24130
24131         New module 'unictype/joiningtype-of'.
24132         * modules/unictype/joiningtype-of: New file.
24133         * lib/unictype/joiningtype_of.c: New file.
24134         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24135         gen-uni-tables.
24136
24137         Tests for module 'unictype/joiningtype-byname'.
24138         * modules/unictype/joiningtype-byname-tests: New file.
24139         * tests/unictype/test-joiningtype_byname.c: New file.
24140
24141         New module 'unictype/joiningtype-byname'.
24142         * modules/unictype/joiningtype-byname: New file.
24143         * lib/unictype/joiningtype_byname.c: New file.
24144
24145         Tests for module 'unictype/joiningtype-name'.
24146         * modules/unictype/joiningtype-name-tests: New file.
24147         * tests/unictype/test-joiningtype_name.c: New file.
24148
24149         New module 'unictype/joiningtype-name'.
24150         * modules/unictype/joiningtype-name: New file.
24151         * lib/unictype/joiningtype_name.c: New file.
24152
24153         unictype: Add support for Arabic shaping properties.
24154         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24155         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24156         declarations.
24157         (UC_JOINING_GROUP_*): New enumeration values.
24158         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24159         declarations.
24160         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24161         (unicode_joining_type): New variable.
24162         (UC_JOINING_GROUP_*): New enumeration values.
24163         (unicode_joining_group): New variable.
24164         (fill_arabicshaping, joining_type_as_c_identifier,
24165         output_joining_type_test, output_joining_type,
24166         joining_group_as_c_identifier, output_joining_group_test,
24167         output_joining_group): New functions.
24168         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24169         fill_arabicshaping and output_joining_type_test, output_joining_type,
24170         output_joining_group_test, output_joining_group.
24171         Reported by Simon Josefsson.
24172
24173 2011-03-21  Jim Meyering  <meyering@redhat.com>
24174
24175         strftime: fix a bug in yesterday's change
24176         * lib/strftime.c (add): Accommodate width's initial value of -1.
24177         Otherwise, nstrftime would copy uninitialized data into
24178         the result buffer.
24179
24180 2011-03-21  Jim Meyering  <meyering@redhat.com>
24181
24182         tests: add strftime-tests module
24183         * tests/test-strftime.c: New file.
24184         * modules/strftime-tests: New module.
24185
24186 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24187
24188         strftime: don't assume a byte count fits in 'int'
24189         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24190         found this problem by static analysis, using gcc -Wstrict-overflow
24191         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24192         on an integer overflow having undefined behavior, but it turns out
24193         that the argument is a size, which might not fit in 'int' anyway,
24194
24195 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24196
24197         stdio: don't require ignore_value around fwrite
24198
24199         This patch works around libc bug 11959
24200         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24201         Without this patch, applications must often write
24202         ignore_value (fwrite (...)) even though the ignore_value is
24203         not helpful here.  It's common to write many objects, using
24204         fwrite/printf/etc., and then use ferror to detect output error.
24205
24206         I considered making this patch optional, but decided against it,
24207         because libc is obviously being inconsistent here: there is no
24208         reason libc should insist that user code must inspect fwrite
24209         return's value without also insisting that it inspect printf's,
24210         putchar's, etc.  If user code wants to have a strict style where
24211         all these functions' values are checked (so that ferror need not
24212         be checked), we could add support for that style in a new gnulib
24213         module, but in the meantime it's better to be consistent and to
24214         support common usage.
24215
24216         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24217         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24218         that we are compiling in checking mode, and if not C++, and
24219         if not already wrapping fwrite for some other reason.
24220         (fwrite): #define to rpl_fwrite if the latter is defined.
24221
24222 2011-03-20  Bruno Haible  <bruno@clisp.org>
24223
24224         verror: Fix compilation error introduced on 2011-02-13.
24225         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24226         instead of __attribute__.
24227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24228
24229 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24230             Bruno Haible  <bruno@clisp.org>
24231
24232         socklen: do not depend on sys_socket
24233         While trying to modify Emacs to use gnulib's socklen module,
24234         I discovered a circular dependency: socklen depends on sys_socket
24235         and vice versa.  Emacs can use socklen, but it does not need
24236         sys_socket because it has its own substitute for sys/socket.h.
24237         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24238         gl_TYPE_SOCKLEN_T.
24239         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24240         gl_PREREQ_SYS_H_SOCKET.
24241         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24242         gl_PREREQ_SYS_H_SOCKET.
24243         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24244         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24245         * modules/socklen (Depends-on): Do not depend on sys_socket.
24246         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24247
24248 2011-03-20  Jim Meyering  <meyering@redhat.com>
24249
24250         maint.mk: sort file names *after* new transformation
24251         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24252         prefix would have led to an unwarranted failure in GNU parted.
24253         Sort after that transformation.
24254
24255 2011-03-19  Jim Meyering  <meyering@redhat.com>
24256
24257         maint.mk: fix po-file syntax-check rule
24258         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24259         Patch by Bruno Haible.
24260
24261 2011-03-19  Bruno Haible  <bruno@clisp.org>
24262
24263         socklen: Update comment.
24264         * m4/socklen.m4: Update comment about platforms.
24265
24266 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24267             Bruno Haible  <bruno@clisp.org>
24268
24269         inet_ntop, inet_pton: Simplify.
24270         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24271         documented to provide socklen_t and we already depend on sys_socket.
24272         * modules/inet_pton (Depends-on): Likewise.
24273         * lib/arpa_inet.in.h: Adjust comment.
24274
24275 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24276             Bruno Haible  <bruno@clisp.org>
24277
24278         netdb: Simplify.
24279         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24280         documented to provide socklen_t and we already depend on sys_socket.
24281         * lib/netdb.in.h: Adjust comment.
24282
24283 2011-03-19  Bruno Haible  <bruno@clisp.org>
24284
24285         sys_socket, netdb: Document problem with socklen_t.
24286         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24287         platforms.
24288         * doc/posix-headers/netdb.texi: Likewise.
24289
24290 2011-03-18  Eric Blake  <eblake@redhat.com>
24291
24292         maint.mk: let po check work in VPATH build
24293         * top/maint.mk (po_file): Allow cfg.mk override.
24294         (sc_po_check): Allow VPATH use.
24295         Reported by Jiri Denemark.
24296
24297 2011-03-16  Jim Meyering  <meyering@redhat.com>
24298
24299         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24300         Before, you would have had to create one .x-sc_ file per rule in order
24301         to exempt offending files.  Now, you may instead use a Make variable --
24302         usually defined in cfg.mk -- whose name identifies the affected rule.
24303         * top/maint.mk (_sc_excl): Define.
24304         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24305         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24306
24307 2011-03-13  Bruno Haible  <bruno@clisp.org>
24308
24309         ignore-value tests: Avoid warnings.
24310         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24311         empty for gcc < 3.4.
24312
24313 2011-03-13  Bruno Haible  <bruno@clisp.org>
24314
24315         passfd: Fix link error on Solaris.
24316         * modules/passfd (Description): Correct.
24317         (Depends-on): Add socketlib.
24318         (Link): New section.
24319         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24320
24321 2011-03-13  Bruno Haible  <bruno@clisp.org>
24322
24323         passfd: Fix link error on AIX 5.2.
24324         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24325
24326 2011-03-13  Bruno Haible  <bruno@clisp.org>
24327
24328         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24329         * lib/sys_socket.in.h: Include <stddef.h>.
24330         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24331         CMSG_FIRSTHDR. Remove unused variable.
24332
24333 2011-03-13  Bruno Haible  <bruno@clisp.org>
24334
24335         passfd: Fix compilation error on OpenBSD.
24336         * lib/passfd.c: Include <sys/uio.h>.
24337
24338 2011-03-13  Bruno Haible  <bruno@clisp.org>
24339
24340         passfd test: Fix warnings.
24341         * tests/test-passfd.c: Include <sys/wait.h>.
24342         (main): Fix typo.
24343
24344 2011-03-13  Bruno Haible  <bruno@clisp.org>
24345
24346         passfd module, part 4, tweaks.
24347         * tests/test-passfd.c: Reorder includes.
24348         (main): Fix perror and printf calls.
24349
24350 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24351
24352         passfd module, part 4.
24353         * modules/passfd-tests: New file.
24354         * tests/test-passfd.c: New file.
24355
24356 2011-03-13  Jim Meyering  <meyering@redhat.com>
24357
24358         Makefile: rely on GNU make; derive syntax-check rule names
24359         Rather than requiring that each sc_ rule be listed as a dependent
24360         of "check", use features of GNU make to derive the list.
24361         * Makefile (syntax-check-rules): Define.
24362         (check): Depend on the new variable, not the hard-coded list.
24363
24364 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24365             Bruno Haible  <bruno@clisp.org>
24366
24367         passfd module, part 3.
24368         * lib/passfd.h (recvfd): Add a flags argument.
24369         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24370         (recvfd): Add a flags argument.
24371         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24372         exists.
24373         * modules/passfd (Depends-on): Add cloexec.
24374         Suggested by Eric Blake.
24375
24376 2011-03-13  Bruno Haible  <bruno@clisp.org>
24377
24378         passfd module, part 2, tweaks.
24379         * modules/passfd (Files): Reorder.
24380         (Depends-on): Remove errno.
24381         (Include): Remove <sys/socket.h>, <sys/un.h>.
24382         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24383         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24384         specification header. Include <sys/socket.h> always. Don't include
24385         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24386         (sendfd): Clarify that it sets errno when it fails.
24387         (recvfd): Fix specification.
24388
24389 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24390
24391         passfd module, part 2.
24392         * modules/passfd: New file.
24393         * lib/passfd.h: New file.
24394         * lib/passfd.c: New file.
24395
24396 2011-03-12  Bruno Haible  <bruno@clisp.org>
24397
24398         wcswidth, mbswidth: Avoid integer overflow.
24399         * lib/wcswidth.c: Include <limits.h>.
24400         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24401         * lib/mbswidth.c: Include <limits.h>.
24402         (mbsnwidth): Avoid 'int' overflow.
24403         Reported by Jim Meyering.
24404
24405 2011-03-12  Bruno Haible  <bruno@clisp.org>
24406
24407         futimens, utimensat: Avoid endless recursion on Solaris 10.
24408         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24409         Solaris.
24410         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24411         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24412
24413 2011-03-11  Jim Meyering  <meyering@redhat.com>
24414
24415         maint.mk: relax a regexp to accommodate other formatting styles
24416         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24417         between "ngettext" and the following "(".
24418
24419 2011-03-11  Pádraig Brady <P@draigBrady.com>
24420
24421         maint.mk: suppress a false positive warning
24422         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24423         diagnostics are marked with ngettext.
24424
24425 2011-03-10  Eric Blake  <eblake@redhat.com>
24426
24427         wchar: add explicit dependencies, for Tru64
24428         * modules/mbmemcasecoll (Depends-on): Add wchar.
24429         * modules/mbtowc (Depends-on): Likewise.
24430         * modules/vasnprintf (Depends-on): Likewise.
24431         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24432         * modules/wctomb (Depends-on): Likewise.
24433         Reported by Peter O'Gorman.
24434
24435 2011-03-08  Bruno Haible  <bruno@clisp.org>
24436
24437         passfd module, part 1, tweaks.
24438         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24439         Improve indentation. Improve AC_MSG_CHECKING messages.
24440         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24441         gl_SOCKET_FAMILIES.
24442
24443 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24444
24445         passfd module, part 1.
24446         * m4/afunix.m4: New file.
24447         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24448         sockets.
24449
24450 2011-03-08  Bruno Haible  <bruno@clisp.org>
24451
24452         regex-quote: New API.
24453         * lib/regex-quote.h: Include <stdbool.h>.
24454         (struct regex_quote_spec): New type.
24455         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24456         New declarations.
24457         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24458         'const struct regex_quote_spec *' argument.
24459         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24460         (pcre_special): New constant.
24461         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24462         New functions.
24463         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24464         'const struct regex_quote_spec *' argument.
24465         * modules/regex-quote (Depends-on): Add stdbool.
24466         * tests/test-regex-quote.c (check): Update for new API. Add test for
24467         anchored results.
24468         * NEWS: Mention the API change.
24469         Reported by Reuben Thomas and Eric Blake.
24470
24471 2011-03-06  Bruno Haible  <bruno@clisp.org>
24472
24473         regex-quote: Fix creation of POSIX extended regular expressions.
24474         * lib/regex-quote.c (ere_special): Add grouping and alternation
24475         operators.
24476
24477 2011-03-05  Bruno Haible  <bruno@clisp.org>
24478
24479         doc: Improve doc regarding autopoint vs. gnulib.
24480         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24481         disable autopoint while running autoreconf.
24482         Suggested by Ralf Wildenhues.
24483
24484 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24485
24486         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24487         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24488
24489 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24490
24491         parse-duration: remove xalloc.h dependency
24492         * lib/parse-duration.c (parse_period): handle NULL return from
24493         strdup instead of calling xstrdup().
24494         * modules/parse-duration: remove "xalloc" dependency
24495
24496 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24497
24498         bootstrap: honor m4_base when running aclocal
24499         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24500
24501 2011-03-02  Jim Meyering  <meyering@redhat.com>
24502
24503         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24504         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24505         on request from Matt Booth.
24506
24507 2011-03-01  Eric Blake  <eblake@redhat.com>
24508
24509         test-link: work on Hurd
24510         * tests/test-link.h (test_link): Hurd rejects linking directories
24511         with EISDIR instead of the POSIX-mandated EPERM.
24512
24513 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24514
24515         stdio: simplify by moving files to printf-posix, sigpipe
24516         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24517         since this symbol is needed only if printf is replaced.
24518         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24519         Require gl_ASM_SYMBOL_PREFIX.
24520         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24521         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24522         (Depends-on): Add 'raise'.
24523         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24524         * modules/stdio (Files): Remove lib/stdio-write.c,
24525         m4/asm-underscore.m4.
24526         (Depends-on): Remove 'raise'.
24527
24528         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24529         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24530         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24531         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24532
24533 2011-02-28  Bruno Haible  <bruno@clisp.org>
24534
24535         localcharset: Assume ANSI C behaviour of free().
24536         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24537         calling free().
24538         Suggested by Simon Josefsson <simon@josefsson.org>.
24539
24540 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24541             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24542             Bruno Haible  <bruno@clisp.org>  (tiny change)
24543
24544         On Cygwin, use /proc file system instead of win32 API.
24545         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24546         Win32 file names.
24547         (DllMain): Simplify by removing Cygwin specific code.
24548         (find_shared_library_fullname): Use Linux specific implementation also
24549         for Cygwin.
24550         (get_shared_library_fullname): Update accordingly.
24551         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24552         Win32 file names.
24553         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24554         Cygwin specific code.
24555
24556 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24557             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24558
24559         Fix OpenMP flag detection for various Fortran compilers.
24560         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24561         OpenMP-conditional compilation construct, to force compile
24562         failure with missing OpenMP flag.
24563         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24564
24565 2011-02-25  Eric Blake  <eblake@redhat.com>
24566
24567         strstr: expand test coverage
24568         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24569         compilation.
24570         * tests/test-memmem.c (main): Duplicate tests.
24571         * tests/test-strcasestr.c (main): Likewise.
24572         * tests/test-c-strcasestr.c (main): Likewise.
24573
24574 2011-02-25  Jim Meyering  <meyering@redhat.com>
24575
24576         maint.mk: detect missing-NL-at-EOF, too
24577         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24578         it also detects when a file lacks a newline at EOF.
24579         (require_exactly_one_NL_at_EOF_): Renamed from
24580         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24581         since people may well have .x-sc_... file names tied to the
24582         existing name.  Suggested by Eric Blake.
24583
24584 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24585
24586         dirname: move m4/dos.m4 functionality into lib/dosname.h
24587
24588         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24589         extracts symbols from it, puts them into config.h; but it's much
24590         easier to use the symbols directly.  filename.h already does this,
24591         but it disagrees with dos.m4 in some respects.  This patch
24592         introduces a different include file dosname.h that packages up
24593         dos.m4, and then later we can work on merging filename.h and
24594         dosname.h.  Applications that need only the easy-to-configure
24595         symbols should consider including dosname.h rather than dirname.h.
24596         * NEWS: Mention incompatible changes.
24597         * m4/dos.m4: Remove.
24598         * lib/dosname.h, modules/dosname: New files.
24599         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24600         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24601         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24602         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24603         Include dosname.h, not dirname.h.
24604         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24605         Include dosname.h, for definitions of symbols like ISSLASH
24606         that used to be in config.h.
24607         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24608         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24609         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24610         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24611         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24612         * modules/rmdir (Files): Likewise.
24613         * modules/stat (Files): Likewise.
24614         * modules/unlink (Files): Likewise.
24615         * modules/dirname-lgpl (Depends-on): Add dosname.
24616         * modules/lstat (Depends-on): Likewise.
24617         * modules/openat (Depends-on): Likewise.
24618         * modules/rmdir (Depends-on): Likewise.
24619         * modules/savewd (Depends-on): Likewise.
24620         * modules/stat (Depends-on): Likewise.
24621         * modules/unlink (Depends-on): Likewise.
24622         * modules/openat (Depends-on): Remove dirname-lgpl.
24623         * modules/savewd (Depends-on): Likewise.
24624         * tests/test-dirname.c: Do not use removed symbols like
24625         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24626         the remaining symbols, e.g., ISSLASH ('\\').
24627
24628 2011-02-25  Eric Blake  <eblake@redhat.com>
24629
24630         strstr: revert patches that introduced bug and pessimization
24631         * lib/str-two-way.h: Add another reference.
24632         (two_way_short_needle, two_way_long_needle): Revert changes from
24633         2011-02-24; they pessimize search speed.
24634         (critical_factorization): Partially revert changes from
24635         2010-06-22; they violate the requirement that the left half of the
24636         needle be smaller than the period of the needle.
24637
24638 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24639
24640         filenamecat: remove unnecessary dependency on dirname-lgpl
24641         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24642         is no direct dependency, just an indirect one via filenamecat-lgpl.
24643
24644         remove: remove unnecessary use of m4/dos.m4
24645         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24646         * modules/remove (FILES): Remove m4/dos.m4.
24647
24648         * lib/openat-proc.c: Don't include dirname.h; not needed.
24649
24650         backupfile: remove unnecessary use of m4/dos.m4
24651         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24652         of its symbols are used by the backupfile code.  backupfile.c does
24653         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24654         for the rare case of programs that want all their backup file
24655         names to live within 8+3 limits, and dos.m4 doesn't address that.
24656         * modules/backupfile (Files): Remove m4/dos.m4.
24657
24658 2011-02-24  Jim Meyering  <meyering@redhat.com>
24659
24660         strstr: fix a bug whereby strstr would mistakenly return NULL
24661         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24662         in period calculation.
24663         (two_way_long_needle): Likewise.
24664         The original problem was reported by Mike Stump in
24665         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24666         Ralf Wildenhues provided the short needle and haystack.
24667         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24668         Add a more involved test to trigger the bug in two_way_long_needle.
24669
24670 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24671
24672         gnulib-tool: remove use of bold display in help screen
24673         * gnulib-tool (func_usage): Do not use bold display anymore in the
24674         help screen.  That was just meant to be a temporary emphasis for a
24675         backward-incompatible change.
24676
24677 2011-02-23  Bruno Haible  <bruno@clisp.org>
24678
24679         Fix misindentation of preprocessor directives.
24680         * lib/argp-namefrob.h: Reindent preprocessor directives.
24681         * lib/getopt_int.h (struct _getopt_data): Likewise.
24682         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24683         * lib/vasnprintf.c (decode_long_double): Likewise.
24684         * tests/test-argmatch.c: Insert blank lines, for clarity.
24685         * tests/test-exclude.c: Likewise.
24686
24687 2011-02-22  Bruno Haible  <bruno@clisp.org>
24688
24689         ioctl: Fix for MacOS X in 64-bit mode.
24690         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24691         value.
24692         Suggested by Eric Blake.
24693         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24694
24695 2011-02-22  Jim Meyering  <meyering@redhat.com>
24696
24697         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24698         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24699         in lib/.
24700
24701 2011-02-22  Eric Blake  <eblake@redhat.com>
24702
24703         maint: avoid any CDPATH issue
24704         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24705
24706         maint: adjust cpp indentation for my modules, as well
24707         * Makefile (sc_cpp_indent_check): Add my name.
24708         * lib/fbufmode.c: Filter through cppi.
24709         * lib/fpurge.c: Likewise.
24710         * lib/freadable.c: Likewise.
24711         * lib/freading.c: Likewise.
24712         * lib/fwritable.c: Likewise.
24713         * lib/fwriting.c: Likewise.
24714         * lib/sigaction.c: Likewise.
24715
24716 2011-02-22  Jim Meyering  <meyering@redhat.com>
24717
24718         maint: adjust cpp indentation to reflect nesting depth
24719         I.e., in a block of code that begins with an unnested "#if",
24720         put one space between the "#" in column 1 and following token.
24721         For example,
24722         -#include <sys/vfs.h>
24723         +# include <sys/vfs.h>
24724         Do this only in .c files that are part of a module I maintain.
24725         * lib/linkat.c: Filter through cppi.
24726         * lib/nanosleep.c: Likewise.
24727         * lib/openat.c: Likewise.
24728         * lib/openat-die.c: Likewise.
24729         * lib/dup3.c: Likewise.
24730         * lib/fchownat.c: Likewise.
24731         * lib/flock.c: Likewise.
24732         * lib/fsync.c: Likewise.
24733         * lib/fts.c: Likewise.
24734         * lib/getpass.c: Likewise.
24735         * lib/gettimeofday.c: Likewise.
24736         * lib/userspec.c: Likewise.
24737         * Makefile (sc_cpp_indent_check): New rule, to check this.
24738
24739 2011-02-22  Bruno Haible  <bruno@clisp.org>
24740
24741         New module 'wctomb'.
24742         * lib/stdlib.in.h (wctomb): New declaration.
24743         * lib/wctomb.c: New file.
24744         * lib/wctomb-impl.h: New file.
24745         * m4/wctomb.m4: New file.
24746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24747         REPLACE_WCTOMB.
24748         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24749         REPLACE_WCTOMB.
24750         * modules/wctomb: New file.
24751         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24752         * doc/posix-functions/wctomb.texi: Mention the new module.
24753         * modules/wctob (Depends-on): Add wctomb.
24754
24755 2011-02-22  Bruno Haible  <bruno@clisp.org>
24756
24757         New module 'mbtowc'.
24758         * lib/stdlib.in.h (mbtowc): New declaration.
24759         * lib/mbtowc.c: New file.
24760         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24761         * m4/mbtowc.m4: New file.
24762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24763         REPLACE_MBTOWC.
24764         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24765         REPLACE_MBTOWC.
24766         * modules/mbtowc: New file.
24767         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24768         * doc/posix-functions/mbtowc.texi: Mention the new module.
24769         * modules/btowc (Depends-on): Add mbtowc.
24770
24771 2011-02-22  Bruno Haible  <bruno@clisp.org>
24772
24773         wcrtomb: Add more tests for native Windows platforms.
24774         * tests/test-wcrtomb-w32-1.sh: New file.
24775         * tests/test-wcrtomb-w32-2.sh: New file.
24776         * tests/test-wcrtomb-w32-3.sh: New file.
24777         * tests/test-wcrtomb-w32-4.sh: New file.
24778         * tests/test-wcrtomb-w32-5.sh: New file.
24779         * tests/test-wcrtomb-w32.c: New file.
24780         * modules/wcrtomb-tests (Files): Add them.
24781         (Makefile.am): Arrange to run these tests.
24782         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24783         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24784
24785 2011-02-20  Bruno Haible  <bruno@clisp.org>
24786
24787         wcrtomb: Enhance test.
24788         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24789
24790 2011-02-20  Bruno Haible  <bruno@clisp.org>
24791
24792         mbrtowc: Tiny optimization.
24793         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24794
24795 2011-02-20  Jim Meyering  <meyering@redhat.com>
24796
24797         test-exclude.c: remove unmatched #endif
24798         * tests/test-exclude.c: Remove stray #endif, left over from
24799         the change of a week ago.
24800
24801 2011-02-19  Jim Meyering  <meyering@redhat.com>
24802
24803         git-version-gen: skip "-dirty" check when appropriate
24804         * build-aux/git-version-gen: Don't run any git commands when the
24805         version string comes from .tarball-version.  Prior to this, we
24806         would run git update-index --refresh even from a just-unpacked
24807         tarball directory, and that could affect a .git/ directory in a
24808         parent of the build directory.  Reported by Mike Frysinger.
24809
24810 2011-02-19  Bruno Haible  <bruno@clisp.org>
24811
24812         unictype/property-byname: Reduce the size of the 'data' segment.
24813         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24814
24815 2011-02-19  Bruno Haible  <bruno@clisp.org>
24816
24817         unictype/scripts: Reduce the size of the 'data' segment.
24818         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24819         '%pic'.
24820         * lib/unictype/scripts_byname.gperf: Regenerated.
24821
24822 2011-02-19  Bruno Haible  <bruno@clisp.org>
24823
24824         stdint: Update documentation.
24825         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24826
24827 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24828
24829         stdint: omit redundant check for wchar.h
24830         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24831         always tests whether wchar.h exists, so remove the now-redundant test.
24832
24833 2011-02-18  Bruno Haible  <bruno@clisp.org>
24834
24835         stdint: Cut dependency to module 'wchar'.
24836         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24837         include the necessary prerequisites.
24838         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24839         * modules/stdint (Depends-on): Remove wchar.
24840         (Makefile.am): Substitute HAVE_WCHAR_H.
24841         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24842
24843 2011-02-18  Eric Blake  <eblake@redhat.com>
24844
24845         longlong: skip, rather than fail, on cross-compilation
24846         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24847         when cross-compiling; regression from 2011-02-16.
24848
24849 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24850
24851         * NEWS: Mention 2011-02-08 change to stdlib.
24852
24853 2011-02-17  Bruno Haible  <bruno@clisp.org>
24854
24855         getloadavg: Add comments about platforms.
24856         * m4/getloadavg.m4: Add comment.
24857         * lib/getloadavg.c: Likewise.
24858
24859 2011-02-17  Bruno Haible  <bruno@clisp.org>
24860
24861         getloadavg: Fix link error on Solaris 2.6.
24862         * modules/getloadavg (Link): New section.
24863         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24864         linking test-getloadavg.
24865         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24866         getloadavg.
24867
24868 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24869
24870         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24871         It was 'int', but this doesn't match the IRIX 6.5 manual.
24872         Suggested by Bruno Haible in
24873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24874
24875 2011-02-17  Bruno Haible  <bruno@clisp.org>
24876
24877         havelib: Fix comments.
24878         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24879         change.
24880
24881 2011-02-17  Bruno Haible  <bruno@clisp.org>
24882
24883         havelib: Update config.rpath.
24884         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24885
24886 2011-02-17  Bruno Haible  <bruno@clisp.org>
24887
24888         getloadavg test: Add some plausibility checks.
24889         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24890         is improbable.
24891
24892 2011-02-16  Eric Blake  <eblake@redhat.com>
24893
24894         maintainer-makefile: make syntax-check a no-op from tarballs
24895         * top/maint.mk (no-vc-detected): New rule.
24896         (local-checks-available): Use it to avoid hanging if someone tries
24897         'make syntax-check' from a tarball.  Also append to any non-syntax
24898         checks already defined in cfg.mk.
24899
24900 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24901
24902         longlong: tune, particularly for common case of c99
24903
24904         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24905         or running anything if c99, or if unsigned long long int does not
24906         work.  In either case, we know the answer without further tests.
24907         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24908         it at most once, and use its results for both long long int and
24909         unsigned long long int.  This is more likely to be efficient in
24910         the common case where the program wants to check for both long
24911         long int and unsigned long long int.
24912         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24913         since the answer is already known.
24914
24915 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24916
24917         getloadavg: set errno
24918         * lib/getloadavg.c: Set errno when returning -1.  If no other
24919         error number looks appropriate, set it to ENOSYS if the getloadavg
24920         looks like it can't possibly ever work, ENOTSUP otherwise.
24921         Suggested by Bruno Haible in
24922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24923
24924         getloadavg: trim unused parts and speed up 'configure'
24925         * NEWS: Document this.
24926         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24927         always compiled if getloadavg is absent.
24928         Move test code to ...
24929         * tests/test-getloadavg.c: New file, containing previous
24930         contents of test from lib/getloadavg.c.  It also contains
24931         suggestions by Bruno Haible in
24932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24933         * modules/getloadavg-tests: New file.
24934         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24935         Do tests in the same order as they're needed for getloadavg.c.
24936         Omit setgid-related tests that generate symbols KMEM_GROUP,
24937         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24938         Do only the tests that are needed to see whether the system has
24939         getloadavg, moving the other tests into ...
24940         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24941         NLIST_NAME_UNION; nobody should be using it.  Do not define
24942         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24943         relevant, as the user of this module shouldn't care how getloadavg
24944         is implemented.
24945
24946         getloadavg: omit unused var
24947         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24948
24949 2011-02-15  Jim Meyering  <meyering@redhat.com>
24950
24951         doc: update users.txt
24952         * users.txt: Update iwhd's URL.
24953
24954 2011-02-13  Bruno Haible  <bruno@clisp.org>
24955
24956         Consistent macro naming for macros that use GCC __attribute__.
24957         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24958         _ATTRIBUTE_NONNULL_.
24959         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24960         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24961         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24962         ATTRIBUTE_DEPRECATED.
24963         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24964         ATTRIBUTE_NORETURN.
24965         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24966         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24967         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24968         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24969         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24970         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24971         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24972         ATTRIBUTE_SENTINEL.
24973         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24974         ATTRIBUTE_RETURN_CHECK.
24975         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24976         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24977         ATTRIBUTE_NORETURN.
24978         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24979         Reported by Paul Eggert.
24980
24981 2011-02-13  Bruno Haible  <bruno@clisp.org>
24982
24983         Don't interfere with a program's definition of __attribute__.
24984         * lib/argp.h (__attribute__): Remove definition.
24985         (_GL_ATTRIBUTE_FORMAT): New macro.
24986         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24987         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24988         (_GL_ATTRIBUTE_FORMAT): New macro.
24989         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24990         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24991         GCC 3 or newer.
24992         * lib/error.h (__attribute__): Remove definition.
24993         (_GL_ATTRIBUTE_FORMAT): New macro.
24994         (error, error_at_line): Use it.
24995         * lib/hash.h (__attribute__): Remove definition.
24996         (ATTRIBUTE_WUR): Update definition. Define always.
24997         * lib/openat.h (__attribute__): Remove definition.
24998         (ATTRIBUTE_NORETURN): Update definition. Define always.
24999         * lib/sigpipe-die.h (__attribute__): Remove definition.
25000         (ATTRIBUTE_NORETURN): Update definition. Define always.
25001         * lib/vasnprintf.h (__attribute__): Remove definition.
25002         (_GL_ATTRIBUTE_FORMAT): New macro.
25003         (asnprintf, vasnprintf): Use it.
25004         * lib/xalloc.h (__attribute__): Remove definition.
25005         (ATTRIBUTE_NORETURN): Update definition. Define always.
25006         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
25007         * lib/xmemdup0.h (__attribute__): Remove definition.
25008         (ATTRIBUTE_NORETURN): Update definition. Define always.
25009         * lib/xprintf.h (__attribute__): Remove definition.
25010         (_GL_ATTRIBUTE_FORMAT): New macro.
25011         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
25012         * lib/xstrtol.h (__attribute__): Remove definition.
25013         (ATTRIBUTE_NORETURN): Update definition. Define always.
25014         * lib/xvasprintf.h (__attribute__): Remove definition.
25015         (_GL_ATTRIBUTE_FORMAT): New macro.
25016         (xasprintf, xvasprintf): Use it.
25017         * tests/test-argmatch.c (__attribute__): Remove definition.
25018         (ATTRIBUTE_NORETURN): Update definition. Define always.
25019         * tests/test-exclude.c (__attribute__): Remove definition.
25020         (ATTRIBUTE_NORETURN): Update definition. Define always.
25021         Reported by Paul Eggert.
25022
25023 2011-02-13  Bruno Haible  <bruno@clisp.org>
25024
25025         mbrtowc: Add more tests for native Windows platforms.
25026         * tests/test-mbrtowc-w32-1.sh: New file.
25027         * tests/test-mbrtowc-w32-2.sh: New file.
25028         * tests/test-mbrtowc-w32-3.sh: New file.
25029         * tests/test-mbrtowc-w32-4.sh: New file.
25030         * tests/test-mbrtowc-w32-5.sh: New file.
25031         * tests/test-mbrtowc-w32.c: New file.
25032         * modules/mbrtowc-tests (Files): Add them.
25033         (Makefile.am): Arrange to run these tests.
25034         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
25035         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
25036
25037 2011-02-13  Bruno Haible  <bruno@clisp.org>
25038
25039         mbrtowc: Work around native Windows bug.
25040         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
25041         guess when no suitable locale for testing was found.
25042         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
25043
25044 2011-02-13  Bruno Haible  <bruno@clisp.org>
25045
25046         mbsinit: Work around mingw bug.
25047         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
25048         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
25049         Windows.
25050         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
25051
25052 2011-02-13  Bruno Haible  <bruno@clisp.org>
25053
25054         mbsinit: Don't crash for a NULL argument.
25055         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
25056         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
25057
25058 2011-02-13  Bruno Haible  <bruno@clisp.org>
25059
25060         Don't interfere with a program's definition of __attribute__.
25061         * lib/stdio.in.h (__attribute__): Remove definition.
25062         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
25063         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
25064         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
25065         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
25066         * lib/string.in.h (__attribute__): Remove definition.
25067         Reported by Paul Eggert.
25068
25069 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25070
25071         stdlib: don't get in the way of non-GCC __attribute__
25072         See thread starting at
25073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
25074         Revert previous stdlib change, installing the following instead:
25075         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25076         to get in the way of a non-GCC compiler that supports __attribute__.
25077         (_GL_ATTRIBUTE_RETURN): New macro.
25078         (_Exit): Use it instead of __attribute__.
25079
25080 2011-02-12  Bruno Haible  <bruno@clisp.org>
25081
25082         quotearg test: Avoid test failure on mingw.
25083         * tests/test-quotearg.sh: Convert the locale identifier from native
25084         Windows syntax to Unix syntax.
25085
25086 2011-02-12  Bruno Haible  <bruno@clisp.org>
25087
25088         setlocale: Prefer gnulib's override over libintl's override.
25089         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25090         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25091         GNULIB_defined_setlocale is set.
25092
25093 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25094
25095         stdlib: support non-GCC __attribute__
25096
25097         Fix a serious and tricky problem encountered when attempting to
25098         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25099         5.5, but it crashed due to memory corruption on Solaris 10 with
25100         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25101         bits that are otherwise zero.  This tagging is optional inside
25102         Emacs but is preferred and is used when __attribute__ ((__aligned
25103         (8))) works, as it does with both recent-enough GCC and with Sun C
25104         5.11.  However, Sun C 5.11 is not GCC and does not #define
25105         __GNUC__ and __GNUC_MINOR__.
25106
25107         When I added the getloadavg module to Emacs, it brought in
25108         stdlib.in.h, which contained this fragment:
25109
25110            #ifndef __attribute__
25111            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25112            #  define __attribute__(Spec)   /* empty */
25113            # endif
25114            #endif
25115
25116         When files that include <stdlib.h> were compiled with Sun C 5.11,
25117         the above code disabled __attribute__ ((__aligned (8))), which
25118         caused variables to not be properly aligned, which eventually led
25119         to the pointer corruption mentioned above.  (This was a bit hard
25120         to diagnose, unfortunately.)
25121
25122         Several "#define __attribute__(X) /* empty */" code snippets need
25123         to be eradicated from Gnulib to work with non-GCC compilers that
25124         support __attribute__.  The Autoconf way to do this is to test for
25125         each kind of attribute that we want support for, and selectively
25126         enable that in source code.
25127
25128         Fix this problem just for stdlib.h, by adding a test for the
25129         __noreturn__ attribute, and change stdlib.in.h to use that test
25130         when needed.  This technique can be easily generalized to the
25131         other *.in.h files and attributes, and a similar technique can be
25132         used for *.h and *.c files.  This patch is enough to solve the
25133         problem for Emacs + getloadavg, and I thought I'd publish it for
25134         feedback before undertaking further, similar fixes in other
25135         modules.
25136
25137         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25138         because it's not needed for stdlib.h.  It merely substitutes the
25139         value directly into stdlib.h.  We may well need to #define it, or
25140         similar symbols, for other modules, but it's nice to also have an
25141         option to not #define it for applications like Emacs that do not
25142         need it.
25143
25144         * lib/stdlib.in.h (__attribute__): Do not #define.
25145         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25146         be defined only if the _Exit module is also used.
25147         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25149         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25150         platforms.
25151         * modules/_Exit (Files): Add m4/attribute.m4.
25152         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25153         * m4/attribute.m4: New file.
25154
25155 2011-02-12  Bruno Haible  <bruno@clisp.org>
25156
25157         wcsrtombs: Work around bug on native Windows.
25158         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25159         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25160         instead of len.
25161         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25162
25163 2011-02-12  Bruno Haible  <bruno@clisp.org>
25164
25165         mbsrtowcs: Work around bug on native Windows.
25166         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25167         against mingw bug.
25168         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25169
25170 2011-02-12  Bruno Haible  <bruno@clisp.org>
25171
25172         Avoid setlocale bugs in tests.
25173         * modules/btowc (Dependencies): Add setlocale.
25174         * modules/c-strcase (Dependencies): Likewise.
25175         * modules/mbmemcasecmp (Dependencies): Likewise.
25176         * modules/mbmemcasecoll (Dependencies): Likewise.
25177         * modules/mbrtowc (Dependencies): Likewise.
25178         * modules/mbscasecmp (Dependencies): Likewise.
25179         * modules/mbscasestr (Dependencies): Likewise.
25180         * modules/mbschr (Dependencies): Likewise.
25181         * modules/mbscspn (Dependencies): Likewise.
25182         * modules/mbsinit (Dependencies): Likewise.
25183         * modules/mbsncasecmp (Dependencies): Likewise.
25184         * modules/mbsnrtowcs (Dependencies): Likewise.
25185         * modules/mbspbrk (Dependencies): Likewise.
25186         * modules/mbspcasecmp (Dependencies): Likewise.
25187         * modules/mbsrchr (Dependencies): Likewise.
25188         * modules/mbsrtowcs (Dependencies): Likewise.
25189         * modules/mbsspn (Dependencies): Likewise.
25190         * modules/mbsstr (Dependencies): Likewise.
25191         * modules/nl_langinfo (Dependencies): Likewise.
25192         * modules/quotearg (Dependencies): Likewise.
25193         * modules/unicase/locale-language (Dependencies): Likewise.
25194         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25195         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25196         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25197         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25198         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25199         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25200         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25201         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25202         * modules/vasnprintf-posix (Dependencies): Likewise.
25203         * modules/wcrtomb (Dependencies): Likewise.
25204         * modules/wcsnrtombs (Dependencies): Likewise.
25205         * modules/wcsrtombs (Dependencies): Likewise.
25206
25207 2011-02-12  Bruno Haible  <bruno@clisp.org>
25208
25209         setlocale: Workaround native Windows bug.
25210         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25211         succeeds but sets LC_CTYPE to "C", report a failure.
25212         * tests/test-setlocale2.sh: New file.
25213         * tests/test-setlocale2.c: New file.
25214         * modules/setlocale-tests (Files): Add the new files.
25215         (Makefile.am): Enable test-setlocale2.sh test.
25216         * doc/posix-functions/setlocale.texi: Mention workaround.
25217
25218 2011-02-11  Bruno Haible  <bruno@clisp.org>
25219
25220         Tests for module 'setlocale'.
25221         * modules/setlocale-tests: New file.
25222         * tests/test-setlocale1.sh: New file.
25223         * tests/test-setlocale1.c: New file.
25224
25225         New module 'setlocale'.
25226         * lib/locale.in.h (setlocale): New declaration.
25227         * lib/setlocale.c: New file, based on
25228         gettext/gettext-runtime/intl/setlocale.c.
25229         * m4/setlocale.m4: New file.
25230         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25231         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25232         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25233         REPLACE_SETLOCALE.
25234         * modules/setlocale: New file.
25235         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25236         * doc/posix-functions/setlocale.texi: Mention the new module.
25237
25238 2011-02-11  Bruno Haible  <bruno@clisp.org>
25239
25240         Prepare for locale dependent tests on mingw.
25241         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25242         because it has the wrong locale encoding.
25243         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25244         French_France.1252 instead of "fr".
25245         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25246         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25247         because it has the wrong locale encoding.
25248         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25249         native Windows, try Turkish_Turkey.65001.
25250         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25251         Chinese_China.54936.
25252
25253         Prepare for locale dependent tests on mingw.
25254         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25255         differently.
25256         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25257         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25258         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25260
25261 2011-02-11  Eric Blake  <eblake@redhat.com>
25262
25263         strptime: avoid compiler warnings
25264         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25265         compiler warnings about dead code.
25266         Reported by Daniel P. Berrange.
25267
25268 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25269
25270         doc: update users.txt
25271         * users.txt: Add rcs.
25272
25273 2011-02-10  John W. Eaton  <jwe@gnu.org>
25274
25275         doc: update users.txt
25276         * users.txt: Add octave.
25277
25278 2011-02-10  Jim Meyering  <meyering@redhat.com>
25279
25280         doc: update users.txt
25281         * users.txt: Add iwhd.
25282
25283 2011-02-09  Bruno Haible  <bruno@clisp.org>
25284
25285         gnulib-tool: Make copyright notice adjustment more robust.
25286         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25287         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25288         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25289         License".
25290         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25291
25292 2011-02-06  Bruno Haible  <bruno@clisp.org>
25293
25294         New module 'towctrans'.
25295         * modules/towctrans: New file.
25296         * lib/wctype.in.h (towctrans): New declaration.
25297         * lib/towctrans.c: New file.
25298         * lib/towctrans-impl.h: New file.
25299         * m4/towctrans.m4: New file.
25300         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25301         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25302         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25303         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25304         * doc/posix-functions/towctrans.texi: Mention the new module.
25305
25306 2011-02-06  Bruno Haible  <bruno@clisp.org>
25307
25308         New module 'wctrans'.
25309         * modules/wctrans: New file.
25310         * lib/wctype.in.h (wctrans): New declaration.
25311         * lib/wctrans.c: New file.
25312         * lib/wctrans-impl.h: New file.
25313         * m4/wctrans.m4: New file.
25314         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25315         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25316         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25317         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25318         * doc/posix-functions/wctrans.texi: Mention the new module.
25319
25320 2011-02-06  Bruno Haible  <bruno@clisp.org>
25321
25322         New module 'iswctype'.
25323         * modules/iswctype: New file.
25324         * lib/wctype.in.h (iswctype): New declaration.
25325         * lib/iswctype.c: New file.
25326         * lib/iswctype-impl.h: New file.
25327         * m4/iswctype.m4: New file.
25328         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25329         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25330         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25331         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25332         * doc/posix-functions/iswctype.texi: Mention the new module and the
25333         HP-UX 11.00 problem.
25334
25335 2011-02-06  Bruno Haible  <bruno@clisp.org>
25336
25337         New module 'wctype'.
25338         * modules/wctype: Change to represent the wctype() substitute.
25339         * lib/wctype.in.h (wctype): New declaration.
25340         * lib/wctype.c: New file.
25341         * lib/wctype-impl.h: New file.
25342         * m4/wctype.m4: New file.
25343         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25344         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25345         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25346         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25347         * doc/posix-functions/wctype.texi: Mention the new module and the
25348         HP-UX 11.00 problem.
25349
25350 2011-02-06  Bruno Haible  <bruno@clisp.org>
25351
25352         wctype-h: Ensure wctype_t and wctrans_t are defined.
25353         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25354         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25355         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25356         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25357         HAVE_WCTRANS_T.
25358         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25359
25360 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25361
25362         flock: fix license typo
25363
25364         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25365         omitted.
25366
25367 2011-02-08  Bruno Haible  <bruno@clisp.org>
25368
25369         Split large sed scripts, for HP-UX sed.
25370         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25371         to avoid HP-UX limit of 99 commands, in the near future.
25372         * modules/stdlib (Makefile.am): Likewise.
25373         * modules/unistd (Makefile.am): Likewise.
25374         * modules/wchar (Makefile.am): Likewise.
25375         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25376         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25377         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25378
25379 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25380             Bruno Haible  <bruno@clisp.org>
25381
25382         stdlib: improve random_r modularization
25383         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25384         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25385         you also need the random_r module to get this material right.
25386         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25387         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25388         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25389
25390 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25391
25392         stdlib: don't depend on stdint
25393         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25394         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25395         be independent of whether stdint.h is needed.
25396         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25397         here, instead of ...
25398         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25399         struct random_data should be using the random_r module, not just
25400         the stdlib module (which wouldn't make sense: what package needs
25401         just struct random_data without also needing random_r?).
25402         * modules/stdlib (Depends-on): Remove stdint.
25403
25404         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25405         See the thread rooted at
25406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25407         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25408         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25409         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25410         __VMS)); previously it was always included (via fcntl--.h).
25411         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25412         hand; this is good enough for load averages.  Also, do not use
25413         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25414         flags directly if available and don't bother otherwise.  (Packages
25415         that need the extra reliability should use the modules that define
25416         these flags on older platforms that lack them.)
25417         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25418         fcntl-safer.
25419
25420 2011-02-08  Jim Meyering  <meyering@redhat.com>
25421
25422         di-set.h, ino-map.h: add multiple-inclusion guard
25423         Technically, the guard is required only for ino-map.h, due to its
25424         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25425         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25426         * lib/ino-map.h: Likewise.
25427
25428 2011-02-06  Bruno Haible  <bruno@clisp.org>
25429
25430         iswblank: Ensure declaration on glibc systems.
25431         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25432         * modules/iswblank (Dependencies): Add 'extensions'.
25433         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25434
25435 2011-02-06  Bruno Haible  <bruno@clisp.org>
25436
25437         New module 'iswblank'.
25438         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25439         * modules/iswblank: New file.
25440         * modules/wctype-h (Files): Remove lib/iswblank.c.
25441         (Makefile.am): Substitute GNULIB_ISWBLANK.
25442         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25443         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25444         (gl_WCTYPE_H_DEFAULTS): New macro.
25445         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25446         * modules/iswblank-tests: New file.
25447         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25448         * tests/test-wctype-h.c (main): Remove iswblank tests.
25449         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25450         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25451         of 'wctype-h'.
25452         * NEWS: Mention the change.
25453         * modules/mbchar (Depends-on): Add iswblank.
25454
25455 2011-02-08  Bruno Haible  <bruno@clisp.org>
25456
25457         di-set tests: Refactor.
25458         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25459         unnecessary includes.
25460         (ASSERT): Remove macro.
25461         (main): Make C90 compliant by avoiding variable declaration after
25462         statement.
25463         * modules/di-set-tests (Files): Add tests/macros.h.
25464
25465 2011-02-08  Bruno Haible  <bruno@clisp.org>
25466
25467         ino-map tests: Refactor.
25468         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25469         unnecessary includes.
25470         (ASSERT): Remove macro.
25471         (main): Make C90 compliant by avoiding variable declaration after
25472         statement.
25473         * modules/ino-map-tests (Files): Add tests/macros.h.
25474
25475 2011-02-08  Jim Meyering  <meyering@redhat.com>
25476
25477         di-set: add "const" to a cast
25478         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25479         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25480
25481 2011-02-06  Bruno Haible  <bruno@clisp.org>
25482
25483         Rename module 'wctype' to 'wctype-h'.
25484         * modules/wctype-h: Renamed from modules/wctype.
25485         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25486         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25487         (Files, Depends-on, Makefile.am): Update.
25488         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25489         (Files, Makefile.am): Update.
25490         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25491         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25492         * doc/posix-headers/wctype.texi: Update.
25493         * doc/posix-functions/iswalnum.texi: Update.
25494         * doc/posix-functions/iswalpha.texi: Update.
25495         * doc/posix-functions/iswblank.texi: Update.
25496         * doc/posix-functions/iswcntrl.texi: Update.
25497         * doc/posix-functions/iswdigit.texi: Update.
25498         * doc/posix-functions/iswgraph.texi: Update.
25499         * doc/posix-functions/iswlower.texi: Update.
25500         * doc/posix-functions/iswprint.texi: Update.
25501         * doc/posix-functions/iswpunct.texi: Update.
25502         * doc/posix-functions/iswspace.texi: Update.
25503         * doc/posix-functions/iswupper.texi: Update.
25504         * doc/posix-functions/iswxdigit.texi: Update.
25505         * doc/posix-functions/towlower.texi: Update.
25506         * doc/posix-functions/towupper.texi: Update.
25507         * NEWS: Mention the change.
25508         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25509         * modules/mbchar (Dependencies): Likewise.
25510         * modules/mbswidth (Dependencies): Likewise.
25511         * modules/quotearg (Dependencies): Likewise.
25512         * modules/regex (Dependencies): Likewise.
25513         * modules/wcscasecmp (Dependencies): Likewise.
25514         * modules/wcsncasecmp (Dependencies): Likewise.
25515         * modules/wcwidth (Dependencies): Likewise.
25516
25517 2011-02-06  Bruno Haible  <bruno@clisp.org>
25518
25519         New module 'wcswidth'.
25520         * modules/wcswidth: New file.
25521         * lib/wchar.in.h (wcswidth): New declaration.
25522         * lib/wcswidth.c: New file.
25523         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25524         * m4/wcswidth.m4: New file.
25525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25527         REPLACE_WCSWIDTH.
25528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25529         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25530         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25531         * doc/posix-functions/wcswidth.texi: Mention the new module.
25532
25533 2011-02-06  Bruno Haible  <bruno@clisp.org>
25534
25535         New module 'wcstok'.
25536         * modules/wcstok: New file.
25537         * lib/wchar.in.h (wcstok): New declaration.
25538         * lib/wcstok.c: New file.
25539         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25540         * m4/wcstok.m4: New file.
25541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25544         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25545         * doc/posix-functions/wcstok.texi: Mention the new module.
25546
25547 2011-02-06  Bruno Haible  <bruno@clisp.org>
25548
25549         New module 'wcsstr'.
25550         * modules/wcsstr: New file.
25551         * lib/wchar.in.h (wcsstr): New declaration.
25552         * lib/wcsstr.c: New file.
25553         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25554         * m4/wcsstr.m4: New file.
25555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25558         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25559         * doc/posix-functions/wcsstr.texi: Mention the new module.
25560
25561 2011-02-06  Bruno Haible  <bruno@clisp.org>
25562
25563         New module 'wcspbrk'.
25564         * modules/wcspbrk: New file.
25565         * lib/wchar.in.h (wcspbrk): New declaration.
25566         * lib/wcspbrk.c: New file.
25567         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25568         * m4/wcspbrk.m4: New file.
25569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25572         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25573         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25574
25575 2011-02-06  Bruno Haible  <bruno@clisp.org>
25576
25577         New module 'wcsspn'.
25578         * modules/wcsspn: New file.
25579         * lib/wchar.in.h (wcsspn): New declaration.
25580         * lib/wcsspn.c: New file.
25581         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25582         * m4/wcsspn.m4: New file.
25583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25586         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25587         * doc/posix-functions/wcsspn.texi: Mention the new module.
25588
25589 2011-02-06  Bruno Haible  <bruno@clisp.org>
25590
25591         New module 'wcscspn'.
25592         * modules/wcscspn: New file.
25593         * lib/wchar.in.h (wcscspn): New declaration.
25594         * lib/wcscspn.c: New file.
25595         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25596         * m4/wcscspn.m4: New file.
25597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25600         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25601         * doc/posix-functions/wcscspn.texi: Mention the new module.
25602
25603 2011-02-06  Bruno Haible  <bruno@clisp.org>
25604
25605         New module 'wcsrchr'.
25606         * modules/wcsrchr: New file.
25607         * lib/wchar.in.h (wcsrchr): New declaration.
25608         * lib/wcsrchr.c: New file.
25609         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25610         * m4/wcsrchr.m4: New file.
25611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25614         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25615         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25616
25617 2011-02-06  Bruno Haible  <bruno@clisp.org>
25618
25619         New module 'wcschr'.
25620         * modules/wcschr: New file.
25621         * lib/wchar.in.h (wcschr): New declaration.
25622         * lib/wcschr.c: New file.
25623         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25624         * m4/wcschr.m4: New file.
25625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25628         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25629         * doc/posix-functions/wcschr.texi: Mention the new module.
25630
25631 2011-02-06  Bruno Haible  <bruno@clisp.org>
25632
25633         New module 'wcsdup'.
25634         * modules/wcsdup: New file.
25635         * lib/wchar.in.h (wcsdup): New declaration.
25636         * lib/wcsdup.c: New file.
25637         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25638         * m4/wcsdup.m4: New file.
25639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25642         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25643         * doc/posix-functions/wcsdup.texi: Mention the new module.
25644
25645 2011-02-06  Bruno Haible  <bruno@clisp.org>
25646
25647         New module 'wcsxfrm'.
25648         * modules/wcsxfrm: New file.
25649         * lib/wchar.in.h (wcsxfrm): New declaration.
25650         * lib/wcsxfrm.c: New file.
25651         * lib/wcsxfrm-impl.h: New file.
25652         * m4/wcsxfrm.m4: New file.
25653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25656         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25657         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25658
25659 2011-02-06  Bruno Haible  <bruno@clisp.org>
25660
25661         New module 'wcscoll'.
25662         * modules/wcscoll: New file.
25663         * lib/wchar.in.h (wcscoll): New declaration.
25664         * lib/wcscoll.c: New file.
25665         * lib/wcscoll-impl.h: New file.
25666         * m4/wcscoll.m4: New file.
25667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25670         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25671         * doc/posix-functions/wcscoll.texi: Mention the new module.
25672
25673 2011-02-06  Bruno Haible  <bruno@clisp.org>
25674
25675         New module 'wcsncasecmp'.
25676         * modules/wcsncasecmp: New file.
25677         * lib/wchar.in.h (wcsncasecmp): New declaration.
25678         * lib/wcsncasecmp.c: New file.
25679         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25680         * m4/wcsncasecmp.m4: New file.
25681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25684         HAVE_WCSNCASECMP.
25685         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25686         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25687
25688 2011-02-06  Bruno Haible  <bruno@clisp.org>
25689
25690         New module 'wcscasecmp'.
25691         * modules/wcscasecmp: New file.
25692         * lib/wchar.in.h (wcscasecmp): New declaration.
25693         * lib/wcscasecmp.c: New file.
25694         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25695         * m4/wcscasecmp.m4: New file.
25696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25699         HAVE_WCSCASECMP.
25700         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25701         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25702
25703 2011-02-05  Bruno Haible  <bruno@clisp.org>
25704
25705         New module 'wcsncmp'.
25706         * modules/wcsncmp: New file.
25707         * lib/wchar.in.h (wcsncmp): New declaration.
25708         * lib/wcsncmp.c: New file.
25709         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25710         * m4/wcsncmp.m4: New file.
25711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25714         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25715         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25716
25717 2011-02-05  Bruno Haible  <bruno@clisp.org>
25718
25719         New module 'wcscmp'.
25720         * modules/wcscmp: New file.
25721         * lib/wchar.in.h (wcscmp): New declaration.
25722         * lib/wcscmp.c: New file.
25723         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25724         * m4/wcscmp.m4: New file.
25725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25728         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25729         * doc/posix-functions/wcscmp.texi: Mention the new module.
25730
25731 2011-02-05  Bruno Haible  <bruno@clisp.org>
25732
25733         New module 'wcsncat'.
25734         * modules/wcsncat: New file.
25735         * lib/wchar.in.h (wcsncat): New declaration.
25736         * lib/wcsncat.c: New file.
25737         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25738         * m4/wcsncat.m4: New file.
25739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25742         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25743         * doc/posix-functions/wcsncat.texi: Mention the new module.
25744
25745 2011-02-05  Bruno Haible  <bruno@clisp.org>
25746
25747         New module 'wcscat'.
25748         * modules/wcscat: New file.
25749         * lib/wchar.in.h (wcscat): New declaration.
25750         * lib/wcscat.c: New file.
25751         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25752         * m4/wcscat.m4: New file.
25753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25756         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25757         * doc/posix-functions/wcscat.texi: Mention the new module.
25758
25759 2011-02-05  Bruno Haible  <bruno@clisp.org>
25760
25761         New module 'wcpncpy'.
25762         * modules/wcpncpy: New file.
25763         * lib/wchar.in.h (wcpncpy): New declaration.
25764         * lib/wcpncpy.c: New file.
25765         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25766         * m4/wcpncpy.m4: New file.
25767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25769         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25770         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25771         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25772
25773 2011-02-05  Bruno Haible  <bruno@clisp.org>
25774
25775         New module 'wcsncpy'.
25776         * modules/wcsncpy: New file.
25777         * lib/wchar.in.h (wcsncpy): New declaration.
25778         * lib/wcsncpy.c: New file.
25779         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25780         * m4/wcsncpy.m4: New file.
25781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25783         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25784         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25785         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25786
25787 2011-02-05  Bruno Haible  <bruno@clisp.org>
25788
25789         New module 'wcpcpy'.
25790         * modules/wcpcpy: New file.
25791         * lib/wchar.in.h (wcpcpy): New declaration.
25792         * lib/wcpcpy.c: New file.
25793         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25794         * m4/wcpcpy.m4: New file.
25795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25797         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25798         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25799         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25800
25801 2011-02-05  Bruno Haible  <bruno@clisp.org>
25802
25803         New module 'wcscpy'.
25804         * modules/wcscpy: New file.
25805         * lib/wchar.in.h (wcscpy): New declaration.
25806         * lib/wcscpy.c: New file.
25807         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25808         * m4/wcscpy.m4: New file.
25809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25812         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25813         * doc/posix-functions/wcscpy.texi: Mention the new module.
25814
25815 2011-02-05  Bruno Haible  <bruno@clisp.org>
25816
25817         New module 'wcsnlen'.
25818         * modules/wcsnlen: New file.
25819         * lib/wchar.in.h (wcsnlen): New declaration.
25820         * lib/wcsnlen.c: New file.
25821         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25822         * m4/wcsnlen.m4: New file.
25823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25826         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25827         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25828
25829 2011-02-05  Bruno Haible  <bruno@clisp.org>
25830
25831         New module 'wcslen'.
25832         * modules/wcslen: New file.
25833         * lib/wchar.in.h (wcslen): New declaration.
25834         * lib/wcslen.c: New file.
25835         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25836         * m4/wcslen.m4: New file.
25837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25840         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25841         * doc/posix-functions/wcslen.texi: Mention the new module.
25842
25843 2011-02-05  Bruno Haible  <bruno@clisp.org>
25844
25845         New module 'wmemset'.
25846         * modules/wmemset: New file.
25847         * lib/wchar.in.h (wmemset): New declaration.
25848         * lib/wmemset.c: New file.
25849         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25850         * m4/wmemset.m4: New file.
25851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25853         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25854         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25855         * doc/posix-functions/wmemset.texi: Mention the new module.
25856
25857 2011-02-05  Bruno Haible  <bruno@clisp.org>
25858
25859         New module 'wmemmove'.
25860         * modules/wmemmove: New file.
25861         * lib/wchar.in.h (wmemmove): New declaration.
25862         * lib/wmemmove.c: New file.
25863         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25864         * m4/wmemmove.m4: New file.
25865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25867         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25868         HAVE_WMEMMOVE.
25869         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25870         * doc/posix-functions/wmemmove.texi: Mention the new module.
25871
25872 2011-02-05  Bruno Haible  <bruno@clisp.org>
25873
25874         New module 'wmemcpy'.
25875         * modules/wmemcpy: New file.
25876         * lib/wchar.in.h (wmemcpy): New declaration.
25877         * lib/wmemcpy.c: New file.
25878         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25879         * m4/wmemcpy.m4: New file.
25880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25882         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25883         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25884         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25885
25886 2011-02-05  Bruno Haible  <bruno@clisp.org>
25887
25888         New module 'wmemcmp'.
25889         * modules/wmemcmp: New file.
25890         * lib/wchar.in.h (wmemcmp): New declaration.
25891         * lib/wmemcmp.c: New file.
25892         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25893         * m4/wmemcmp.m4: New file.
25894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25896         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25897         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25898         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25899
25900 2011-02-07  Jim Meyering  <meyering@redhat.com>
25901
25902         di-set, ino-map: new modules, from coreutils
25903         * lib/di-set.c: New file.
25904         * lib/di-set.h: Likewise.
25905         * lib/ino-map.c: Likewise.
25906         * lib/ino-map.h: Likewise.
25907         * modules/di-set: Likewise.
25908         * modules/di-set-tests: Likewise.
25909         * modules/ino-map: Likewise.
25910         * modules/ino-map-tests: Likewise.
25911         * tests/test-di-set.c: Likewise.
25912         * tests/test-ino-map.c: Likewise.
25913
25914 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25915
25916         getloadavg: merge minor changes from Emacs
25917
25918         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25919         (getloadavg): Use memset, not bzero.
25920
25921         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25922         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25923         clash (bug#86).
25924
25925 2010-11-14  Bruno Haible  <bruno@clisp.org>
25926
25927         Allow multiple gnulib generated replacements to coexist.
25928         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25929         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25930         * lib/langinfo.in.h (nl_item): Likewise.
25931         * lib/math.in.h (_NaN, NAN): Likewise.
25932         * lib/netdb.in.h (struct addrinfo): Likewise.
25933         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25934         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25935         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25936         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25937         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25938         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25939         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25940         pthread_mutexattr_init, pthread_mutexattr_settype,
25941         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25942         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25943         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25944         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25945         * lib/sched.in.h (struct sched_param): Likewise.
25946         * lib/se-selinux.in.h (security_class_t, security_context_t,
25947         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25948         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25949         lsetfilecon, fsetfilecon, security_check_context,
25950         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25951         Likewise.
25952         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25953         Likewise.
25954         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25955         _gl_function_taking_int_returning_void_t, union sigval,
25956         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25957         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25958         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25959         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25960         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25961         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25962         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25963         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25964         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25965         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25966         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25967         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25968         socklen_t, rpl_fd_isset): Likewise.
25969         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25970         * lib/sys_time.in.h (struct timeval): Likewise.
25971         * lib/sys_times.in.h (struct tms): Likewise.
25972         * lib/sys_utsname.in.h (struct utsname):
25973         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25974         * lib/unistd.in.h (getpagesize): Likewise.
25975         * lib/wchar.in.h (mbstate_t): Likewise.
25976         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25977         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25978         towlower, towupper): Likewise.
25979         Reported by Sam Steingold <sds@gnu.org>.
25980
25981 2011-02-05  Eric Blake  <eblake@redhat.com>
25982
25983         unsetenv: work around Haiku issues
25984         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25985         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25986
25987 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25988
25989         libposix: avoid calling error() within libposix
25990         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25991         is defined.
25992
25993 2011-02-05  Eric Blake  <eblake@redhat.com>
25994
25995         strerror_r-posix: port to cygwin
25996         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25997         implementation.
25998         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25999         * tests/test-strerror_r.c (main): Fix test.
26000         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
26001         issue.
26002
26003 2011-02-05  Bruno Haible  <bruno@clisp.org>
26004
26005         New module 'wmemchr'.
26006         * modules/wmemchr: New file.
26007         * lib/wchar.in.h (wmemchr): New declaration.
26008         * lib/wmemchr.c: New file.
26009         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
26010         * m4/wmemchr.m4: New file.
26011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
26012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
26013         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
26014         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
26015         * doc/posix-functions/wmemchr.texi: Mention the new module.
26016
26017 2011-02-04  Eric Blake  <eblake@redhat.com>
26018
26019         fdopendir: detect FreeBSD bug
26020         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
26021         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
26022
26023 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26024
26025         stdbool: do not define HAVE_STDBOOL_H
26026         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
26027         AC_HEADER_STDBOOL.  All uses changed.  Do not define
26028         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
26029         imported from the latest Autoconf git.  It was motivated by Emacs,
26030         which uses gnulib but does not need HAVE_STDBOOL_H.
26031
26032 2011-02-04  Bruno Haible  <bruno@clisp.org>
26033
26034         wcsnrtombs: Prepare for new module wwcsnrtombs.
26035         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
26036         * lib/wcsnrtombs.c: Include it.
26037         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
26038
26039         wcsrtombs: Prepare for new module wwcsrtombs.
26040         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
26041         * lib/wcsrtombs.c: Include it.
26042         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
26043
26044         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
26045         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
26046         * lib/mbsnrtowcs.c: Include it.
26047         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26048
26049         mbsrtowcs: Prepare for new module mbsrtowwcs.
26050         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
26051         * lib/mbsrtowcs.c: Include it.
26052         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
26053
26054 2011-02-04  Bruno Haible  <bruno@clisp.org>
26055
26056         vasnprintf: Reduce use of malloc for small format strings.
26057         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
26058         (arguments): Add room for the first 7 arguments.
26059         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
26060         (char_directives, u8_directives, u16_directives, u32_directives): Add
26061         room for the first 7 directives.
26062         * lib/printf-parse.c: Include <string.h>.
26063         (PRINTF_PARSE): Change memory handling code so that it uses the first
26064         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
26065         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
26066         Reported by Pádraig Brady <P@draigbrady.com>.
26067
26068 2011-01-31  Eric Blake  <eblake@redhat.com>
26069
26070         dup2: work around Haiku bug
26071         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26072         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
26073         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26074         * tests/test-dup2.c (main): Enhance test.
26075
26076 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26077
26078         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26079         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26080         declared by eglibc 2.11.2.
26081         * lib/stdio.in.h: Likewise.
26082
26083 2011-01-31  Eric Blake  <eblake@redhat.com>
26084
26085         ignore-value: add missing test dependency
26086         * tests/test-ignore-value.c: Revert previous change; stdio.h
26087         provides off_t.
26088         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26089
26090 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         mktime: clarify long_int width checking
26093         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26094         the top level, to make it clearer that the assumption about
26095         long_int width is being checked.  See
26096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26097
26098 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26099
26100         ignore-value: Fix self-test.
26101         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26102
26103 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26104
26105         TYPE_MAXIMUM: avoid theoretically undefined behavior
26106         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26107         negative number, which the C Standard says has undefined behavior.
26108         In practice this is not a problem, but might as well do it by the book.
26109         Reported by Rich Felker and Eric Blake; see
26110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26111         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26112         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26114         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26115         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26116         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26117
26118         mktime: #undef mktime before #defining it
26119         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26120
26121         mktime: systematically normalize tm_isdst comparisons
26122         * lib/mktime.c (isdst_differ): New function.
26123         (__mktime_internal): Use it systematically for all isdst comparisons.
26124         This completes the fix for libc BZ #6723, and removes the need for
26125         normalizing tm_isdst.  See
26126         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26127         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26128
26129         mktime: fix some integer overflow issues and sidestep the rest
26130
26131         This was prompted by a bug report by Benjamin Lindner for MinGW
26132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26133         His bug is due to signed integer overflow (0 - INT_MIN), and I
26134         I scanned through mktime.c looking for other integer overflow
26135         problems, fixing all the bugs I found.
26136
26137         Although the C Standard says the resulting code is still not safe
26138         in the presence of integer overflow, in practice it should be good
26139         enough for all real-world two's-complement implementations, except
26140         for debugging environments that deliberately trap on integer
26141         overflow (e.g., gcc -ftrapv).
26142
26143         * lib/mktime.c (WRAPV): New macro.
26144         (SHR): Also check that long_int and time_t shift right in the
26145         usual way, before using the fast-but-unportable method.
26146         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26147         used.  The code already assumed two's complement, so there's
26148         no need to test for alternatives.  All uses removed.
26149         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26150         the C standard.  Problem reported by Rich Felker in
26151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26152         (twos_complement_arithmetic): Also check long_int and time_t.
26153         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26154         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26155         (__mktime_internal): Avoid integer overflow with unary subtraction
26156         in two instances where -1 - X is an adequate replacement for -X,
26157         since the calculations are approximate.
26158
26159 2011-01-29  Eric Blake  <eblake@redhat.com>
26160
26161         mktime: avoid infinite loop
26162         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26163         type; behavior is still undefined but portable to all known targets.
26164         Reported by Rich Felker.
26165
26166 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26167
26168         rename, unlink, same-inode: Relicense.
26169         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26170         * modules/unlink (License): Likewise.
26171         * modules/same-inode (License): Likewise.
26172
26173 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26174
26175         mktime: avoid problems on NetBSD 5 / i386
26176         * lib/mktime.c (long_int): New type.  This works around a problem
26177         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26178         but time_t is 64 bits, and where I expect the existing code is
26179         wrong in some cases.
26180         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26181         (ydhms_diff): Bring back the compile-time check for wide-enough
26182         year and yday.
26183
26184         mktime: fix misspelling in comment
26185         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26186         This merges all recent glibc changes of importance.
26187
26188 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26189
26190         move-if-change: cope with concurrent mv of identical file.
26191         * build-aux/move-if-change (CMPPROG): Accept environment
26192         variable as an override for `cmp'.
26193         (usage): Document CMPPROG.
26194         Adjust comparison to drop stdout.  Cope with failure of mv if
26195         the target file exists and is identical to the source, for
26196         parallel builds.
26197         Report from H.J. Lu against binutils in PR binutils/12283.
26198
26199 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26200
26201         * users.txt: Mention sharutils.
26202
26203 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26204
26205         * users.txt: Mention OATH Toolkit.
26206
26207 2011-01-27  Bruno Haible  <bruno@clisp.org>
26208
26209         Prepare for supporting FreeBSD 10.
26210         * build-aux/config.libpath: Remove handling of freebsd1*.
26211
26212 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26213
26214         Prepare for supporting FreeBSD 10.
26215         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26216         match FreeBSD 10.0.
26217
26218 2011-01-27  Bruno Haible  <bruno@clisp.org>
26219
26220         vma-iter, get-rusage-as: Add OpenBSD support.
26221         * modules/vma-iter (configure.ac): Test for mquery.
26222         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26223         * lib/vma-iter.c: Include <sys/mman.h>.
26224         (vma_iterate): Add an implementation based on mquery().
26225         * lib/resource-ext.h (get_rusage_as): Update comments.
26226         * lib/get-rusage-as.c: Likewise.
26227         * lib/get-rusage-data.c: Likewise.
26228
26229 2011-01-26  Karl Berry  <karl@gnu.org>
26230
26231         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26232         variables to make it easier to override the makeinfo program used.
26233
26234 2011-01-26  Eric Blake  <eblake@redhat.com>
26235
26236         fcntl: work around Haiku F_DUPFD bugs
26237         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26238         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26239         cloexec bit on duplication.
26240         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26241
26242 2011-01-26  Bruno Haible  <bruno@clisp.org>
26243
26244         Enable memory leak tests on AIX.
26245         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26246         * tests/test-fprintf-posix3.c (main): Likewise.
26247
26248 2011-01-26  Bruno Haible  <bruno@clisp.org>
26249
26250         Tests for module 'get-rusage-data'.
26251         * modules/get-rusage-data-tests: New file.
26252         * tests/test-get-rusage-data.c: New file.
26253
26254         New module 'get-rusage-data'.
26255         * lib/resource-ext.h (get_rusage_data): New declaration.
26256         * lib/get-rusage-data.c: New file.
26257         * modules/get-rusage-data: New file.
26258
26259 2011-01-25  Bruno Haible  <bruno@clisp.org>
26260
26261         get-rusage-as: Allow for easier testing.
26262         * lib/resource-ext.h (get_rusage_as): Add comment.
26263         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26264         (main): New function for interactive testing.
26265
26266 2011-01-25  Bruno Haible  <bruno@clisp.org>
26267
26268         vma-iter: Treat Haiku like BeOS.
26269         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26270         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26271
26272 2011-01-25  Eric Blake  <eblake@redhat.com>
26273
26274         c-stack: fix regression on cygwin when libsigsegv is present
26275         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26276
26277 2011-01-24  Bruno Haible  <bruno@clisp.org>
26278
26279         vma-iter: Avoid empty intervals.
26280         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26281         on an empty interval.
26282
26283 2011-01-24  Jim Meyering  <meyering@redhat.com>
26284
26285         u64: remove unnecessary #include
26286         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26287
26288 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26289
26290         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26291         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26292
26293 2011-01-23  Bruno Haible  <bruno@clisp.org>
26294
26295         New module 'vma-iter'.
26296         * lib/vma-iter.h: New file.
26297         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26298         * modules/vma-iter: New file.
26299         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26300         for get_rusage_as_via_iterator.
26301         (vma_iterate_callback): New function.
26302         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26303         * modules/get-rusage-as (Depends-on): Add vma-iter.
26304
26305 2011-01-23  Bruno Haible  <bruno@clisp.org>
26306
26307         uninorm: Tweak includes.
26308         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26309         Reported by Jim Meyering.
26310
26311 2011-01-23  Bruno Haible  <bruno@clisp.org>
26312
26313         get-rusage-as: Improve on NetBSD.
26314         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26315         /proc, like on FreeBSD.
26316
26317 2011-01-23  Jim Meyering  <meyering@redhat.com>
26318
26319         xreadlink.h: remove unnecessary #include
26320         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26321
26322         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26323         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26324
26325 2011-01-23  Bruno Haible  <bruno@clisp.org>
26326
26327         get-rusage-as: Fix bug.
26328         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26329         original limit when aborting the first loop.
26330
26331 2011-01-23  Bruno Haible  <bruno@clisp.org>
26332
26333         wctype: Ensure valid C syntax.
26334         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26335         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26336
26337 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26338
26339         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26341         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26342         as they are needed only for configure's test case.
26343         This removes two unnecessary symbols from config.h.
26344
26345         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26346         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26348         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26349         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26350         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26351         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26352         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26353         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26354         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26355         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26357         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26358         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26359         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26360         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26361         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26362         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26363
26364 2011-01-21  Eric Blake  <eblake@redhat.com>
26365
26366         maintainer-makefile: work with older git for submodule check
26367         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26368         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26369         Reported by Matthias Bolte.
26370
26371         bootstrap: minor portability fixes
26372         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26373         (usage): Omit leading capital and trailing . on help phrases, per
26374         GNU Coding Standards.
26375         (check_versions, top level): Prefix messages with script name.
26376
26377 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26378
26379         bootstrap: support --no-git option
26380         * build-aux/bootstrap: Add --no-git option, to be used when
26381         --gnulib-srcdir points to the exact desired checkout.
26382
26383 2011-01-21  Eric Blake  <eblake@redhat.com>
26384
26385         strerror_r-posix: work with glibc 2.13
26386         * lib/strerror_r.c (strerror_r): Fix return type.
26387
26388 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26389             Bruno Haible  <bruno@clisp.org>
26390
26391         uN_strstr: New unit tests.
26392         * modules/unistr/u8-strstr-tests: New file.
26393         * modules/unistr/u16-strstr-tests: New file.
26394         * modules/unistr/u32-strstr-tests: New file.
26395         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26396         * tests/unistr/test-u8-strstr.c: New file.
26397         * tests/unistr/test-u16-strstr.c: New file.
26398         * tests/unistr/test-u32-strstr.c: New file.
26399
26400 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26401             Bruno Haible  <bruno@clisp.org>
26402
26403         Make uN_strstr functions O(n) worst-case.
26404         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26405         16-bit and 32-bit unit cases, use the unibyte algorithm from
26406         lib/mbsstr.c.
26407         * lib/unistr/u8-strstr.c: Include <string.h>.
26408         (UNIT_IS_UINT8_T): New macro.
26409         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26410         (U_STRLEN, U_STRNLEN): New macros.
26411         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26412         (U_STRLEN, U_STRNLEN): New macros.
26413         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26414         (configure.ac): Update required libunistring version.
26415         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26416         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26417         malloca.
26418         (configure.ac): Update required libunistring version.
26419         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26420         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26421         malloca.
26422         (configure.ac): Update required libunistring version.
26423
26424 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26425             Bruno Haible  <bruno@clisp.org>
26426
26427         Prepare for faster uN_strstr functions.
26428         * lib/str-kmp.h: Support definable UNITs.
26429         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26430         needle_len argument.
26431         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26432         * lib/mbscasestr.c (mbscasestr): Likewise.
26433
26434 2011-01-21  Pádraig Brady <P@draigBrady.com>
26435
26436         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26437         * tests/test-malloca.c (main): Unset the environment variable
26438         to greatly speed up the test.
26439         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26440         * modules/malloca-tests: Depend on unsetenv.
26441
26442 2011-01-21  Pádraig Brady <P@draigBrady.com>
26443
26444         ignore-value: remove stdint dependency
26445         * lib/ignore-value.h: Remove <stdint.h>
26446         * modules/ignore-value: Remove stdint dependency.
26447
26448 2011-01-21  Jim Meyering  <meyering@redhat.com>
26449
26450         maint.mk: adjust variable name to be consistent with other gl_ vars
26451         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26452         to be lower case.
26453
26454 2011-01-20  Jim Meyering  <meyering@redhat.com>
26455
26456         maint.mk: make "check" depend on public-submodule-commit by default
26457         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26458
26459 2011-01-20  Bruno Haible  <bruno@clisp.org>
26460
26461         mbfile, mbiter: Complete change from 2008-12-21.
26462         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26463         * m4/mbiter.m4 (gl_MBITER): Likewise.
26464
26465 2011-01-20  Jim Meyering  <meyering@redhat.com>
26466
26467         init.sh: insert space between each function name and "()"
26468         * tests/init.sh: Make it a little easier to see that a function's
26469         name is "warn_", and not "warn" when looking at the first part of
26470         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26471
26472 2011-01-20  Jim Meyering  <meyering@redhat.com>
26473
26474         mountlist: clean up code formatting
26475         * lib/mountlist.c (read_file_system_list): Split a long line,
26476         correct bracing style, use NULL in place of "(struct statfs *)0",
26477         don't parenthesize return value, add spaces around "=" and after
26478         ";-in-for-stmt".
26479
26480 2011-01-14  Markus Duft <mduft@gentoo.org>
26481
26482         mountlist: add support for Interix
26483         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26484         Apply statvfs to all entries of /dev/fs.
26485         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26486         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26487
26488 2011-01-20  Jim Meyering  <meyering@redhat.com>
26489
26490         maint.mk: improve the public-submodule-commit rule
26491         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26492         to suppress printing of its commands... unless V=1.
26493         Add git submodule's --quiet option to suppress printing of e.g.,
26494         "Entering gnulib" output.
26495         "cd" into $(srcdir) before running git submodule.
26496
26497 2011-01-20  Bruno Haible  <bruno@clisp.org>
26498
26499         include_next: Fix bug introduced on 2011-01-18.
26500         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26501         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26502         ac_cv_header_... variable if the second argument is not 'check'.
26503         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26504         gl_NEXT_HEADERS_INTERNAL.
26505
26506 2011-01-20  Bruno Haible  <bruno@clisp.org>
26507
26508         Allow the user to avoid the GNULIB_TEST_* macros.
26509         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26510         Suggested by Paul Eggert.
26511
26512 2011-01-14  Jim Meyering  <meyering@redhat.com>
26513
26514         bootstrap: avoid failure when there is no .gitmodules file
26515         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26516         has been assigned to, even when its value is the empty string.
26517         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26518         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26519         Reported by John W. Eaton <jwe@gnu.org>.
26520
26521 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26522
26523         assume <ctype.h>, ..., <time.h> exist
26524         For years gnulib has been assuming the existence of the headers
26525         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26526         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26527         them, since they don't appear to be needed.
26528         * README (Portability guidelines): Document this.
26529         * lib/flock.c: Assume <fcntl.h> exists.
26530         * lib/regex_internal.h: Assume <locale.h> exists.
26531         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26532         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26533         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26534         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26535         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26536         * m4/regex.m4 (gl_REGEX): Likewise.
26537         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26538         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26539         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26540         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26541         * tests/test-argp.c: Likewise.
26542         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26543
26544         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26545         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26546         AA_APPLE_UNIVERSAL_BUILD.  See
26547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26548         * NEWS: Document this.
26549
26550 2011-01-19  Eric Blake  <eblake@redhat.com>
26551
26552         c-stack: assume stack overflow if SA_SIGINFO unsupported
26553         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26554         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26555         sigaction will work.
26556         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26557         behavior match Linux.
26558         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26559
26560         stdbool-tests: accommodate Haiku
26561         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26562
26563         binary-io: fix O_TEXT on Haiku
26564         * modules/binary-io (Depends-on): Add fcntl-h.
26565         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26566         than blindly undefining O_TEXT.
26567         Reported by Scott McCreary.
26568
26569 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26570
26571         include_next: do not check for standard headers like stddef.h
26572
26573         I found this problem when modifying Emacs to use gnulib.
26574         I noticed that it added HAVE_STDDEF_H to config.h, even though
26575         gnulib always assumes <stddef.h> exists as per README and this
26576         symbol is unnecessary.
26577         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26578         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26579         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26580         faster for headers like stddef.h that are known to exist.
26581         (gl_CHECK_NEXT_HEADERS): Use it.
26582         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26583         rather than gl_CHECK_NEXT_HEADERS.
26584         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26585         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26586
26587 2011-01-18  Eric Blake  <eblake@redhat.com>
26588
26589         ansi-c++-opt: skip C++ dependency style if C++ is unused
26590         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26591         tests when we know C++ compilation is not desired.
26592         Reported by Scott McCreary.
26593
26594 2011-01-18  Bruno Haible  <bruno@clisp.org>
26595
26596         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26597         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26598         (main): Perform test also when getrlimit and setrlimit don't exist or
26599         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26600         limiting the address space size using setrlimit, compare the address
26601         space size before and after the the test.
26602         * tests/test-dprintf-posix2.c: Likewise.
26603         * tests/test-fprintf-posix3.sh: Update skip messages.
26604         * tests/test-dprintf-posix2.sh: Likewise.
26605         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26606         * modules/dprintf-posix-tests (Depends-on): Likewise.
26607         Reported by Bruce Korb <bkorb@gnu.org> and
26608         Gary V. Vaughan <gary@gnu.org>.
26609
26610 2011-01-18  Bruno Haible  <bruno@clisp.org>
26611
26612         get-rusage-as: Improvement for Cygwin.
26613         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26614         areas that are merely reserved.
26615
26616 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26617
26618         strftime: remove dependencies on multibyte modules
26619
26620         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26621         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26622         only if __osf__ is defined, and I suspect OSF doesn't need these
26623         other modules.  If my guess is wrong, we'll need to come up with a
26624         variant of strftime that doesn't need the multibyte modules.
26625
26626         I discovered this problem when attempting modify Emacs to use the
26627         strftime module.  With the previous gnulib, this caused Emacs to
26628         need 31 new files, ranging from lib/config.charset to
26629         m4/wint_t.m4.  This was overkill and I expect would be offputting
26630         to the Emacs maintainers.  After this change, only 6 new files are
26631         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26632         stdbool.m4, and tm_gmtoff.m4.
26633
26634         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26635         Suggested by Bruno Haible in
26636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26637         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26638         and do not check for wchar.h.
26639         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26640         (Depends-on): Remove mbrlen, mbsinit, wchar.
26641
26642 2011-01-18  Bruno Haible  <bruno@clisp.org>
26643
26644         Tests for module 'get-rusage-as'.
26645         * modules/get-rusage-as-tests: New file.
26646         * tests/test-get-rusage-as.c: New file.
26647
26648         New module 'get-rusage-as'.
26649         * modules/get-rusage-as: New file.
26650         * lib/resource-ext.h: New file.
26651         * lib/get-rusage-as.c: New file.
26652
26653 2011-01-17  Eric Blake  <eblake@redhat.com>
26654
26655         sigaction: relax license from LGPLv3+ to LGPLv2+
26656         * modules/sigaction (License): Relax to LGPLv2+.
26657
26658 2011-01-14  Bruno Haible  <bruno@clisp.org>
26659
26660         filemode: Make function declarations usable in C++ mode.
26661         * lib/filemode.h: Enclose function declarations in extern "C" block.
26662         Reported by John W. Eaton <jwe@gnu.org>.
26663
26664 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26665
26666         save-cwd: no longer include "xgetcwd.h"
26667         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26668         This avoids a compilation failure in projects that use save-cwd
26669         without also using the xgetcwd module.
26670
26671 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26672
26673         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26674         This is so that a program like Emacs, which needs only dtoastr,
26675         does not have to bother with distributing and compiling ftoastr
26676         and ldtoastr.
26677         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26678         * modules/dtoastr, modules/ldtoastr: New files.
26679         * modules/ftoastr: Now works just for 'float'.
26680         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26681         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26682         dtoastr.c, ldtoastr.c.
26683
26684 2011-01-11  Jim Meyering  <meyering@redhat.com>
26685
26686         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26687         There is no need to work around the lack of the fchdir function,
26688         since gnulib can now provide a replacement when required.
26689         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26690         * modules/save-cwd (Depends-on): Add fchdir.
26691
26692 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26693
26694         openat, save-cwd: avoid xmalloc
26695
26696         This removes a direct (but undocumented) dependency of openat on
26697         xalloc, along with an indirect dependency via save-cwd.  It also
26698         removes a dependency of save-cwd on xgetcwd, and thereby
26699         indirectly on xalloc.  This change causes the openat substitute
26700         to fall back on save_cwd when memory is tight, and for save_cwd to
26701         fail instead of dying when memory is tight, but that's good enough.
26702         Problem and initial idea for fix reported by Bastien Roucaries in
26703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26704
26705         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26706         xalloc.h (for xmalloc).
26707         (openat_proc_name): Use malloc, not xmalloc.
26708         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26709         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26710
26711         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26712         This avoids heap allocation for file names whose lengths are in
26713         the range 512..1023, with the upper bound increasing to at most
26714         4031 depending on the platform's PATH_MAX.  (We do not want
26715         pathmax.h here as it might supply a non-constant PATH_MAX.)
26716         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26717         Perhaps they should be moved to malloca.h?
26718         (OPENAT_BUFFER_SIZE): Use them.
26719
26720 2011-01-10  Bruno Haible  <bruno@clisp.org>
26721
26722         doc: Update users.txt.
26723         * users.txt: Add recutils.
26724
26725 2011-01-09  Karl Berry  <karl@gnu.org>
26726
26727         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26728
26729         * doc/configmake.texi: New file.
26730         * doc/gnulib.texi: Include it.
26731         * modules/configmake: Move documentation from here.
26732
26733 2011-01-09  Bruno Haible  <bruno@clisp.org>
26734
26735         Update to Unicode 6.0.0.
26736         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26737         (get_lbp): Update for Unicode 6.0.0.
26738         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26739         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26740         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26741         U+11001, U+11038..U+11046. Remove U+06DE.
26742         (uc_width): Fix bounds of planes.
26743         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26744         lib/uniwidth/width.c.
26745         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26746         trailing whitespace removed.
26747         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26748         without comments, but with the original copyright notice.
26749         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26750         * lib/unicase/ignorable.h: Likewise.
26751         * lib/unicase/tocasefold.h: Likewise.
26752         * lib/unicase/tolower.h: Likewise.
26753         * lib/unicase/totitle.h: Likewise.
26754         * lib/unicase/toupper.h: Likewise.
26755         * lib/unictype/bidi_of.h: Likewise.
26756         * lib/unictype/blocks.h: Likewise.
26757         * lib/unictype/categ_C.h: Likewise.
26758         * lib/unictype/categ_Cn.h: Likewise.
26759         * lib/unictype/categ_L.h: Likewise.
26760         * lib/unictype/categ_Ll.h: Likewise.
26761         * lib/unictype/categ_Lm.h: Likewise.
26762         * lib/unictype/categ_Lo.h: Likewise.
26763         * lib/unictype/categ_Lu.h: Likewise.
26764         * lib/unictype/categ_M.h: Likewise.
26765         * lib/unictype/categ_Mc.h: Likewise.
26766         * lib/unictype/categ_Me.h: Likewise.
26767         * lib/unictype/categ_Mn.h: Likewise.
26768         * lib/unictype/categ_N.h: Likewise.
26769         * lib/unictype/categ_Nd.h: Likewise.
26770         * lib/unictype/categ_No.h: Likewise.
26771         * lib/unictype/categ_P.h: Likewise.
26772         * lib/unictype/categ_Po.h: Likewise.
26773         * lib/unictype/categ_S.h: Likewise.
26774         * lib/unictype/categ_Sc.h: Likewise.
26775         * lib/unictype/categ_Sk.h: Likewise.
26776         * lib/unictype/categ_Sm.h: Likewise.
26777         * lib/unictype/categ_So.h: Likewise.
26778         * lib/unictype/categ_of.h: Likewise.
26779         * lib/unictype/combining.h: Likewise.
26780         * lib/unictype/ctype_alnum.h: Likewise.
26781         * lib/unictype/ctype_alpha.h: Likewise.
26782         * lib/unictype/ctype_graph.h: Likewise.
26783         * lib/unictype/ctype_lower.h: Likewise.
26784         * lib/unictype/ctype_print.h: Likewise.
26785         * lib/unictype/ctype_punct.h: Likewise.
26786         * lib/unictype/ctype_upper.h: Likewise.
26787         * lib/unictype/decdigit.h: Likewise.
26788         * lib/unictype/digit.h: Likewise.
26789         * lib/unictype/numeric.h: Likewise.
26790         * lib/unictype/pr_alphabetic.h: Likewise.
26791         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26792         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26793         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26794         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26795         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26796         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26797         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26798         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26799         * lib/unictype/pr_case_ignorable.h: Likewise.
26800         * lib/unictype/pr_cased.h: Likewise.
26801         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26802         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26803         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26804         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26805         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26806         * lib/unictype/pr_combining.h: Likewise.
26807         * lib/unictype/pr_composite.h: Likewise.
26808         * lib/unictype/pr_currency_symbol.h: Likewise.
26809         * lib/unictype/pr_decimal_digit.h: Likewise.
26810         * lib/unictype/pr_deprecated.h: Likewise.
26811         * lib/unictype/pr_format_control.h: Likewise.
26812         * lib/unictype/pr_grapheme_base.h: Likewise.
26813         * lib/unictype/pr_grapheme_extend.h: Likewise.
26814         * lib/unictype/pr_grapheme_link.h: Likewise.
26815         * lib/unictype/pr_id_continue.h: Likewise.
26816         * lib/unictype/pr_id_start.h: Likewise.
26817         * lib/unictype/pr_ideographic.h: Likewise.
26818         * lib/unictype/pr_lowercase.h: Likewise.
26819         * lib/unictype/pr_math.h: Likewise.
26820         * lib/unictype/pr_numeric.h: Likewise.
26821         * lib/unictype/pr_other_alphabetic.h: Likewise.
26822         * lib/unictype/pr_other_id_continue.h: Likewise.
26823         * lib/unictype/pr_other_math.h: Likewise.
26824         * lib/unictype/pr_punctuation.h: Likewise.
26825         * lib/unictype/pr_sentence_terminal.h: Likewise.
26826         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26827         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26828         * lib/unictype/pr_unified_ideograph.h: Likewise.
26829         * lib/unictype/pr_uppercase.h: Likewise.
26830         * lib/unictype/pr_xid_continue.h: Likewise.
26831         * lib/unictype/pr_xid_start.h: Likewise.
26832         * lib/unictype/scripts.h: Likewise.
26833         * lib/unictype/scripts_byname.gperf: Likewise.
26834         * lib/unictype/sy_java_ident.h: Likewise.
26835         * lib/unigbrk/gbrkprop.h: Likewise.
26836         * lib/unilbrk/lbrkprop1.h: Likewise.
26837         * lib/unilbrk/lbrkprop2.h: Likewise.
26838         * lib/uninorm/decomposition-table2.h: Likewise.
26839         * lib/uniwbrk/wbrkprop.h: Likewise.
26840         * tests/unicase/test-cased.c: Likewise.
26841         * tests/unicase/test-ignorable.c: Likewise.
26842         * tests/unicase/test-uc_tolower.c: Likewise.
26843         * tests/unicase/test-uc_totitle.c: Likewise.
26844         * tests/unicase/test-uc_toupper.c: Likewise.
26845         * tests/unictype/test-categ_C.c: Likewise.
26846         * tests/unictype/test-categ_Cn.c: Likewise.
26847         * tests/unictype/test-categ_L.c: Likewise.
26848         * tests/unictype/test-categ_Ll.c: Likewise.
26849         * tests/unictype/test-categ_Lm.c: Likewise.
26850         * tests/unictype/test-categ_Lo.c: Likewise.
26851         * tests/unictype/test-categ_Lu.c: Likewise.
26852         * tests/unictype/test-categ_M.c: Likewise.
26853         * tests/unictype/test-categ_Mc.c: Likewise.
26854         * tests/unictype/test-categ_Me.c: Likewise.
26855         * tests/unictype/test-categ_Mn.c: Likewise.
26856         * tests/unictype/test-categ_N.c: Likewise.
26857         * tests/unictype/test-categ_Nd.c: Likewise.
26858         * tests/unictype/test-categ_No.c: Likewise.
26859         * tests/unictype/test-categ_P.c: Likewise.
26860         * tests/unictype/test-categ_Po.c: Likewise.
26861         * tests/unictype/test-categ_S.c: Likewise.
26862         * tests/unictype/test-categ_Sc.c: Likewise.
26863         * tests/unictype/test-categ_Sk.c: Likewise.
26864         * tests/unictype/test-categ_Sm.c: Likewise.
26865         * tests/unictype/test-categ_So.c: Likewise.
26866         * tests/unictype/test-ctype_alnum.c: Likewise.
26867         * tests/unictype/test-ctype_alpha.c: Likewise.
26868         * tests/unictype/test-ctype_graph.c: Likewise.
26869         * tests/unictype/test-ctype_lower.c: Likewise.
26870         * tests/unictype/test-ctype_print.c: Likewise.
26871         * tests/unictype/test-ctype_punct.c: Likewise.
26872         * tests/unictype/test-ctype_upper.c: Likewise.
26873         * tests/unictype/test-decdigit.h: Likewise.
26874         * tests/unictype/test-digit.h: Likewise.
26875         * tests/unictype/test-numeric.h: Likewise.
26876         * tests/unictype/test-pr_alphabetic.c: Likewise.
26877         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26878         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26879         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26880         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26881         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26882         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26883         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26884         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26885         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26886         * tests/unictype/test-pr_cased.c: Likewise.
26887         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26888         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26889         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26890         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26891         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26892         * tests/unictype/test-pr_combining.c: Likewise.
26893         * tests/unictype/test-pr_composite.c: Likewise.
26894         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26895         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26896         * tests/unictype/test-pr_deprecated.c: Likewise.
26897         * tests/unictype/test-pr_format_control.c: Likewise.
26898         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26899         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26900         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26901         * tests/unictype/test-pr_id_continue.c: Likewise.
26902         * tests/unictype/test-pr_id_start.c: Likewise.
26903         * tests/unictype/test-pr_ideographic.c: Likewise.
26904         * tests/unictype/test-pr_lowercase.c: Likewise.
26905         * tests/unictype/test-pr_math.c: Likewise.
26906         * tests/unictype/test-pr_numeric.c: Likewise.
26907         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26908         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26909         * tests/unictype/test-pr_other_math.c: Likewise.
26910         * tests/unictype/test-pr_punctuation.c: Likewise.
26911         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26912         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26913         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26914         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26915         * tests/unictype/test-pr_uppercase.c: Likewise.
26916         * tests/unictype/test-pr_xid_continue.c: Likewise.
26917         * tests/unictype/test-pr_xid_start.c: Likewise.
26918         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26919         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26920         changes.
26921         * lib/unictype/categ_Cc.h: Likewise.
26922         * lib/unictype/categ_Cf.h: Likewise.
26923         * lib/unictype/categ_Co.h: Likewise.
26924         * lib/unictype/categ_Cs.h: Likewise.
26925         * lib/unictype/categ_Lt.h: Likewise.
26926         * lib/unictype/categ_Nl.h: Likewise.
26927         * lib/unictype/categ_Pc.h: Likewise.
26928         * lib/unictype/categ_Pd.h: Likewise.
26929         * lib/unictype/categ_Pe.h: Likewise.
26930         * lib/unictype/categ_Pf.h: Likewise.
26931         * lib/unictype/categ_Pi.h: Likewise.
26932         * lib/unictype/categ_Ps.h: Likewise.
26933         * lib/unictype/categ_Z.h: Likewise.
26934         * lib/unictype/categ_Zl.h: Likewise.
26935         * lib/unictype/categ_Zp.h: Likewise.
26936         * lib/unictype/categ_Zs.h: Likewise.
26937         * lib/unictype/ctype_blank.h: Likewise.
26938         * lib/unictype/ctype_cntrl.h: Likewise.
26939         * lib/unictype/ctype_digit.h: Likewise.
26940         * lib/unictype/ctype_space.h: Likewise.
26941         * lib/unictype/ctype_xdigit.h: Likewise.
26942         * lib/unictype/mirror.h: Likewise.
26943         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26944         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26945         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26946         * lib/unictype/pr_bidi_control.h: Likewise.
26947         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26948         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26949         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26950         * lib/unictype/pr_bidi_pdf.h: Likewise.
26951         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26952         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26953         * lib/unictype/pr_dash.h: Likewise.
26954         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26955         * lib/unictype/pr_diacritic.h: Likewise.
26956         * lib/unictype/pr_extender.h: Likewise.
26957         * lib/unictype/pr_hex_digit.h: Likewise.
26958         * lib/unictype/pr_hyphen.h: Likewise.
26959         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26960         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26961         * lib/unictype/pr_ignorable_control.h: Likewise.
26962         * lib/unictype/pr_iso_control.h: Likewise.
26963         * lib/unictype/pr_join_control.h: Likewise.
26964         * lib/unictype/pr_left_of_pair.h: Likewise.
26965         * lib/unictype/pr_line_separator.h: Likewise.
26966         * lib/unictype/pr_logical_order_exception.h: Likewise.
26967         * lib/unictype/pr_non_break.h: Likewise.
26968         * lib/unictype/pr_not_a_character.h: Likewise.
26969         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26970         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26971         * lib/unictype/pr_other_id_start.h: Likewise.
26972         * lib/unictype/pr_other_lowercase.h: Likewise.
26973         * lib/unictype/pr_other_uppercase.h: Likewise.
26974         * lib/unictype/pr_paired_punctuation.h: Likewise.
26975         * lib/unictype/pr_paragraph_separator.h: Likewise.
26976         * lib/unictype/pr_pattern_syntax.h: Likewise.
26977         * lib/unictype/pr_pattern_white_space.h: Likewise.
26978         * lib/unictype/pr_private_use.h: Likewise.
26979         * lib/unictype/pr_quotation_mark.h: Likewise.
26980         * lib/unictype/pr_radical.h: Likewise.
26981         * lib/unictype/pr_soft_dotted.h: Likewise.
26982         * lib/unictype/pr_space.h: Likewise.
26983         * lib/unictype/pr_titlecase.h: Likewise.
26984         * lib/unictype/pr_variation_selector.h: Likewise.
26985         * lib/unictype/pr_white_space.h: Likewise.
26986         * lib/unictype/pr_zero_width.h: Likewise.
26987         * lib/unictype/sy_c_ident.h: Likewise.
26988         * lib/unictype/sy_c_whitespace.h: Likewise.
26989         * lib/unictype/sy_java_whitespace.h: Likewise.
26990         * lib/uninorm/composition-table.gperf: Likewise.
26991         * lib/uninorm/decomposition-table1.h: Likewise.
26992         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26993         LB8.
26994         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26995         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26996         * modules/unictype/*: Bump version number of expected libunistring
26997         version.
26998
26999 2011-01-09  Bruno Haible  <bruno@clisp.org>
27000
27001         Update to Unicode 5.2.0.
27002         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
27003         trailing whitespace removed.
27004
27005 2011-01-09  Bruno Haible  <bruno@clisp.org>
27006
27007         New Unicode character properties, from Unicode 5.2.0.
27008         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
27009         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
27010         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
27011         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
27012         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
27013         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
27014         uc_is_property_cased, uc_is_property_case_ignorable,
27015         uc_is_property_changes_when_lowercased,
27016         uc_is_property_changes_when_uppercased,
27017         uc_is_property_changes_when_titlecased,
27018         uc_is_property_changes_when_casefolded,
27019         uc_is_property_changes_when_casemapped): New declarations.
27020         * lib/unictype/pr_byname.gperf: Add the new properties.
27021         * modules/unictype/property-byname (Depends-on): Depend on the new
27022         properties modules.
27023         * modules/unictype/property-all (Depends-on): Likewise.
27024         * MODULES.html.sh (Unicode string functions): Add
27025         unictype/property-case-ignorable, unictype/property-cased,
27026         unictype/property-changes-when-casefolded,
27027         unictype/property-changes-when-casemapped,
27028         unictype/property-changes-when-lowercased,
27029         unictype/property-changes-when-titlecased,
27030         unictype/property-changes-when-uppercased.
27031
27032         New module 'unictype/property-changes-when-casemapped'.
27033         * modules/unictype/property-changes-when-casemapped: New file.
27034         * lib/unictype/pr_changes_when_casemapped.c: New file.
27035         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
27036         generated by gen-uni-tables.
27037         * modules/unictype/property-changes-when-casemapped-tests: New file.
27038         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
27039         automatically generated by gen-uni-tables.
27040
27041         New module 'unictype/property-changes-when-casefolded'.
27042         * modules/unictype/property-changes-when-casefolded: New file.
27043         * lib/unictype/pr_changes_when_casefolded.c: New file.
27044         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
27045         generated by gen-uni-tables.
27046         * modules/unictype/property-changes-when-casefolded-tests: New file.
27047         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
27048         automatically generated by gen-uni-tables.
27049
27050         New module 'unictype/property-changes-when-titlecased'.
27051         * modules/unictype/property-changes-when-titlecased: New file.
27052         * lib/unictype/pr_changes_when_titlecased.c: New file.
27053         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
27054         generated by gen-uni-tables.
27055         * modules/unictype/property-changes-when-titlecased-tests: New file.
27056         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
27057         automatically generated by gen-uni-tables.
27058
27059         New module 'unictype/property-changes-when-uppercased'.
27060         * modules/unictype/property-changes-when-uppercased: New file.
27061         * lib/unictype/pr_changes_when_uppercased.c: New file.
27062         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
27063         generated by gen-uni-tables.
27064         * modules/unictype/property-changes-when-uppercased-tests: New file.
27065         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
27066         automatically generated by gen-uni-tables.
27067
27068         New module 'unictype/property-changes-when-lowercased'.
27069         * modules/unictype/property-changes-when-lowercased: New file.
27070         * lib/unictype/pr_changes_when_lowercased.c: New file.
27071         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
27072         generated by gen-uni-tables.
27073         * modules/unictype/property-changes-when-lowercased-tests: New file.
27074         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
27075         automatically generated by gen-uni-tables.
27076
27077         New module 'unictype/property-case-ignorable'.
27078         * modules/unictype/property-case-ignorable: New file.
27079         * lib/unictype/pr_case_ignorable.c: New file.
27080         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27081         by gen-uni-tables.
27082         * modules/unictype/property-case-ignorable-tests: New file.
27083         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27084         generated by gen-uni-tables.
27085
27086         New module 'unictype/property-cased'.
27087         * modules/unictype/property-cased: New file.
27088         * lib/unictype/pr_cased.c: New file.
27089         * lib/unictype/pr_cased.h: New file, automatically generated by
27090         gen-uni-tables.
27091         * modules/unictype/property-cased-tests: New file.
27092         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27093         gen-uni-tables.
27094
27095 2011-01-09  Bruno Haible  <bruno@clisp.org>
27096
27097         Update to Unicode 5.2.0.
27098         * lib/gen-uni-tables.c (output_predicate, output_category,
27099         output_combclass, output_bidi_category, output_decimal_digit_test,
27100         output_decimal_digit, output_digit_test, output_digit,
27101         output_numeric_test, output_numeric, output_mirror, output_scripts,
27102         output_scripts_byname, output_blocks, output_ident_category): Fix
27103         comment header.
27104         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27105         get_wbp.
27106         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27107         items.
27108         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27109         Changes_When_Lowercased, Changes_When_Uppercased,
27110         Changes_When_Titlecased, Changes_When_Casefolded,
27111         Changes_When_Casemapped.
27112         (is_property_alphabetic, is_property_default_ignorable_code_point):
27113         Update for Unicode 5.2.0.
27114         (is_property_cased, is_property_case_ignorable,
27115         is_property_changes_when_lowercased,
27116         is_property_changes_when_uppercased,
27117         is_property_changes_when_titlecased,
27118         is_property_changes_when_casefolded,
27119         is_property_changes_when_casemapped): New functions.
27120         (output_properties): Output also the properties cased, case_ignorable,
27121         changes_when_lowercased, changes_when_uppercased,
27122         changes_when_titlecased, changes_when_casefolded,
27123         changes_when_casemapped.
27124         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27125         Unicode TR#11 revision 17 -> 19.
27126         (LBP_CP): New enumeration value.
27127         (LBP_*): Adjust values accordingly.
27128         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27129         TR#14 revision 22 -> 24.
27130         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27131         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27132         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27133         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27134         is_WBP_MIDLETTER.
27135         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27136         the code1 and code2 of each composition rule.
27137         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27138         * lib/unicase/ignorable.h: Likewise.
27139         * lib/unicase/tocasefold.h: Likewise.
27140         * lib/unicase/tolower.h: Likewise.
27141         * lib/unicase/totitle.h: Likewise.
27142         * lib/unicase/toupper.h: Likewise.
27143         * lib/unictype/bidi_of.h: Likewise.
27144         * lib/unictype/blocks.h: Likewise.
27145         * lib/unictype/categ_C.h: Likewise.
27146         * lib/unictype/categ_Cf.h: Likewise.
27147         * lib/unictype/categ_Cn.h: Likewise.
27148         * lib/unictype/categ_L.h: Likewise.
27149         * lib/unictype/categ_Ll.h: Likewise.
27150         * lib/unictype/categ_Lm.h: Likewise.
27151         * lib/unictype/categ_Lo.h: Likewise.
27152         * lib/unictype/categ_Lu.h: Likewise.
27153         * lib/unictype/categ_M.h: Likewise.
27154         * lib/unictype/categ_Mc.h: Likewise.
27155         * lib/unictype/categ_Mn.h: Likewise.
27156         * lib/unictype/categ_N.h: Likewise.
27157         * lib/unictype/categ_Nd.h: Likewise.
27158         * lib/unictype/categ_Nl.h: Likewise.
27159         * lib/unictype/categ_No.h: Likewise.
27160         * lib/unictype/categ_P.h: Likewise.
27161         * lib/unictype/categ_Pd.h: Likewise.
27162         * lib/unictype/categ_Po.h: Likewise.
27163         * lib/unictype/categ_S.h: Likewise.
27164         * lib/unictype/categ_Sc.h: Likewise.
27165         * lib/unictype/categ_So.h: Likewise.
27166         * lib/unictype/categ_of.h: Likewise.
27167         * lib/unictype/combining.h: Likewise.
27168         * lib/unictype/ctype_alnum.h: Likewise.
27169         * lib/unictype/ctype_alpha.h: Likewise.
27170         * lib/unictype/ctype_graph.h: Likewise.
27171         * lib/unictype/ctype_lower.h: Likewise.
27172         * lib/unictype/ctype_print.h: Likewise.
27173         * lib/unictype/ctype_punct.h: Likewise.
27174         * lib/unictype/ctype_upper.h: Likewise.
27175         * lib/unictype/decdigit.h: Likewise.
27176         * lib/unictype/digit.h: Likewise.
27177         * lib/unictype/numeric.h: Likewise.
27178         * lib/unictype/pr_alphabetic.h: Likewise.
27179         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27180         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27181         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27182         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27183         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27184         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27185         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27186         * lib/unictype/pr_combining.h: Likewise.
27187         * lib/unictype/pr_composite.h: Likewise.
27188         * lib/unictype/pr_currency_symbol.h: Likewise.
27189         * lib/unictype/pr_dash.h: Likewise.
27190         * lib/unictype/pr_decimal_digit.h: Likewise.
27191         * lib/unictype/pr_deprecated.h: Likewise.
27192         * lib/unictype/pr_diacritic.h: Likewise.
27193         * lib/unictype/pr_extender.h: Likewise.
27194         * lib/unictype/pr_grapheme_base.h: Likewise.
27195         * lib/unictype/pr_grapheme_extend.h: Likewise.
27196         * lib/unictype/pr_grapheme_link.h: Likewise.
27197         * lib/unictype/pr_id_continue.h: Likewise.
27198         * lib/unictype/pr_id_start.h: Likewise.
27199         * lib/unictype/pr_ideographic.h: Likewise.
27200         * lib/unictype/pr_ignorable_control.h: Likewise.
27201         * lib/unictype/pr_logical_order_exception.h: Likewise.
27202         * lib/unictype/pr_lowercase.h: Likewise.
27203         * lib/unictype/pr_numeric.h: Likewise.
27204         * lib/unictype/pr_other_alphabetic.h: Likewise.
27205         * lib/unictype/pr_punctuation.h: Likewise.
27206         * lib/unictype/pr_sentence_terminal.h: Likewise.
27207         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27208         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27209         * lib/unictype/pr_unified_ideograph.h: Likewise.
27210         * lib/unictype/pr_uppercase.h: Likewise.
27211         * lib/unictype/pr_xid_continue.h: Likewise.
27212         * lib/unictype/pr_xid_start.h: Likewise.
27213         * lib/unictype/pr_zero_width.h: Likewise.
27214         * lib/unictype/scripts.h: Likewise.
27215         * lib/unictype/scripts_byname.gperf: Likewise.
27216         * lib/unictype/sy_java_ident.h: Likewise.
27217         * lib/unigbrk/gbrkprop.h: Likewise.
27218         * lib/unilbrk/lbrkprop1.h: Likewise.
27219         * lib/unilbrk/lbrkprop2.h: Likewise.
27220         * lib/unilbrk/lbrktables.h: Likewise.
27221         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27222         LBP_CP. Implement rule LB30.
27223         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27224         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27225         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27226         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27227         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27228         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27229         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27230         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27231         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27232         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27233         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27234         bits instead of 16 bits in the code1 and code2 of each composition
27235         rule.
27236         (uc_composition): Update for Unicode 5.2.0.
27237         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27238         * lib/uninorm/decomposition-table2.h: Likewise.
27239         * lib/uniwbrk/wbrkprop.h: Likewise.
27240         * tests/unicase/test-cased.c: Likewise.
27241         * tests/unicase/test-ignorable.c: Likewise.
27242         * tests/unicase/test-uc_tolower.c: Likewise.
27243         * tests/unicase/test-uc_totitle.c: Likewise.
27244         * tests/unicase/test-uc_toupper.c: Likewise.
27245         * tests/unictype/test-categ_C.c: Likewise.
27246         * tests/unictype/test-categ_Cf.c: Likewise.
27247         * tests/unictype/test-categ_Cn.c: Likewise.
27248         * tests/unictype/test-categ_L.c: Likewise.
27249         * tests/unictype/test-categ_Ll.c: Likewise.
27250         * tests/unictype/test-categ_Lm.c: Likewise.
27251         * tests/unictype/test-categ_Lo.c: Likewise.
27252         * tests/unictype/test-categ_Lu.c: Likewise.
27253         * tests/unictype/test-categ_M.c: Likewise.
27254         * tests/unictype/test-categ_Mc.c: Likewise.
27255         * tests/unictype/test-categ_Mn.c: Likewise.
27256         * tests/unictype/test-categ_N.c: Likewise.
27257         * tests/unictype/test-categ_Nd.c: Likewise.
27258         * tests/unictype/test-categ_Nl.c: Likewise.
27259         * tests/unictype/test-categ_No.c: Likewise.
27260         * tests/unictype/test-categ_P.c: Likewise.
27261         * tests/unictype/test-categ_Pd.c: Likewise.
27262         * tests/unictype/test-categ_Po.c: Likewise.
27263         * tests/unictype/test-categ_S.c: Likewise.
27264         * tests/unictype/test-categ_Sc.c: Likewise.
27265         * tests/unictype/test-categ_So.c: Likewise.
27266         * tests/unictype/test-ctype_alnum.c: Likewise.
27267         * tests/unictype/test-ctype_alpha.c: Likewise.
27268         * tests/unictype/test-ctype_graph.c: Likewise.
27269         * tests/unictype/test-ctype_lower.c: Likewise.
27270         * tests/unictype/test-ctype_print.c: Likewise.
27271         * tests/unictype/test-ctype_punct.c: Likewise.
27272         * tests/unictype/test-ctype_upper.c: Likewise.
27273         * tests/unictype/test-decdigit.h: Likewise.
27274         * tests/unictype/test-digit.h: Likewise.
27275         * tests/unictype/test-numeric.h: Likewise.
27276         * tests/unictype/test-pr_alphabetic.c: Likewise.
27277         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27278         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27279         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27280         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27281         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27282         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27283         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27284         * tests/unictype/test-pr_combining.c: Likewise.
27285         * tests/unictype/test-pr_composite.c: Likewise.
27286         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27287         * tests/unictype/test-pr_dash.c: Likewise.
27288         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27289         * tests/unictype/test-pr_deprecated.c: Likewise.
27290         * tests/unictype/test-pr_diacritic.c: Likewise.
27291         * tests/unictype/test-pr_extender.c: Likewise.
27292         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27293         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27294         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27295         * tests/unictype/test-pr_id_continue.c: Likewise.
27296         * tests/unictype/test-pr_id_start.c: Likewise.
27297         * tests/unictype/test-pr_ideographic.c: Likewise.
27298         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27299         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27300         * tests/unictype/test-pr_lowercase.c: Likewise.
27301         * tests/unictype/test-pr_numeric.c: Likewise.
27302         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27303         * tests/unictype/test-pr_punctuation.c: Likewise.
27304         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27305         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27306         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27307         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27308         * tests/unictype/test-pr_uppercase.c: Likewise.
27309         * tests/unictype/test-pr_xid_continue.c: Likewise.
27310         * tests/unictype/test-pr_xid_start.c: Likewise.
27311         * tests/unictype/test-pr_zero_width.c: Likewise.
27312         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27313         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27314         changed behaviour: line breaking is now disallowed between a letter
27315         or '=' and '('.
27316         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27317         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27318         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27319         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27320         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27321         lib/uniwidth/width.c.
27322         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27323         without comments, but with the original copyright notice.
27324         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27325         changes.
27326         * lib/unictype/categ_Cc.h: Likewise.
27327         * lib/unictype/categ_Co.h: Likewise.
27328         * lib/unictype/categ_Cs.h: Likewise.
27329         * lib/unictype/categ_Lt.h: Likewise.
27330         * lib/unictype/categ_Me.h: Likewise.
27331         * lib/unictype/categ_Pc.h: Likewise.
27332         * lib/unictype/categ_Pe.h: Likewise.
27333         * lib/unictype/categ_Pf.h: Likewise.
27334         * lib/unictype/categ_Pi.h: Likewise.
27335         * lib/unictype/categ_Ps.h: Likewise.
27336         * lib/unictype/categ_Sk.h: Likewise.
27337         * lib/unictype/categ_Sm.h: Likewise.
27338         * lib/unictype/categ_Z.h: Likewise.
27339         * lib/unictype/categ_Zl.h: Likewise.
27340         * lib/unictype/categ_Zp.h: Likewise.
27341         * lib/unictype/categ_Zs.h: Likewise.
27342         * lib/unictype/ctype_blank.h: Likewise.
27343         * lib/unictype/ctype_cntrl.h: Likewise.
27344         * lib/unictype/ctype_digit.h: Likewise.
27345         * lib/unictype/ctype_space.h: Likewise.
27346         * lib/unictype/ctype_xdigit.h: Likewise.
27347         * lib/unictype/mirror.h: Likewise.
27348         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27349         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27350         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27351         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27352         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27353         * lib/unictype/pr_bidi_control.h: Likewise.
27354         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27355         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27356         * lib/unictype/pr_bidi_pdf.h: Likewise.
27357         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27358         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27359         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27360         * lib/unictype/pr_format_control.h: Likewise.
27361         * lib/unictype/pr_hex_digit.h: Likewise.
27362         * lib/unictype/pr_hyphen.h: Likewise.
27363         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27364         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27365         * lib/unictype/pr_iso_control.h: Likewise.
27366         * lib/unictype/pr_join_control.h: Likewise.
27367         * lib/unictype/pr_left_of_pair.h: Likewise.
27368         * lib/unictype/pr_line_separator.h: Likewise.
27369         * lib/unictype/pr_math.h: Likewise.
27370         * lib/unictype/pr_non_break.h: Likewise.
27371         * lib/unictype/pr_not_a_character.h: Likewise.
27372         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27373         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27374         * lib/unictype/pr_other_id_continue.h: Likewise.
27375         * lib/unictype/pr_other_id_start.h: Likewise.
27376         * lib/unictype/pr_other_lowercase.h: Likewise.
27377         * lib/unictype/pr_other_math.h: Likewise.
27378         * lib/unictype/pr_other_uppercase.h: Likewise.
27379         * lib/unictype/pr_paired_punctuation.h: Likewise.
27380         * lib/unictype/pr_paragraph_separator.h: Likewise.
27381         * lib/unictype/pr_pattern_syntax.h: Likewise.
27382         * lib/unictype/pr_pattern_white_space.h: Likewise.
27383         * lib/unictype/pr_private_use.h: Likewise.
27384         * lib/unictype/pr_quotation_mark.h: Likewise.
27385         * lib/unictype/pr_radical.h: Likewise.
27386         * lib/unictype/pr_soft_dotted.h: Likewise.
27387         * lib/unictype/pr_space.h: Likewise.
27388         * lib/unictype/pr_titlecase.h: Likewise.
27389         * lib/unictype/pr_variation_selector.h: Likewise.
27390         * lib/unictype/pr_white_space.h: Likewise.
27391         * lib/unictype/sy_c_ident.h: Likewise.
27392         * lib/unictype/sy_c_whitespace.h: Likewise.
27393         * lib/unictype/sy_java_whitespace.h: Likewise.
27394         * modules/uni*/*: Bump version number of expected libunistring version.
27395         Reported by Simon Josefsson.
27396
27397 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27398
27399         useless-if-before-free: fix typo in --help and make the internal,
27400         automatic version date update process work once again.
27401         --help output contained a NUL character instead of the
27402         backslash-zero that was intended.  Also, the "must lie within
27403         the first 8 lines" line is on line 9, and hence not getting
27404         automatically updated.
27405         * build-aux/useless-if-before-free: Fix the former by adding a
27406         backslash, and the latter by condensing the three lines of what-it-does
27407         to a single line, leaving one line of slack for the future.
27408
27409 2011-01-09  Bruno Haible  <bruno@clisp.org>
27410
27411         uniwidth/width: Fix width of U+1D173..U+1D17A.
27412         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27413         symbolic_width, output_width_property_test): New functions.
27414         (main): Invoke output_nonspacing_property, output_width_property_test.
27415         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27416         U+1D173..U+1D17A.
27417         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27418         1.
27419         * modules/uniwidth/*: Bump version number of expected libunistring
27420         version.
27421         * modules/unilbrk/*: Likewise.
27422
27423 2011-01-08  Bruno Haible  <bruno@clisp.org>
27424
27425         uninorm tests: Preserve copyright of Unicode data file.
27426         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27427         Mention modifications.
27428
27429 2011-01-08  Bruno Haible  <bruno@clisp.org>
27430
27431         gen-uni-tables: Prepare for Unicode 5.2.0.
27432         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27433         (debug_output_lbp, output_lbp): Update.
27434
27435 2011-01-08  Bruno Haible  <bruno@clisp.org>
27436
27437         unilbrk: Clarify gen-uni-tables.c code.
27438         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27439         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27440         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27441
27442 2011-01-07  Bruno Haible  <bruno@clisp.org>
27443
27444         strtod: Restore errno when successfully parsing Infinity or NaN.
27445         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27446         restore the original errno.
27447
27448 2011-01-07  Bruno Haible  <bruno@clisp.org>
27449
27450         remove test: Avoid failure on HP-UX 11.
27451         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27452
27453 2011-01-07  Bruno Haible  <bruno@clisp.org>
27454
27455         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27456         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27457         error code.
27458
27459 2011-01-07  Pádraig Brady <P@draigBrady.com>
27460
27461         ignore-value: fixup comments, and add Eric Blake
27462         as an author since he rewrote the macros.
27463         * lib/ignore-value.h (ignore_value):  State that
27464         we now support aggregates.  Also specify exactly
27465         when the GCC warn_unused_result feature was added.
27466
27467 2011-01-06  Eric Blake  <eblake@redhat.com>
27468
27469         ignore-value: support aggregate types
27470         * lib/ignore-value.h (ignore_value): Provide separate gcc
27471         definition.
27472         * modules/ignore-value-tests: New test module.
27473         * tests/test-ignore-value.c: New test.
27474
27475         maint.mk: improve sc_prohibit_strcmp regex
27476         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27477         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27478         definition of STRNEQ.
27479
27480         signal: work around Haiku issue with SIGBUS
27481         * lib/siglist.h: Add comment.
27482         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27483         strsignal's favoring of SIGSEGV.
27484         * tests/test-signal.c (main): Avoid test failure.
27485         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27486         Reported by Scott McCreary.
27487
27488         maint.mk: add pre-release check to ensure submodule commits are public
27489         * top/maint.mk (public-submodule-commit): New rule.
27490         (submodule-checks): New variable.
27491         (alpha beta stable): Depend on the variable.
27492
27493 2011-01-05  Pádraig Brady <P@draigBrady.com>
27494         and Jim Meyering  <meyering@redhat.com>
27495
27496         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27497         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27498         (ATTRIBUTE_DEPRECATED): Define.
27499         (_ignore_case): New function.
27500         (ignore_value): New macro, to replace the old function.
27501         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27502         * modules/ignore-value (Depends-on): Add stdint.
27503
27504 2011-01-04  Eric Blake  <eblake@redhat.com>
27505
27506         doc: regenerate INSTALL
27507         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27508         @firstparagraphindent support, now that autoconf dropped it.
27509         (INSTALL_PRELUDE): Reinstate old macro.
27510         * doc/install.texi: Resync from autoconf.
27511         * doc/INSTALL: Reflect recent autoconf update.
27512         * doc/INSTALL.ISO: Likewise.
27513         * doc/INSTALL.UTF-8: Likewise.
27514         Reported by Karl Berry.
27515
27516 2011-01-04  Bruce Korb  <address@hidden>
27517
27518         git-version-gen: avoid a sub-shell
27519         * build-aux/git-version-gen: Redirect stderr in `...` via
27520         "exec 2>...", rather than via an added sub-shell.
27521
27522 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27523
27524         git-version-gen: use (...) rather than sh -c '...'
27525         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27526         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27527
27528 2011-01-03  Jim Meyering  <meyering@redhat.com>
27529
27530         git-version-gen: convert leading TABs to spaces
27531         * build-aux/git-version-gen: Expand leading TABs.
27532
27533         git-version-gen: handle failed "git rev-list"
27534         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27535         from git and proceeding as if it had succeeded but printed no SHA1
27536         checksums, suppress the diagnostic and handle the failure.
27537         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27538
27539         git-version-gen: include command name in one more diagnostic
27540         * build-aux/git-version-gen: When the required .tarball-version file
27541         was missing or unreadable, you might see the diagnostic from "cat",
27542         but no trace of the name of the invoking script.  Now, you still see
27543         the diagnostic from cat, but also get one from "git-version-gen: ".
27544         Inspired by a patch from Bruce Korb.
27545
27546         update-copyright: adjust test to match changed code
27547         * tests/test-update-copyright.sh: Change test's expected output
27548         to match new actual output.
27549
27550 2011-01-02  Bruno Haible  <bruno@clisp.org>
27551
27552         getlogin_r: Avoid test failure on HP-UX 11.
27553         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27554         ERANGE when the second argument is zero.
27555         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27556         portability problem.
27557
27558 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27559
27560         * build-aux/update-copyright: doc Simon's changes
27561
27562 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27563
27564         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27565         environment variable.
27566
27567 2011-01-02  Bruno Haible  <bruno@clisp.org>
27568
27569         unigbrk: Avoid gcc warnings.
27570         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27571         unused variable.
27572         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27573         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27574         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27575         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27576         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27577         Change type of first argument to 'const char *'.
27578         (main): Remove unused variable.
27579         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27580         type of first argument to 'const char *'.
27581         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27582         Likewise.
27583         (main): Change type of variable 's'.
27584         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27585         to 'int'.
27586
27587 2011-01-02  Bruno Haible  <bruno@clisp.org>
27588
27589         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27590         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27591         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27592         bug.
27593         * lib/pwrite.c: Undo 2010-12-31 patch.
27594         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27595
27596 2011-01-02  Bruno Haible  <bruno@clisp.org>
27597
27598         pread: Fix test whether it works.
27599         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27600
27601 2011-01-02  Bruno Haible  <bruno@clisp.org>
27602
27603         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27604         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27605         ends in "6". Don't require a specific month name. Try also the locale
27606         names found on HP-UX 11 and Solaris 7.
27607
27608 2011-01-02  Bruno Haible  <bruno@clisp.org>
27609
27610         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27611         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27612         C linkage.
27613         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27614
27615 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27616
27617         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27618         for consistency, since the "cluster" term is not used elsewhere.
27619         * lib/unigbrk.in.h: Update name.
27620         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27621         * lib/unigbrk/u16-grapheme-next.c: Update name.
27622         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27623         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27624         * lib/unigbrk/u32-grapheme-next.c: Update name.
27625         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27626         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27627         * lib/unigbrk/u8-grapheme-next.c: Update name.
27628         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27629         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27630         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27631         Suggested by Bruno Haible.
27632
27633 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27634
27635         Remove module 'u8-grapheme-len' as too redundant with
27636         'u8-grapheme-next'.
27637         * modules/unigbrk/u8-grapheme-len: Delete file.
27638         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27639         * lib/unigbrk.in.h: Remove prototype for deleted function.
27640         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27641         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27642
27643         Remove module 'u16-grapheme-len' as too redundant with
27644         'u16-grapheme-next'.
27645         * modules/unigbrk/u16-grapheme-len: Delete file.
27646         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27647         * lib/unigbrk.in.h: Remove prototype for deleted function.
27648         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27649         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27650
27651         Remove module 'u32-grapheme-len' as too redundant with
27652         'u32-grapheme-next'.
27653         * modules/unigbrk/u32-grapheme-len: Delete file.
27654         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27655         * lib/unigbrk.in.h: Remove prototype for deleted function.
27656         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27657         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27658
27659         Suggested by Bruno Haible.
27660
27661 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27662
27663         * unigbrk.in.h: Fix typo: "ben" => "been".
27664         Reported by Bruno Haible.
27665
27666 2011-01-01  Jim Meyering  <meyering@redhat.com>
27667
27668         maint: update almost all copyright ranges to include 2011
27669         Run the new "make update-copyright" rule.
27670
27671 2011-01-01  Jim Meyering  <meyering@redhat.com>
27672
27673         maint: update-copyright: exempt doc/INSTALL*
27674         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27675         since they are generated.  Suggested by Bruno Haible.
27676
27677 2011-01-01  Jim Meyering  <meyering@redhat.com>
27678
27679         maint: refine the update-copyright rule
27680         * Makefile (update-copyright): Also exclude any file that includes
27681         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27682         code that merely generates the comment.
27683
27684 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27685
27686         New module 'u8-grapheme-len'.
27687         * modules/unigbrk/u8-grapheme-len: New file.
27688         * modules/unigbrk/u8-grapheme-len-tests: New file.
27689         * lib/unigbrk.in.h: Add prototype for new function.
27690         * lib/unigbrk/u8-grapheme-len.c: New file.
27691         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27692
27693         New module 'u16-grapheme-len'.
27694         * modules/unigbrk/u16-grapheme-len: New file.
27695         * modules/unigbrk/u16-grapheme-len-tests: New file.
27696         * lib/unigbrk.in.h: Add prototype for new function.
27697         * lib/unigbrk/u16-grapheme-len.c: New file.
27698         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27699
27700         New module 'u32-grapheme-len'.
27701         * modules/unigbrk/u32-grapheme-len: New file.
27702         * modules/unigbrk/u32-grapheme-len-tests: New file.
27703         * lib/unigbrk.in.h: Add prototype for new function.
27704         * lib/unigbrk/u32-grapheme-len.c: New file.
27705         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27706
27707         New module 'u8-grapheme-next'.
27708         * modules/unigbrk/u8-grapheme-next: New file.
27709         * modules/unigbrk/u8-grapheme-next-tests: New file.
27710         * lib/unigbrk.in.h: Add prototype for new function.
27711         * lib/unigbrk/u8-grapheme-next.c: New file.
27712         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27713
27714         New module 'u16-grapheme-next'.
27715         * modules/unigbrk/u16-grapheme-next: New file.
27716         * modules/unigbrk/u16-grapheme-next-tests: New file.
27717         * lib/unigbrk.in.h: Add prototype for new function.
27718         * lib/unigbrk/u16-grapheme-next.c: New file.
27719         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27720
27721         New module 'u32-grapheme-next'.
27722         * modules/unigbrk/u32-grapheme-next: New file.
27723         * modules/unigbrk/u32-grapheme-next-tests: New file.
27724         * lib/unigbrk.in.h: Add prototype for new function.
27725         * lib/unigbrk/u32-grapheme-next.c: New file.
27726         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27727
27728         New module 'u8-grapheme-prev'.
27729         * modules/unigbrk/u8-grapheme-prev: New file.
27730         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27731         * lib/unigbrk.in.h: Add prototype for new function.
27732         * lib/unigbrk/u8-grapheme-prev.c: New file.
27733         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27734
27735         New module 'u16-grapheme-prev'.
27736         * modules/unigbrk/u16-grapheme-prev: New file.
27737         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27738         * lib/unigbrk.in.h: Add prototype for new function.
27739         * lib/unigbrk/u16-grapheme-prev.c: New file.
27740         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27741
27742         New module 'u32-grapheme-prev'.
27743         * modules/unigbrk/u32-grapheme-prev: New file.
27744         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27745         * lib/unigbrk.in.h: Add prototype for new function.
27746         * lib/unigbrk/u32-grapheme-prev.c: New file.
27747         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27748
27749         New module 'u8-grapheme-breaks'.
27750         * modules/unigbrk/u8-grapheme-breaks: New file.
27751         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27752         * lib/unigbrk.in.h: Add prototype for new function.
27753         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27754         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27755
27756         New module 'u16-grapheme-breaks'.
27757         * modules/unigbrk/u16-grapheme-breaks: New file.
27758         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27759         * lib/unigbrk.in.h: Add prototype for new function.
27760         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27761         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27762
27763         New module 'u32-grapheme-breaks'.
27764         * modules/unigbrk/u32-grapheme-breaks: New file.
27765         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27766         * lib/unigbrk.in.h: Add prototype for new function.
27767         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27768         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27769
27770         New module 'ulc-grapheme-breaks'.
27771         * modules/unigbrk/ulc-grapheme-breaks: New file.
27772         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27773         * m4/locale-ar.m4: New file.
27774         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27775         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27776         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27777
27778 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27779
27780         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27781         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27782         modified how this file was generated before I initially submitted
27783         the module, but failed to regenerate it.  This meant that several
27784         of the level2 entries were wrong.
27785         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27786         Remove the division-by-2 that is folded into the table now that
27787         gbrkprop.h has been regenerated properly.  Now -1 entries are
27788         handled correctly.
27789
27790         New module 'unigbrk/uc-gbrk-prop-tests'.
27791         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27792         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27793         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27794         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27795
27796 2011-01-01  Bruno Haible  <bruno@clisp.org>
27797
27798         Avoid use of hexadecimal escapes.
27799         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27800         instead of hexadecimal escapes.
27801
27802 2011-01-01  Jim Meyering  <meyering@redhat.com>
27803
27804         maint: new rule to update copyright year ranges
27805         * Makefile (update-copyright): New rule.
27806
27807         maint: indent with TABs in Makefile
27808         * Makefile: Expand leading sequences of spaces to TABs
27809
27810         version-etc: update the copyright year it reports
27811         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27812
27813 2010-12-31  Bruno Haible  <bruno@clisp.org>
27814
27815         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27816         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27817         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27818         zero.
27819
27820 2010-12-31  Bruno Haible  <bruno@clisp.org>
27821
27822         pwrite: Work around HP-UX 11.11 bug.
27823         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27824         works and set REPLACE_PWRITE if not.
27825         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27826         function.
27827         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27828
27829 2010-12-31  Bruno Haible  <bruno@clisp.org>
27830
27831         pread: Work around HP-UX 11 bugs.
27832         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27833         and set REPLACE_PREAD if not.
27834         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27835
27836 2010-12-31  Eric Blake  <eblake@redhat.com>
27837
27838         nl_langinfo: fix YESEXPR on Irix 6.5
27839         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27840         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27841         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27842         it.
27843
27844 2010-12-31  Bruno Haible  <bruno@clisp.org>
27845
27846         iconv: Document HP-UX 11 bug.
27847         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27848
27849 2010-12-31  Bruno Haible  <bruno@clisp.org>
27850
27851         ldexpl: Fix link error on HP-UX 11.
27852         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27853         LDEXPL_LIBM, using $ISNANL_LIBM.
27854
27855 2010-12-31  Eric Blake  <eblake@redhat.com>
27856
27857         ftello: avoid compilation failure with SunStudio c89
27858         * lib/ftello.c (ftello): Use lseek, not llseek.
27859
27860         tests: avoid failing coreutils tests on cygwin
27861         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27862         (create_exe_shims_): Return 0 when skipping.
27863
27864 2010-12-31  Bruno Haible  <bruno@clisp.org>
27865
27866         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27867         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27868
27869 2010-12-31  Bruno Haible  <bruno@clisp.org>
27870
27871         waitpid: Fix link error in C++ mode.
27872         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27873
27874 2010-12-31  Bruno Haible  <bruno@clisp.org>
27875
27876         isnan: Use GCC built-ins when possible.
27877         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27878         __builtin_isnan.
27879         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27880         (isnan): Define using GCC built-ins for GCC >= 4.0.
27881
27882 2010-12-31  Bruno Haible  <bruno@clisp.org>
27883
27884         isnand: Fix mistake.
27885         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27886         __builtin_isnand.
27887
27888 2010-12-31  Bruno Haible  <bruno@clisp.org>
27889
27890         open: Avoid C++ error on HP-UX 11.
27891         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27892
27893 2010-12-31  Bruno Haible  <bruno@clisp.org>
27894
27895         time_r: Add missing declarations on HP-UX 11.
27896         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27897         instead of HAVE_LOCALTIME_R.
27898         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27899         HAVE_LOCALTIME_R always.
27900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27901         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27902         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27903         HAVE_LOCALTIME_R.
27904         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27905         * doc/posix-functions/localtime_r.texi: Likewise.
27906
27907 2010-12-29  Eric Blake  <eblake@redhat.com>
27908
27909         mountlist: tweak previous commit
27910         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27911         Reported by Paul Eggert.
27912
27913         mountlist: fix local drive detection on cygwin
27914         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27915         that works for cygwin.
27916
27917 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27918
27919         ftoastr, snprintf: ftoastr + snprintf module
27920         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27921         since the snprintf module now should be good enough here.
27922         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27923         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27924         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27925         GNULIB_SNPRINTF only for the test directory, and the latter
27926         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27927         seems to suffice by itself.
27928
27929 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27930
27931         alloca: one step towards thread-safety
27932         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27933         need for a static variable.  All callers changed.  This does not
27934         make the alloca replacement thread-safe, but it's one step.
27935
27936         tests: minor indenting change
27937         * tests/init.sh: Sync from coreutils housekeeping patch
27938         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27939         to keep lines within 80 columns.
27940
27941 2010-12-28  Jim Meyering  <meyering@redhat.com>
27942
27943         regex: don't infloop on persistent failing calloc
27944         * lib/regexec.c (build_trtable): Return failure indication upon
27945         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27946         In glibc, this was fixed for version 2.13:
27947         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27948
27949 2010-12-28  Bruno Haible  <bruno@clisp.org>
27950             Paul Eggert <eggert@cs.ucla.edu>
27951
27952         linkat: Make implementation robust against system behaviour variations.
27953         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27954         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27955         way, and to -2 if it needs a generic runtime test.
27956         * lib/linkat.c (solaris_optimized_link_immediate,
27957         solaris_optimized_link_follow): New functions.
27958         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27959         (check_same_link): Use it.
27960
27961 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27962
27963         New module 'unigbrk/base'.
27964         * modules/unigbrk/base: New file.
27965         * lib/unigbrk.in.h: New file.
27966
27967         New module 'unigbrk/uc-gbrk-prop'.
27968         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27969         * modules/unigbrk/uc-gbrk-prop: New file.
27970         * lib/unigbrk/gbrkprop.h: New file.
27971         * lib/unigbrk/uc-gbrk-prop.c: New file.
27972
27973         New module 'unigbrk/uc-is-grapheme-break'.
27974         * modules/unigbrk/uc-is-grapheme-break: New file.
27975         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27976         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27977         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27978         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27979         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27980
27981         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27982
27983 2010-12-27  Bruno Haible  <bruno@clisp.org>
27984
27985         linkat test: Avoid failure on Solaris 11 2010-11.
27986         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27987
27988 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27989
27990         utimens: work around glibc rounding bug on more platforms
27991         * lib/utimens.c (fdutimens): Work around rounding bug even if
27992         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27993         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27994
27995 2010-12-27  Bruno Haible  <bruno@clisp.org>
27996
27997         select tests: Improve comments.
27998         * tests/test-select.c (do_select): Add comments.
27999
28000 2010-12-27  Bruno Haible  <bruno@clisp.org>
28001
28002         select tests: Safer way of handling timeout.
28003         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
28004         at every invocation.
28005
28006 2010-12-27  Bruno Haible  <bruno@clisp.org>
28007
28008         select tests: Use 'bool' where appropriate.
28009         * tests/test-select.c (connect_to_socket): Change argument type to
28010         'bool'.
28011
28012 2010-12-27  Bruno Haible  <bruno@clisp.org>
28013
28014         select tests: Use existing modules.
28015         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
28016         (configure.ac): Don't test for unistd.h.
28017         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
28018         declared in <unistd.h>.
28019
28020 2010-12-27  Bruno Haible  <bruno@clisp.org>
28021
28022         mbrtowc: Work around a Solaris 7 bug.
28023         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
28024         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
28025         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
28026         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
28027         MBRTOWC_NULL_ARG1_BUG.
28028         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
28029         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
28030         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
28031         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
28032
28033 2010-12-27  Jim Meyering  <meyering@redhat.com>
28034
28035         read-file.c: tweak syntax
28036         * lib/read-file.c (fread_file): Remove space after "*" in function
28037         definitions.
28038
28039 2010-12-27  Bruno Haible  <bruno@clisp.org>
28040
28041         times test: Avoid gcc warnings on OSF/1.
28042         * tests/test-times.c (main): Cast printf arguments from clock_t to
28043         'long int'.
28044
28045 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28046
28047         utimens: work around glibc rounding bug on older Linux kernels
28048         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
28049         on Linux with a glibc whose utimes might not work, then work
28050         around a longstanding glibc bug involving rounding rather than
28051         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
28052         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28053
28054 2010-12-26  Bruno Haible  <bruno@clisp.org>
28055
28056         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
28057         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
28058         _GL_CXXALIAS_SYS.
28059         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28060
28061 2010-12-26  Bruno Haible  <bruno@clisp.org>
28062
28063         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
28064         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
28065         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28066         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
28067         looking for the declaration.
28068         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
28069         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
28070         problem.
28071         * doc/posix-functions/inet_pton.texi: Likewise.
28072
28073 2010-12-26  Bruno Haible  <bruno@clisp.org>
28074
28075         arpa_inet: Use the common idioms with C++ support.
28076         * lib/arpa_inet.in.h: Include c++defs.h.
28077         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28078         support.
28079         * modules/arpa_inet (Depends-on): Add c++defs.
28080         (Makefile.am): Substitute the contents of c++defs.h.
28081         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28082         * modules/arpa_inet-c++-tests: New file.
28083         * tests/test-arpa_inet-c++.cc: New file.
28084
28085 2010-12-25  Bruno Haible  <bruno@clisp.org>
28086
28087         Fix more C++ link errors on Solaris 8.
28088         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28089         $(LIB_EACCESS).
28090         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28091         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28092         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28093         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28094         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28095
28096 2010-12-25  Bruno Haible  <bruno@clisp.org>
28097
28098         printf-posix: Fix link error when a non-GCC compiler is used.
28099         * lib/stdio.in.h (printf): When not using GCC, override printf
28100         correctly.
28101         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28102
28103 2010-12-25  Bruno Haible  <bruno@clisp.org>
28104
28105         strerror_r-posix: Update doc.
28106         * doc/posix-functions/strerror_r.texi: Update doc about the return
28107         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28108
28109 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28110
28111         utimens: simplify the logic of the previous change
28112         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28113         This should not affect whether the test succeeds or fails.
28114
28115         utimens: configure better on hosts with NFS clock skew
28116         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28117         uses the clock of the local host.  It might use the clock of the
28118         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28119         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28120
28121 2010-12-25  Bruno Haible  <bruno@clisp.org>
28122
28123         ptsname test: Avoid failure on Solaris.
28124         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28125         open a pseudo-terminal; don't use BSD-style ptys.
28126         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28127
28128 2010-12-25  Bruno Haible  <bruno@clisp.org>
28129
28130         ptsname: Avoid ERANGE failure on some systems.
28131         * lib/ptsname.c (buffer): Increase size.
28132
28133 2010-12-25  Bruno Haible  <bruno@clisp.org>
28134
28135         rename, renameat: Avoid test failures at NFS mounted locations.
28136         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28137         so that subsequent mkdir calls succeed.
28138
28139 2010-12-25  Bruno Haible  <bruno@clisp.org>
28140
28141         iswblank: Fix C++ link error on Solaris 8.
28142         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28143         _GL_FUNCDECL_SYS.
28144
28145 2010-12-25  Bruno Haible  <bruno@clisp.org>
28146
28147         unistd: Fix C++ link error on Solaris 8.
28148         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28149
28150 2010-12-25  Bruno Haible  <bruno@clisp.org>
28151
28152         readlink doc: Mention an old glibc bug.
28153         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28154
28155 2010-12-25  Bruno Haible  <bruno@clisp.org>
28156
28157         fcntl-h: Fix for use of C++ on glibc systems.
28158         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28159         also on glibc systems in C++ mode.
28160         Reported by Gary V. Vaughan <gary@gnu.org>.
28161
28162 2010-12-25  Bruno Haible  <bruno@clisp.org>
28163
28164         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28165         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28166
28167 2010-12-25  Bruno Haible  <bruno@clisp.org>
28168
28169         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28170         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28171         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28172         test whether truncl works according to ISO C 99 with IEC 60559.
28173         * m4/truncl-ieee.m4: New file.
28174         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28175         m4/signbit.m4.
28176         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28177
28178 2010-12-25  Bruno Haible  <bruno@clisp.org>
28179
28180         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28181         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28182         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28183         test whether ceill works according to ISO C 99 with IEC 60559.
28184         * m4/ceill-ieee.m4: New file.
28185         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28186         m4/signbit.m4.
28187         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28188
28189 2010-12-25  Bruno Haible  <bruno@clisp.org>
28190
28191         Ensure all prerequisites of <wchar.h> are included.
28192         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28193         before <wchar.h>.
28194         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28195         gl_MBRLEN_NUL_RETVAL): Likewise.
28196         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28197         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28198         AC_FUNC_MBRTOWC): Likewise.
28199         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28200         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28201         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28202         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28203         Likewise.
28204         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28205         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28206         (gl_WCHAR_H): Improve comments.
28207         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28208
28209 2010-12-25  Bruno Haible  <bruno@clisp.org>
28210
28211         strtok_r: Fix C syntax error in autoconf macro.
28212         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28213         characters in test program.
28214
28215 2010-12-24  Bruno Haible  <bruno@clisp.org>
28216
28217         ceil, trunc, round: Fix gcc warnings.
28218         * lib/ceil.c (MIN): Undefine before redefining.
28219         * lib/trunc.c (MIN): Likewise.
28220         * lib/round.c (MIN): Likewise.
28221         Include <math.h> first.
28222
28223 2010-12-24  Bruno Haible  <bruno@clisp.org>
28224
28225         select tests: Avoid failures on OSF/1 5.1.
28226         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28227         failure of closing the last socket; it may fail with ECONNRESET.
28228
28229 2010-12-24  Eric Blake  <eblake@redhat.com>
28230
28231         stdint: avoid HP-UX 10.20 preprocessor bug
28232         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28233         than #if.
28234         * tests/test-floor2.c (main): Likewise.
28235         Reported by Peter O'Gorman.
28236
28237         pipe: make obsoletion transition easier
28238         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28239         * modules/pipe (Files): Include revived file.
28240         (Include): Drop reference, to mirror getdate's behavior.
28241
28242 2010-12-24  Bruno Haible  <bruno@clisp.org>
28243
28244         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28245         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28246         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28247         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28248
28249 2010-12-24  Bruno Haible  <bruno@clisp.org>
28250
28251         gethostname: Ensure declaration on NonStop Kernel.
28252         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28253         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28254
28255 2010-12-24  Bruno Haible  <bruno@clisp.org>
28256
28257         sys_select: Ensure all necessary types on NonStop Kernel.
28258         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28259         include <sys/time.h>.
28260         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28261         NonStop Kernel.
28262         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28263
28264 2010-12-24  Bruno Haible  <bruno@clisp.org>
28265
28266         sys_select: Remove unneeded include.
28267         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28268         have <sys/select.h>.
28269
28270 2010-12-24  Bruno Haible  <bruno@clisp.org>
28271
28272         gethostname: Provide a fallback for HOST_NAME_MAX.
28273         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28274         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28275         instead.
28276         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28277
28278 2010-12-24  Bruno Haible  <bruno@clisp.org>
28279
28280         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28281         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28282         (SA_RESTART): Likewise.
28283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28284
28285 2010-12-24  Bruno Haible  <bruno@clisp.org>
28286
28287         signal: Define NSIG.
28288         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28289         * tests/test-signal.c (nsig): New variable.
28290         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28291
28292 2010-12-24  Bruno Haible  <bruno@clisp.org>
28293
28294         rename, renameat: Avoid test failures on OSF/1 5.1.
28295         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28296         alternative error codes.
28297         * tests/test-renameat.c (main): Likewise.
28298
28299 2010-12-24  Bruno Haible  <bruno@clisp.org>
28300
28301         *printf: Detect large precisions bug on Solaris 10/SPARC.
28302         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28303         by Paul Eggert.
28304         * tests/test-snprintf-posix.h (test_function): Add this test code here
28305         too.
28306         * tests/test-sprintf-posix.h (test_function): Likewise.
28307         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28308         * tests/test-vasprintf-posix.c (test_function): Likewise.
28309         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28310         around by gnulib.
28311         * doc/posix-functions/printf.texi: Likewise.
28312         * doc/posix-functions/snprintf.texi: Likewise.
28313         * doc/posix-functions/sprintf.texi: Likewise.
28314         * doc/posix-functions/vfprintf.texi: Likewise.
28315         * doc/posix-functions/vprintf.texi: Likewise.
28316         * doc/posix-functions/vsnprintf.texi: Likewise.
28317         * doc/posix-functions/vsprintf.texi: Likewise.
28318         * doc/posix-functions/dprintf.texi: Undo last commit.
28319         * doc/posix-functions/vdprintf.texi: Likewise.
28320
28321 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28322
28323         tests: port test-fdutimensat.c to Solaris 8
28324         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28325         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28326         On Solaris 8, it fails with errno == ENOSYS, because there is no
28327         futimens (so it can't use the fd), and there is no lutimens (so it
28328         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28329
28330         vsnprintf: make more consistent with snprintf; doc fixes
28331
28332         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28333         the byte count return problem was promoted from the snprintf-posix
28334         to the snprintf module.
28335         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28336         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28337         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28338         * tests/test-snprintf.c (main): Check the byte count returned.
28339         * tests/test-vsnprintf.c (main): Likewise.
28340
28341 2010-12-23  Eric Blake  <eblake@redhat.com>
28342
28343         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28344         * modules/sigpipe (License): Relax license.
28345
28346 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28347
28348         doc: document Solaris printf bug with large float precisions
28349         * doc/posix-functions/dprintf.texi (dprintf):
28350         * doc/posix-functions/fprintf.texi (fprintf):
28351         * doc/posix-functions/printf.texi (printf):
28352         * doc/posix-functions/snprintf.texi (snprintf):
28353         * doc/posix-functions/sprintf.texi (sprintf):
28354         * doc/posix-functions/vdprintf.texi (vdprintf):
28355         * doc/posix-functions/vfprintf.texi (vfprintf):
28356         * doc/posix-functions/vprintf.texi (vprintf):
28357         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28358         * doc/posix-functions/vsprintf.texi (vsprintf):
28359         Mention that these functions mishandle large floating point
28360         precisions on Solaris 10.  The same bug is also present in Solaris
28361         8, and I assume earlier.  This causes "cd gnulib-tests; make
28362         check" to fail on Solaris 8 (and I assume, later) when building
28363         the latest coreutils, in test-vasprintf-posix's call to
28364         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28365         the wide flavors (e.g., wprintf) so this patch just updates the
28366         documentation for the narrow ones.
28367
28368         test-posixtm.c: add two tests
28369         * tests/test-posixtm.c: Add two tests, to highlight the
28370         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28371         around this bug; this is merely to document it.
28372
28373 2010-12-22  Bruno Haible  <bruno@clisp.org>
28374
28375         getlogin_r: Work around portability problem on OSF/1.
28376         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28377         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28378         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28379         test for a truncated result.
28380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28381         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28382         * modules/getlogin_r (Depends-on): Add memchr.
28383         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28384
28385 2010-12-22  Bruno Haible  <bruno@clisp.org>
28386
28387         ptsname: Avoid test failure on OSF/1 5.1.
28388         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28389         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28390         (same_slave): New function.
28391         (main): Use it to compare ptsname's result with the expected file name.
28392
28393 2010-12-22  Bruno Haible  <bruno@clisp.org>
28394
28395         Port extended stdio modules to HP NonStop Kernel.
28396         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28397         macros.
28398         * lib/fbufmode.c: Update comments.
28399         * lib/fflush.c: Likewise.
28400         * lib/fpurge.c: Likewise.
28401         * lib/freadable.c: Likewise.
28402         * lib/freadahead.c: Likewise.
28403         * lib/freading.c: Likewise.
28404         * lib/freadptr.c: Likewise.
28405         * lib/freadseek.c: Likewise.
28406         * lib/fseeko.c: Likewise.
28407         * lib/fseterr.c: Likewise.
28408         * lib/fwritable.c: Likewise.
28409         * lib/fwriting.c: Likewise.
28410         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28411
28412 2010-12-22  Bruno Haible  <bruno@clisp.org>
28413
28414         ttyname_r: Work around bug on OSF/1 5.1.
28415         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28417         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28418         present.
28419         * lib/ttyname_r.c (ttyname_r): Update comments.
28420
28421 2010-12-22  Bruno Haible  <bruno@clisp.org>
28422
28423         round: Implement result sign according to IEEE 754.
28424         * lib/round.c (MIN, MINUS_ZERO): New macros.
28425         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28426         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28427         * tests/test-round-ieee.c (main): Likewise.
28428         * tests/test-roundl-ieee.c (main): Likewise.
28429
28430         trunc: Implement result sign according to IEEE 754.
28431         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28432         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28433         * tests/test-trunc2.c: Include minus-zero.h.
28434         (MINUS_ZERO): New macro.
28435         (trunc_reference): Keep in sync with lib/trunc.c.
28436         * tests/test-truncf2.c: Include minus-zero.h.
28437         (MINUS_ZERO): New macro.
28438         (truncf_reference): Keep in sync with lib/trunc.c.
28439         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28440         * tests/test-trunc-ieee.c (main): Likewise.
28441         * tests/test-truncl-ieee.c (main): Likewise.
28442
28443         ceil: Implement result sign according to IEEE 754.
28444         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28445         (FUNC): Return -0.0 for -1 < x < 0.
28446         * tests/test-ceil2.c: Include minus-zero.h.
28447         (MINUS_ZERO): New macro.
28448         (ceil_reference): Keep in sync with lib/ceil.c.
28449         * tests/test-ceilf2.c: Include minus-zero.h.
28450         (MINUS_ZERO): New macro.
28451         (ceilf_reference): Keep in sync with lib/ceil.c.
28452         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28453         * tests/test-ceil-ieee.c (main): Likewise.
28454         * tests/test-ceill-ieee.c (main): Likewise.
28455
28456         floor: Implement result sign according to IEEE 754.
28457         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28458         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28459         * tests/test-floorf2.c (floorf_reference): Likewise.
28460         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28461         * tests/test-floor-ieee.c (main): Likewise.
28462         * tests/test-floorl-ieee.c (main): Likewise.
28463
28464 2010-12-22  Bruno Haible  <bruno@clisp.org>
28465
28466         getaddrinfo: Update doc.
28467         * doc/posix-functions/gai_strerror.texi: Return type is also different
28468         on AIX and HP-UX.
28469
28470 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28471
28472         getaddrinfo, inet_ntop: Update doc for Solaris.
28473         * doc/posix-functions/gai_strerror.texi: Return type is also an
28474         issue on Solaris 9 and earlier.
28475         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28476         on Solaris 10 and earlier.
28477
28478 2010-12-21  Bruno Haible  <bruno@clisp.org>
28479
28480         New module 'roundl-ieee'.
28481         * modules/roundl-ieee: New file.
28482         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28483         test whether roundl works according to ISO C 99 with IEC 60559.
28484         * m4/roundl-ieee.m4: New file.
28485         * modules/roundl-ieee-tests: New file.
28486         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28487         * tests/test-roundl.c (main): Remove signbit tests.
28488         * modules/roundl-tests (Depends-on): Remove signbit.
28489         * doc/posix-functions/roundl.texi: Mention the new module.
28490
28491 2010-12-21  Bruno Haible  <bruno@clisp.org>
28492
28493         New module 'truncl-ieee'.
28494         * modules/truncl-ieee: New file.
28495         * modules/truncl-ieee-tests: New file.
28496         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28497         * tests/test-truncl.c (main): Remove signbit tests.
28498         * modules/truncl-tests (Depends-on): Remove signbit.
28499         * doc/posix-functions/truncl.texi: Mention the new module.
28500
28501 2010-12-21  Bruno Haible  <bruno@clisp.org>
28502
28503         New module 'ceill-ieee'.
28504         * modules/ceill-ieee: New file.
28505         * modules/ceill-ieee-tests: New file.
28506         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28507         * tests/test-ceill.c (main): Remove signbit tests.
28508         * modules/ceill-tests (Depends-on): Remove signbit.
28509         * doc/posix-functions/ceill.texi: Mention the new module.
28510
28511 2010-12-21  Bruno Haible  <bruno@clisp.org>
28512
28513         New module 'floorl-ieee'.
28514         * modules/floorl-ieee: New file.
28515         * modules/floorl-ieee-tests: New file.
28516         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28517         * tests/test-floorl.c (main): Remove signbit tests.
28518         * modules/floorl-tests (Depends-on): Remove signbit.
28519         * doc/posix-functions/floorl.texi: Mention the new module.
28520
28521 2010-12-21  Bruno Haible  <bruno@clisp.org>
28522
28523         New module 'round-ieee'.
28524         * modules/round-ieee: New file.
28525         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28526         whether round works according to ISO C 99 with IEC 60559.
28527         * m4/round-ieee.m4: New file.
28528         * modules/round-ieee-tests: New file.
28529         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28530         * tests/test-round1.c (main): Remove signbit tests.
28531         * modules/round-tests (Depends-on): Remove 'signbit'.
28532         * doc/posix-functions/round.texi: Mention the new module.
28533
28534 2010-12-21  Bruno Haible  <bruno@clisp.org>
28535
28536         New module 'trunc-ieee'.
28537         * modules/trunc-ieee: New file.
28538         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28539         whether trunc works according to ISO C 99 with IEC 60559.
28540         * m4/trunc-ieee.m4: New file.
28541         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28543         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28544         * modules/trunc-ieee-tests: New file.
28545         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28546         * tests/test-trunc1.c (main): Remove signbit tests.
28547         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28548         * doc/posix-functions/trunc.texi: Mention the new module.
28549
28550 2010-12-21  Bruno Haible  <bruno@clisp.org>
28551
28552         New module 'ceil-ieee'.
28553         * modules/ceil-ieee: New file.
28554         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28555         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28556         ISO C 99 with IEC 60559.
28557         * m4/ceil-ieee.m4: New file.
28558         * modules/ceil (Files): Add lib/ceil.c.
28559         (Depends-on): Add 'float'.
28560         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28561         * lib/math.in.h (ceil): New declaration.
28562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28563         REPLACE_CEIL.
28564         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28565         * modules/ceil-ieee-tests: New file.
28566         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28567         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28568         * doc/posix-functions/ceil.texi: Mention the new module.
28569
28570 2010-12-21  Bruno Haible  <bruno@clisp.org>
28571
28572         New module 'floor-ieee'.
28573         * modules/floor-ieee: New file.
28574         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28575         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28576         ISO C 99 with IEC 60559.
28577         * m4/floor-ieee.m4: New file.
28578         * modules/floor (Files): Add lib/floor.c.
28579         (Depends-on): Add 'float'.
28580         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28581         * lib/math.in.h (floor): New declaration.
28582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28583         REPLACE_FLOOR.
28584         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28585         * modules/floor-ieee-tests: New file.
28586         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28587         * tests/test-math-c++.cc: Check the signature of 'floor'.
28588         * doc/posix-functions/floor.texi: Mention the new module.
28589
28590 2010-12-21  Bruno Haible  <bruno@clisp.org>
28591
28592         New module 'roundf-ieee'.
28593         * modules/roundf-ieee: New file.
28594         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28595         test whether roundf works according to ISO C 99 with IEC 60559.
28596         * m4/roundf-ieee.m4: New file.
28597         * modules/roundf-ieee-tests: New file.
28598         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28599         * tests/test-roundf1.c (main): Remove signbit tests.
28600         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28601         * doc/posix-functions/roundf.texi: Mention the new module.
28602
28603 2010-12-21  Bruno Haible  <bruno@clisp.org>
28604
28605         New module 'truncf-ieee'.
28606         * modules/truncf-ieee: New file.
28607         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28608         test whether truncf works according to ISO C 99 with IEC 60559.
28609         * m4/truncf-ieee.m4: New file.
28610         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28612         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28613         * modules/truncf-ieee-tests: New file.
28614         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28615         * tests/test-truncf1.c (main): Remove signbit tests.
28616         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28617         * doc/posix-functions/truncf.texi: Mention the new module.
28618
28619 2010-12-21  Bruno Haible  <bruno@clisp.org>
28620
28621         New module 'ceilf-ieee'.
28622         * modules/ceilf-ieee: New file.
28623         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28624         test whether ceilf works according to ISO C 99 with IEC 60559.
28625         * m4/ceilf-ieee.m4: New file.
28626         * modules/ceilf-ieee-tests: New file.
28627         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28628         * tests/test-ceilf1.c (main): Remove signbit tests.
28629         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28630         * doc/posix-functions/ceilf.texi: Mention the new module.
28631
28632 2010-12-21  Bruno Haible  <bruno@clisp.org>
28633
28634         New module 'floorf-ieee'.
28635         * modules/floorf-ieee: New file.
28636         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28637         test whether floorf works according to ISO C 99 with IEC 60559.
28638         * m4/floorf-ieee.m4: New file.
28639         * modules/floorf-ieee-tests: New file.
28640         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28641         * tests/test-floorf1.c (main): Remove signbit tests.
28642         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28643         * doc/posix-functions/floorf.texi: Mention the new module.
28644
28645 2010-12-21  Bruno Haible  <bruno@clisp.org>
28646
28647         Support for minus zero in autoconf macros.
28648         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28649         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28650         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28651         * tests/minus-zero.h: Update comments.
28652
28653 2010-12-21  Bruno Haible  <bruno@clisp.org>
28654
28655         Tests for module 'ceil'.
28656         * modules/ceil-tests: New file.
28657         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28658         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28659
28660 2010-12-21  Bruno Haible  <bruno@clisp.org>
28661
28662         Tests for module 'floor'.
28663         * modules/floor-tests: New file.
28664         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28665         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28666
28667 2010-12-21  Bruno Haible  <bruno@clisp.org>
28668
28669         math: Fix indentation.
28670         * lib/math.in.h (floorf): Fix indentation.
28671
28672 2010-12-21  Bruno Haible  <bruno@clisp.org>
28673
28674         Fix cross-compilation guesses on Solaris.
28675         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28676         not match "solaris2.10".
28677         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28678         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28679         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28680
28681 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28682
28683         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28684         This fixes a problem observed with the latest coreutils snapshot
28685         that caused a test to fail on Solaris 8.  src/csplit.c's call
28686         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28687         earlier, instead of returning the number of bytes that would have
28688         been generated; this causes csplit to incorrectly report memory
28689         exhaustion.
28690         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28691         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28692         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28693         comments to match.
28694         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28695         Fix typo in matching older versions of Solaris: "solaris2.10"
28696         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28697         only for guessing while cross-compiling.
28698         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28699
28700 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28701
28702         ftoastr: fix comment again
28703         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28705         Also, simplify example a bit by using flags = 0.
28706
28707 2010-12-20  Bruno Haible  <bruno@clisp.org>
28708
28709         round*, trunc*: Update documentation regarding glibc.
28710         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28711         * doc/posix-functions/round.texi: Likewise.
28712         * doc/posix-functions/roundl.texi: Likewise.
28713         * doc/posix-functions/truncf.texi: Likewise.
28714         * doc/posix-functions/trunc.texi: Likewise.
28715         * doc/posix-functions/truncl.texi: Likewise.
28716
28717 2010-12-20  Bruno Haible  <bruno@clisp.org>
28718
28719         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28720         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28721         * doc/posix-functions/round.texi: Likewise.
28722         * doc/posix-functions/roundl.texi: Likewise.
28723
28724 2010-12-20  Bruno Haible  <bruno@clisp.org>
28725
28726         ttyname_r: Add missing declaration on HP-UX 11.
28727         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28728         HAVE_TTYNAME_R.
28729         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28730         declared. Set HAVE_TTYNAME_R always.
28731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28732         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28733         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28734         HAVE_TTYNAME_R.
28735         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28736
28737 2010-12-20  Bruno Haible  <bruno@clisp.org>
28738
28739         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28740         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28741         * doc/posix-functions/getlogin_r.texi: Likewise.
28742         * tests/test-getlogin.c: Include <errno.h>.
28743         (main): Avoid test failure on HP-UX 11.11.
28744         * tests/test-getlogin_r.c (main): Likewise.
28745
28746 2010-12-20  Bruno Haible  <bruno@clisp.org>
28747
28748         getlogin_r: Add missing declaration on HP-UX 11.
28749         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28750         declared also when it exists as a function.
28751         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28752
28753 2010-12-20  Bruno Haible  <bruno@clisp.org>
28754
28755         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28756         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28757         through wcrtomb.
28758
28759 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28760
28761         ftoastr: fix comment
28762         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28764
28765 2010-12-19  Bruno Haible  <bruno@clisp.org>
28766
28767         isnan: Ensure it is a macro.
28768         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28769         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28770         Solaris.
28771
28772 2010-12-19  Bruno Haible  <bruno@clisp.org>
28773
28774         ldexpl test: Fix link error on OSF/1 5.1.
28775         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28776
28777 2010-12-19  Bruno Haible  <bruno@clisp.org>
28778
28779         wctype: Make it work in C++ mode on OSF/1 5.1.
28780         * lib/wctype.in.h (iswblank): Declare but not define here.
28781         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28782         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28783         * modules/wctype (Files): Add lib/iswblank.c.
28784
28785 2010-12-19  Bruno Haible  <bruno@clisp.org>
28786
28787         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28788         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28789         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28790
28791 2010-12-19  Bruno Haible  <bruno@clisp.org>
28792
28793         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28794         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28795         _POSIX_PII_SOCKET.
28796         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28797         * doc/posix-functions/recvfrom.texi: Likewise.
28798         * doc/posix-functions/send.texi: Likewise.
28799         * doc/posix-functions/sendto.texi: Likewise.
28800
28801 2010-12-19  Bruno Haible  <bruno@clisp.org>
28802
28803         tcgetsid: Add missing declaration on OSF/1 5.1.
28804         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28805         HAVE_TCGETSID.
28806         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28807         Don't set HAVE_TCGETSID.
28808         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28809         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28810         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28811         HAVE_TCGETSID.
28812         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28813
28814 2010-12-19  Bruno Haible  <bruno@clisp.org>
28815
28816         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28817         * lib/stdio.in.h: During the include_next statement, let recursive
28818         includes of this file include only the system header file.
28819
28820 2010-12-19  Bruno Haible  <bruno@clisp.org>
28821
28822         iconv_open: Fix regression from 2010-12-04.
28823         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28824         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28825
28826 2010-12-19  Bruno Haible  <bruno@clisp.org>
28827
28828         stdbool test: Avoid a gcc warning.
28829         * tests/test-stdbool.c (main): Fail if e1 is false.
28830         Reported by Jim Meyering.
28831
28832 2010-12-19  Jim Meyering  <meyering@redhat.com>
28833
28834         setenv: restore to working order
28835         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28836         mistakenly removed.
28837         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28838         HAVE_SETENV.
28839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28840         HAVE_SETENV.
28841
28842 2010-12-19  Bruno Haible  <bruno@clisp.org>
28843
28844         Document some different function declarations on OSF/1 5.1.
28845         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28846         * doc/posix-functions/inet_ntop.texi: Likewise.
28847         * doc/posix-functions/gethostname.texi: Likewise.
28848         * lib/unistd.in.h (gethostname): Update comment.
28849
28850 2010-12-19  Bruno Haible  <bruno@clisp.org>
28851
28852         doc: Mention vasprintf-posix module.
28853         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28854         the 'vasprintf-posix' module.
28855         * doc/glibc-functions/vasprintf.texi: Likewise.
28856
28857 2010-12-19  Bruno Haible  <bruno@clisp.org>
28858
28859         unsetenv: Add missing declaration on OSF/1 5.1.
28860         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28861         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28862         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28864         not HAVE_UNSETENV.
28865         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28866         HAVE_UNSETENV.
28867         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28868
28869 2010-12-19  Bruno Haible  <bruno@clisp.org>
28870
28871         setenv: Add missing declaration on OSF/1 5.1.
28872         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28873         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28874         declared. Don't set HAVE_SETENV.
28875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28876         not HAVE_SETENV.
28877         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28878         HAVE_SETENV.
28879         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28880
28881 2010-12-19  Bruno Haible  <bruno@clisp.org>
28882
28883         nl_langinfo tests: Avoid gcc warning.
28884         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28885
28886 2010-12-19  Bruno Haible  <bruno@clisp.org>
28887
28888         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28889         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28890         _GL_CXXALIAS_SYS.
28891
28892 2010-12-19  Bruno Haible  <bruno@clisp.org>
28893
28894         stdbool: Relax test.
28895         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28896         address to 'bool' work in static initializer, for compilers other than
28897         GCC.
28898
28899 2010-12-19  Bruno Haible  <bruno@clisp.org>
28900
28901         ftello: Add missing declaration on OSF/1 5.1.
28902         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28903         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28905         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28906         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28907
28908 2010-12-19  Bruno Haible  <bruno@clisp.org>
28909
28910         fseeko: Add missing declaration on OSF/1 5.1.
28911         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28914         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28915         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28916
28917 2010-12-19  Bruno Haible  <bruno@clisp.org>
28918
28919         fchdir: Add missing declaration on OSF/1 5.1.
28920         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28923         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28924         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28925
28926 2010-12-19  Bruno Haible  <bruno@clisp.org>
28927
28928         relocatable-prog-wrapper: Separate from relocatable-prog.
28929         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28930         uninstall-relocwrapper rule here.
28931         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28932         Reported by Ian Beckwith <ianb@erislabs.net>.
28933
28934 2010-12-19  Bruno Haible  <bruno@clisp.org>
28935
28936         unistr/u8-mbsnlen: Add missing dependency.
28937         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28938         Reported by Ian Beckwith <ianb@erislabs.net>.
28939
28940 2010-12-19  Bruno Haible  <bruno@clisp.org>
28941
28942         iconv: Make it possible again to use this module without 'iconv-h'.
28943         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28944         if it is not defined.
28945         Reported by Ian Beckwith <ianb@erislabs.net>.
28946
28947 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28948
28949         acl: port to Solaris 8 when copying from tmpfs to ufs
28950         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28951         error number.  Problem observed on Solaris 8 with latest
28952         coreutils, with "mv A B", where A is on a tmpfs file system and B
28953         is on a ufs file system.  This caused coreutils' mv/part-symlink
28954         test to fail.
28955
28956         tests: set fail=0 at start
28957         * tests/init.sh (setup_): Move fail=0 initialization here ...
28958         (mktempd_): ... from here, so that tests can rely on fail being
28959         set to 0 initially.  This fixes a problem in coreutils; see:
28960         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28961
28962 2010-12-18  Bruno Haible  <bruno@clisp.org>
28963
28964         memmem-simple: Stylistic changes.
28965         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28966         Fix preprocessor directive indentation.
28967
28968 2010-12-15  Pádraig Brady <P@draigBrady.com>
28969
28970         memmem, memmem-simple: reorganize and expand empty needle check
28971         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28972         functional checks to memmem-simple so that one has a fully functional
28973         memmem by using just this module.
28974         Restrict the performance only check to the memmem module.
28975         Also expand the empty needle check to ensure the correct
28976         pointer is returned, not just a non NULL pointer.
28977         * doc/glibc-functions/memmem.texi: Rearrange the portability
28978         documentation to correlate with the rearranged checks.
28979         Clarify exactly how the memmem and memmem-simple modules
28980         relate to each other.
28981
28982 2010-12-15  Pádraig Brady <P@draigBrady.com>
28983             Bruno Haible  <bruno@clisp.org>
28984
28985         Improve cross-compilation guesses for uClibc.
28986         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28987         that uClibc does not have the glibc bug.
28988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28989         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28990
28991 2010-12-14  Eric Blake  <eblake@redhat.com>
28992
28993         configmake: provide fallbacks for oldest supported autotools
28994         * m4/configmake.m4: New file.
28995         * modules/configmake (Files): Ship it.
28996         (configure.ac): Use it to guarantee fallbacks.
28997
28998 2010-12-13  Pádraig Brady <P@draigBrady.com>
28999
29000         read-file: Improve handling of large files
29001         * lib/read-file.c (fread_file): Minimize realloc()s
29002         for regular files, and better manage sizes around SIZE_MAX.
29003
29004 2010-12-13  Eric Blake  <eblake@redhat.com>
29005
29006         cloexec, fcntl: relax license
29007         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
29008         consent from all contributors.
29009         * modules/fcntl (License): Likewise.
29010
29011 2010-12-10  Bruno Haible  <bruno@clisp.org>
29012
29013         Tests for module 'pipe-posix'.
29014         * modules/pipe-posix-tests: New file.
29015         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
29016
29017 2010-12-10  Bruno Haible  <bruno@clisp.org>
29018
29019         pipe-posix: Make it work in C++ mode.
29020         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
29021         (pipe): Use common idiom, not a macro definition.
29022         * lib/pipe.c: New file.
29023         * m4/pipe.m4: New file.
29024         * modules/pipe-posix (Description): Enhance.
29025         (Files): Add lib/pipe.c, m4/pipe.m4.
29026         (configure.ac): Invoke gl_FUNC_PIPE.
29027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
29028         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
29029         * tests/test-unistd-c++.cc: Check the signature of pipe.
29030
29031 2010-12-10  Bruno Haible  <bruno@clisp.org>
29032
29033         Rename module 'pipe' to 'spawn-pipe'.
29034         * modules/spawn-pipe: New file, renamed from modules/pipe.
29035         (Files, configure.ac, Makefile.am): Update.
29036         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
29037         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
29038         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
29039         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
29040         "spawn-pipe.h" instead of "pipe.h".
29041         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
29042         to gl_SPAWN_PIPE.
29043         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
29044         (Files, Makefile.am): Update.
29045         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
29046         Update.
29047         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
29048         Include "spawn-pipe.h" instead of "pipe.h".
29049         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
29050         * lib/javacomp.c: Likewise.
29051         * lib/javaversion.c: Likewise.
29052         * lib/pipe-filter-gi.c: Likewise.
29053         * lib/pipe-filter-ii.c: Likewise.
29054         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
29055         * modules/javacomp (Depends-on): Likewise.
29056         * modules/javaversion (Depends-on): Likewise.
29057         * modules/pipe-filter-gi (Depends-on): Likewise.
29058         * modules/pipe-filter-ii (Depends-on): Likewise.
29059         * MODULES.html.sh (Executing programs): Update.
29060         * NEWS: Mention the change.
29061
29062 2010-12-10  Eric Blake  <eblake@redhat.com>
29063
29064         pipe-posix: new module
29065         * modules/pipe-posix: New file.
29066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
29067         (gl_UNISTD_H): Check for declaration.
29068         * modules/unistd (Makefile.am): Substitute it.
29069         * lib/unistd.in.h (pipe): Provide it for mingw.
29070         * doc/posix-functions/pipe.texi (pipe): Update documentation.
29071         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
29072
29073 2010-12-07  Bruno Haible  <bruno@clisp.org>
29074
29075         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29076         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29077         u8_strcmp_gnu.
29078         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29079
29080 2010-12-06  Bruno Haible  <bruno@clisp.org>
29081
29082         Update internal documentation.
29083         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29084
29085 2010-12-04  Bruno Haible  <bruno@clisp.org>
29086
29087         Put more information about failed tests into the test return codes.
29088         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29089         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29090         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29092         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29093         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29094         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29095         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29096         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29098         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29099         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29100         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29101         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29102         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29103         returns a bit mask.
29104         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29105         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29106         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29107         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29108         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29112         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29113         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29114         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29115         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29116         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29117         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29118         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29119         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29120         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29121         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29122         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29123         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29125         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29127         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29128         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29129         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29130         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29131         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29132         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29133         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29134         gl_PRINTF_PRECISION): Likewise.
29135         * m4/regex.m4 (gl_REGEX): Likewise.
29136         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29137         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29138         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29139         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29142         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29143         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29144         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29145         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29146         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29147         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29148         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29149         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29150         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29151         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29152         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29153         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29155         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29156         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29157         enumerated value.
29158         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29159
29160 2010-12-04  Bruno Haible  <bruno@clisp.org>
29161
29162         Update for Solaris 11 2010-11.
29163         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29164         Express, released in November 2010.
29165
29166 2010-12-04  Bruno Haible  <bruno@clisp.org>
29167
29168         nproc: Relax license.
29169         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29170         and Paul Eggert.
29171         Requested by Ludovic Courtès <ludo@gnu.org>.
29172
29173 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29174
29175         utimecmp: fine-grained src to nearby coarse-grained dest
29176
29177         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29178         and the source is on a file system with higher-resolution time
29179         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29180         not work, and the time stamps are close together, the algorithm to
29181         determine the exact resolution from the read-back mtime was buggy:
29182         it had a "!=" where it should have had an "==".  This bug has been
29183         in the code ever since it was introduced to gnulib.
29184         Problem reported by Dan Jacobson in
29185         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29186
29187 2010-11-30  Bruno Haible  <bruno@clisp.org>
29188
29189         strerror_r-posix: Fix autoconf test.
29190         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29191
29192 2010-11-28  Bruno Haible  <bruno@clisp.org>
29193             Paul Eggert  <eggert@cs.ucla.edu>
29194
29195         Tests for module 'getdomainname'.
29196         * modules/getdomainname-tests: New file.
29197         * tests/test-getdomainname.c: New file, based on
29198         tests/test-gethostname.c.
29199
29200 2010-11-28  Bruno Haible  <bruno@clisp.org>
29201             Paul Eggert  <eggert@cs.ucla.edu>
29202
29203         getdomainname: Use the system function when possible.
29204         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29205         (getdomainname): Replace if needed. Provide the declaration if it is
29206         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29207         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29208         (getdomainname): When the system has getdomainname, call the system
29209         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29210         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29211         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29212         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29213         the function if its second argument is of type 'int' or if it is found
29214         in libnsl.
29215         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29216         <sys/systeminfo.h> and sysinfo().
29217         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29219         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29220         HAVE_GETDOMAINNAME.
29221         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29222         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29223         * doc/glibc-functions/getdomainname.texi: Document the problems with
29224         the getdomainname declaration.
29225
29226 2010-11-28  Bruno Haible  <bruno@clisp.org>
29227
29228         sys_socket: Ensure ss_family field on AIX.
29229         * lib/sys_socket.in.h (ss_family): New macro definition.
29230         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29231         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29232         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29233         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29234         * modules/sys_socket (Makefile.am): Substitute
29235         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29236         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29237
29238 2010-11-27  Bruno Haible  <bruno@clisp.org>
29239
29240         readline: Improve configure output.
29241         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29242         "checking for readline..." result understandable.
29243
29244 2010-11-27  Bruno Haible  <bruno@clisp.org>
29245
29246         *printf-posix: Detect a bug on Solaris 10/x86.
29247         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29248         for floating-point output.
29249         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29250         directive.
29251         * tests/test-snprintf-posix.h (test_function): Likewise.
29252         * tests/test-sprintf-posix.h (test_function): Likewise.
29253         * tests/test-vasprintf-posix.c (test_function): Likewise.
29254         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29255         * doc/posix-functions/printf.texi: Likewise.
29256         * doc/posix-functions/snprintf.texi: Likewise.
29257         * doc/posix-functions/sprintf.texi: Likewise.
29258         * doc/posix-functions/vfprintf.texi: Likewise.
29259         * doc/posix-functions/vprintf.texi: Likewise.
29260         * doc/posix-functions/vsnprintf.texi: Likewise.
29261         * doc/posix-functions/vsprintf.texi: Likewise.
29262         * doc/glibc-functions/obstack_printf.texi: Likewise.
29263         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29264
29265 2010-11-27  Bruno Haible  <bruno@clisp.org>
29266
29267         Fix link error when module libunistring-optional is in use.
29268         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29269         * modules/striconveha-tests (Makefile.am): Likewise.
29270
29271 2010-11-27  Bruno Haible  <bruno@clisp.org>
29272
29273         regex: Mention link dependencies.
29274         * modules/regex (Link): New section.
29275         * modules/rpmatch (Link): Likewise.
29276         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29277
29278 2010-11-27  Bruno Haible  <bruno@clisp.org>
29279
29280         ftoastr: Fix compilation error on Solaris.
29281         * lib/ftoastr.c: Include <config.h>.
29282
29283 2010-11-27  Bruno Haible  <bruno@clisp.org>
29284
29285         getloadavg: Update documentation.
29286         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29287
29288 2010-11-27  Bruno Haible  <bruno@clisp.org>
29289
29290         sys_socket: Fix test whether the functions are declared.
29291         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29292         not <sys/select.h>.
29293
29294 2010-11-27  Bruno Haible  <bruno@clisp.org>
29295
29296         getpass: Make sure to get system declaration on some platforms.
29297         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29298         gl_USE_SYSTEM_EXTENSIONS.
29299         * modules/getpass (Depends-on): Add extensions.
29300
29301 2010-11-26  Bruno Haible  <bruno@clisp.org>
29302
29303         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29304         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29305         'iconv' module is present.
29306         (ICONV_CONST): New macro.
29307         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29308         ICONV_CONST.
29309         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29310         set ICONV_CONST.
29311         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29312         here.
29313         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29314         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29315         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29316         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29317         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29318         present.
29319
29320 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29321
29322         ftoastr: comment fix
29323         * lib/ftoastr.c: "little" -> "little or no" in comment
29324
29325 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29326
29327         stdint: port to GCC 4.3 + OSX + Octave
29328         On this platform, stdint.h is buggy and defines int64_t to long
29329         long int.  The replacement defined it to long int, causing
29330         problems with C++ style name mangling.  Instead, trust the system
29331         definition if INT64_MAX is defined, and likewise for the unsigned
29332         variant.   Problem reported by Jarno Rajahalme in
29333         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29334         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29335         and don't mess with int64_t and INT64_MAX in this case.
29336         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29337
29338 2010-11-24  Bruno Haible  <bruno@clisp.org>
29339
29340         doc: Corrections regarding MacOS X 10.4 and 10.5.
29341         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29342         MacOS X.
29343         Reported by Simon Josefsson.
29344
29345 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29346
29347         Uninstall ".bin" files installed by relocwrapper.
29348         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29349         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29350         unless it is already there.
29351
29352 2010-11-21  Bruno Haible  <bruno@clisp.org>
29353
29354         Update for NetBSD 5.0.
29355         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29356         NetBSD; the test fails on NetBSD 5.0.
29357         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29358         about NetBSD.
29359
29360 2010-11-21  Bruno Haible  <bruno@clisp.org>
29361
29362         Update for HP-UX 11.23 and HP-UX 11.31.
29363         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29364         HP-UX.
29365
29366 2010-11-21  Bruno Haible  <bruno@clisp.org>
29367
29368         Update for MacOS X 10.5.
29369         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29370         MacOS X; the test fails on MacOS X 10.5.8.
29371         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29372         about MacOS X.
29373
29374 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29375
29376         bootstrap: add bootstrap_sync option.
29377         See discussion at
29378         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29379         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29380         * build-aux/bootstrap: Accept --bootstrap-sync to update
29381         bootstrap if it is not identical to the local gnulib's
29382         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29383         enable this by default.  Accept --no-bootstrap-sync to disable
29384         it.
29385
29386 2010-11-20  Bruno Haible  <bruno@clisp.org>
29387
29388         Ensure that <features.h> is included before __GLIBC__ is tested.
29389         * lib/printf-parse.h: Include <features.h>.
29390         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29391         Reported by Mike Frysinger <vapier@gentoo.org>.
29392
29393         Ensure that <features.h> is included before __GLIBC__ is tested.
29394         * lib/wchar.in.h: Include <features.h>.
29395         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29396         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29397         Reported by Mike Frysinger <vapier@gentoo.org>.
29398
29399         Ensure that <features.h> is included before __GLIBC__ is tested.
29400         * lib/arpa_inet.in.h: Include <features.h>.
29401         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29402         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29403         Reported by Mike Frysinger <vapier@gentoo.org>.
29404
29405         Ensure that <features.h> is included before __GLIBC__ is tested.
29406         * build-aux/link-warning.h: Include <features.h>.
29407         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29408         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29409         Reported by Mike Frysinger <vapier@gentoo.org>.
29410
29411         Ensure that <features.h> is included before __GLIBC__ is tested.
29412         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29413         Reported by Mike Frysinger <vapier@gentoo.org>.
29414
29415 2010-11-20  Bruno Haible  <bruno@clisp.org>
29416
29417         memmem: Fix autoconf test.
29418         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29419
29420 2010-11-20  Bruno Haible  <bruno@clisp.org>
29421
29422         Port to uClibc.
29423         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29424         * lib/fcntl.in.h: Likewise.
29425         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29426         * lib/mbrtowc.c (mbrtowc): Likewise.
29427         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29428         * lib/strerror_r.c: Likewise.
29429         * lib/unistr/u8-strnlen.c: Likewise.
29430         * lib/vasnprintf.c (decimal_point_char): Likewise.
29431         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29432         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29433         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29434         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29435         * tests/test-sigaction.c (handler, main): Likewise.
29436         * lib/freading.h: Treat uClibc like a non-glibc platform.
29437         * lib/freading.c: Likewise.
29438         * lib/gettext.h: Likewise.
29439         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29440         Likewise.
29441         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29442         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29443         * lib/propername.c (proper_name_utf8): Likewise.
29444         * lib/spawn.in.h: Likewise.
29445         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29446         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29447         mem_cd_iconveh_internal): Likewise.
29448         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29449         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29450         strstr, strcasestr): Likewise.
29451         * lib/unicodeio.c (unicode_to_mb): Likewise.
29452         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29453         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29454         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29455         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29456         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29457         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29458         * lib/unistr/u8-stpncpy.c: Likewise.
29459         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29460         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29461         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29462         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29463         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29464         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29465         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29468         Likewise.
29469         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29470         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29473         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29474         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29475         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29476         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29477         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29478         * tests/test-striconveha.c (main): Likewise.
29479         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29480         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29481         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29482         * doc/posix-functions/getline.texi: Likewise.
29483         Reported by Mike Frysinger <vapier@gentoo.org>.
29484
29485 2010-11-20  Bruno Haible  <bruno@clisp.org>
29486
29487         nproc: Fix condition.
29488         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29489         HAVE_PTHREAD_AFFINITY_NP.
29490
29491 2010-11-20  Bruno Haible  <bruno@clisp.org>
29492
29493         Fix a comment.
29494         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29495
29496 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29497
29498         ftoastr: don't assume snprintf
29499         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29500         Implement a subset of snprintf here, by using sprintf safely.
29501         * modules/ftoastr (Depends-on): Remove snprintf.
29502
29503 2010-11-19  Jim Meyering  <meyering@redhat.com>
29504
29505         test-rename.h: fix compilation failure
29506         * tests/test-rename.h (test_rename): Add omitted "}".
29507
29508 2010-11-17  Jim Meyering  <meyering@redhat.com>
29509
29510         maint.mk: add a URL discussing the no-@acronym policy
29511         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29512
29513 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29514
29515         ftoastr: depend on snprintf, improve comments
29516         * lib/ftoastr.c: Also mention Loitsch's draft.
29517         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29518         needed in the current implementation, but it might simplify
29519         speeding up the code later.
29520         * modules/ftoastr: Depend on snprintf; this improves portability.
29521         Suggested by Bruno Haible in the same email.
29522
29523         ftoastr: port to hosts lacking strtof and strtold
29524         Problem reported by Bruno Haible in
29525         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29526         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29527         environment and strtold (and presumably strtof) are not available.
29528         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29529         (configure.ac): Require gl_C99_STRTOLD.
29530
29531 2010-11-18  Bruno Haible  <bruno@clisp.org>
29532
29533         c-strtold: Avoid link error on AIX 7.
29534         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29535         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29536         (gl_C_STRTOLD): Test whether strtold_l exists.
29537         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29538
29539 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29540
29541         intprops: new macro INT_BITS_STRLEN_BOUND
29542         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29543         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29544         not exposed.  Also, it uses a slightly tighter bound than before;
29545         though this makes no practical difference, we might as well be as
29546         tight as we easily can.
29547
29548         ftoastr: new module, for lossless conversion of floats to short strings
29549         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29550         * modules/ftoastr: New files.
29551
29552 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29553
29554         bootstrap: port to Solaris sed
29555         * build-aux/bootstrap (get_version): Port to Solaris sed.
29556         See Ralf Wildenhues's note in
29557         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29558
29559 2010-11-14  Jim Meyering  <meyering@redhat.com>
29560
29561         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29562         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29563         and move definition closer to sole use.
29564
29565 2010-11-13  Jim Meyering  <meyering@redhat.com>
29566
29567         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29568         Now we require at least autoconf-2.59, which means the work-around
29569         is no longer needed.
29570         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29571         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29572         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29573         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29574         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29575
29576 2010-11-13  Bruno Haible  <bruno@clisp.org>
29577
29578         rename, renameat: Avoid test failures at NFS mounted locations.
29579         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29580         functions.
29581         (test_rename): Use assert_nonexistent.
29582         * tests/test-rename.c: Include <dirent.h>.
29583         * tests/test-renameat.c: Likewise.
29584         Reported by Gary V. Vaughan <gary@gnu.org>.
29585
29586         rename, renameat: Document Linux bug with NFS
29587         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29588         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29589         * doc/posix-functions/renameat.texi: Likewise.
29590         Suggested by Eric Blake.
29591
29592 2010-11-13  Bruno Haible  <bruno@clisp.org>
29593
29594         rename test: Add comments.
29595         * tests/test-rename.h (test_rename): Add structure and comments.
29596
29597 2010-11-13  Eric Blake  <eblake@redhat.com>
29598
29599         maintainer-makefile: cover a few more files
29600         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29601         scripts generated within C files, for libvirt.
29602
29603 2010-11-13  Bruno Haible  <bruno@clisp.org>
29604
29605         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29606         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29607         character, return the number of bytes that belong together, not always
29608         1.
29609         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29610         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29611         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29612         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29613         number of bytes of an invalid character.
29614         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29615         (main): Invoke it.
29616         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29617         results.
29618         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29619         malformed byte sequences.
29620         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29621         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29622         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29623         Reported by Ben Pfaff and Paolo Bonzini.
29624
29625 2010-11-13  Bruno Haible  <bruno@clisp.org>
29626
29627         openat: Work around glibc bug with fchownat() and empty file names.
29628         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29629         (gl_FUNC_FCHOWNAT): Invoke it.
29630         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29631         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29632         Reported by Gary V. Vaughan <gary@gnu.org>.
29633
29634 2010-11-13  Bruno Haible  <bruno@clisp.org>
29635
29636         openat: Ensure autoconf macro ordering.
29637         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29638         gl_USE_SYSTEM_EXTENSIONS.
29639         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29640
29641 2010-11-13  Bruno Haible  <bruno@clisp.org>
29642
29643         Update comments.
29644         * lib/unistr/u8-check.c: Update file name in comments.
29645         * lib/unistr/u8-mblen.c: Likewise.
29646         * lib/unistr/u8-prev.c: Likewise.
29647         * lib/unistr/u8-strmblen.c: Likewise.
29648         * lib/unistr/u8-strmbtouc.c: Likewise.
29649
29650 2010-11-13  Jim Meyering  <meyering@redhat.com>
29651
29652         tests: avoid test failure on Solaris 10 due to lack of PATH export
29653         * tests/test-update-copyright.sh: Don't forget to export PATH.
29654
29655         init.sh: ensure that IFS is defined, just in case...
29656         * tests/init.sh (setup_): Ensure that IFS is defined,
29657         so that saving and restoring it works as expected.  This
29658         appears to be useful at least for an old version of dash
29659         from a long time ago (RH 6).  See here for details:
29660         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29661
29662         maint.mk: tighten "test a == b" check
29663         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29664         test to files that contain something like #!/bin/sh.
29665         Without this, coreutils would get two false positives in
29666         the comments of C source files.
29667
29668 2010-11-12  Eric Blake  <eblake@redhat.com>
29669
29670         bootstrap: fix typo in previous attempt
29671         * build-aux/bootstrap (buildreq): Correct the grouping.
29672         Reported by Paul Eggert.
29673
29674         maintainer-makefile: prohibit test x == x
29675         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29676         Based on a report by Matthias Bolte.
29677
29678         bootstrap: allow FreeBSD gzip
29679         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29680         which has no '.' and goes to stderr.
29681         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29682         Reported by Matthias Bolte.
29683
29684         maintainer-makefile: check for i18n setup
29685         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29686         will likely work.
29687
29688 2010-11-12  Bruno Haible  <bruno@clisp.org>
29689
29690         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29691         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29692         * lib/nanosleep.c (nanosleep): Likewise.
29693
29694 2010-11-11  Bruno Haible  <bruno@clisp.org>
29695
29696         fcntl-h: Fix for use of C++ on glibc systems.
29697         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29698         also on glibc systems in C++ mode.
29699         Reported by Gary V. Vaughan <gary@gnu.org>.
29700
29701 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29702
29703         mknod: avoid false failure with dash
29704         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29705
29706 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29707
29708         unlink: Fix "is it should" typo in diagnostic.
29709         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29710         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29711
29712 2010-11-11  Bruno Haible  <bruno@clisp.org>
29713
29714         Tests for module 'strerror_r-posix'.
29715         * modules/strerror_r-posix-tests: New file.
29716         * tests/test-strerror_r.c: New file.
29717         * tests/test-string-c++.cc: Check the signature of strerror_r.
29718
29719         New module 'strerror_r-posix'.
29720         * lib/string.in.h (strerror_r): New declaration.
29721         * lib/strerror_r.c: New file.
29722         * m4/strerror_r.m4: New file.
29723         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29724         of strerror_r.
29725         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29726         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29727         * modules/strerror_r-posix: New file.
29728         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29729         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29730         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29731         portability problems.
29732
29733 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29734
29735         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29736         line is also considered for output. Quoted function name in shell
29737         command, so temporary files for functions like MyClass::operator()
29738         are removed correctly without errors.
29739
29740 2010-11-09  Bruno Haible  <bruno@clisp.org>
29741
29742         * doc/posix-functions/strerror.texi: List more failing platforms.
29743
29744         * doc/posix-functions/strerror.texi: Add a comment.
29745
29746 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29747
29748         fdopendir: fix bug on MacOS X when low on file descriptors
29749
29750         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29751         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29752         All callers changed.
29753         (fdopendir): Invoke save_cwd at the top level, not after using
29754         multiple dup() calls to use up file descriptors.  Then retry
29755         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29756         less than the maximum number of open file descriptors, because
29757         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29758         on Mac OS X 10.6.4 for tar 1.24
29759         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29760         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29761         and for tar 1.25
29762         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29763
29764 2010-11-07  Bruno Haible  <bruno@clisp.org>
29765
29766         vasnprintf: Support I flag on glibc systems.
29767         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29768         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29769         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29770         snprintf function.
29771         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29772         glibc systems.
29773         * tests/test-vasnprintf-posix3.c: New file.
29774         * modules/vasnprintf-posix-tests (Files): Add it.
29775         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29776
29777 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29778
29779         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29780         * MODULES.html.sh: For compiler warnings, use name
29781         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29782
29783 2010-11-05  Eric Blake  <eblake@redhat.com>
29784
29785         ceil, floor: avoid spurious failure with icc
29786         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29787         [denormals-as-zero] when optimizing without -mieee-fp option.
29788         * tests/test-floorf2.c (floorf_reference): Likewise.
29789         * tests/test-ceilf1.c (dummy): New function.
29790         (main): Use it to outsmart icc's optimization.
29791         * tests/test-floorf1.c (dummy, main): Likewise.
29792
29793         tests: require working signbit
29794         * modules/ceilf-tests (Depends-on): Add signbit.
29795         * modules/ceill-tests (Depends-on): Likewise.
29796         * modules/floorf-tests (Depends-on): Likewise.
29797         * modules/floorl-tests (Depends-on): Likewise.
29798         * modules/round-tests (Depends-on): Likewise.
29799         * modules/roundf-tests (Depends-on): Likewise.
29800         * modules/roundl-tests (Depends-on): Likewise.
29801         * modules/trunc-tests (Depends-on): Likewise.
29802         * modules/truncf-tests (Depends-on): Likewise.
29803         * modules/truncl-tests (Depends-on): Likewise.
29804
29805         strtod: work around icc bug
29806         * lib/strtod.c (minus_zero): Define to working value.
29807         (strtod): Use it to avoid icc bug.
29808
29809         copysign: enhance tests
29810         * modules/copysign-tests (Files): Add minus-zero.h.
29811         * tests/test-copysign.c (main): Also test zeros.
29812
29813 2010-11-04  Eric Blake  <eblake@redhat.com>
29814
29815         ceil, floor, round, trunc: enhance tests of -0
29816         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29817         * tests/test-ceill.c (main): Likewise.
29818         * tests/test-floorf1.c (main): Likewise.
29819         * tests/test-floorl.c (main): Likewise.
29820         * tests/test-round1.c (main): Likewise.
29821         * tests/test-roundf1.c (main): Likewise.
29822         * tests/test-roundl.c (main): Likewise.
29823         * tests/test-trunc1.c (main): Likewise.
29824         * tests/test-truncf1.c (main): Likewise.
29825         * tests/test-truncl.c (main): Likewise.
29826
29827 2010-11-04  Eric Blake  <eblake@redhat.com>
29828
29829         frexp, tests: work around ICC bug with -zero
29830         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29831         works with more compilers.
29832         * tests/minus-zero.h: New file.
29833         * modules/ceilf-tests (Files): Include it.
29834         * modules/ceill-tests (Files): Likewise.
29835         * modules/floorf-tests (Files): Likewise.
29836         * modules/floorl-tests (Files): Likewise.
29837         * modules/frexp-nolibm-tests (Files): Likewise.
29838         * modules/frexp-tests (Files): Likewise.
29839         * modules/frexpl-nolibm-tests (Files): Likewise.
29840         * modules/frexpl-tests (Files): Likewise.
29841         * modules/isnan-tests (Files): Likewise.
29842         * modules/isnand-nolibm-tests (Files): Likewise.
29843         * modules/isnand-tests (Files): Likewise.
29844         * modules/isnanf-nolibm-tests (Files): Likewise.
29845         * modules/isnanf-tests (Files): Likewise.
29846         * modules/isnanl-nolibm-tests (Files): Likewise.
29847         * modules/isnanl-tests (Files): Likewise.
29848         * modules/round-tests (Files): Likewise.
29849         * modules/roundf-tests (Files): Likewise.
29850         * modules/roundl-tests (Files): Likewise.
29851         * modules/ldexpl-tests (Files): Likewise.
29852         * modules/signbit-tests (Files): Likewise.
29853         * modules/snprintf-posix-tests (Files): Likewise.
29854         * modules/sprintf-posix-tests (Files): Likewise.
29855         * modules/strtod-tests (Files): Likewise.
29856         * modules/trunc-tests (Files): Likewise.
29857         * modules/truncf-tests (Files): Likewise.
29858         * modules/truncl-tests (Files): Likewise.
29859         * modules/vsnprintf-posix-tests (Files): Likewise.
29860         * modules/vsprintf-posix-tests (Files): Likewise.
29861         * modules/vasnprintf-posix-tests (Files): Likewise.
29862         * modules/vasprintf-posix-tests (Files): Likewise.
29863         * tests/test-ceilf1.c (main): Use it.
29864         * tests/test-ceill.c (main): Likewise.
29865         * tests/test-floorf1.c (main): Likewise.
29866         * tests/test-floorl.c (main): Likewise.
29867         * tests/test-frexp.c (main): Likewise.
29868         * tests/test-frexpl.c (main): Likewise.
29869         * tests/test-isnan.c (main): Likewise.
29870         * tests/test-isnand.h (main): Likewise.
29871         * tests/test-isnanf.h (main): Likewise.
29872         * tests/test-isnanl.h (main): Likewise.
29873         * tests/test-ldexpl.c (main): Likewise.
29874         * tests/test-round.c (main): Likewise.
29875         * tests/test-roundf.c (main): Likewise.
29876         * tests/test-roundl.c (main): Likewise.
29877         * tests/test-signbit.c (test_signbitf, test_signbitd)
29878         (test_signbitl): Likewise.
29879         * tests/test-snprintf-posix.h (test_function): Likewise.
29880         * tests/test-sprintf-posix.h (test_function): Likewise.
29881         * tests/test-strtod.c (main): Likewise.
29882         * tests/test-trunc1.c (main): Likewise.
29883         * tests/test-truncf1.c (main): Likewise.
29884         * tests/test-truncl.c (main): Likewise.
29885
29886         isnanl: work around icc bug
29887         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29888
29889 2010-11-03  Eric Blake  <eblake@redhat.com>
29890
29891         tests: fix compiler warnings
29892         * tests/test-getopt.h (test_getopt): Fix condition.
29893         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29894         * tests/test-pipe2.c (main): Likewise.
29895         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29896
29897         utimens: fix broken m4 test
29898         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29899
29900 2010-10-28  Bruno Haible  <bruno@clisp.org>
29901
29902         posix_spawn*, getdtablesize: Relax license.
29903         * modules/posix_spawn (License): Change to LGPLv2+.
29904         * modules/posix_spawnp (License): Likewise.
29905         * modules/posix_spawn-internal (License): Likewise.
29906         * modules/posix_spawnattr_init (License): Likewise.
29907         * modules/posix_spawnattr_getflags (License): Likewise.
29908         * modules/posix_spawnattr_setflags (License): Likewise.
29909         * modules/posix_spawnattr_getpgroup (License): Likewise.
29910         * modules/posix_spawnattr_setpgroup (License): Likewise.
29911         * modules/posix_spawnattr_getschedparam (License): Likewise.
29912         * modules/posix_spawnattr_setschedparam (License): Likewise.
29913         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29914         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29915         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29916         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29917         * modules/posix_spawnattr_getsigmask (License): Likewise.
29918         * modules/posix_spawnattr_setsigmask (License): Likewise.
29919         * modules/posix_spawnattr_destroy (License): Likewise.
29920         * modules/posix_spawn_file_actions_init (License): Likewise.
29921         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29922         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29923         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29924         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29925         * modules/getdtablesize (License): Likewise.
29926         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29927
29928 2010-10-26  Bruno Haible  <bruno@clisp.org>
29929
29930         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29931         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29932         Cygwin and mingw.
29933         Suggested by Eric Blake.
29934
29935 2010-10-26  Bruno Haible  <bruno@clisp.org>
29936
29937         stdio: Work around compilation error due to renameat() on Solaris 10.
29938         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29939         * lib/renameat.c: Don't include <unistd.h> here.
29940         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29941         Reported by Paul Eggert and Eric Blake.
29942
29943 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29944
29945         renameat: port to Solaris 10, which declares renameat in unistd.h
29946
29947         * lib/renameat.c: Include unistd.h before stdio.h, because
29948         Solaris 10 declares renameat in unistd.h.  Problem encountered
29949         when building GNU tar 1.24 on Solaris 10.
29950
29951 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29952
29953         fdopendir: fix C89 compilation
29954         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29955         compilers.
29956
29957 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29958
29959         inttostr: simplify by removing unnecessary redundancy
29960         * lib/anytostr.c: Don't include verify.h.
29961         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29962         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29963         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29964         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29965         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29966         Likewise.
29967         * modules/inttostr (Depends-on): Remove 'verify'.
29968
29969 2010-10-23  Bruno Haible  <bruno@clisp.org>
29970
29971         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29972         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29973         Reported by Eric Blake.
29974
29975 2010-10-23  Bruno Haible  <bruno@clisp.org>
29976
29977         Tests: Fix LOCALE_JA on MirBSD 10.
29978         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29979         to an UTF-8 locale.
29980         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29981         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29982         Reported by Eric Blake.
29983
29984 2010-10-21  Bruno Haible  <bruno@clisp.org>
29985
29986         nl_langinfo test: Avoid test failure on NetBSD 5.
29987         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29988         Reported by Eric Blake.
29989
29990 2010-10-21  Eric Blake  <eblake@redhat.com>
29991
29992         c-stack: work around libsigsegv 2.8 bug
29993         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29994         overflow on at least PowerPC64.
29995
29996 2010-10-17  Bruno Haible  <bruno@clisp.org>
29997
29998         userspec: Drop redundant file.
29999         * modules/userspec (Files): Remove lib/inttostr.h.
30000
30001 2010-10-17  Bruno Haible  <bruno@clisp.org>
30002
30003         nl_langinfo tests: Silence some warnings.
30004         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
30005         Reported by Jim Meyering.
30006
30007 2010-10-17  Bruno Haible  <bruno@clisp.org>
30008
30009         Make use of GCC's attribute __alloc_size__.
30010         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
30011         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
30012         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
30013         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
30014         __alloc_size__.
30015         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30016         Suggested by Jim Meyering.
30017
30018 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
30019
30020         bootstrap: anchor .gitignore entries.
30021         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
30022         with...
30023         (insert_vc_ignore): ... this new function, which prepends `/' to
30024         all .gitignore entries before passing them to
30025         insert_sorted_if_absent.
30026
30027 2010-10-16  Bruno Haible  <bruno@clisp.org>
30028
30029         nextafter: Fix configure check.
30030         * modules/nextafter (configure.ac): Correct expected prototype.
30031
30032 2010-10-16  Bruno Haible  <bruno@clisp.org>
30033
30034         termios: Update documentation.
30035         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
30036
30037 2010-10-16  Bruno Haible  <bruno@clisp.org>
30038
30039         tests: Make them compile with TinyCC.
30040         * tests/test-strstr.c (main): Remove parentheses around array
30041         initializer.
30042
30043 2010-10-15  Eric Blake  <eblake@redhat.com>
30044
30045         ignore-value: make header idempotent
30046         * lib/ignore-value.h: Add double-inclusion guards.
30047         Reported by Stefan Berger.
30048
30049 2010-10-15  Jim Meyering  <meyering@redhat.com>
30050
30051         GNUmakefile: handle "stable" target, not "major"
30052         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
30053         lists in maint.mk and announce-gen.  Without this, "make stable"
30054         would fail to ensure that $(VERSION) is up to date.
30055
30056 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
30057
30058         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
30059         & co.
30060
30061 2010-10-14  Bruno Haible  <bruno@clisp.org>
30062
30063         vasnprintf: Don't set errno to 0.
30064         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
30065         block that sets it to 0.
30066         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30067
30068 2010-10-14  Bruno Haible  <bruno@clisp.org>
30069
30070         socketlib: Fix.
30071         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
30072         gl_PREREQ_SYS_H_WINSOCK2.
30073         Reported by Ian Beckwith <ianb@erislabs.net>.
30074
30075 2010-10-13  Jim Meyering  <meyering@redhat.com>
30076
30077         test-select-stdin.c: avoid warn_unused_result warnings
30078         * tests/test-select-stdin.c: Include "macros.h".
30079         ASSERT that read and fflush succeed.
30080
30081 2010-10-13  Jim Meyering  <meyering@redhat.com>
30082
30083         git-version-gen: do require git-VC'd files in cwd
30084         * build-aux/git-version-gen: Reject a git version string
30085         if there are no commits associated with the current directory.
30086         This avoids an unlikely false-positive (unrelated dir whose parent
30087         repository also contains a tag matching v*), as pointed out
30088         by Giuseppe Scrivano in
30089         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30090
30091 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30092
30093         argv-iter: omit nonconforming declaration
30094         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30095         enum arg_iter_err declaration, which doesn't conform to C99.
30096         Solaris 10 cc warns about this.
30097
30098 2010-10-13  Eric Blake  <eblake@redhat.com>
30099
30100         termios: fix compilation on mingw
30101         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30102         (gl_TERMIOS_H): Adjust it on mingw.
30103         * modules/termios (Makefile.am): Substitute new key.
30104         * lib/termios.in.h (includes): Make include_next conditional.
30105         * doc/posix-headers/termios.texi (termios.h): Update
30106         documentation.
30107         Reported by Daniel P. Berrange.
30108
30109 2010-10-13  Jim Meyering  <meyering@redhat.com>
30110
30111         git-version-gen: don't require that .git/ be in the current dir
30112         * build-aux/git-version-gen: Adjust this script so that it works
30113         when run from any working directory beneath the top-level .git/-
30114         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30115         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30116
30117         test-select: avoid warn_unused_result warnings
30118         * tests/test-select.c: Include "macros.h".
30119         ASSERT that each call to read, write, and pipe succeeds.
30120         While not technically required, also check each "close".
30121         * modules/select-tests (Files): Add tests/macros.h.
30122
30123         test-symlinkat: remove declaration of unused local
30124         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30125
30126         test-inttostr: avoid shadowing warnings
30127         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30128         and use malloc rather than the stack for the same reason as
30129         mentioned in the comment justifying the other allocation.
30130
30131 2010-10-11  Bruno Haible  <bruno@clisp.org>
30132
30133         stdlib: Allow multiple gnulib generated replacements to coexist.
30134         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30135         Reported by Sam Steingold <sds@gnu.org>.
30136
30137 2010-10-11  Jim Meyering  <meyering@redhat.com>
30138
30139         fix a documentation typo
30140         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30141
30142 2010-10-11  Eric Blake  <eblake@redhat.com>
30143
30144         futimens: work around Solaris 11 bug
30145         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30146         * tests/test-futimens.h (test_futimens): Enhance, rather than
30147         weaken test.
30148         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30149
30150 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30151
30152         Indentation.
30153         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30154         higher-level operators more to the left.
30155
30156 2010-10-11  Jim Meyering  <meyering@redhat.com>
30157
30158         test-futimens: avoid unwarranted test failure on Solaris 5.11
30159         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30160         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30161         because it tries to dereference the NULL name argument.
30162
30163 2010-10-11  Bruno Haible  <bruno@clisp.org>
30164
30165         Indentation.
30166         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30167         indentation.
30168
30169 2010-10-11  Jim Meyering  <meyering@redhat.com>
30170
30171         spawn.in.h: make indentation consistent with parentheses
30172         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30173         Make indentation consistent with parentheses.
30174
30175 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30176
30177         Fix mismatched parens in previous commit
30178         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30179         parens.
30180
30181 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30182
30183         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30184
30185         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30186         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30187         * lib/malloca.c: Include "verify.h".
30188         (verify1): Remove, replacing with a verify call.
30189         * lib/relocwrapper.c (verify1): Likewise.
30190         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30191         Likewise.
30192         * modules/malloca (Depends-on): Add 'verify'.
30193         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30194         * modules/vasnprintf (Depends-on): Add 'verify'.
30195         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30196         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30197         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30198         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30199         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30200         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30201         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30202
30203         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30204
30205         Formerly the style was sometimes 2*X - 1, because the C standard
30206         was wrongly thought to disallow ?: in integral constant expressions.
30207         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30208         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30209         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30210         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30211         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30212         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30213         verify that time_t cannot be floating.
30214
30215 2010-10-08  Eric Blake  <eblake@redhat.com>
30216
30217         time: enforce recent POSIX ruling that time_t is integral
30218         * lib/time.in.h (__time_t_must_be_integral): Detect any
30219         problematic systems, allowing the rest of gnulib to assume POSIX.
30220
30221 2010-10-08  Jim Meyering  <meyering@redhat.com>
30222
30223         fdopendir: fix a bug on systems lacking openat and /proc support
30224         OpenBSD 4.7 is one such system.  The most noticeable effect was
30225         failure of any application making nontrivial use of fts: rm, du,
30226         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30227           ./rm: traversal failed: `a': Bad file descriptor
30228         Debugging that, you see that even though FD 6 was closed just
30229         prior to the opendir call in fd_clone_opendir, its resulting
30230         dir->dd_fd was 8, rather than the expected value of 6:
30231
30232         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30233         93                close (fd);
30234         (gdb) n
30235         94                dir = fd_clone_opendir (dupfd);
30236         (gdb) n
30237         95                saved_errno = errno;
30238         (gdb) p dir->dd_fd
30239         $11 = 8
30240
30241         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30242         The problem is that on OpenBSD, fd_clone_opendir has to resort
30243         to using the old-style save/restore CWD mechanism, due to its
30244         lack of openat/proc support, and *that* would steal the FD (6)
30245         that opendir was supposed to use.
30246
30247         The fix is to squirrel away the desired FD so that save_cwd uses a
30248         different one, and then free the dest FD right before calling opendir.
30249         That guarantees opendir will use the required file descriptor.
30250
30251         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30252
30253 2010-10-08  Bruno Haible  <bruno@clisp.org>
30254
30255         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30256         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30257
30258 2010-10-08  Bruno Haible  <bruno@clisp.org>
30259
30260         nanosleep: Make replacement POSIX compliant.
30261         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30262         is out of range.
30263         Reported by Jim Meyering.
30264
30265 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30266
30267         bootstrap: add hook for altering gnulib.mk, for Bison
30268         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30269         the Bison bootstrapping process can rewrite file names and variables
30270         in this file before later parts of 'bootstrap' use the file.
30271         Bison wants to include lib/gnulib.mk from the top-level makefile,
30272         so it needs the file names in this file to be relative to the top
30273         level, not relative to lib; plus it needs variable names to be
30274         rewritten.
30275         (slurp): Use the new function.
30276
30277         bootstrap: reformat for readability
30278         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30279
30280 2010-10-08  Eric Blake  <eblake@redhat.com>
30281
30282         docs: update cygwin progress
30283         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30284         1.7.7.
30285         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30286         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30287         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30288         * doc/posix-functions/carg.texi (carg): Likewise.
30289         * doc/posix-functions/cargf.texi (cargf): Likewise.
30290         * doc/posix-functions/casin.texi (casin): Likewise.
30291         * doc/posix-functions/casinf.texi (casinf): Likewise.
30292         * doc/posix-functions/casinh.texi (casinh): Likewise.
30293         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30294         * doc/posix-functions/catan.texi (catan): Likewise.
30295         * doc/posix-functions/catanf.texi (catanf): Likewise.
30296         * doc/posix-functions/catanh.texi (catanh): Likewise.
30297         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30298         * doc/posix-functions/ccos.texi (ccos): Likewise.
30299         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30300         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30301         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30302         * doc/posix-functions/cexp.texi (cexp): Likewise.
30303         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30304         * doc/posix-functions/cimag.texi (cimag): Likewise.
30305         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30306         * doc/posix-functions/clog.texi (clog): Likewise.
30307         * doc/posix-functions/clogf.texi (clogf): Likewise.
30308         * doc/posix-functions/conj.texi (conj): Likewise.
30309         * doc/posix-functions/conjf.texi (conjf): Likewise.
30310         * doc/posix-functions/cpow.texi (cpow): Likewise.
30311         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30312         * doc/posix-functions/cproj.texi (cproj): Likewise.
30313         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30314         * doc/posix-functions/creal.texi (creal): Likewise.
30315         * doc/posix-functions/crealf.texi (crealf): Likewise.
30316         * doc/posix-functions/csin.texi (csin): Likewise.
30317         * doc/posix-functions/csinf.texi (csinf): Likewise.
30318         * doc/posix-functions/csinh.texi (csinh): Likewise.
30319         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30320         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30321         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30322         * doc/posix-functions/ctan.texi (ctan): Likewise.
30323         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30324         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30325         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30326         * doc/posix-headers/complex.texi (complex.h): Likewise.
30327
30328 2010-10-07  Jim Meyering  <meyering@redhat.com>
30329
30330         parse-datetime: avoid compilation failure on OpenBSD 4.7
30331         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30332         This works around a compilation failure on OpenBSD 4.7:
30333         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30334
30335 2010-10-07  Eric Blake  <eblake@redhat.com>
30336
30337         docs: update cygwin progress
30338         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30339         1.7.6.
30340         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30341         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30342         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30343         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30344         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30345         Likewise.
30346         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30347         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30348         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30349         Likewise.
30350         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30351         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30352         Likewise.
30353         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30354         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30355         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30356         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30357         Likewise.
30358         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30359         Likewise.
30360         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30361
30362         docs: update parse-datetime history
30363         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30364         documentation of this function's history and alternatives.
30365
30366         cygwin: use more robust version check
30367         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30368         exclude an eventual cygwin 1.9.1.
30369         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30371         (gl_FUNC_STRCASESTR): Likewise.
30372         Reported by Bruno Haible.
30373
30374 2010-10-06  Bruno Haible  <bruno@clisp.org>
30375
30376         string, sys_select: Avoid #including large headers unless necessary.
30377         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30378         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30379         OSF/1, BeOS, Haiku.
30380         Reported by Jim Meyering.
30381
30382 2010-10-05  Eric Blake  <eblake@redhat.com>
30383
30384         memmem, strstr, strcasestr: fix bug with long periodic needle
30385         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30386         periodic needle having false positive.
30387         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30388         and cygwin 1.7.7.
30389         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30391         (gl_FUNC_STRCASESTR): Likewise.
30392         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30393         * tests/test-memmem.c (main): Expose the bug.
30394         * tests/test-strcasestr.c (main): Likewise.
30395         * tests/test-strstr.c (main): Likewise.
30396         * tests/test-c-strcasestr.c (main): Likewise.
30397         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30398         * doc/posix-functions/strstr.texi (strstr): Likewise.
30399         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30400         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30401
30402 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30403
30404         parse-datetime: do some more renaming
30405         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30406         parse_datetime, not get_date.  Mention the renaming.
30407         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30408         in comments.
30409         * m4/bison.m4: Likewise.
30410
30411 2010-10-05  Eric Blake  <eblake@redhat.com>
30412
30413         parse-datetime: better name than get_date
30414         * NEWS: Reword the deprecation notice.
30415         * modules/get_date: Rename to modules/parse-datetime.
30416         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30417         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30418         * lib/get_date.y: Rename to lib/parse-datetime.y.
30419         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30420         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30421         * doc/getdate.texi: Provide fallback wrapper.
30422         * lib/getdate.h: Move guts, and wrap...
30423         * lib/parse-datetime.h: ...new file.
30424         * lib/parse-datetime.y (get_date): Rename...
30425         (parse_datetime): ...to this.
30426         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30427         (gl_PARSE_DATETIME): ...to this.
30428         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30429         documentation.
30430         * modules/getdate (Files): Provide fallback docs and header.
30431         (Notice, Depends-on): Update references.
30432         * tests/test-parse-datetime.c: Likewise.
30433         * DEPENDENCIES: Likewise.
30434         * MODULES.html.sh (Date and time <time.h>): Likewise.
30435         * doc/parse-datetime.texi (Date input formats)
30436         (Authors of parse_datetime): Likewise.
30437         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30438         (Include): Likewise.
30439         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30440         * gnulib-tool: Likewise.
30441         * m4/bison.m4 (gl_BISON): Likewise.
30442         Suggested by Bruno Haible.
30443
30444 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30445
30446         more ports to Solaris tr, which needs [] around ranges
30447         * gnulib-tool: Solaris tr needs [] around ranges.
30448         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30449         * tests/test-pipe-filter-gi1.c (main): Likewise.
30450         * tests/test-pipe-filter-ii1.c (main): Likewise.
30451
30452 2010-10-05  Eric Blake  <eblake@redhat.com>
30453
30454         bootstrap: fix Solaris regression
30455         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30456         around ranges.
30457         Reported by Pádraig Brady.
30458
30459         bootstrap: work with pkg-config
30460         * build-aux/bootstrap (check_versions): Also transliterate - in
30461         prerequisite name.
30462         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30463         prerequisites that were already found, to avoid confusion.
30464         Reported by Justin Clift.
30465
30466         faccessat: remove unused wrappers
30467         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30468         presence of these wrappers dragged in -lgen on Solaris.
30469         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30470
30471 2010-10-05  Jim Meyering  <meyering@redhat.com>
30472
30473         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30474         * Makefile (sc_pragma_columns): New syntax-check rule.
30475
30476 2010-10-04  Bruno Haible  <bruno@clisp.org>
30477
30478         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30479         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30480         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30481         Reported by Bruce Korb and Eric Blake.
30482
30483 2010-10-04  Bruno Haible  <bruno@clisp.org>
30484
30485         threadlib: Make option --with-libpth-prefix work.
30486         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30487         use $LIBPTH, not just -lpth.
30488
30489 2010-10-04  Bruno Haible  <bruno@clisp.org>
30490
30491         Avoid line length limitation from HP NonStop system header files.
30492         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30493         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30494         * lib/ctype.in.h: Likewise.
30495         * lib/dirent.in.h: Likewise.
30496         * lib/errno.in.h: Likewise.
30497         * lib/fcntl.in.h: Likewise.
30498         * lib/float.in.h: Likewise.
30499         * lib/getopt.in.h: Likewise.
30500         * lib/iconv.in.h: Likewise.
30501         * lib/inttypes.in.h: Likewise.
30502         * lib/langinfo.in.h: Likewise.
30503         * lib/locale.in.h: Likewise.
30504         * lib/math.in.h: Likewise.
30505         * lib/netdb.in.h: Likewise.
30506         * lib/netinet_in.in.h: Likewise.
30507         * lib/poll.in.h: Likewise.
30508         * lib/pthread.in.h: Likewise.
30509         * lib/pty.in.h: Likewise.
30510         * lib/sched.in.h: Likewise.
30511         * lib/se-selinux.in.h: Likewise.
30512         * lib/search.in.h: Likewise.
30513         * lib/signal.in.h: Likewise.
30514         * lib/spawn.in.h: Likewise.
30515         * lib/stdarg.in.h: Likewise.
30516         * lib/stddef.in.h: Likewise.
30517         * lib/stdint.in.h: Likewise.
30518         * lib/stdio.in.h: Likewise.
30519         * lib/stdlib.in.h: Likewise.
30520         * lib/string.in.h: Likewise.
30521         * lib/strings.in.h: Likewise.
30522         * lib/sys_file.in.h: Likewise.
30523         * lib/sys_ioctl.in.h: Likewise.
30524         * lib/sys_select.in.h: Likewise.
30525         * lib/sys_socket.in.h: Likewise.
30526         * lib/sys_stat.in.h: Likewise.
30527         * lib/sys_time.in.h: Likewise.
30528         * lib/sys_times.in.h: Likewise.
30529         * lib/sys_utsname.in.h: Likewise.
30530         * lib/sys_wait.in.h: Likewise.
30531         * lib/sysexits.in.h: Likewise.
30532         * lib/termios.in.h: Likewise.
30533         * lib/time.in.h: Likewise.
30534         * lib/unistd.in.h: Likewise.
30535         * lib/wchar.in.h: Likewise.
30536         * lib/wctype.in.h: Likewise.
30537         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30538         * modules/ctype (Makefile.am): Likewise.
30539         * modules/dirent (Makefile.am): Likewise.
30540         * modules/errno (Makefile.am): Likewise.
30541         * modules/fcntl-h (Makefile.am): Likewise.
30542         * modules/float (Makefile.am): Likewise.
30543         * modules/getopt-posix (Makefile.am): Likewise.
30544         * modules/iconv-h (Makefile.am): Likewise.
30545         * modules/inttypes (Makefile.am): Likewise.
30546         * modules/langinfo (Makefile.am): Likewise.
30547         * modules/locale (Makefile.am): Likewise.
30548         * modules/math (Makefile.am): Likewise.
30549         * modules/netdb (Makefile.am): Likewise.
30550         * modules/netinet_in (Makefile.am): Likewise.
30551         * modules/poll-h (Makefile.am): Likewise.
30552         * modules/pthread (Makefile.am): Likewise.
30553         * modules/pty (Makefile.am): Likewise.
30554         * modules/sched (Makefile.am): Likewise.
30555         * modules/search (Makefile.am): Likewise.
30556         * modules/selinux-h (Makefile.am): Likewise.
30557         * modules/signal (Makefile.am): Likewise.
30558         * modules/spawn (Makefile.am): Likewise.
30559         * modules/stdarg (Makefile.am): Likewise.
30560         * modules/stddef (Makefile.am): Likewise.
30561         * modules/stdint (Makefile.am): Likewise.
30562         * modules/stdio (Makefile.am): Likewise.
30563         * modules/stdlib (Makefile.am): Likewise.
30564         * modules/string (Makefile.am): Likewise.
30565         * modules/strings (Makefile.am): Likewise.
30566         * modules/sys_file (Makefile.am): Likewise.
30567         * modules/sys_ioctl (Makefile.am): Likewise.
30568         * modules/sys_select (Makefile.am): Likewise.
30569         * modules/sys_socket (Makefile.am): Likewise.
30570         * modules/sys_stat (Makefile.am): Likewise.
30571         * modules/sys_time (Makefile.am): Likewise.
30572         * modules/sys_times (Makefile.am): Likewise.
30573         * modules/sys_utsname (Makefile.am): Likewise.
30574         * modules/sys_wait (Makefile.am): Likewise.
30575         * modules/sysexits (Makefile.am): Likewise.
30576         * modules/termios (Makefile.am): Likewise.
30577         * modules/time (Makefile.am): Likewise.
30578         * modules/unistd (Makefile.am): Likewise.
30579         * modules/wchar (Makefile.am): Likewise.
30580         * modules/wctype (Makefile.am): Likewise.
30581
30582 2010-10-04  Bruno Haible  <bruno@clisp.org>
30583
30584         read-file tests: Avoid a test failure on NonStop Kernel.
30585         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30586         a regular file.
30587         Reported by Joachim Schmitz <schmitz@hp.com>.
30588
30589 2010-10-03  Bruno Haible  <bruno@clisp.org>
30590
30591         gnulib-tool: Fixes for --create-testdir with --libtool.
30592         * gnulib-tool (func_get_automake_snippet): Don't augment
30593         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30594         an executable.
30595         (func_create_testdir): Handle module 'alloca' like func_import.
30596         Reported by Bruce Korb <bruce.korb@gmail.com>.
30597
30598 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30599
30600         Avoid some lines longer than 80 characters.
30601         * lib/stdint.in.h: Break long comment lines.
30602         * lib/math.in.h: Likewise.
30603         (_GL_NUM_UINT_WORDS): New macro, for readability.
30604         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30605         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30606         * lib/stdlib.in.h: Likewise.
30607         * lib/spawn.in.h: Likewise.
30608         * lib/sys_socket.in.h: Update an URL.
30609         * lib/sys_stat.in.h: Break long line.
30610
30611 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30612
30613         Improve pmccabe2html.
30614         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30615         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30616         when the sources change. Remove the line in the HTML about "Used
30617         ranges" (which implied that there might be other unused ranges),
30618         rename "Resume" to "Summary" (easier to understand for more users).
30619         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30620         styles, and some unnecessary blank lines.
30621
30622 2010-10-03  Bruno Haible  <bruno@clisp.org>
30623             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30624
30625         acl: Add support for ACLs on NonStop Kernel.
30626         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30627         Check whether the function aclsort() exists.
30628         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30629         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30630         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30631         (acl_nontrivial [HAVE_ACLSORT]: New function.
30632         (file_has_acl): Implement for NonStop Kernel.
30633         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30634         (qset_acl): Implement for NonStop Kernel.
30635         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30636         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30637         (main): Implement for NonStop Kernel.
30638         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30639         Kernel. Handle this flavor.
30640         * tests/test-set-mode-acl.sh: Likewise.
30641         * tests/test-copy-acl.sh: Likewise.
30642         * tests/test-copy-file.sh: Likewise.
30643
30644 2010-10-03  Bruno Haible  <bruno@clisp.org>
30645
30646         Info about ACLs on NonStop Kernel.
30647         * doc/acl-resources.txt: Add info about NonStop Kernel.
30648         References by Joachim Schmitz <schmitz@hp.com>.
30649
30650 2010-10-02  Bruno Haible  <bruno@clisp.org>
30651
30652         Define missing EDQUOT on NonStop Kernel.
30653         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30654         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30655         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30656         missing.
30657         * doc/posix-headers/errno.texi: Mention the NSK bug.
30658         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30659         Reported by Joachim Schmitz <schmitz@hp.com>.
30660
30661 2010-10-02  Bruno Haible  <bruno@clisp.org>
30662
30663         Update doc for POSIX:2008.
30664         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30665         Update URL of POSIX specification.
30666
30667 2010-10-02  Bruno Haible  <bruno@clisp.org>
30668
30669         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30670         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30671         from gnulib, not from Automake.
30672
30673 2010-10-02  Bruno Haible  <bruno@clisp.org>
30674
30675         New module 'system-posix'.
30676         * modules/system-posix: New file.
30677         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30678         module is present.
30679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30680         GNULIB_SYSTEM_POSIX.
30681         * modules/stdlib (Depends-on): Remove sys_wait.
30682         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30683         * doc/posix-functions/system.texi: Mention the new module.
30684         * doc/posix-headers/stdlib.texi: Likewise.
30685         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30686         define test_sys_wait_macros to a no-op.
30687         Reported by Sam Steingold <sds@gnu.org>.
30688
30689 2010-09-30  Bruno Haible  <bruno@clisp.org>
30690
30691         More renaming from 'getdate' to 'get_date'.
30692         * doc/get_date.texi: Renamed from doc/getdate.texi.
30693         * modules/get_date (Files): Update.
30694         * MODULES.html.sh (Date and time <time.h>): Update.
30695         * DEPENDENCIES: Update.
30696         * gnulib-tool: Update comment.
30697         * m4/bison.m4 (gl_BISON): Likewise.
30698         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30699
30700 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30701
30702         bootstrap: support ACLOCAL_FLAGS during aclocal
30703         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30704         can add additional -I dir for third-party .m4 files.
30705
30706 2010-09-30  Eric Blake  <eblake@redhat.com>
30707
30708         bootstrap: use glibtoolize on MacOS
30709         * build-aux/bootstrap (check_versions): Convert libtool into
30710         libtoolize.
30711         (tool search): Move libtool check earlier, and look for
30712         glibtoolize for MacOS.
30713         (gnulib_tool_options): Auto-add --libtool when appropriate.
30714         Reported by Justin Clift.
30715
30716         poll: fix typo that broke test on MacOS
30717         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30718         Reported by Justin Clift.
30719
30720         getdate: rename to get_date
30721         Note: getdate.h is not renamed, to minimize client impact.
30722         * modules/getdate: Mark obsolete.  Move old contents...
30723         * modules/get_date: ...to new module name.
30724         * modules/getdate-tests: Move...
30725         * modules/get_date-tests: ...here.
30726         * m4/getdate.m4: Move...
30727         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30728         * lib/getdate.y: Move...
30729         * lib/get_date.y: ...here.
30730         * tests/test-getdate.c: Move...
30731         * tests/test-get_date.c: ...here.
30732         * doc/posix-functions/getdate.texi (getdate): Update name.
30733         * NEWS: Mention the change.
30734
30735 2010-09-29  Bruno Haible  <bruno@clisp.org>
30736
30737         Separate the module 'waitpid' from the module 'sys_wait'.
30738         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30739         present.
30740         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30741         gl_MODULE_INDICATOR_FOR_TESTS.
30742         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30743         * modules/sys_wait (Depends-on): Remove waitpid.
30744         (Makefile.am): Substitute GNULIB_WAITPID.
30745         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30746         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30747         signature only if the 'waitpid' module is present.
30748         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30749         * NEWS: Mention the change.
30750         * modules/grantpt (Depends-on): Add waitpid.
30751         * modules/wait-process (Depends-on): Likewise.
30752
30753 2010-09-29  Bruno Haible  <bruno@clisp.org>
30754
30755         More tests for module 'sys_wait'.
30756         * modules/sys_wait-c++-tests: New file.
30757         * tests/test-sys_wait-c++.cc: New file.
30758         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30759         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30760
30761 2010-09-29  Bruno Haible  <bruno@clisp.org>
30762
30763         New module 'waitpid'.
30764         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30765         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30766         Don't include <process.h>.
30767         (waitpid): Declare only, using modern idiom.
30768         * m4/waitpid.m4: New file.
30769         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30770         * modules/waitpid: New file.
30771         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30772         (Makefile.am): Update.
30773         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30774
30775 2010-09-28  Bruno Haible  <bruno@clisp.org>
30776
30777         poll: Assume ANSI C.
30778         * lib/poll.c (poll): Use an ANSI C declaration.
30779
30780 2010-09-28  Bruno Haible  <bruno@clisp.org>
30781
30782         poll-h: Create poll.h on all platforms.
30783         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30784         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30785         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30786         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30787         (gl_REPLACE_POLL_H): Don't set POLL_H.
30788         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30789         * modules/poll-h (Depends-on): Add include_next.
30790         (Makefile.am): Create poll.h unconditionally. Substitute also
30791         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30792
30793 2010-09-28  Bruno Haible  <bruno@clisp.org>
30794
30795         Tests for module 'poll-h'.
30796         * modules/poll-h-c++-tests: New file.
30797         * tests/test-poll-h-c++.cc: New file.
30798
30799         Tests for module 'poll-h'.
30800         * modules/poll-h-tests: New file.
30801         * tests/test-poll-h.c: New file.
30802
30803 2010-09-28  Bruno Haible  <bruno@clisp.org>
30804
30805         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30806         * modules/poll-h (Depends-on): Add 'extensions'.
30807
30808 2010-09-28  Bruno Haible  <bruno@clisp.org>
30809
30810         New module 'poll-h'.
30811         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30812         (poll): Use modern idiom.
30813         * modules/poll-h: New file.
30814         * modules/poll (Files): Remove lib/poll.in.h.
30815         (Depends-on): Add poll-h.
30816         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30817         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30818         * m4/poll_h.m4: New file.
30819         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30820         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30821         and invoke gl_REPLACE_POLL_H.
30822         * lib/poll.c: Use common idiom.
30823         * tests/test-poll.c: Likewise.
30824         * doc/posix-headers/poll.texi: Mention the poll-h module.
30825         Suggested by Eric Blake.
30826
30827 2010-09-26  Bruno Haible  <bruno@clisp.org>
30828
30829         sys_wait: Implement WSTOPSIG.
30830         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30831         Reported by Simon Josefsson.
30832
30833 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30834
30835         stdlib, sys_wait: Avoid compilation error on mingw.
30836         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30837
30838 2010-09-26  Bruno Haible  <bruno@clisp.org>
30839
30840         stdlib tests: Avoid code duplication.
30841         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30842         * modules/sys_wait-tests (Files): Likewise.
30843         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30844         * tests/test-stdlib.c: Include test-sys_wait.h.
30845         (main): Invoke test_sys_wait_macros.
30846         * tests/test-sys_wait.c: Include test-sys_wait.h.
30847         (main): Invoke test_sys_wait_macros.
30848
30849 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30850
30851         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30852         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30853         sure Windows sockets are working before calling getaddrinfo.
30854         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30855         * doc/gnulib.texi (Windows sockets): Fix typo.
30856
30857 2010-09-25  Bruno Haible  <bruno@clisp.org>
30858
30859         Tests for module 'regex-quote'.
30860         * modules/regex-quote-tests: New file.
30861         * tests/test-regex-quote.c: New file.
30862
30863         New module 'regex-quote'.
30864         * lib/regex-quote.h: New file.
30865         * lib/regex-quote.c: New file.
30866         * modules/regex-quote: New file.
30867         Suggested by Reuben Thomas <rrt@sc3d.org>.
30868
30869 2010-09-24  Bruno Haible  <bruno@clisp.org>
30870
30871         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30872         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30873
30874 2010-09-23  Bruno Haible  <bruno@clisp.org>
30875
30876         setenv: Relax license.
30877         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30878         Blake.
30879         Requested by Eric Blake.
30880
30881 2010-09-22  Bruno Haible  <bruno@clisp.org>
30882
30883         termios: Relax license.
30884         * modules/termios (License): Change to LGPLv2+.
30885         Requested by Eric Blake.
30886
30887 2010-09-22  Bruno Haible  <bruno@clisp.org>
30888
30889         threadlib: Allow the package to change the default to 'no'.
30890         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30891         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30892         Reported by Paul Eggert.
30893
30894 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30895             Bruno Haible  <bruno@clisp.org>
30896
30897         Fix endless loop in mbmemcasecoll.
30898         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30899         byte.
30900         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30901
30902 2010-09-22  Bruno Haible  <bruno@clisp.org>
30903
30904         Tests for module 'memcoll'.
30905         * modules/memcoll-tests: New file.
30906         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30907
30908         memcoll, xmemcoll: Clarify size vs. length.
30909         * modules/memcoll.c (memcoll0): Clarify specification.
30910         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30911         passed to collate_error.
30912
30913 2010-09-22  Bruno Haible  <bruno@clisp.org>
30914
30915         Tests for module 'memcasecmp'.
30916         * modules/memcasecmp-tests: New file.
30917         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30918
30919 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30920
30921         * lib/pthread.in.h: Add split double-inclusion guard, and include
30922         system <pthread.h> if there is one.  Use @@-style as in other
30923         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30924         pthread.h doesn't.
30925         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30926         (pthread_mutexattr_settype, pthread_mutex_trylock):
30927         New static inline functions, if there's no system <pthread.h>.
30928         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30929         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30930         Approximate with mutexes if the system lacks spinlocks, as in
30931         MacOS.
30932         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30933         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30934         @@-style.  Check for spinlocks separately.
30935         (gl_PTHREAD_DEFAULTS): New macro.
30936         * modules/pthread: Redo to use a more typical style for in.h files.
30937
30938 2010-09-21  Eric Blake  <eblake@redhat.com>
30939
30940         net_if: enhance tests
30941         * tests/test-net_if.c (main): Move signature checks earlier.
30942         Print failures to stderr.
30943         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30944         Document the bug that we do not yet fix.
30945
30946 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30947
30948         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30949         about gnulib, not GSS.
30950
30951 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30952
30953         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30954         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30955         for Emacs.
30956         * build-aux/pmccabe2html: Make Makefile.am example code more
30957         cut-and-paste friendly.
30958
30959 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30960
30961         * tests/test-net_if.c: New file.
30962         * modules/net_if-tests: New file.
30963
30964 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30965
30966         pthread: add pthread_spin_destroy
30967         * lib/pthread.in.h (pthread_spin_destroy): New function.
30968
30969 2010-09-19  Bruno Haible  <bruno@clisp.org>
30970
30971         gnulib-tool: Fix --help output.
30972         * gnulib-tool (func_usage): Fix help message.
30973         Reported by Reuben Thomas <rrt@sc3d.org>.
30974
30975 2010-09-18  Jim Meyering  <meyering@redhat.com>
30976
30977         maint.mk: avoid unexpanded \n in two diagnostics
30978         * top/maint.mk (sc_prohibit_always_true_header_tests):
30979         Don't use a literal \n in a halt=... assignment.  It would not be
30980         expanded, and the two \n bytes would appear in the diagnostic output
30981         rather than the desired newline.  Use halt=$$(printf ... instead.
30982         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30983
30984 2010-09-18  Bruno Haible  <bruno@clisp.org>
30985
30986         netinet_in: Doc tweak.
30987         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30988         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30989
30990 2010-09-18  Jim Meyering  <meyering@redhat.com>
30991
30992         init.sh: correct an outdated comment
30993         * tests/init.sh (create_exe_shims_):  s/function/alias/
30994
30995         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30996         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30997         a file named "*.exe" is removed between the glob expansion and the
30998         processing of that oddly named file.
30999
31000 2010-09-17  Eric Blake  <eblake@redhat.com>
31001
31002         mirbsd: add some more support
31003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
31004         in BSD family.
31005         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
31006         devices as OpenBSD.
31007         * m4/host-os.m4 (mirbsd): Add MirBSD.
31008
31009         tests: fix unportable assumption on sys/wait.h
31010         * tests/test-sys_wait.c (main): Relax test.
31011         * tests/test-stdlib.c (main): Likewise.
31012
31013         init.sh: accommodate directory with no .exes
31014         * tests/init.sh: Accomodate directory containing only scripts.
31015
31016         tests: avoid compiler warning
31017         * tests/test-stdlib.c (main): Use the variable.
31018
31019         fdutimens, fdutimensat: update signature, again
31020         * lib/utimens.h (gl_futimens): Delete, and move signature...
31021         (fdutimens): ...here.
31022         (fdutimensat): Rearrange signature.
31023         (lutimensat): Rename variable for clarity.
31024         * lib/fdutimensat.c (fdutimensat): Update signature.
31025         * lib/utimens.c (fdutimens): Likewise.
31026         (gl_futimens): Delete.
31027         (utimens, lutimens): Update callers.
31028         * lib/futimens.c (futimens): Likewise.
31029         * tests/test-fdutimensat.c: Likewise.
31030         * tests/test-utimens.c: Likewise.
31031         * tests/test-futimens.h: Update comment.
31032         * NEWS: Mention this.
31033         Suggested by Paul Eggert.
31034
31035 2010-09-17  Bruno Haible  <bruno@clisp.org>
31036
31037         Take over the maintenance of some older macros from Autoconf.
31038         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
31039         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
31040         GNU Autoconf.
31041         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
31042         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
31043
31044 2010-09-17  Eric Blake  <eblake@redhat.com>
31045
31046         fdutimensat: drop atflag validation
31047         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
31048         with valid fd, to close a race scenario where futimens is
31049         unsupported and FILE was replaced by a symlink.
31050         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
31051         accordingly.
31052         Suggested by Paul Eggert.
31053
31054 2010-09-16  Bruno Haible  <bruno@clisp.org>
31055
31056         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
31057         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
31058
31059 2010-09-16  Bruno Haible  <bruno@clisp.org>
31060
31061         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
31062         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
31063         login_tty exists.
31064         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31065
31066 2010-09-16  Bruno Haible  <bruno@clisp.org>
31067
31068         login_tty: Make the replacement code work on BSD systems.
31069         * lib/login_tty.c: Include <sys/ioctl.h>.
31070         (login_tty): Use ioctl TIOCSCTTY when available.
31071         * modules/login_tty (Depends-on): Add sys_ioctl.
31072         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31073
31074 2010-09-16  Bruno Haible  <bruno@clisp.org>
31075
31076         login_tty: Stricter unit test.
31077         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31078         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31079         and tcgetsid() after login_tty.
31080         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31081
31082 2010-09-16  Bruno Haible  <bruno@clisp.org>
31083
31084         New module 'tcgetsid'.
31085         * lib/tcgetsid.c: New file.
31086         * m4/tcgetsid.m4: New file.
31087         * modules/tcgetsid: New file.
31088         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31089         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31090         GNULIB_TCGETSID, HAVE_TCGETSID.
31091         * lib/termios.in.h: Include <sys/types.h>.
31092         (tcgetsid): New declaration.
31093         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31094         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31095         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31096         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31097
31098 2010-09-16  Bruno Haible  <bruno@clisp.org>
31099
31100         Tests for module 'termios'.
31101         * modules/termios-c++-tests: New file.
31102         * modules/termios-tests: New file.
31103         * tests/test-termios-c++.cc: New file.
31104         * tests/test-termios.c: New file.
31105
31106         New module 'termios'.
31107         * modules/termios: New file.
31108         * lib/termios.in.h: New file.
31109         * m4/termios_h.m4: New file.
31110         * doc/posix-headers/termios.texi: Mention the new module.
31111
31112 2010-09-16  Eric Blake  <eblake@redhat.com>
31113
31114         fdutimensat: add an atflag parameter
31115         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31116         * lib/utimens.h (fdutimensat): Update prototype.
31117         * tests/test-fdutimensat.c: Adjust test to match.
31118         * NEWS: Document the change.
31119         Suggested by Paul Eggert.
31120
31121 2010-09-16  Bruno Haible  <bruno@clisp.org>
31122
31123         Fix typos in comments.
31124         * lib/striconveh.h: Fix typo in comment.
31125         * lib/login_tty.c (login_tty): Likewise.
31126
31127 2010-09-15  Bruno Haible  <bruno@clisp.org>
31128
31129         stdlib: clarify MirBSD WEXITSTATUS bug
31130         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31131         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31132
31133 2010-09-15  Eric Blake  <eblake@redhat.com>
31134
31135         stdlib: work around MirBSD WEXITSTATUS bug
31136         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31137         * modules/stdlib (Depends-on): Add sys_wait.
31138         * tests/test-sys_wait.c (main): Enhance test.
31139         * tests/test-stdlib.c (main): Likewise.
31140         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31141
31142         docs: mention MacOS issue with WEXITSTATUS(constant)
31143         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31144         issue.
31145         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31146
31147         strnlen: add tests
31148         * modules/strnlen-tests: New file.
31149         * tests/test-strnlen.c: Likewise.
31150
31151 2010-09-14  Bruno Haible  <bruno@clisp.org>
31152
31153         unistr/base: Avoid link errors when module 'libunistring' is also used.
31154         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31155         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31156         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31157         Declare also when HAVE_LIBUNISTRING is set.
31158         Reported by Pádraig Brady <P@draigbrady.com>.
31159
31160 2010-09-14  Eric Blake  <eblake@redhat.com>
31161
31162         test-rawmemchr: make more robust
31163         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31164         (Depends-on, configure.ac): Add needed prerequisites to use it.
31165         * modules/memchr-tests (Files, Depends-on, configure.ac):
31166         Likewise, to avoid implicit reliance on memchr module prereqs.
31167         * tests/test-memchr.c (main): Ensure proper masking.
31168         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31169         reads.
31170
31171         memchr: detect glibc Alpha bug
31172         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31173         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31174         Alpha.
31175         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31176         * tests/test-memchr.c (main): Enhance test.
31177         Reported by Nelson H. F. Beebe.
31178
31179 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31180
31181         fts, getcwd, glob: audit for dirfd returning -1
31182         * lib/fts.c (opendir): Remove #define; no longer used.
31183         (opendirat): New arg PDIR_FD.  All callers changed.
31184         (fts_build, _opendir2): Use new opendirat to avoid the need for
31185         dirfd, or for checking whether dirfd returns a negative value.
31186         Don't use opendir; always use openat followed by fdopendir.
31187         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31188         it.
31189         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31190         returns -1 here.
31191         * modules/fts (Depends-on): Remove dirfd.
31192         * modules/getcwd (Depends-on): Likewise.
31193
31194 2010-09-13  Eric Blake  <eblake@redhat.com>
31195
31196         float: fix broken MirBSD header
31197         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31198         * doc/posix-headers/float.texi (float.h): Document it.
31199
31200 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31201
31202         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31203         * lib/fts.c (opendirat): New arg extra_flags.
31204         (__opendir2): Use it to avoid following symlinks when opening
31205         a directory, if symlinks are not supposed to be followed.  See
31206         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31207
31208         fdopendir: preserve argument fd before returning
31209         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31210         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31211         (fdopendir): Use them, arranging for FD to be open to the same
31212         directory that it was when it started.  (It might be temporarily
31213         closed while fdopendir is running, so this not thread- or
31214         signal-safe.)  Be careful to do the right thing even when file
31215         descriptors are scarce and dup fails with errno == EMFILE.  See
31216         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31217
31218 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31219
31220         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31221         * NEWS: Document change.
31222         * m4/regex.m4: Disable test for regoff_t size.
31223
31224 2010-09-13  Jim Meyering  <meyering@redhat.com>
31225
31226         fts: don't operate on an invalid file descriptor after failed dup
31227         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31228         negative file descriptor.
31229
31230 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31231
31232         savedir: add streamsavedir, deprecate fdsavedir
31233         * NEWS: Mention deprecation of fdsavedir.
31234         * lib/savedir.c (streamsavedir): New extern function, whose name
31235         ends in "savedir" to be consistent with the others.  This differs
31236         from savedirstream in that it doesn't close its argument.  The
31237         next version of GNU tar will use this instead of fdsavedir, to
31238         avoid some race conditions and conserve file descriptors.
31239         (savedirstream): Reimplement as a wrapper around streamsavedir.
31240         (fdsavedir): Add a comment deprecating this function.  As far as
31241         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31242         * lib/savedir.h (streamsavedir): New decl.
31243         (fdsavedir): Add a comment deprecating this.
31244
31245 2010-09-10  Bruno Haible  <bruno@clisp.org>
31246
31247         langinfo: Fix last commit.
31248         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31249         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31251
31252 2010-09-10  Bruno Haible  <bruno@clisp.org>
31253
31254         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31255         * lib/progreloc.c (O_EXEC): Define fallback.
31256
31257 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31258
31259         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31260         * NEWS: Document recent changes to fcntl-h.
31261         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31262         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31263         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31264         Similarly for O_SEARCH; this last was already true, but not documented.
31265         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31266         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31267         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31268         Likewise.
31269         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31270         is zero, not whether it is defined.
31271         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31272         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31273         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31274
31275 2010-09-10  Bruno Haible  <bruno@clisp.org>
31276
31277         langinfo, nl_langinfo: Fix for IRIX 5.3.
31278         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31279         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31280         HAVE_LANGINFO_YESEXPR.
31281         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31282         HAVE_LANGINFO_YESEXPR.
31283         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31284         HAVE_LANGINFO_T_FMT_AMPM is 0.
31285         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31286         HAVE_LANGINFO_YESEXPR is 0.
31287         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31288         NOEXPR.
31289         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31290         * doc/posix-functions/nl_langinfo.texi: Likewise.
31291         Reported by Eric Blake.
31292
31293 2010-09-10  Bruno Haible  <bruno@clisp.org>
31294
31295         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31296         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31297         on FreeBSD 8.0 and OpenBSD 4.6.
31298         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31299         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31300         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31301         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31302         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31303         ac_includes_default.
31304         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31305
31306 2010-09-09  Eric Blake  <eblake@redhat.com>
31307
31308         strsignal: work around NetBSD bug
31309         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31310         * lib/string.in.h (includes): Likewise.
31311         * doc/posix-functions/strsignal.texi (strsignal): Document the
31312         bug.
31313         Reported by Nelson H. F. Beebe.
31314
31315         gnulib-tool: work with NetBSD /bin/sh
31316         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31317         (func_get_description, func_get_comment, func_get_status)
31318         (func_get_notice, func_get_applicability, func_get_filelist)
31319         (func_get_dependencies, func_get_autoconf_early_snippet)
31320         (func_get_autoconf_snippet, func_get_automake_snippet)
31321         (func_get_include_directive, func_get_link_directive)
31322         (func_get_license, func_get_maintainer, func_import): Avoid
31323         shell syntax errors from parsing syntax extensions.
31324
31325 2010-09-09  Bruno Haible  <bruno@clisp.org>
31326
31327         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31328         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31329         a reliable way to determine whether the 'alias' command works.
31330
31331 2010-09-08  Jim Meyering  <meyering@redhat.com>
31332
31333         init.sh: penalize a set-x-impaired shell; don't disqualify it
31334         * tests/init.sh: Too many shells corrupt application stderr when
31335         you set -x, so we can't afford to disqualify them, since at least
31336         on Irix-6.5, that would disqualify all bourne shells.
31337         Instead, use a two-pass approach.
31338         On the first pass, try to find a shell that meets the stricter
31339         condition that set -x does not corrupt stderr.
31340         If no shell meets the stricter condition, retest each candidate
31341         shell, but without that extra condition.  Finally, when
31342         VERBOSE=yes is requested and set -x might cause trouble, simply
31343         issue a warning and refrain from enabling debug output.
31344
31345 2010-09-08  Eric Blake  <eblake@redhat.com>
31346
31347         unsetenv: fix OpenBSD bug
31348         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31349         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31350         documentation.
31351         Reported by Jim Meyering.
31352
31353         strtod: work around IRIX 6.5 bug
31354         * lib/strtod.c (strtod): Reparse number on shorter string if
31355         exponent parse was invalid.
31356         * tests/test-strtod.c (main): Add check for "0x1p 2".
31357         Reported by Tom G. Christensen.
31358
31359         getopt: optimize previous patch
31360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31361         empty variable.  Speed up awk script.
31362         Reported by Paolo Bonzini.
31363
31364 2010-09-08  Jim Meyering  <meyering@redhat.com>
31365
31366         test.sh: disqualify shells for which set -x corrupts stderr
31367         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31368         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31369         appear in stderr output.  For example, this command:
31370             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31371         prints "P=1" on those two systems:
31372
31373 2010-09-08  Bruno Haible  <bruno@clisp.org>
31374
31375         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31376         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31377         commands, because some shells ignore redirections when there is an
31378         error in the command lookup.
31379         Reported by Eric Blake.
31380
31381 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31382
31383         * lib/regex.h: Fix a mention of `regex_compile' (should be
31384         `re_compile_pattern').
31385         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31386         (re_set_registers): Correct name of parameter in comment.
31387
31388         * doc/regex.texi: Add documentation for missing syntax flags.
31389         Remove commented-out documentation of defunct syntax option
31390         RE_NO_EMPTY_ALTS.
31391         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31392         Add documentation of re_set_registers.
31393         Document trick to re-use a pattern buffer by setting fastmap manually.
31394         Update documentation of struct re_pattern_buffer per public members.
31395         Uncomment documentation of equivalence class operators and
31396         collating symbol operators, since they are now implemented,
31397         Explain leftmost-longest matching in relation to alternatives.
31398         Tidy documentation of substring matching.
31399         Remove POSIX documentation, which is done better in
31400         glibc, and refer the reader there. Keep BSD API documentation, as
31401         that is not readily available elsewhere.
31402
31403 2010-09-07  Eric Blake  <eblake@redhat.com>
31404
31405         getopt: handle POSIXLY_CORRECT set but not exported
31406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31407         export state of POSIXLY_CORRECT, due to bash set -o posix.
31408         Reported by Dustin J. Mitchell.
31409
31410 2010-09-05  Bruno Haible  <bruno@clisp.org>
31411
31412         gnulib-tool: Highlight the changed options.
31413         * gnulib-tool (func_usage): Display the --import, --add-import,
31414         --remove-import explanations in bold font.
31415
31416 2010-09-06  Karl Berry  <karl@gnu.org>
31417
31418         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31419
31420 2010-09-05  Bruno Haible  <bruno@clisp.org>
31421
31422         uniwidth/width: Update comment.
31423         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31424         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31425
31426 2010-09-05  Bruno Haible  <bruno@clisp.org>
31427
31428         isinf, isnan: Relax license.
31429         * modules/isinf (License): Change from GPL to LGPL, with consent from
31430         Ben Pfaff.
31431         * modules/isnan (License): Likewise.
31432         Requested by Ludovic Courtès.
31433
31434 2010-09-04  Bruno Haible  <bruno@clisp.org>
31435
31436         gnulib-tool: Help migration from --import to --add-import or --update.
31437         * gnulib-tool: Emit a verbose error message when --import is used
31438         without any module name.
31439
31440 2010-09-04  Bruno Haible  <bruno@clisp.org>
31441
31442         Update doc about gnulib-tool.
31443         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31444         'gnulib-tool --update' in more detail.
31445         Reported by Eric Blake.
31446
31447 2010-09-04  Bruno Haible  <bruno@clisp.org>
31448
31449         gnulib-tool: Change --import. New options --add/remove-import.
31450         * gnulib-tool: New options --add-import, --remove-import.
31451         (func_usage): Document them.
31452         (have_associative): Define always.
31453         (func_import): In import mode, don't merge the specified settings with
31454         the cached settings. Implement remove-import mode.
31455         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31456         Explain when to use them versus --import.
31457         (Simple update): Use --add-import instead of --import.
31458         * NEWS: Mention the change.
31459
31460 2010-09-04  Bruno Haible  <bruno@clisp.org>
31461
31462         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31463         separate gnulib.mk.
31464
31465 2010-09-04  Bruno Haible  <bruno@clisp.org>
31466
31467         gnulib-tool: Don't talk about CVS any more.
31468         * gnulib-tool (func_usage, func_import): Write "version control"
31469         instead of CVS.
31470
31471 2010-09-04  Jim Meyering  <meyering@redhat.com>
31472
31473         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31474         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31475         false positives (whose names may be ill-chosen) when searching
31476         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31477         would cause a false-positive.
31478
31479         avoid coreutils "make distcheck" failure
31480         Coreutils tests with an absolute build directory name that contains
31481         a space.  Not quoting this directory name caused a failure.
31482         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31483         * tests/test-vc-list-files-cvs.sh: Likewise.
31484
31485 2010-09-04  Bruno Haible  <bruno@clisp.org>
31486
31487         gnulib-tool: Avoid error when run in a package without Makefile.am.
31488         * gnulib-tool: When collecting the m4dirs in a package that does not
31489         have a Makefile.am, eliminate those directories that contain no
31490         gnulib-cache.m4. Fix expression that counts these directories.
31491
31492 2010-09-04  Bruno Haible  <bruno@clisp.org>
31493
31494         update-copyright test: Improve output when perl is missing or too old.
31495         * tests/test-update-copyright.sh: Move test of Perl version down after
31496         the test whether Perl exists. Provide an explanation relating Perl's
31497         error message to Automake's SKIP: message.
31498
31499 2010-09-04  Bruno Haible  <bruno@clisp.org>
31500
31501         Don't augment PATH in TESTS_ENVIRONMENT.
31502         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31503         set abs_aux_dir instead of augmenting PATH.
31504         * modules/vc-list-files-tests (Makefile.am): Likewise.
31505         * tests/test-update-copyright.sh: Augment PATH here.
31506         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31507         path_prepend_.
31508         * tests/test-vc-list-files-git.sh: Likewise.
31509
31510 2010-09-04  Jim Meyering  <meyering@redhat.com>
31511
31512         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31513         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31514
31515 2010-09-04  Bruno Haible  <bruno@clisp.org>
31516
31517         strdup: Fix compilation error in C++ mode.
31518         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31519         the macro.
31520
31521 2010-09-04  Bruno Haible  <bruno@clisp.org>
31522
31523         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31524         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31525         macro into a function.
31526         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31527
31528 2010-09-04  Bruno Haible  <bruno@clisp.org>
31529
31530         Set PATH_SEPARATOR the same way autoconf does.
31531         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31532         the value of PATH_SEPARATOR the same way autoconf-generated configure
31533         scripts do.
31534         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31535         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31536
31537 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31538
31539         Set PATH_SEPARATOR the same way autoconf does.
31540         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31541         the same way autoconf-generated configure scripts do.
31542         * posix-modules: Likewise.
31543
31544 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31545
31546         hash: fix safe_hasher const typo
31547         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31548         const; otherwise, there is a type error later.
31549
31550 2010-09-02  Jim Meyering  <meyering@redhat.com>
31551
31552         test-update-copyright.sh: require perl 5.8.0
31553         * tests/test-update-copyright.sh: Require 5.8.0,
31554         which Tom G. Christensen has confirmed is adequate,
31555         while 5.6.1 is not.
31556
31557 2010-09-02  Eric Blake  <eblake@redhat.com>
31558
31559         tests: init.sh improvements for re-exec'ing with zsh
31560         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31561         -vx through shell re-exec.
31562         Reported by Tom G. Christensen.
31563
31564         wctype: fix typo in previous commit
31565         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31566         Reported by Ludovic Courtès.
31567
31568 2010-09-02  Jim Meyering  <meyering@redhat.com>
31569
31570         test-update-copyright.sh: skip test if Perl is too old
31571         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31572         Reported by Tom G. Christensen.
31573
31574 2010-09-02  Bruno Haible  <bruno@clisp.org>
31575
31576         wctype: Avoid compilation error on IRIX 6.5.30.
31577         * lib/wctype.in.h (iswblank): Declare with a replacement if
31578         REPLACE_ISWBLANK is set.
31579         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31580         declared. Set REPLACE_ISWBLANK.
31581         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31582         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31583         * doc/posix-headers/wctype.texi: Likewise.
31584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31585
31586 2010-09-01  Bruno Haible  <bruno@clisp.org>
31587
31588         New module 'socketlib'.
31589         * modules/socketlib: New file.
31590         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31591         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31592         * modules/sockets (Depends-on): Add socketlib.
31593         Suggested by Sam Steingold <sds@gnu.org>.
31594
31595 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31596
31597         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31598
31599         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31600         when one needs search access to a directory but not read access.
31601         On systems where it is available, it works in some cases where
31602         O_RDONLY does not, namely on directories that are searchable but
31603         not readable, and which need only to be searchable.  If O_SEARCH
31604         is not available, fall back to the traditional method of using
31605         O_RDONLY.
31606
31607         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31608         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31609         when opening a directory that needs only to be searchable.
31610         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31611         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31612         * lib/openat-proc.c (openat_proc_name): Likewise.
31613         * lib/openat.c (openat_needs_fchdir): Likewise.
31614         * lib/save-cwd.c (save_cwd): Likewise.
31615         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31616
31617 2010-08-28  Bruno Haible  <bruno@clisp.org>
31618
31619         New module 'host-cpu-c-abi'.
31620         * modules/host-cpu-c-abi: New file.
31621         * m4/host-cpu-c-abi.m4: New file, based on part of
31622         clisp/src/m4/general.m4.
31623         Requested by Sam Steingold <sds@gnu.org>.
31624
31625 2010-08-31  Eric Blake  <eblake@redhat.com>
31626         and Jim Meyering  <meyering@redhat.com>
31627
31628         hash: factor, and guard against misbehaving hasher function
31629         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31630         of table->hasher's return value.  Also protect against a hash value
31631         so large that adding it to table->bucket results in a NULL pointer.
31632         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31633         Use it in place of open-coded check-and-abort.
31634
31635 2010-08-30  Bruno Haible  <bruno@clisp.org>
31636
31637         hash: silence spurious clang warning
31638         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31639         Reported by Eric Blake.
31640
31641 2010-08-30  Eric Blake  <eblake@redhat.com>
31642
31643         strstr, memmem, strcasestr: avoid leaked shell message
31644         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31645         FreeBSD.
31646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31647         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31648
31649         tests: silence clang warning
31650         * tests/test-malloca.c (do_allocation): Avoid dead store.
31651
31652 2010-08-29  Bruno Haible  <bruno@clisp.org>
31653
31654         gettext: Fix recent mistake.
31655         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31656
31657 2010-08-29  Bruno Haible  <bruno@clisp.org>
31658
31659         selinux-h: Offer a --without-selinux option.
31660         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31661         --without-selinux was specified, skip all tests and define
31662         HAVE_SELINUX_SELINUX_H to 0.
31663         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31664         set LIB_SELINUX to empty.
31665         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31666         gl_LIBSELINUX. If --without-selinux was specified, replace
31667         selinux/context.h.
31668         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31669
31670 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31671             Bruno Haible  <bruno@clisp.org>
31672
31673         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31674         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31675         of HAVE_REALLOC.
31676         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31677         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31678         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31679         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31680
31681 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31682             Bruno Haible  <bruno@clisp.org>
31683
31684         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31685         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31686         HAVE_CALLOC.
31687         * lib/xmalloc.c: Update accordingly.
31688         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31689         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31690         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31691
31692 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31693             Bruno Haible  <bruno@clisp.org>
31694
31695         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31696         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31697         HAVE_MALLOC.
31698         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31699         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31700         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31701
31702 2010-08-29  Bruno Haible  <bruno@clisp.org>
31703
31704         Update modules list.
31705         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31706         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31707         (String handling <string.h>): Add astrxfrm.
31708         (File system functions): Add readlinkat.
31709
31710 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31711
31712         Tests for module 'realloc-gnu'.
31713         * modules/realloc-gnu-tests: New file.
31714         * tests/test-realloc-gnu.c: New file.
31715
31716         Tests for module 'calloc-gnu'.
31717         * modules/calloc-gnu-tests: New file.
31718         * tests/test-calloc-gnu.c: New file.
31719
31720         Tests for module 'malloc-gnu'.
31721         * modules/malloc-gnu-tests: New file.
31722         * tests/test-malloc-gnu.c: New file.
31723
31724 2010-08-28  Bruno Haible  <bruno@clisp.org>
31725
31726         Rename module 'realloc' -> 'realloc-gnu'.
31727         * modules/realloc-gnu: New file, copied from modules/realloc.
31728         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31729         obsolete.
31730         * modules/mgetgroups (Depends-on): Update.
31731         * doc/posix-functions/realloc.texi: Update.
31732         * NEWS: Mention the change.
31733
31734         Rename module 'calloc' -> 'calloc-gnu'.
31735         * modules/calloc-gnu: New file, copied from modules/calloc.
31736         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31737         obsolete.
31738         * doc/posix-functions/calloc.texi: Update.
31739         * NEWS: Mention the change.
31740
31741         Rename module 'malloc' -> 'malloc-gnu'.
31742         * modules/malloc-gnu: New file, copied from modules/malloc.
31743         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31744         obsolete.
31745         * modules/argp (Depends-on): Update.
31746         * modules/regex (Depends-on): Update.
31747         * doc/posix-functions/malloc.texi: Update.
31748         * NEWS: Mention the change.
31749
31750 2010-08-28  Eric Blake  <eblake@redhat.com>
31751
31752         pread, pwrite: add missing dependency
31753         * modules/pread (Depends-on): Add extensions.
31754         * modules/pwrite (Depends-on): Likewise.
31755
31756 2010-08-28  Bruno Haible  <bruno@clisp.org>
31757
31758         unistr/u*-strchr: Fix tests dependencies.
31759         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31760         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31761         Reported by Ian Beckwith <ianb@erislabs.net>.
31762
31763 2010-08-28  Bruno Haible  <bruno@clisp.org>
31764
31765         read-file: Don't occupy too much unused memory.
31766         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31767
31768 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31769             Eric Blake  <eblake@redhat.com>
31770             Bruno Haible  <bruno@clisp.org>
31771
31772         read-file: Avoid memory reallocations with regular files.
31773         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31774         (fread_file): With regular files, use the remaining length as the
31775         initial buffer size.  Check against overflow.
31776         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31777         sys_stat.
31778
31779 2010-08-28  Bruno Haible  <bruno@clisp.org>
31780
31781         ftello: Relax license.
31782         * modules/ftello (License): Relax to LGPLv2+.
31783         Reported by Eric Blake.
31784
31785 2010-08-28  Bruno Haible  <bruno@clisp.org>
31786
31787         Avoid relocwrapper link errors due to gnulib replacement functions.
31788         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31789         function.
31790         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31791
31792 2010-08-28  Bruno Haible  <bruno@clisp.org>
31793
31794         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31795         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31796         defined.
31797         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31798         Suggested by Eric Blake.
31799
31800 2010-08-28  Bruno Haible  <bruno@clisp.org>
31801
31802         sys_socket, netdb: Ensure socklen_t gets defined.
31803         * modules/sys_socket (Depends-on): Add socklen.
31804         * modules/netdb (Depends-on): Likewise.
31805         * modules/getaddrinfo (Depends-on): Remove socklen.
31806         * modules/getsockopt (Depends-on): Likewise.
31807         * modules/setsockopt (Depends-on): Likewise.
31808         * tests/test-sys_socket.c: Check that socklen_t is defined.
31809         * tests/test-netdb.c: Likewise.
31810         * m4/socklen.m4: Update comments.
31811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31812
31813 2010-08-27  Eric Blake  <eblake@redhat.com>
31814
31815         login_tty: add missing dependency
31816         * modules/login_tty (Depends-on): Add pty.
31817
31818 2010-08-26  Eric Blake  <eblake@redhat.com>
31819
31820         lib-symbol-versions: fix m4 quoting
31821         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31822         format for AC_LINK_IFELSE.
31823
31824         glob: fix compile test
31825         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31826
31827         btowc: fix missing file
31828         * modules/btowc (Files): Also ship locale-fr.m4.
31829
31830         lseek: fix link test
31831         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31832         AC_LINK_IFELSE.
31833
31834         include_next: silence autoconf 2.68 warning
31835         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31836         AC_COMPILE_IFELSE as special.
31837         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31838         autoconf < 2.68.
31839
31840         acl: fix compilation test
31841         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31842         AC_COMPILE_IFELSE.
31843
31844 2010-08-26  Bruno Haible  <bruno@clisp.org>
31845
31846         Modernize AC_TRY_RUN invocations.
31847         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31848         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31849         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31850         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31851         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31852         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31854         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31855         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31856         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31857         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31858         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31859         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31860         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31861         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31862         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31863         gl_MBRLEN_NUL_RETVAL): Likewise.
31864         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31865         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31866         Likewise.
31867         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31868         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31869         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31870         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31871         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31872         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31873         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31874         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31875         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31876         Likewise.
31877         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31878         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31880         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31881         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31882         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31883         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31884         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31885         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31887
31888 2010-08-26  Bruno Haible  <bruno@clisp.org>
31889
31890         Modernize AC_TRY_LINK invocations.
31891         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31892         AC_TRY_LINK.
31893         * m4/argp.m4 (gl_ARGP): Likewise.
31894         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31895         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31896         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31897         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31898         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31899         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31900         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31901         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31902         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31903         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31904         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31905         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31906         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31907         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31908         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31909         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31910         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31911         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31912         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31913         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31914         Likewise.
31915         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31916         Likewise.
31917         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31918         Likewise.
31919         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31920         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31921         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31922         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31923         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31924         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31925         * m4/servent.m4 (gl_SERVENT): Likewise.
31926         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31927         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31928         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31929         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31930         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31931         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31932         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31933         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31934         * modules/tsearch-tests (configure.ac): Likewise.
31935
31936 2010-08-26  Bruno Haible  <bruno@clisp.org>
31937
31938         Modernize AC_TRY_COMPILE invocations.
31939         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31940         AC_TRY_COMPILE.
31941         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31942         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31943         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31944         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31945         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31946         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31947         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31948         * m4/lock.m4 (gl_LOCK): Likewise.
31949         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31950         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31951         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31952         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31953         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31954         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31955         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31956         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31957         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31958         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31959         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31960         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31961         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31962         extraneous semicolon.
31963
31964 2010-08-26  Jim Meyering  <meyering@redhat.com>
31965
31966         stat-time: relax license LGPL
31967         * modules/stat-time (License): Change from GPL to LGPL,
31968         with consent from all contributors, for use in libguile.
31969         Requested by Ludovic Courtès.
31970
31971 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31972
31973         poll: return immediately on POLLHUP.
31974         * lib/poll.c (poll): Always set timeout before wait_timeout is
31975         computed.
31976
31977 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31978
31979         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31980         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31981         rmdir ("dir/.//"), unlinkat.
31982
31983 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31984
31985         stdbool: avoid spurious failure with modern xlc
31986         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31987
31988 2010-08-24  Bruno Haible  <bruno@clisp.org>
31989
31990         getloadavg: simplify code
31991         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31992         gl_have_func. Update comments.
31993
31994 2010-08-24  Eric Blake  <eblake@redhat.com>
31995
31996         getloadavg: don't define SVR4 on cygwin
31997         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31998         only define SVR4 when -lkvm is required.
31999         Reported by Yaakov Selkowitz.
32000
32001 2010-08-24  Bruno Haible  <bruno@clisp.org>
32002
32003         priv-set: fix comment
32004         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
32005
32006 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32007
32008         priv-set: fix comments
32009         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
32010         to match code, as suggested by David Bartley in:
32011         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
32012
32013 2010-08-23  Eric Blake  <eblake@redhat.com>
32014
32015         stdbool: avoid rejecting clang
32016         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32017         * tests/test-stdbool.c: Enable more tests if using the system
32018         <stdbool.h> instead of the gnulib replacement.
32019         (main): Move xlc bug test to a runtime test for all compilers.
32020         Reported by Anders Kaseorg.
32021
32022         argz: fix shell quoting issue
32023         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
32024         Reported by Charles Wilson.
32025
32026 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
32027             Erik Faye-Lund <kusmabite@gmail.com>
32028
32029         poll, select: handle ERROR_BROKEN_PIPE.
32030         * lib/poll.c (win32_compute_revents): Return POLLHUP when
32031         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32032         * lib/select.c (win32_compute_revents): Do not mark a pipe
32033         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32034
32035 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
32036
32037         fts: allow compilation with C++
32038         * lib/fts_.h: Specify extern "C" linkage with C++.
32039
32040 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32041
32042         Fix gnulib-tool sed script de-commentation for AIX sed.
32043         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
32044         sed.
32045
32046 2010-08-17  Eric Blake  <eblake@redhat.com>
32047
32048         test-stddef: test for (some) offsetof bugs
32049         * tests/test-stddef.c: Enhance test to ensure correct type of
32050         offsetof.
32051         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
32052         that we are not fixing at this time.
32053
32054 2010-08-15  Bruno Haible  <bruno@clisp.org>
32055
32056         stpncpy: Allow stpncpy to be defined as a macro.
32057         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
32058         if it's already correctly declared.
32059         * lib/string.in.h (stpncpy): Undefine before redefining.
32060         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
32061
32062 2010-08-14  Bruno Haible  <bruno@clisp.org>
32063
32064         Rename module 'memxfrm' to 'amemxfrm'.
32065         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
32066         (amemxfrm): Renamed from memxfrm.
32067         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
32068         (amemxfrm): Renamed from memxfrm.
32069         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
32070         * NEWS: Mention the change.
32071         * MODULES.html.sh (String handling <string.h>): Update.
32072         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
32073         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
32074         * lib/unicase/u16-casexfrm.c: Likewise.
32075         * lib/unicase/u32-casexfrm.c: Likewise.
32076         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32077         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32078         * lib/uninorm/u16-normxfrm.c: Likewise.
32079         * lib/uninorm/u32-normxfrm.c: Likewise.
32080         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32081         memxfrm.
32082         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32083         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32084         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32085         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32086         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32087         Suggested by Paul Eggert.
32088
32089 2010-08-14  Bruno Haible  <bruno@clisp.org>
32090
32091         Tests for module 'astrxfrm'.
32092         * modules/astrxfrm-tests: New file.
32093         * tests/test-astrxfrm.c: New file.
32094
32095         New module 'astrxfrm'.
32096         * lib/astrxfrm.h: New file.
32097         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32098         * modules/astrxfrm: New file.
32099
32100 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32101
32102         regex: Tweak doc.
32103         * doc/regex.texi (Overview): Don't mention regex.c.
32104         (GNU Regular Expression Compiling): Likewise.
32105         (Match-end-of-line Operator): Mention 'not_eol'.
32106
32107 2010-08-14  Brian Gough  <bjg@gnu.org>
32108             Bruno Haible  <bruno@clisp.org>
32109
32110         git-merge-changelog: add doc relating to use with bzr and hg.
32111         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32112
32113 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32114
32115         pthread: fix pthread.h creation for srcdir != builddir
32116         * modules/pthread (Makefile.am): Fix the rule to work also in a
32117         non-srcdir build.
32118
32119 2010-08-13  Karl Berry  <karl@gnu.org>
32120
32121         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32122         * doc/posix-*/*: force line break before @url of POSIX
32123         specifications.
32124         Suggested by Werner Lemberg.
32125
32126 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32127
32128         strtod: fix const diagnostic
32129         * lib/strtod.c (strtod): Don't assign const char * to char *,
32130         as this elicits a warning from GCC when warnings are enabled.
32131
32132 2010-08-10  Pádraig Brady <P@draigbrady.com>
32133         and Eric Blake  <eblake@redhat.com>
32134
32135         copy-acl: ignore ENOTSUP on HP-UX
32136         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32137         so that it is available for HP-UX.
32138         * lib/copy-acl.c (qcopy_acl): Use it.
32139         Reported by Patrick M. Callahan.
32140
32141 2010-08-10  Eric Blake  <eblake@redhat.com>
32142
32143         open, chown: relax license
32144         * modules/open (License): Change to LGPLv2+, with consent by all
32145         authors, for use in augeas.
32146         * modules/chown (License): Likewise.
32147         * modules/lchown (Likewise): Likewise.
32148         Requested by Adam Stokes.
32149
32150 2010-08-09  Karl Berry  <karl@gnu.org>
32151
32152         * build-aux/ar-lib: new file, import from Automake.
32153         * config/srclist.txt: autocheck for updates.
32154
32155 2010-08-09  Eric Blake  <eblake@redhat.com>
32156
32157         readlinkat: adjust client modules
32158         * modules/areadlinkat (Depends-on): Use readlinkat, not
32159         symlinkat.
32160         * modules/areadlinkat-with-size (Depends-on): Likewise.
32161
32162         mknod: be more vocal about danger of running tests as root
32163         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32164         root, since that is just asking for problems.
32165         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32166
32167         readlinkat: split into its own module
32168         * modules/symlinkat: Split readlinkat...
32169         * modules/readlinkat: ...into separate module.
32170         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32171         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32172         * lib/symlinkat.c (readlinkat): Move...
32173         * lib/readlinkat.c: ...into new file.
32174         * modules/symlinkat-tests: Split readlinkat test...
32175         * modules/readlinkat-tests: ...into separate module.
32176         * tests/test-symlinkat.c: Split...
32177         * tests/test-readlinkat.c: ...into new file.
32178         * NEWS: Document the split.
32179         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32180         * lib/unistd.in.h (readlinkat): Likewise.
32181         Suggested by Bruno Haible.
32182
32183 2010-08-08  Bruno Haible  <bruno@clisp.org>
32184
32185         memxfrm: Speed up.
32186         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32187         that usually only one call to strxfrm is necessary for each string
32188         part.
32189         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32190
32191 2010-08-07  Karl Berry  <karl@gnu.org>
32192
32193         * doc/posix-headers/limits.texi,
32194         * doc/posix-functions/malloc.texi,
32195         * doc/posix-functions/strsignal.texi: missing @item.
32196         * doc/ld-version-script.texi: spurious leading i.
32197         * doc/regex.texi (Interval Operators): no commas inside @var.
32198
32199 2010-08-01  Bruno Haible  <bruno@clisp.org>
32200
32201         Integrate the regex documentation.
32202         * doc/gnulib.texi: Define 'cn' index.
32203         (Regular expressions): New a chapter that includes regex.texi and
32204         regexprops-generic.texi.
32205         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32206         syntax.
32207
32208         Whitespace cleanup.
32209         * doc/regex.texi: Remove trailing spaces.
32210
32211         Add regex documentation.
32212         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32213         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32214         Written by Kathy A. Hargreaves and Karl Berry.
32215
32216 2010-08-01  Bruno Haible  <bruno@clisp.org>
32217
32218         link: Update documentation.
32219         * doc/posix-functions/link.texi: Update regarding Solaris.
32220
32221 2010-07-31  Bruno Haible  <bruno@clisp.org>
32222
32223         Update modules list.
32224         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32225         (String handling <string.h>): Add memcmp2, memxfrm.
32226         (Container data structures): Add xlist, xsublist, xoset.
32227         (Core language properties): Add alignof, unused-parameter.
32228         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32229         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32230         (Unibyte characters <ctype.h>): New section.
32231         (String handling <string.h>): New section.
32232         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32233         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32234         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32235         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32236         tan, tanh, tanl, y0, y1, yn.
32237         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32238         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32239         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32240         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32241         unlockpt, vdprintf, vdprintf-posix.
32242         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32243         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32244         xconcat-filename.
32245         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32246         getdtablesize, pipe2, pipe2-safer.
32247         (Security): New section.
32248         (Networking functions): Add accept4.
32249         (Signal handling): Add sigpipe.
32250         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32251         mbmemcasecoll.
32252         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32253         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32254         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32255         pipe-filter-ii.
32256         (Misc): Add argp-version-etc, login_tty, parse-duration.
32257
32258 2010-07-31  Bruno Haible  <bruno@clisp.org>
32259
32260         Improve doc in MODULES.html.
32261         * modules/linkat (Description): Add the word "function".
32262         * modules/mkfifo (Description): Likewise.
32263         * modules/mknod (Description): Likewise.
32264         * modules/remove (Description): Likewise.
32265         * modules/renameat (Description): Likewise.
32266         * modules/stat (Description): Likewise.
32267         * modules/symlink (Description): Likewise.
32268         * modules/unlink (Description): Likewise.
32269
32270 2010-07-31  Bruno Haible  <bruno@clisp.org>
32271
32272         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32273         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32274         option --enable/disable-c++ instead of --enable/disable-cxx.
32275         * NEWS: Mention the change.
32276
32277 2010-07-31  Bruno Haible  <bruno@clisp.org>
32278
32279         readlink, areadlink: Relax test a bit.
32280         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32281         alternative to ENOTDIR.
32282         * tests/test-areadlink.h (test_areadlink): Likewise.
32283         Reported by Rainer Tammer.
32284
32285 2010-07-31  Bruno Haible  <bruno@clisp.org>
32286
32287         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32288         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32289         character, perform the search using U_STRCHR.
32290         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32291         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32292         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32293         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32294         Suggested by Paolo Bonzini.
32295
32296 2010-07-31  Bruno Haible  <bruno@clisp.org>
32297
32298         unistr/u*-strstr: Fix dependencies.
32299         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32300         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32301         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32302
32303 2010-07-31  Bruno Haible  <bruno@clisp.org>
32304
32305         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32306         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32307         the beginning of the loop.
32308         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32309         cases in 'switch' statement.
32310
32311         unistr/u8-strchr: Fix several bugs.
32312         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32313         the string. When not found, return NULL, not a pointer near the end.
32314
32315         More tests for unistr/u8-strchr.
32316         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32317         that the function does not read past the first occurrence of the byte
32318         being searched.
32319         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32320         * tests/unistr/test-u16-strchr.c (main): New function.
32321         * tests/unistr/test-u32-strchr.c (main): New function.
32322
32323 2010-07-31  Bruno Haible  <bruno@clisp.org>
32324
32325         posix-modules: Ignore backup files of documentation files.
32326         * posix-modules: grep only through files named *.texi.
32327
32328 2010-07-31  Bruno Haible  <bruno@clisp.org>
32329
32330         symlinkat: Fix documentation.
32331         * doc/posix-functions/readlinkat.texi: Fix module name.
32332
32333 2010-07-31  Bruno Haible  <bruno@clisp.org>
32334
32335         fchownat: Replace also when chown has the trailing slash bug.
32336         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32337         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32338         introduced on 2010-04-10.
32339         Reported by Rainer Tammer.
32340
32341 2010-07-31  Bruno Haible  <bruno@clisp.org>
32342
32343         linkat: Work around AIX 7.1 bug.
32344         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32345         whether linkat handles trailing slash correctly. If not, replace linkat
32346         and define LINKAT_TRAILING_SLASH_BUG.
32347         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32348         check whether (fd1,file1) points to a directory if file1 or file2 ends
32349         in a slash. Code taken from lib/link.c.
32350         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32351         Reported by Rainer Tammer.
32352
32353 2010-07-31  Bruno Haible  <bruno@clisp.org>
32354
32355         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32356         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32357         This disables an xlc optimization that was causing wrong test results.
32358         Reported by Rainer Tammer.
32359
32360 2010-07-31  Bruno Haible  <bruno@clisp.org>
32361
32362         iconv: Work around AIX 6.1..7.1 bug.
32363         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32364         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32365         cross-compiling, guess no on all versions of AIX.
32366         Reported by Rainer Tammer.
32367
32368 2010-07-31  Bruno Haible  <bruno@clisp.org>
32369
32370         readlink: Relax test a bit.
32371         * tests/test-readlink.h (test_readlink): Allow different errno value
32372         when readlink is called with a file name that ends in / and refers to
32373         a file.
32374         Suggested by Eric Blake.
32375         Reported by Rainer Tammer.
32376
32377 2010-07-31  Bruno Haible  <bruno@clisp.org>
32378
32379         copysign: Does not require -lm on glibc systems.
32380         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32381         gl_COMMON_DOUBLE_MATHFUNC.
32382         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32383
32384 2010-07-31  Bruno Haible  <bruno@clisp.org>
32385
32386         duplocale: Work around AIX 7.1 bug.
32387         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32388         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32389         * lib/duplocale.c (rpl_duplocale): Update comment.
32390         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32391         Reported by Rainer Tammer.
32392
32393 2010-07-30  Bruno Haible  <bruno@clisp.org>
32394
32395         dirfd: Avoid link error on AIX 7.1.
32396         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32397         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32398         exist, set REPLACE_DIRFD.
32399         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32400         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32401         * doc/posix-functions/dirfd.texi: Update.
32402         Reported by Rainer Tammer.
32403
32404 2010-07-30  Eric Blake  <eblake@redhat.com>
32405
32406         strtod: next round of AIX fixes
32407         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32408         exponent.
32409         * tests/test-strtod.c (main): Enhance tests.
32410         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32411         Reported by Rainer Tammer.
32412
32413         futimens: fix configure check
32414         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32415         Reported by Bruno Haible.
32416
32417 2010-07-30  Bruno Haible  <bruno@clisp.org>
32418
32419         getline: Update regarding AIX.
32420         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32421         Reported by Rainer Tammer.
32422
32423 2010-07-30  Bruno Haible  <bruno@clisp.org>
32424
32425         wcwidth: Drop replacement on AIX 7.
32426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32427         AIX 7.
32428         Reported by Rainer Tammer.
32429
32430 2010-07-30  Bruno Haible  <bruno@clisp.org>
32431
32432         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32433         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32434         a 'char *'.
32435         Reported by Rainer Tammer.
32436
32437 2010-07-30  Bruno Haible  <bruno@clisp.org>
32438
32439         unlink: Update regarding AIX.
32440         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32441         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32442         Reported by Rainer Tammer.
32443
32444 2010-07-30  Bruno Haible  <bruno@clisp.org>
32445
32446         symlink: Update regarding AIX.
32447         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32448         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32449         Reported by Rainer Tammer.
32450
32451 2010-07-30  Bruno Haible  <bruno@clisp.org>
32452
32453         strndup: Update regarding AIX.
32454         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32455         AIX 7.
32456         Reported by Rainer Tammer.
32457
32458 2010-07-30  Bruno Haible  <bruno@clisp.org>
32459
32460         stat: Update regarding AIX.
32461         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32462         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32463         Reported by Rainer Tammer.
32464
32465 2010-07-30  Bruno Haible  <bruno@clisp.org>
32466
32467         truncl: Fix autoconf test.
32468         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32469         whether truncl works.
32470         Reported by Rainer Tammer.
32471
32472 2010-07-30  Bruno Haible  <bruno@clisp.org>
32473
32474         round: Update regarding AIX.
32475         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32476         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32477         Reported by Rainer Tammer.
32478
32479 2010-07-30  Bruno Haible  <bruno@clisp.org>
32480
32481         rename: Update regarding AIX.
32482         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32483         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32484         Reported by Rainer Tammer.
32485
32486 2010-07-30  Bruno Haible  <bruno@clisp.org>
32487
32488         printf.m4: Update regarding AIX.
32489         * m4/printf.m4: Update comments regarding AIX.
32490         Reported by Rainer Tammer.
32491
32492 2010-07-30  Bruno Haible  <bruno@clisp.org>
32493
32494         iconv: Update regarding AIX.
32495         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32496         AIX 7.
32497         Reported by Rainer Tammer.
32498
32499 2010-07-30  Bruno Haible  <bruno@clisp.org>
32500
32501         getopt: Update regarding AIX.
32502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32503         no on AIX.
32504         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32505         Reported by Rainer Tammer.
32506
32507 2010-07-30  Bruno Haible  <bruno@clisp.org>
32508
32509         ldexpl; Update regarding AIX.
32510         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32511         on AIX 7.
32512         Reported by Rainer Tammer.
32513
32514 2010-07-30  Bruno Haible  <bruno@clisp.org>
32515
32516         frexpl: Update regarding AIX.
32517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32518         on AIX 7.
32519         Reported by Rainer Tammer.
32520
32521 2010-07-30  Bruno Haible  <bruno@clisp.org>
32522
32523         open, fopen: Update regarding AIX.
32524         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32525         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32526         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32527         * doc/posix-functions/fopen.texi: Likewise.
32528         Reported by Rainer Tammer.
32529
32530 2010-07-30  Bruno Haible  <bruno@clisp.org>
32531
32532         chown: Update doc regarding AIX.
32533         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32534         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32535         Reported by Rainer Tammer.
32536
32537 2010-07-30  Eric Blake  <eblake@redhat.com>
32538
32539         strtod: fix bug in replacement function on AIX
32540         * lib/strtod.c (strtod): Special case broken "0x" parse in
32541         underlying strtod.
32542         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32543         * doc/posix-functions/strtod.texi (strtod): Likewise.
32544         Reported by Rainer Tammer.
32545
32546 2010-07-30  Bruno Haible  <bruno@clisp.org>
32547
32548         mbrlen: Fix cross-compilation guess for AIX.
32549         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32550         guess. Leftover from 2008-12-22.
32551
32552 2010-07-30  Bruno Haible  <bruno@clisp.org>
32553
32554         mbrtowc: Fix cross-compilation guess for AIX.
32555         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32556         guess. Leftover from 2008-12-21.
32557
32558 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32559
32560         init.sh: work around trap limitation of some shells
32561         * tests/init.sh (setup_): Move exit trap outside of shell function.
32562
32563 2010-07-29  Eric Blake  <eblake@redhat.com>
32564
32565         strtod: aid debugging
32566         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32567         understanding why strtod is rejected.
32568
32569 2010-07-28  Bruno Haible  <bruno@clisp.org>
32570
32571         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32572         * lib/unistr/u8-chr.c: Include <string.h>.
32573         * tests/unistr/test-u8-chr.c: Likewise.
32574         * tests/unistr/test-u16-chr.c: Likewise.
32575         * tests/unistr/test-u32-chr.c: Likewise.
32576         * tests/unistr/test-u8-strchr.c: Likewise.
32577         * tests/unistr/test-u16-strchr.c: Likewise.
32578         * tests/unistr/test-u32-strchr.c: Likewise.
32579         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32580         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32581         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32582         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32583
32584 2010-07-28  Bruno Haible  <bruno@clisp.org>
32585
32586         Use spaces for indentation, not tabs.
32587         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32588
32589 2010-07-27  Bruno Haible  <bruno@clisp.org>
32590
32591         mbspcasecmp: Fix function specification.
32592         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32593         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32594         Reported by Eric Blake <eblake@redhat.com>.
32595
32596 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32597
32598         timespec: use cast and not conditional, as truncation isn't possible
32599         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32600         instead of a conditional.  Comment about the situation in more detail.
32601         This undoes most of the 2009-10-29 patch.
32602
32603 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32604
32605         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32606         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32607         * lib/unistr/u8-strchr.c: Likewise.
32608         * modules/unistr/u8-chr: Depend on memchr.
32609
32610         unistr/u*-strchr: add tests
32611         * modules/unistr/u8-strchr-tests: New file.
32612         * modules/unistr/u16-strchr-tests: New file.
32613         * modules/unistr/u32-strchr-tests: New file.
32614         * tests/unistr/test-strchr.h: New file.
32615         * tests/unistr/test-u8-strchr.c: New file.
32616         * tests/unistr/test-u16-strchr.c: New file.
32617         * tests/unistr/test-u32-strchr.c: New file.
32618
32619         unistr/u*-chr: test multibyte sequences more
32620         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32621         test vector.
32622         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32623         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32624         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32625
32626         unistr/u*-chr: test multibyte sequences
32627         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32628
32629         unistr/u*-chr: prepare for multibyte tests
32630         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32631         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32632         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32633         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32634         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32635         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32636
32637 2010-07-18  Bruno Haible  <bruno@clisp.org>
32638
32639         unistr/u8-strchr: Optimize non-ASCII argument case.
32640         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32641         because the first byte often matches anyway.
32642         Reported by Pádraig Brady <P@draigbrady.com>.
32643
32644 2010-07-15  Karl Berry  <karl@gnu.org>
32645
32646         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32647
32648 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32649
32650         getcwd: on Solaris, work better if ancestors are inaccessible
32651         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32652         buffer and size, try again with a large buffer.  This works better
32653         on Solaris, since its getcwd succeeds even if the path to the root
32654         is inaccessible, and this is helpful in common cases such as .zfs
32655         hidden directories.  Problem reported by J Chapman Flack in
32656         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32657         Use system getcwd if it's declared, not merely if it's partly
32658         working; use the partly-working test only to avoid needless effort
32659         if the system getcwd fails.
32660         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32661         comment that was already obsolete and is now even more obsolete.
32662         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32663         now might call strdup.
32664
32665 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32666
32667         pthread: Add enough so that coreutils/src/sort.c compiles.
32668         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32669         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32670         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32671         Include <sys/types.h>, in case it defines pthread_t.
32672         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32673         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32674         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32675         (pthread_rwlockattr_t, pthread_spinlock_t):
32676         New typedefs, if HAVE_PTHREAD_T is not defined.
32677         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32678         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32679         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32680         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32681         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32682         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32683         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32684         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32685         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32686         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32687         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32688         New macros.
32689         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32690         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32691         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32692         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32693         (pthread_spin_unlock): New dummy functions.
32694         (pthread_create): Return EAGAIN; don't set errno.
32695         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32696         require AC_C_INLINE.
32697         * modules/pthread (Depends-on): Add sched, time.
32698         (pthread.h): Use AM_V_GEN.
32699
32700 2010-07-13  Bruno Haible  <bruno@clisp.org>
32701
32702         striconveh: Don't malloc memory if the result buffer is sufficient.
32703         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32704         buffer if its size is sufficient.
32705         Reported by Ludovic Courtès <ludo@gnu.org>.
32706
32707 2010-07-13  Bruno Haible  <bruno@clisp.org>
32708
32709         strtod: Add safety check.
32710         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32711
32712 2010-07-12  Bruno Haible  <bruno@clisp.org>
32713
32714         Unify tests that set gl_cv_func_ldexpl_no_libm.
32715         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32716         gl_FUNC_LDEXPL.
32717         (gl_FUNC_LDEXPL): Invoke it.
32718         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32719
32720 2010-07-12  Bruno Haible  <bruno@clisp.org>
32721
32722         Unify tests that set gl_cv_func_ldexp_no_libm.
32723         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32724         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32725         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32726         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32727         * modules/strtod (Files): Add m4/ldexp.m4.
32728
32729 2010-07-12  Bruno Haible  <bruno@clisp.org>
32730
32731         Unify tests that set gl_cv_func_frexpl_no_libm.
32732         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32733         gl_FUNC_FREXPL_NO_LIBM.
32734         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32735         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32736
32737 2010-07-12  Bruno Haible  <bruno@clisp.org>
32738
32739         Unify tests that set gl_cv_func_frexp_no_libm.
32740         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32741         gl_FUNC_FREXP_NO_LIBM.
32742         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32743         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32744
32745 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32746
32747         memcoll: clarify sizes versus lengths, document better, and tweak perf
32748         * lib/memcoll.c (strcoll_loop, memcoll0):
32749         Improve quality of descriptive comments.  Name variables
32750         consistently as to whether they are lengths (which do not include
32751         terminating null) versus sizes (which do).
32752         * lib/xmemcoll.c (xmemcoll0): Likewise.
32753         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32754         returned when s1size == 0; this is easier to compile and saves
32755         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32756
32757 2010-07-12  Bruno Haible  <bruno@clisp.org>
32758
32759         Tests for module '_Exit'.
32760         * modules/_Exit-tests: New file.
32761         * tests/test-_Exit.sh: New file.
32762         * tests/test-_Exit.c: New file.
32763
32764         New module '_Exit'.
32765         * lib/stdlib.in.h (__attribute__): New macro.
32766         (_Exit): New declaration.
32767         * lib/_Exit.c: New file.
32768         * m4/_Exit.m4: New file.
32769         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32770         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32771         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32772         * modules/_Exit: New file.
32773         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32774         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32775
32776 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32777
32778         strtod: make it more-accurate typically, and don't require libm
32779         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32780         Include limits.h.  Don't include string.h.
32781         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32782         (locale_isspace): New function, so that no casts are needed to
32783         check whether *s is a space.
32784         (ldexp): Provide an unused dummy if not available.
32785         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32786         (strtod): Use them.  This implementation prefers to use the
32787         underlying strtod if available, falling back on our own code
32788         only to fix known bugs.  This is more likely to produce an
32789         accurate result.  Also, it avoids the use of libm functions.
32790         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32791         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32792         was absent, but it caused a test failure with coreutils.
32793         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32794         with libm.
32795         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32796         * modules/strtod-tests (Makefile.am): Likewise.
32797
32798 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32799             Bruno Haible  <bruno@clisp.org>
32800
32801         unistr/u8-strchr: Optimize ASCII argument case.
32802         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32803
32804 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32805
32806         (x)memcoll: minor tweaks
32807         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32808         is after the type that it qualifies.
32809         (memcoll0): Likewise.
32810         * lib/memcoll.h (memcoll0): Likewise.
32811         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32812         * lib/xmemcoll.h (xmemcoll0): Likewise.
32813         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32814         differs from memcoll in that the NUL byte is part of the argument.
32815         Omit the abort-checks, as performance is a real issue here.  Plus,
32816         the checks were wrong anyway (an off-by-one error).  Omit local
32817         variable 'diff', as it's a bit clearer that way.
32818         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32819         no longer needed.
32820
32821 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32822
32823         (x)memcoll: speedup when input is known to be NUL delimited
32824         * lib/memcoll.c: Include stdlib.
32825         (memcoll0): New function.
32826         (strcoll_loop): New function, refactored for use in both memcoll
32827         and memcoll0.
32828         * lib/memcoll.h (memcoll0): Add prototype.
32829         * lib/xmemcoll.c (xmemcoll0): New function.
32830         (collate_error): New function, refactored for use in both xmemcoll
32831         and xmemcoll0.
32832         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32833         * m4/memcoll.m4: add inline invocation.
32834
32835 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32836
32837         * build-aux/bootstrap: Remove any local translations
32838         from the translation project synchronization directory,
32839         so that local only translations are not distributed.
32840
32841 2010-07-04  Bruno Haible  <bruno@clisp.org>
32842
32843         fsusage: Clarify which code applies to which platforms.
32844         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32845         platform.
32846         * lib/fsusage.c (get_fs_usage): Likewise.
32847
32848 2010-07-04  Bruno Haible  <bruno@clisp.org>
32849
32850         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32851         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32852         Reported by Martin Lambers <marlam@marlam.de>.
32853
32854 2010-07-04  Jim Meyering  <meyering@redhat.com>
32855
32856         hash: once again explicitly disallow insertion of NULL
32857         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32858         inserting a NULL pointer cannot work with these functions.
32859         Add a comment with details.
32860         This reverts part of the 2010-07-01 commit, 5bef1a35
32861         "hash: extend module to deal with non-pointer keys".
32862
32863 2010-07-01  Bruno Haible  <bruno@clisp.org>
32864
32865         stdbool: Update doc.
32866         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32867         Info from Christian Weisgerber <naddy@mips.inka.de>.
32868
32869 2010-07-01  Jim Meyering  <meyering@redhat.com>
32870
32871         hash: extend module to deal with non-pointer keys
32872         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32873         but that allows insertion of non-pointer entries.
32874         Do not disallow an ENTRY value of NULL.
32875         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32876         * lib/hash.h (hash_insert0): Declare.
32877
32878 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32879
32880         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32881         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32882         not present (i.e. with autoconf 2.59 and when using gettextize, not
32883         gnulib), require AC_GNU_SOURCE instead.
32884
32885 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32886
32887         idpriv-drop: Fix tests.
32888         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32889         not to the test-idpriv-droptemp program.
32890
32891 2010-06-29  Bruno Haible  <bruno@clisp.org>
32892
32893         string: Fix syntax error with g++ 2.96.
32894         * lib/string.in.h (__pure__): Remove definition.
32895         (_GL_ATTRIBUTE_PURE): New macro.
32896         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32897         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32898         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32899
32900 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32901
32902         unitypes: Fix bug introduced on 2010-05-18.
32903         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32904
32905 2010-06-22  Eric Blake  <eblake@redhat.com>
32906
32907         memmem: slight optimization
32908         * lib/str-two-way.h (critical_factorization): Update comments.
32909         Reduce work during factorization phase.
32910         Reported by Carlos Bueno <carlos@bueno.org>.
32911
32912 2010-06-21  Bruno Haible  <bruno@clisp.org>
32913
32914         Fix HAVE_CALLOC_POSIX misnomer.
32915         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32916         !HAVE_CALLOC_POSIX.
32917         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32918         HAVE_CALLOC_POSIX.
32919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32920         instead of HAVE_CALLOC_POSIX.
32921         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32922         HAVE_CALLOC_POSIX.
32923
32924         Use modern idiom for calloc() replacement.
32925         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32926         AC_FUNC_CALLOC.
32927         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32928         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32929         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32930         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32931         (gl_REPLACE_CALLOC): New macro.
32932
32933 2010-06-21  Bruno Haible  <bruno@clisp.org>
32934
32935         Fix HAVE_REALLOC_POSIX misnomer.
32936         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32937         !HAVE_REALLOC_POSIX.
32938         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32939         HAVE_REALLOC_POSIX.
32940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32941         instead of HAVE_REALLOC_POSIX.
32942         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32943         HAVE_REALLOC_POSIX.
32944
32945         Use modern idiom for realloc() replacement.
32946         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32947         AC_FUNC_REALLOC.
32948         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32949         Autoconf's AC_FUNC_REALLOC.
32950         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32951         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32952         (gl_REPLACE_REALLOC): New macro.
32953         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32954
32955 2010-06-21  Bruno Haible  <bruno@clisp.org>
32956
32957         Fix HAVE_MALLOC_POSIX misnomer.
32958         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32959         !HAVE_MALLOC_POSIX.
32960         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32961         HAVE_MALLOC_POSIX.
32962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32963         instead of HAVE_MALLOC_POSIX.
32964         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32965         HAVE_MALLOC_POSIX.
32966
32967         Use modern idiom for malloc() replacement.
32968         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32969         AC_FUNC_MALLOC.
32970         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32971         Autoconf's AC_FUNC_MALLOC.
32972         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32973         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32974         (gl_REPLACE_MALLOC): New macro.
32975         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32976
32977 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32978
32979         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32980         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32981         This macro takes 3 arguments, not 4.
32982
32983 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32984
32985         ipv6: fix detection under mingw
32986         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32987         in6_addr.
32988
32989 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32990
32991         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32992         that strtod() works when cross-compiling to a glibc version known
32993         to work.
32994
32995 2010-06-15  Bruno Haible  <bruno@clisp.org>
32996
32997         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32998
32999 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
33000
33001         select: Correct timeout.
33002         * lib/select.c (rpl_select): Compute wait_timeout correctly.
33003
33004 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33005
33006         git-version-gen: init shell var to avoid env var influence
33007         * build-aux/git-version-gen (v): Init shell var to empty.
33008
33009 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33010
33011         priv-set: Don't assume that priv.h exists merely because getppriv does.
33012         See Jan Andersen's bug report about AIX 5L in
33013         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
33014         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
33015         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
33016         * lib/priv-set.h: Likewise.
33017         * tests/test-priv-set.c: Likewise.
33018
33019 2010-06-13  Bruno Haible  <bruno@clisp.org>
33020
33021         relocatable: Make it easier to test whether to install wrappers.
33022         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
33023         RELOCATABLE_VIA_WRAPPER.
33024
33025 2010-06-13  Bruno Haible  <bruno@clisp.org>
33026
33027         gnulib-tool: Display specified modules and dependencies differently.
33028         * gnulib-tool (func_show_module_list): New function.
33029         (func_import, func_create_testdir): Invoke it.
33030         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33031
33032 2010-06-13  Bruno Haible  <bruno@clisp.org>
33033
33034         gnulib-tool: Align code of func_import and func_create_testdir.
33035         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33036         specified_modules.
33037
33038 2010-06-12  Jim Meyering  <meyering@redhat.com>
33039
33040         test-inttostr: avoid spurious failure on Solaris 9
33041         * tests/test-inttostr.c (main): Skip the test when snprintf fails
33042         to accept "%ju".  Reported by Bruno Haible.
33043
33044 2010-06-11  Jim Meyering  <meyering@redhat.com>
33045
33046         test-sys_socket: mark variables as used more readably
33047         * tests/test-sys_socket.c (main): Mark otherwise unused variables
33048         as "used" explicitly via (void) statement casts.  This is more
33049         readable than using them in an artificial return expression.
33050         Suggestion from Bruno Haible.
33051
33052 2010-06-11  Bruno Haible  <bruno@clisp.org>
33053
33054         Avoid some more warnings from "gcc -Wwrite-strings".
33055         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
33056         to 'const char *'.
33057         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
33058         * tests/test-c-strcasestr.c (main): Likewise.
33059         * tests/test-mbscasestr1.c (main): Likewise.
33060         * tests/test-mbscasestr2.c (main): Likewise.
33061         * tests/test-memmem.c (main): Likewise.
33062         * tests/test-strstr.c (main): Likewise.
33063         * tests/test-strcasestr.c (main): Likewise.
33064
33065 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33066
33067         init.sh: change framework_failure_ to fail with status 99, not 1
33068         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
33069         automake's parallel-tests rule that this is an unexpected failure,
33070         even if the test is listed in XFAIL_TESTS.
33071
33072 2010-06-11  Jim Meyering  <meyering@redhat.com>
33073
33074         test-inttostr: avoid warnings about 4-6KB literal strings
33075         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33076         Include "macros.h", for its definition of ASSERT.
33077         (CK): s/assert/ASSERT/
33078         * modules/inttostr-tests (Files): Add macros.h.
33079
33080         init.sh: don't use $ME_ or skip_ before they are defined
33081         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33082         their first uses.  Also hoist their companions: warn_, fail_,
33083         framework_failure_, $stderr_fileno.  Prompted by a patch from
33084         Stefano Lattarini.
33085
33086         test-sys_socket: avoid set-but-not-used warnings from gcc
33087         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33088         avoid warning about set-but-not-used variables.
33089
33090         test-xvasprintf: avoid 'const' discard warnings
33091         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33092         "const" when assigning from literal strings.
33093         (test_xasprintf): Add "void" in function argument list to placate
33094         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33095
33096         tests: avoid compilation warnings in argmatch and exclude tests...
33097         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33098         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33099         Since it always exits, declare with the "noreturn" attribute.
33100         * tests/test-argmatch.c: Likewise.
33101
33102         tests: avoid 'const' discard warnings in mbsstr tests
33103         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33104         * tests/test-mbsstr2.c (main): Likewise.
33105
33106         test-verify: avoid warning from gcc's -Wmissing-declarations
33107         * tests/test-verify.c (function): Declare to be static.
33108
33109         test-inttostr.c: include <string.h> for use of strcmp
33110         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33111
33112         test-linkat: avoid failed assertion on "other" architectures
33113         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33114         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33115         sparc: https://bugs.launchpad.net/bugs/591968
33116
33117 2010-06-11  Jim Meyering  <meyering@redhat.com>
33118
33119         printf.m4: avoid autoconf's "Expanded Before Required" warning
33120         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33121         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33122         autoconf warning.
33123
33124 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33125
33126         Replacement header templates are now named with ".in", not "_".
33127         * doc/gnulib-intro.texi: Correct.
33128
33129 2010-06-10  Jim Meyering  <meyering@redhat.com>
33130
33131         inttostr-tests: depend on snprintf, not snprintf-posix
33132         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33133         snprintf-posix, to avoid this aclocal failure:
33134           missing file gnulib-tests/vasnprintf.c
33135           configure.ac:45: error: expected source file, required through \
33136           AC_LIBSOURCES, not found
33137
33138 2010-06-10  Jim Meyering  <meyering@redhat.com>
33139
33140         inttostr: add a new function, inttostr, and tests
33141         The namesake function was not available.  The existence of the
33142         template file, inttostr.c makes its addition nontrivial.
33143         * lib/anytostr.c: Rename from inttostr.c.
33144         (anytostr): Rename from inttostr.
33145         * lib/inttostr.c: New file.
33146         * modules/inttostr (Files): Add anytostr.c.
33147         (Makefile.am): Set lib_SOURCES instead of ...
33148         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33149         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33150         * lib/offtostr.c: Likewise.
33151         * lib/uinttostr.c: Likewise.
33152         * lib/umaxtostr.c: Likewise.
33153         * modules/inttostr-tests: New file.
33154         * tests/test-inttostr.c: New file.  Test these functions.
33155
33156 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33157             Bruno Haible  <bruno@clisp.org>
33158
33159         Add "Extending Gnulib" chapter to manual.
33160         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33161         chapter.
33162         (Extending Gnulib): New chapter.
33163         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33164         chapter.
33165
33166 2010-06-09  Bruno Haible  <bruno@clisp.org>
33167
33168         Avoid relocwrapper link errors due to gnulib replacement functions.
33169         * lib/areadlink.c: Use the system's malloc, realloc functions.
33170         (areadlink): Set errno to ENOMEM explicitly.
33171         * modules/areadlink (Depends-on): Remove malloc-posix.
33172         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33173
33174 2010-06-09  Bruno Haible  <bruno@clisp.org>
33175
33176         Avoid relocwrapper link errors due to gnulib replacement functions.
33177         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33178         * lib/malloca.c: Likewise.
33179         * lib/relocatable.c: Likewise.
33180         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33181         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33182         * lib/setenv.c: Use the system's malloc, realloc functions.
33183         * lib/strerror.c: Use the system's sprintf function.
33184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33185
33186 2010-06-04  Bruno Haible  <bruno@clisp.org>
33187
33188         Prefer documented low-level autoconf macro names.
33189         * m4/lib-link.m4: Use m4_translit instead of translit.
33190         * m4/environ.m4: Likewise.
33191         * m4/mathfunc.m4: Likewise.
33192         * m4/onceonly.m4: Likewise.
33193         * m4/stdint.m4: Likewise.
33194         Suggested by Eric Blake.
33195
33196 2010-06-04  Martin Lambers  <marlam@marlam.de>
33197             Bruno Haible  <bruno@clisp.org>
33198
33199         havelib: Allow library names with '+' characters.
33200         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33201         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33202
33203 2010-06-09  Bruno Haible  <bruno@clisp.org>
33204
33205         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33206         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33207         realloc failed.
33208
33209 2010-06-08  Peter Simons  <simons@cryp.to>
33210
33211         maint.mk: make the news-check rule more configurable
33212         * top/maint.mk (news-check-lines-spec): New variable.
33213         (news-check): Use "sed -n 1,10p" in place of "head".
33214
33215 2010-06-07  Jim Meyering  <meyering@redhat.com>
33216
33217         do-release-commit-and-tag: fix typo in --help
33218         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33219
33220         regex: avoid new dead-code warning with gcc-4.6.0
33221         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33222         if-block containing a while-loop.  It's been unused for at least
33223         5 years.
33224
33225 2010-06-05  Bruno Haible  <bruno@clisp.org>
33226
33227         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33228         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33229
33230 2010-06-04  Bruno Haible  <bruno@clisp.org>
33231
33232         Update to GNU gettext 0.18.1.
33233         * modules/gettext (configure.ac): Require gettext infrastructure from
33234         version 0.18.1.
33235
33236 2010-06-03  Bruno Haible  <bruno@clisp.org>
33237
33238         Don't use AC_LIBOBJ with file names in subdirectories.
33239         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33240         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33241         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33242         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33243         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33244         gl_LIBUNISTRING_LIBSOURCE.
33245         (Makefile.am): Augment lib_SOURCES here, conditionally.
33246         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33247
33248 2010-06-03  Bruno Haible  <bruno@clisp.org>
33249
33250         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33251         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33252         expansion does not end with a newline.
33253         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33254         unnecessary newline.
33255
33256 2010-06-03  Bruno Haible  <bruno@clisp.org>
33257
33258         Reduce dependencies.
33259         * tests/test-quotearg.h: New file, extracted from
33260         tests/test-quotearg.c.
33261         * tests/test-quotearg-simple.c: New file, extracted from
33262         tests/test-quotearg.c.
33263         * tests/test-quotearg.c: Don't include <ctype.h>.
33264         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33265         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33266         use_quote_double_quotes, use_quotearg_colon): Moved to
33267         tests/test-quotearg.h.
33268         (results_g, flag_results, custom_quotes, custom_results): Moved
33269         to tests/test-quotearg-simple.c.
33270         (main): Moved the part that does not depend on gettext to
33271         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33272         performed.
33273         * modules/quotearg-simple: New file.
33274         * modules/quotearg-simple-tests: New file.
33275         * modules/quotearg (Depends-on): Add quotearg-simple.
33276         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33277         (Files): Add tests/test-quotearg.h.
33278         Reported by Paolo Bonzini.
33279
33280 2010-06-03  Bruno Haible  <bruno@clisp.org>
33281
33282         Reduce dependencies.
33283         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33284
33285 2010-06-03  Bruno Haible  <bruno@clisp.org>
33286
33287         time: Undefine more broken macros.
33288         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33289         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33290         Reported by Eric Blake.
33291
33292 2010-06-03  Bruno Haible  <bruno@clisp.org>
33293
33294         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33295         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33296         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33297         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33298         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33299         Reported by Ludovic Courtès <ludo@gnu.org>.
33300
33301 2010-06-02  Eric Blake  <eblake@redhat.com>
33302
33303         time: work with mingw + pthreads-win32 library
33304         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33305         if timespec is defined only in pthread.h.
33306         * modules/time (Makefile.am): Substitute it.
33307         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33308         <pthread.h>, when needed.
33309         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33310         from the library.
33311
33312 2010-05-31  Bruno Haible  <bruno@clisp.org>
33313
33314         Avoid expanding two macros in the wrong order.
33315         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33316         gl_LIBUNISTRING if it is defined.
33317         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33318         autoconf >= 2.64.
33319         Reported by Ludovic Courtès <ludo@gnu.org>.
33320
33321 2010-05-27  Jim Meyering  <meyering@redhat.com>
33322
33323         maint.mk: also prohibit "#undef" of always-defined symbols
33324         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33325         Allow more than one space before the symbol name.
33326         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33327         the regexp uses alternation.
33328
33329 2010-05-26  Eric Blake  <eblake@redhat.com>
33330
33331         maint.mk: avoid echo -e
33332         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33333         Convert all uses of echo -* to printf.
33334         Reported by Matthias Bolte.
33335
33336 2010-05-25  Bruno Haible  <bruno@clisp.org>
33337
33338         Update to GNU gettext 0.18, part 2.
33339         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33340         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33341
33342 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33343
33344         Add missing include in test-pwrite.c.
33345         * tests/test-pwrite.c: Include string.h, for strcmp.
33346
33347 2010-05-24  Bruno Haible  <bruno@clisp.org>
33348
33349         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33350
33351 2010-05-24  Bruno Haible  <bruno@clisp.org>
33352
33353         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33354         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33355         iconveh_error argument.
33356         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33357         U_STRCONV_TO_LOCALE.
33358         * lib/unistr/u16-strcoll.c: Likewise.
33359         * lib/unistr/u32-strcoll.c: Likewise.
33360         * modules/unistr/u8-strcoll (Depends-on): Add
33361         uniconv/u8-strconv-to-enc, localcharset. Remove
33362         uniconv/u8-strconv-to-locale.
33363         (configure.ac): Bump version number.
33364         * modules/unistr/u16-strcoll (Depends-on): Add
33365         uniconv/u16-strconv-to-enc, localcharset. Remove
33366         uniconv/u16-strconv-to-locale.
33367         (configure.ac): Bump version number.
33368         * modules/unistr/u32-strcoll (Depends-on): Add
33369         uniconv/u32-strconv-to-enc, localcharset. Remove
33370         uniconv/u32-strconv-to-locale.
33371         (configure.ac): Bump version number.
33372
33373 2010-05-24  Bruno Haible  <bruno@clisp.org>
33374
33375         Avoid a test failure on NetBSD 5.0.
33376         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33377         an iconv() bug.
33378
33379 2010-05-24  Bruno Haible  <bruno@clisp.org>
33380
33381         Adjust #include directive style.
33382         * modules/regex (Includes): Recommend to write <regex.h>.
33383
33384 2010-05-24  Bruno Haible  <bruno@clisp.org>
33385
33386         regex: Don't require alloca.
33387         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33388         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33389         only inside if (0).
33390
33391 2010-05-23  Jim Meyering  <meyering@redhat.com>
33392
33393         test-renameat.c: include <sys/stat.h>
33394         * tests/test-renameat.c: Include <sys/stat.h>; required for
33395         definition of S_IS* macros.
33396
33397 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33398
33399         Update maintainer documentation for 'relocatable-prog' module.
33400         * doc/relocatable-maint.texi: Update.
33401         Comments by Bruno Haible.
33402
33403 2010-05-23  Bruno Haible  <bruno@clisp.org>
33404
33405         git-merge-changelog: Enable --split-merged-entry by default.
33406         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33407         (usage): Don't mention this option any more.
33408         Reported by Ralf Wildenhues.
33409
33410 2010-05-23  Jim Meyering  <meyering@redhat.com>
33411
33412         test-pwrite: do not leave behind a test file named "out"
33413         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33414         The trivial-looking use of init.sh is really necessary.
33415         It ensures that the temporary file, "out", is created in
33416         a temporary directory, and removed upon termination.
33417         * tests/test-pwrite.sh: Re-add file.
33418         * modules/pwrite-tests: Reference it.
33419
33420 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33421
33422         Fix output redirection buglet in init.sh.
33423         * tests/init.sh: Fix redirection of stderr.
33424
33425 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33426
33427         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33428
33429 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33430
33431         * modules/valgrind-tests: New file.
33432         * m4/valgrind-tests.m4: New file.
33433         * doc/valgrind-tests.texi: New file.
33434         * doc/gnulib.texi (Running self-tests under valgrind): New
33435         section.
33436
33437 2010-05-19  Bruno Haible  <bruno@clisp.org>
33438
33439         Clean up dead code in recent commit.
33440         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33441         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33442         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33443         Suggested by Paolo Bonzini.
33444
33445 2010-05-19  Bruno Haible  <bruno@clisp.org>
33446
33447         Avoid valgrind error reports from libunistring.
33448         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33449         * modules/libunistring (Files): Add it.
33450         * modules/libunistring-optional (Files): Likewise.
33451
33452 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33453             Bruno Haible  <bruno@clisp.org>
33454
33455         New module 'libunistring-optional'.
33456         * modules/libunistring-optional: New file.
33457         * m4/libunistring-base.m4: New file.
33458         * m4/libunistring-optional.m4: New file.
33459         * lib/unicase.in.h: Renamed from lib/unicase.h.
33460         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33461         * lib/unictype.in.h: Renamed from lib/unictype.h.
33462         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33463         * lib/uniname.in.h: Renamed from lib/uniname.h.
33464         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33465         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33466         * lib/unistr.in.h: Renamed from lib/unistr.h.
33467         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33468         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33469         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33470         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33471         gl_LIBUNISTRING. If the library was found, determine the installed
33472         version and set LIBUNISTRING_VERSION.
33473         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33474         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33475         handle a configuration option --with-included-libunistring.
33476         * modules/libunistring (Files): Add m4/absolute-header.m4.
33477         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33478         Add m4/libunistring-base.m4.
33479         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33480         (Makefile.am): Build unicase.h from unicase.in.h.
33481         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33482         Add m4/libunistring-base.m4.
33483         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33484         (Makefile.am): Build uniconv.h from uniconv.in.h.
33485         * modules/unictype/base (Files): Use unictype.in.h instead of
33486         unictype.h. Add m4/libunistring-base.m4.
33487         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33488         (Makefile.am): Build unictype.h from unictype.in.h.
33489         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33490         Add m4/libunistring-base.m4.
33491         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33492         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33493         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33494         Add m4/libunistring-base.m4.
33495         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33496         (Makefile.am): Build uniname.h from uniname.in.h.
33497         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33498         Add m4/libunistring-base.m4.
33499         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33500         (Makefile.am): Build uninorm.h from uninorm.in.h.
33501         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33502         unistdio.h. Add m4/libunistring-base.m4.
33503         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33504         (Makefile.am): Build unistdio.h from unistdio.in.h.
33505         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33506         Add m4/libunistring-base.m4.
33507         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33508         (Makefile.am): Build unistr.h from unistr.in.h.
33509         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33510         Add m4/libunistring-base.m4.
33511         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33512         (Makefile.am): Build unitypes.h from unitypes.in.h.
33513         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33514         Add m4/libunistring-base.m4.
33515         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33516         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33517         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33518         uniwidth.h. Add m4/libunistring-base.m4.
33519         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33520         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33521         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33522         instead of augmenting lib_SOURCES.
33523         * modules/unicase/empty-suffix-context: Likewise.
33524         * modules/unicase/locale-language: Likewise.
33525         * modules/unicase/tolower: Likewise.
33526         * modules/unicase/totitle: Likewise.
33527         * modules/unicase/toupper: Likewise.
33528         * modules/unicase/u8-casecmp: Likewise.
33529         * modules/unicase/u8-casecoll: Likewise.
33530         * modules/unicase/u8-casefold: Likewise.
33531         * modules/unicase/u8-casexfrm: Likewise.
33532         * modules/unicase/u8-ct-casefold: Likewise.
33533         * modules/unicase/u8-ct-tolower: Likewise.
33534         * modules/unicase/u8-ct-totitle: Likewise.
33535         * modules/unicase/u8-ct-toupper: Likewise.
33536         * modules/unicase/u8-is-cased: Likewise.
33537         * modules/unicase/u8-is-casefolded: Likewise.
33538         * modules/unicase/u8-is-lowercase: Likewise.
33539         * modules/unicase/u8-is-titlecase: Likewise.
33540         * modules/unicase/u8-is-uppercase: Likewise.
33541         * modules/unicase/u8-prefix-context: Likewise.
33542         * modules/unicase/u8-suffix-context: Likewise.
33543         * modules/unicase/u8-tolower: Likewise.
33544         * modules/unicase/u8-totitle: Likewise.
33545         * modules/unicase/u8-toupper: Likewise.
33546         * modules/unicase/u16-casecmp: Likewise.
33547         * modules/unicase/u16-casecoll: Likewise.
33548         * modules/unicase/u16-casefold: Likewise.
33549         * modules/unicase/u16-casexfrm: Likewise.
33550         * modules/unicase/u16-ct-casefold: Likewise.
33551         * modules/unicase/u16-ct-tolower: Likewise.
33552         * modules/unicase/u16-ct-totitle: Likewise.
33553         * modules/unicase/u16-ct-toupper: Likewise.
33554         * modules/unicase/u16-is-cased: Likewise.
33555         * modules/unicase/u16-is-casefolded: Likewise.
33556         * modules/unicase/u16-is-lowercase: Likewise.
33557         * modules/unicase/u16-is-titlecase: Likewise.
33558         * modules/unicase/u16-is-uppercase: Likewise.
33559         * modules/unicase/u16-prefix-context: Likewise.
33560         * modules/unicase/u16-suffix-context: Likewise.
33561         * modules/unicase/u16-tolower: Likewise.
33562         * modules/unicase/u16-totitle: Likewise.
33563         * modules/unicase/u16-toupper: Likewise.
33564         * modules/unicase/u32-casecmp: Likewise.
33565         * modules/unicase/u32-casecoll: Likewise.
33566         * modules/unicase/u32-casefold: Likewise.
33567         * modules/unicase/u32-casexfrm: Likewise.
33568         * modules/unicase/u32-ct-casefold: Likewise.
33569         * modules/unicase/u32-ct-tolower: Likewise.
33570         * modules/unicase/u32-ct-totitle: Likewise.
33571         * modules/unicase/u32-ct-toupper: Likewise.
33572         * modules/unicase/u32-is-cased: Likewise.
33573         * modules/unicase/u32-is-casefolded: Likewise.
33574         * modules/unicase/u32-is-lowercase: Likewise.
33575         * modules/unicase/u32-is-titlecase: Likewise.
33576         * modules/unicase/u32-is-uppercase: Likewise.
33577         * modules/unicase/u32-prefix-context: Likewise.
33578         * modules/unicase/u32-suffix-context: Likewise.
33579         * modules/unicase/u32-tolower: Likewise.
33580         * modules/unicase/u32-totitle: Likewise.
33581         * modules/unicase/u32-toupper: Likewise.
33582         * modules/unicase/ulc-casecmp: Likewise.
33583         * modules/unicase/ulc-casecoll: Likewise.
33584         * modules/unicase/ulc-casexfrm: Likewise.
33585         * modules/uniconv/u8-conv-from-enc: Likewise.
33586         * modules/uniconv/u8-conv-to-enc: Likewise.
33587         * modules/uniconv/u8-strconv-from-enc: Likewise.
33588         * modules/uniconv/u8-strconv-from-locale: Likewise.
33589         * modules/uniconv/u8-strconv-to-enc: Likewise.
33590         * modules/uniconv/u8-strconv-to-locale: Likewise.
33591         * modules/uniconv/u16-conv-from-enc: Likewise.
33592         * modules/uniconv/u16-conv-to-enc: Likewise.
33593         * modules/uniconv/u16-strconv-from-enc: Likewise.
33594         * modules/uniconv/u16-strconv-from-locale: Likewise.
33595         * modules/uniconv/u16-strconv-to-enc: Likewise.
33596         * modules/uniconv/u16-strconv-to-locale: Likewise.
33597         * modules/uniconv/u32-conv-from-enc: Likewise.
33598         * modules/uniconv/u32-conv-to-enc: Likewise.
33599         * modules/uniconv/u32-strconv-from-enc: Likewise.
33600         * modules/uniconv/u32-strconv-from-locale: Likewise.
33601         * modules/uniconv/u32-strconv-to-enc: Likewise.
33602         * modules/uniconv/u32-strconv-to-locale: Likewise.
33603         * modules/unictype/bidicategory-byname: Likewise.
33604         * modules/unictype/bidicategory-name: Likewise.
33605         * modules/unictype/bidicategory-of: Likewise.
33606         * modules/unictype/bidicategory-test: Likewise.
33607         * modules/unictype/block-list: Likewise.
33608         * modules/unictype/block-test: Likewise.
33609         * modules/unictype/category-C: Likewise.
33610         * modules/unictype/category-Cc: Likewise.
33611         * modules/unictype/category-Cf: Likewise.
33612         * modules/unictype/category-Cn: Likewise.
33613         * modules/unictype/category-Co: Likewise.
33614         * modules/unictype/category-Cs: Likewise.
33615         * modules/unictype/category-L: Likewise.
33616         * modules/unictype/category-Ll: Likewise.
33617         * modules/unictype/category-Lm: Likewise.
33618         * modules/unictype/category-Lo: Likewise.
33619         * modules/unictype/category-Lt: Likewise.
33620         * modules/unictype/category-Lu: Likewise.
33621         * modules/unictype/category-M: Likewise.
33622         * modules/unictype/category-Mc: Likewise.
33623         * modules/unictype/category-Me: Likewise.
33624         * modules/unictype/category-Mn: Likewise.
33625         * modules/unictype/category-N: Likewise.
33626         * modules/unictype/category-Nd: Likewise.
33627         * modules/unictype/category-Nl: Likewise.
33628         * modules/unictype/category-No: Likewise.
33629         * modules/unictype/category-P: Likewise.
33630         * modules/unictype/category-Pc: Likewise.
33631         * modules/unictype/category-Pd: Likewise.
33632         * modules/unictype/category-Pe: Likewise.
33633         * modules/unictype/category-Pf: Likewise.
33634         * modules/unictype/category-Pi: Likewise.
33635         * modules/unictype/category-Po: Likewise.
33636         * modules/unictype/category-Ps: Likewise.
33637         * modules/unictype/category-S: Likewise.
33638         * modules/unictype/category-Sc: Likewise.
33639         * modules/unictype/category-Sk: Likewise.
33640         * modules/unictype/category-Sm: Likewise.
33641         * modules/unictype/category-So: Likewise.
33642         * modules/unictype/category-Z: Likewise.
33643         * modules/unictype/category-Zl: Likewise.
33644         * modules/unictype/category-Zp: Likewise.
33645         * modules/unictype/category-Zs: Likewise.
33646         * modules/unictype/category-and: Likewise.
33647         * modules/unictype/category-and-not: Likewise.
33648         * modules/unictype/category-byname: Likewise.
33649         * modules/unictype/category-name: Likewise.
33650         * modules/unictype/category-none: Likewise.
33651         * modules/unictype/category-of: Likewise.
33652         * modules/unictype/category-or: Likewise.
33653         * modules/unictype/category-test: Likewise.
33654         * modules/unictype/combining-class: Likewise.
33655         * modules/unictype/ctype-alnum: Likewise.
33656         * modules/unictype/ctype-alpha: Likewise.
33657         * modules/unictype/ctype-blank: Likewise.
33658         * modules/unictype/ctype-cntrl: Likewise.
33659         * modules/unictype/ctype-digit: Likewise.
33660         * modules/unictype/ctype-graph: Likewise.
33661         * modules/unictype/ctype-lower: Likewise.
33662         * modules/unictype/ctype-print: Likewise.
33663         * modules/unictype/ctype-punct: Likewise.
33664         * modules/unictype/ctype-space: Likewise.
33665         * modules/unictype/ctype-upper: Likewise.
33666         * modules/unictype/ctype-xdigit: Likewise.
33667         * modules/unictype/decimal-digit: Likewise.
33668         * modules/unictype/digit: Likewise.
33669         * modules/unictype/mirror: Likewise.
33670         * modules/unictype/numeric: Likewise.
33671         * modules/unictype/property-alphabetic: Likewise.
33672         * modules/unictype/property-ascii-hex-digit: Likewise.
33673         * modules/unictype/property-bidi-arabic-digit: Likewise.
33674         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33675         * modules/unictype/property-bidi-block-separator: Likewise.
33676         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33677         * modules/unictype/property-bidi-common-separator: Likewise.
33678         * modules/unictype/property-bidi-control: Likewise.
33679         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33680         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33681         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33682         * modules/unictype/property-bidi-european-digit: Likewise.
33683         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33684         * modules/unictype/property-bidi-left-to-right: Likewise.
33685         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33686         * modules/unictype/property-bidi-other-neutral: Likewise.
33687         * modules/unictype/property-bidi-pdf: Likewise.
33688         * modules/unictype/property-bidi-segment-separator: Likewise.
33689         * modules/unictype/property-bidi-whitespace: Likewise.
33690         * modules/unictype/property-byname: Likewise.
33691         * modules/unictype/property-combining: Likewise.
33692         * modules/unictype/property-composite: Likewise.
33693         * modules/unictype/property-currency-symbol: Likewise.
33694         * modules/unictype/property-dash: Likewise.
33695         * modules/unictype/property-decimal-digit: Likewise.
33696         * modules/unictype/property-default-ignorable-code-point: Likewise.
33697         * modules/unictype/property-deprecated: Likewise.
33698         * modules/unictype/property-diacritic: Likewise.
33699         * modules/unictype/property-extender: Likewise.
33700         * modules/unictype/property-format-control: Likewise.
33701         * modules/unictype/property-grapheme-base: Likewise.
33702         * modules/unictype/property-grapheme-extend: Likewise.
33703         * modules/unictype/property-grapheme-link: Likewise.
33704         * modules/unictype/property-hex-digit: Likewise.
33705         * modules/unictype/property-hyphen: Likewise.
33706         * modules/unictype/property-id-continue: Likewise.
33707         * modules/unictype/property-id-start: Likewise.
33708         * modules/unictype/property-ideographic: Likewise.
33709         * modules/unictype/property-ids-binary-operator: Likewise.
33710         * modules/unictype/property-ids-trinary-operator: Likewise.
33711         * modules/unictype/property-ignorable-control: Likewise.
33712         * modules/unictype/property-iso-control: Likewise.
33713         * modules/unictype/property-join-control: Likewise.
33714         * modules/unictype/property-left-of-pair: Likewise.
33715         * modules/unictype/property-line-separator: Likewise.
33716         * modules/unictype/property-logical-order-exception: Likewise.
33717         * modules/unictype/property-lowercase: Likewise.
33718         * modules/unictype/property-math: Likewise.
33719         * modules/unictype/property-non-break: Likewise.
33720         * modules/unictype/property-not-a-character: Likewise.
33721         * modules/unictype/property-numeric: Likewise.
33722         * modules/unictype/property-other-alphabetic: Likewise.
33723         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33724         * modules/unictype/property-other-grapheme-extend: Likewise.
33725         * modules/unictype/property-other-id-continue: Likewise.
33726         * modules/unictype/property-other-id-start: Likewise.
33727         * modules/unictype/property-other-lowercase: Likewise.
33728         * modules/unictype/property-other-math: Likewise.
33729         * modules/unictype/property-other-uppercase: Likewise.
33730         * modules/unictype/property-paired-punctuation: Likewise.
33731         * modules/unictype/property-paragraph-separator: Likewise.
33732         * modules/unictype/property-pattern-syntax: Likewise.
33733         * modules/unictype/property-pattern-white-space: Likewise.
33734         * modules/unictype/property-private-use: Likewise.
33735         * modules/unictype/property-punctuation: Likewise.
33736         * modules/unictype/property-quotation-mark: Likewise.
33737         * modules/unictype/property-radical: Likewise.
33738         * modules/unictype/property-sentence-terminal: Likewise.
33739         * modules/unictype/property-soft-dotted: Likewise.
33740         * modules/unictype/property-space: Likewise.
33741         * modules/unictype/property-terminal-punctuation: Likewise.
33742         * modules/unictype/property-test: Likewise.
33743         * modules/unictype/property-titlecase: Likewise.
33744         * modules/unictype/property-unassigned-code-value: Likewise.
33745         * modules/unictype/property-unified-ideograph: Likewise.
33746         * modules/unictype/property-uppercase: Likewise.
33747         * modules/unictype/property-variation-selector: Likewise.
33748         * modules/unictype/property-white-space: Likewise.
33749         * modules/unictype/property-xid-continue: Likewise.
33750         * modules/unictype/property-xid-start: Likewise.
33751         * modules/unictype/property-zero-width: Likewise.
33752         * modules/unictype/scripts: Likewise.
33753         * modules/unictype/syntax-c-ident: Likewise.
33754         * modules/unictype/syntax-c-whitespace: Likewise.
33755         * modules/unictype/syntax-java-ident: Likewise.
33756         * modules/unictype/syntax-java-whitespace: Likewise.
33757         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33758         * modules/unilbrk/u8-width-linebreaks: Likewise.
33759         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33760         * modules/unilbrk/u16-width-linebreaks: Likewise.
33761         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33762         * modules/unilbrk/u32-width-linebreaks: Likewise.
33763         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33764         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33765         * modules/uniname/uniname: Likewise.
33766         * modules/uninorm/canonical-decomposition: Likewise.
33767         * modules/uninorm/composition: Likewise.
33768         * modules/uninorm/decomposing-form: Likewise.
33769         * modules/uninorm/decomposition: Likewise.
33770         * modules/uninorm/filter: Likewise.
33771         * modules/uninorm/nfc: Likewise.
33772         * modules/uninorm/nfd: Likewise.
33773         * modules/uninorm/nfkc: Likewise.
33774         * modules/uninorm/nfkd: Likewise.
33775         * modules/uninorm/u8-normalize: Likewise.
33776         * modules/uninorm/u8-normcmp: Likewise.
33777         * modules/uninorm/u8-normcoll: Likewise.
33778         * modules/uninorm/u8-normxfrm: Likewise.
33779         * modules/uninorm/u16-normalize: Likewise.
33780         * modules/uninorm/u16-normcmp: Likewise.
33781         * modules/uninorm/u16-normcoll: Likewise.
33782         * modules/uninorm/u16-normxfrm: Likewise.
33783         * modules/uninorm/u32-normalize: Likewise.
33784         * modules/uninorm/u32-normcmp: Likewise.
33785         * modules/uninorm/u32-normcoll: Likewise.
33786         * modules/uninorm/u32-normxfrm: Likewise.
33787         * modules/unistdio/u8-asnprintf: Likewise.
33788         * modules/unistdio/u8-asprintf: Likewise.
33789         * modules/unistdio/u8-snprintf: Likewise.
33790         * modules/unistdio/u8-sprintf: Likewise.
33791         * modules/unistdio/u8-u8-asnprintf: Likewise.
33792         * modules/unistdio/u8-u8-asprintf: Likewise.
33793         * modules/unistdio/u8-u8-snprintf: Likewise.
33794         * modules/unistdio/u8-u8-sprintf: Likewise.
33795         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33796         * modules/unistdio/u8-u8-vasprintf: Likewise.
33797         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33798         * modules/unistdio/u8-u8-vsprintf: Likewise.
33799         * modules/unistdio/u8-vasnprintf: Likewise.
33800         * modules/unistdio/u8-vasprintf: Likewise.
33801         * modules/unistdio/u8-vsnprintf: Likewise.
33802         * modules/unistdio/u8-vsprintf: Likewise.
33803         * modules/unistdio/u16-asnprintf: Likewise.
33804         * modules/unistdio/u16-asprintf: Likewise.
33805         * modules/unistdio/u16-snprintf: Likewise.
33806         * modules/unistdio/u16-sprintf: Likewise.
33807         * modules/unistdio/u16-u16-asnprintf: Likewise.
33808         * modules/unistdio/u16-u16-asprintf: Likewise.
33809         * modules/unistdio/u16-u16-snprintf: Likewise.
33810         * modules/unistdio/u16-u16-sprintf: Likewise.
33811         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33812         * modules/unistdio/u16-u16-vasprintf: Likewise.
33813         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33814         * modules/unistdio/u16-u16-vsprintf: Likewise.
33815         * modules/unistdio/u16-vasnprintf: Likewise.
33816         * modules/unistdio/u16-vasprintf: Likewise.
33817         * modules/unistdio/u16-vsnprintf: Likewise.
33818         * modules/unistdio/u16-vsprintf: Likewise.
33819         * modules/unistdio/u32-asnprintf: Likewise.
33820         * modules/unistdio/u32-asprintf: Likewise.
33821         * modules/unistdio/u32-snprintf: Likewise.
33822         * modules/unistdio/u32-sprintf: Likewise.
33823         * modules/unistdio/u32-u32-asnprintf: Likewise.
33824         * modules/unistdio/u32-u32-asprintf: Likewise.
33825         * modules/unistdio/u32-u32-snprintf: Likewise.
33826         * modules/unistdio/u32-u32-sprintf: Likewise.
33827         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33828         * modules/unistdio/u32-u32-vasprintf: Likewise.
33829         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33830         * modules/unistdio/u32-u32-vsprintf: Likewise.
33831         * modules/unistdio/u32-vasnprintf: Likewise.
33832         * modules/unistdio/u32-vasprintf: Likewise.
33833         * modules/unistdio/u32-vsnprintf: Likewise.
33834         * modules/unistdio/u32-vsprintf: Likewise.
33835         * modules/unistdio/ulc-asnprintf: Likewise.
33836         * modules/unistdio/ulc-asprintf: Likewise.
33837         * modules/unistdio/ulc-fprintf: Likewise.
33838         * modules/unistdio/ulc-snprintf: Likewise.
33839         * modules/unistdio/ulc-sprintf: Likewise.
33840         * modules/unistdio/ulc-vasnprintf: Likewise.
33841         * modules/unistdio/ulc-vasprintf: Likewise.
33842         * modules/unistdio/ulc-vfprintf: Likewise.
33843         * modules/unistdio/ulc-vsnprintf: Likewise.
33844         * modules/unistdio/ulc-vsprintf: Likewise.
33845         * modules/unistr/u8-check: Likewise.
33846         * modules/unistr/u8-chr: Likewise.
33847         * modules/unistr/u8-cmp: Likewise.
33848         * modules/unistr/u8-cmp2: Likewise.
33849         * modules/unistr/u8-cpy: Likewise.
33850         * modules/unistr/u8-cpy-alloc: Likewise.
33851         * modules/unistr/u8-endswith: Likewise.
33852         * modules/unistr/u8-mblen: Likewise.
33853         * modules/unistr/u8-mbsnlen: Likewise.
33854         * modules/unistr/u8-mbtouc: Likewise.
33855         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33856         * modules/unistr/u8-mbtoucr: Likewise.
33857         * modules/unistr/u8-move: Likewise.
33858         * modules/unistr/u8-next: Likewise.
33859         * modules/unistr/u8-prev: Likewise.
33860         * modules/unistr/u8-set: Likewise.
33861         * modules/unistr/u8-startswith: Likewise.
33862         * modules/unistr/u8-stpcpy: Likewise.
33863         * modules/unistr/u8-stpncpy: Likewise.
33864         * modules/unistr/u8-strcat: Likewise.
33865         * modules/unistr/u8-strchr: Likewise.
33866         * modules/unistr/u8-strcmp: Likewise.
33867         * modules/unistr/u8-strcoll: Likewise.
33868         * modules/unistr/u8-strcpy: Likewise.
33869         * modules/unistr/u8-strcspn: Likewise.
33870         * modules/unistr/u8-strdup: Likewise.
33871         * modules/unistr/u8-strlen: Likewise.
33872         * modules/unistr/u8-strmblen: Likewise.
33873         * modules/unistr/u8-strmbtouc: Likewise.
33874         * modules/unistr/u8-strncat: Likewise.
33875         * modules/unistr/u8-strncmp: Likewise.
33876         * modules/unistr/u8-strncpy: Likewise.
33877         * modules/unistr/u8-strnlen: Likewise.
33878         * modules/unistr/u8-strpbrk: Likewise.
33879         * modules/unistr/u8-strrchr: Likewise.
33880         * modules/unistr/u8-strspn: Likewise.
33881         * modules/unistr/u8-strstr: Likewise.
33882         * modules/unistr/u8-strtok: Likewise.
33883         * modules/unistr/u8-to-u16: Likewise.
33884         * modules/unistr/u8-to-u32: Likewise.
33885         * modules/unistr/u8-uctomb: Likewise.
33886         * modules/unistr/u16-check: Likewise.
33887         * modules/unistr/u16-chr: Likewise.
33888         * modules/unistr/u16-cmp: Likewise.
33889         * modules/unistr/u16-cmp2: Likewise.
33890         * modules/unistr/u16-cpy: Likewise.
33891         * modules/unistr/u16-cpy-alloc: Likewise.
33892         * modules/unistr/u16-endswith: Likewise.
33893         * modules/unistr/u16-mblen: Likewise.
33894         * modules/unistr/u16-mbsnlen: Likewise.
33895         * modules/unistr/u16-mbtouc: Likewise.
33896         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33897         * modules/unistr/u16-mbtoucr: Likewise.
33898         * modules/unistr/u16-move: Likewise.
33899         * modules/unistr/u16-next: Likewise.
33900         * modules/unistr/u16-prev: Likewise.
33901         * modules/unistr/u16-set: Likewise.
33902         * modules/unistr/u16-startswith: Likewise.
33903         * modules/unistr/u16-stpcpy: Likewise.
33904         * modules/unistr/u16-stpncpy: Likewise.
33905         * modules/unistr/u16-strcat: Likewise.
33906         * modules/unistr/u16-strchr: Likewise.
33907         * modules/unistr/u16-strcmp: Likewise.
33908         * modules/unistr/u16-strcoll: Likewise.
33909         * modules/unistr/u16-strcpy: Likewise.
33910         * modules/unistr/u16-strcspn: Likewise.
33911         * modules/unistr/u16-strdup: Likewise.
33912         * modules/unistr/u16-strlen: Likewise.
33913         * modules/unistr/u16-strmblen: Likewise.
33914         * modules/unistr/u16-strmbtouc: Likewise.
33915         * modules/unistr/u16-strncat: Likewise.
33916         * modules/unistr/u16-strncmp: Likewise.
33917         * modules/unistr/u16-strncpy: Likewise.
33918         * modules/unistr/u16-strnlen: Likewise.
33919         * modules/unistr/u16-strpbrk: Likewise.
33920         * modules/unistr/u16-strrchr: Likewise.
33921         * modules/unistr/u16-strspn: Likewise.
33922         * modules/unistr/u16-strstr: Likewise.
33923         * modules/unistr/u16-strtok: Likewise.
33924         * modules/unistr/u16-to-u32: Likewise.
33925         * modules/unistr/u16-to-u8: Likewise.
33926         * modules/unistr/u16-uctomb: Likewise.
33927         * modules/unistr/u32-check: Likewise.
33928         * modules/unistr/u32-chr: Likewise.
33929         * modules/unistr/u32-cmp: Likewise.
33930         * modules/unistr/u32-cmp2: Likewise.
33931         * modules/unistr/u32-cpy: Likewise.
33932         * modules/unistr/u32-cpy-alloc: Likewise.
33933         * modules/unistr/u32-endswith: Likewise.
33934         * modules/unistr/u32-mblen: Likewise.
33935         * modules/unistr/u32-mbsnlen: Likewise.
33936         * modules/unistr/u32-mbtouc: Likewise.
33937         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33938         * modules/unistr/u32-mbtoucr: Likewise.
33939         * modules/unistr/u32-move: Likewise.
33940         * modules/unistr/u32-next: Likewise.
33941         * modules/unistr/u32-prev: Likewise.
33942         * modules/unistr/u32-set: Likewise.
33943         * modules/unistr/u32-startswith: Likewise.
33944         * modules/unistr/u32-stpcpy: Likewise.
33945         * modules/unistr/u32-stpncpy: Likewise.
33946         * modules/unistr/u32-strcat: Likewise.
33947         * modules/unistr/u32-strchr: Likewise.
33948         * modules/unistr/u32-strcmp: Likewise.
33949         * modules/unistr/u32-strcoll: Likewise.
33950         * modules/unistr/u32-strcpy: Likewise.
33951         * modules/unistr/u32-strcspn: Likewise.
33952         * modules/unistr/u32-strdup: Likewise.
33953         * modules/unistr/u32-strlen: Likewise.
33954         * modules/unistr/u32-strmblen: Likewise.
33955         * modules/unistr/u32-strmbtouc: Likewise.
33956         * modules/unistr/u32-strncat: Likewise.
33957         * modules/unistr/u32-strncmp: Likewise.
33958         * modules/unistr/u32-strncpy: Likewise.
33959         * modules/unistr/u32-strnlen: Likewise.
33960         * modules/unistr/u32-strpbrk: Likewise.
33961         * modules/unistr/u32-strrchr: Likewise.
33962         * modules/unistr/u32-strspn: Likewise.
33963         * modules/unistr/u32-strstr: Likewise.
33964         * modules/unistr/u32-strtok: Likewise.
33965         * modules/unistr/u32-to-u16: Likewise.
33966         * modules/unistr/u32-to-u8: Likewise.
33967         * modules/unistr/u32-uctomb: Likewise.
33968         * modules/uniwbrk/u8-wordbreaks: Likewise.
33969         * modules/uniwbrk/u16-wordbreaks: Likewise.
33970         * modules/uniwbrk/u32-wordbreaks: Likewise.
33971         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33972         * modules/uniwbrk/wordbreak-property: Likewise.
33973         * modules/uniwidth/u8-strwidth: Likewise.
33974         * modules/uniwidth/u8-width: Likewise.
33975         * modules/uniwidth/u16-strwidth: Likewise.
33976         * modules/uniwidth/u16-width: Likewise.
33977         * modules/uniwidth/u32-strwidth: Likewise.
33978         * modules/uniwidth/u32-width: Likewise.
33979         * modules/uniwidth/width: Likewise.
33980         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33981         with $(LIBUNISTRING).
33982         * modules/unicase/ignorable-tests: Likewise.
33983         * modules/unicase/locale-language-tests: Likewise.
33984         * modules/unicase/tolower-tests: Likewise.
33985         * modules/unicase/totitle-tests: Likewise.
33986         * modules/unicase/toupper-tests: Likewise.
33987         * modules/unicase/u8-casecmp-tests: Likewise.
33988         * modules/unicase/u8-casecoll-tests: Likewise.
33989         * modules/unicase/u8-casefold-tests: Likewise.
33990         * modules/unicase/u8-is-cased-tests: Likewise.
33991         * modules/unicase/u8-is-casefolded-tests: Likewise.
33992         * modules/unicase/u8-is-lowercase-tests: Likewise.
33993         * modules/unicase/u8-is-titlecase-tests: Likewise.
33994         * modules/unicase/u8-is-uppercase-tests: Likewise.
33995         * modules/unicase/u8-tolower-tests: Likewise.
33996         * modules/unicase/u8-totitle-tests: Likewise.
33997         * modules/unicase/u8-toupper-tests: Likewise.
33998         * modules/unicase/u16-casecmp-tests: Likewise.
33999         * modules/unicase/u16-casecoll-tests: Likewise.
34000         * modules/unicase/u16-casefold-tests: Likewise.
34001         * modules/unicase/u16-is-cased-tests: Likewise.
34002         * modules/unicase/u16-is-casefolded-tests: Likewise.
34003         * modules/unicase/u16-is-lowercase-tests: Likewise.
34004         * modules/unicase/u16-is-titlecase-tests: Likewise.
34005         * modules/unicase/u16-is-uppercase-tests: Likewise.
34006         * modules/unicase/u16-tolower-tests: Likewise.
34007         * modules/unicase/u16-totitle-tests: Likewise.
34008         * modules/unicase/u16-toupper-tests: Likewise.
34009         * modules/unicase/u32-casecmp-tests: Likewise.
34010         * modules/unicase/u32-casecoll-tests: Likewise.
34011         * modules/unicase/u32-casefold-tests: Likewise.
34012         * modules/unicase/u32-is-cased-tests: Likewise.
34013         * modules/unicase/u32-is-casefolded-tests: Likewise.
34014         * modules/unicase/u32-is-lowercase-tests: Likewise.
34015         * modules/unicase/u32-is-titlecase-tests: Likewise.
34016         * modules/unicase/u32-is-uppercase-tests: Likewise.
34017         * modules/unicase/u32-tolower-tests: Likewise.
34018         * modules/unicase/u32-totitle-tests: Likewise.
34019         * modules/unicase/u32-toupper-tests: Likewise.
34020         * modules/unicase/ulc-casecmp-tests: Likewise.
34021         * modules/unicase/ulc-casecoll-tests: Likewise.
34022         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
34023         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
34024         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
34025         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
34026         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
34027         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
34028         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
34029         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
34030         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
34031         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
34032         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
34033         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
34034         * modules/unictype/bidicategory-byname-tests: Likewise.
34035         * modules/unictype/bidicategory-name-tests: Likewise.
34036         * modules/unictype/bidicategory-of-tests: Likewise.
34037         * modules/unictype/bidicategory-test-tests: Likewise.
34038         * modules/unictype/block-list-tests: Likewise.
34039         * modules/unictype/block-of-tests: Likewise.
34040         * modules/unictype/block-test-tests: Likewise.
34041         * modules/unictype/category-C-tests: Likewise.
34042         * modules/unictype/category-Cc-tests: Likewise.
34043         * modules/unictype/category-Cf-tests: Likewise.
34044         * modules/unictype/category-Cn-tests: Likewise.
34045         * modules/unictype/category-Co-tests: Likewise.
34046         * modules/unictype/category-Cs-tests: Likewise.
34047         * modules/unictype/category-L-tests: Likewise.
34048         * modules/unictype/category-Ll-tests: Likewise.
34049         * modules/unictype/category-Lm-tests: Likewise.
34050         * modules/unictype/category-Lo-tests: Likewise.
34051         * modules/unictype/category-Lt-tests: Likewise.
34052         * modules/unictype/category-Lu-tests: Likewise.
34053         * modules/unictype/category-M-tests: Likewise.
34054         * modules/unictype/category-Mc-tests: Likewise.
34055         * modules/unictype/category-Me-tests: Likewise.
34056         * modules/unictype/category-Mn-tests: Likewise.
34057         * modules/unictype/category-N-tests: Likewise.
34058         * modules/unictype/category-Nd-tests: Likewise.
34059         * modules/unictype/category-Nl-tests: Likewise.
34060         * modules/unictype/category-No-tests: Likewise.
34061         * modules/unictype/category-P-tests: Likewise.
34062         * modules/unictype/category-Pc-tests: Likewise.
34063         * modules/unictype/category-Pd-tests: Likewise.
34064         * modules/unictype/category-Pe-tests: Likewise.
34065         * modules/unictype/category-Pf-tests: Likewise.
34066         * modules/unictype/category-Pi-tests: Likewise.
34067         * modules/unictype/category-Po-tests: Likewise.
34068         * modules/unictype/category-Ps-tests: Likewise.
34069         * modules/unictype/category-S-tests: Likewise.
34070         * modules/unictype/category-Sc-tests: Likewise.
34071         * modules/unictype/category-Sk-tests: Likewise.
34072         * modules/unictype/category-Sm-tests: Likewise.
34073         * modules/unictype/category-So-tests: Likewise.
34074         * modules/unictype/category-Z-tests: Likewise.
34075         * modules/unictype/category-Zl-tests: Likewise.
34076         * modules/unictype/category-Zp-tests: Likewise.
34077         * modules/unictype/category-Zs-tests: Likewise.
34078         * modules/unictype/category-and-not-tests: Likewise.
34079         * modules/unictype/category-and-tests: Likewise.
34080         * modules/unictype/category-byname-tests: Likewise.
34081         * modules/unictype/category-name-tests: Likewise.
34082         * modules/unictype/category-none-tests: Likewise.
34083         * modules/unictype/category-of-tests: Likewise.
34084         * modules/unictype/category-or-tests: Likewise.
34085         * modules/unictype/category-test-withtable-tests: Likewise.
34086         * modules/unictype/combining-class-tests: Likewise.
34087         * modules/unictype/ctype-alnum-tests: Likewise.
34088         * modules/unictype/ctype-alpha-tests: Likewise.
34089         * modules/unictype/ctype-blank-tests: Likewise.
34090         * modules/unictype/ctype-cntrl-tests: Likewise.
34091         * modules/unictype/ctype-digit-tests: Likewise.
34092         * modules/unictype/ctype-graph-tests: Likewise.
34093         * modules/unictype/ctype-lower-tests: Likewise.
34094         * modules/unictype/ctype-print-tests: Likewise.
34095         * modules/unictype/ctype-punct-tests: Likewise.
34096         * modules/unictype/ctype-space-tests: Likewise.
34097         * modules/unictype/ctype-upper-tests: Likewise.
34098         * modules/unictype/ctype-xdigit-tests: Likewise.
34099         * modules/unictype/decimal-digit-tests: Likewise.
34100         * modules/unictype/digit-tests: Likewise.
34101         * modules/unictype/mirror-tests: Likewise.
34102         * modules/unictype/numeric-tests: Likewise.
34103         * modules/unictype/property-alphabetic-tests: Likewise.
34104         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34105         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34106         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34107         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34108         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34109         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34110         * modules/unictype/property-bidi-control-tests: Likewise.
34111         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34112         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34113         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34114         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34115         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34116         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34117         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34118         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34119         * modules/unictype/property-bidi-pdf-tests: Likewise.
34120         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34121         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34122         * modules/unictype/property-byname-tests: Likewise.
34123         * modules/unictype/property-combining-tests: Likewise.
34124         * modules/unictype/property-composite-tests: Likewise.
34125         * modules/unictype/property-currency-symbol-tests: Likewise.
34126         * modules/unictype/property-dash-tests: Likewise.
34127         * modules/unictype/property-decimal-digit-tests: Likewise.
34128         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34129         * modules/unictype/property-deprecated-tests: Likewise.
34130         * modules/unictype/property-diacritic-tests: Likewise.
34131         * modules/unictype/property-extender-tests: Likewise.
34132         * modules/unictype/property-format-control-tests: Likewise.
34133         * modules/unictype/property-grapheme-base-tests: Likewise.
34134         * modules/unictype/property-grapheme-extend-tests: Likewise.
34135         * modules/unictype/property-grapheme-link-tests: Likewise.
34136         * modules/unictype/property-hex-digit-tests: Likewise.
34137         * modules/unictype/property-hyphen-tests: Likewise.
34138         * modules/unictype/property-id-continue-tests: Likewise.
34139         * modules/unictype/property-id-start-tests: Likewise.
34140         * modules/unictype/property-ideographic-tests: Likewise.
34141         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34142         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34143         * modules/unictype/property-ignorable-control-tests: Likewise.
34144         * modules/unictype/property-iso-control-tests: Likewise.
34145         * modules/unictype/property-join-control-tests: Likewise.
34146         * modules/unictype/property-left-of-pair-tests: Likewise.
34147         * modules/unictype/property-line-separator-tests: Likewise.
34148         * modules/unictype/property-logical-order-exception-tests: Likewise.
34149         * modules/unictype/property-lowercase-tests: Likewise.
34150         * modules/unictype/property-math-tests: Likewise.
34151         * modules/unictype/property-non-break-tests: Likewise.
34152         * modules/unictype/property-not-a-character-tests: Likewise.
34153         * modules/unictype/property-numeric-tests: Likewise.
34154         * modules/unictype/property-other-alphabetic-tests: Likewise.
34155         * modules/unictype/property-other-default-ignorable-code-point-tests:
34156         Likewise.
34157         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34158         * modules/unictype/property-other-id-continue-tests: Likewise.
34159         * modules/unictype/property-other-id-start-tests: Likewise.
34160         * modules/unictype/property-other-lowercase-tests: Likewise.
34161         * modules/unictype/property-other-math-tests: Likewise.
34162         * modules/unictype/property-other-uppercase-tests: Likewise.
34163         * modules/unictype/property-paired-punctuation-tests: Likewise.
34164         * modules/unictype/property-paragraph-separator-tests: Likewise.
34165         * modules/unictype/property-pattern-syntax-tests: Likewise.
34166         * modules/unictype/property-pattern-white-space-tests: Likewise.
34167         * modules/unictype/property-private-use-tests: Likewise.
34168         * modules/unictype/property-punctuation-tests: Likewise.
34169         * modules/unictype/property-quotation-mark-tests: Likewise.
34170         * modules/unictype/property-radical-tests: Likewise.
34171         * modules/unictype/property-sentence-terminal-tests: Likewise.
34172         * modules/unictype/property-soft-dotted-tests: Likewise.
34173         * modules/unictype/property-space-tests: Likewise.
34174         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34175         * modules/unictype/property-test-tests: Likewise.
34176         * modules/unictype/property-titlecase-tests: Likewise.
34177         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34178         * modules/unictype/property-unified-ideograph-tests: Likewise.
34179         * modules/unictype/property-uppercase-tests: Likewise.
34180         * modules/unictype/property-variation-selector-tests: Likewise.
34181         * modules/unictype/property-white-space-tests: Likewise.
34182         * modules/unictype/property-xid-continue-tests: Likewise.
34183         * modules/unictype/property-xid-start-tests: Likewise.
34184         * modules/unictype/property-zero-width-tests: Likewise.
34185         * modules/unictype/scripts-tests: Likewise.
34186         * modules/unictype/syntax-c-ident-tests: Likewise.
34187         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34188         * modules/unictype/syntax-java-ident-tests: Likewise.
34189         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34190         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34191         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34192         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34193         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34194         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34195         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34196         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34197         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34198         * modules/uniname/uniname-tests: Likewise.
34199         * modules/uninorm/canonical-decomposition-tests: Likewise.
34200         * modules/uninorm/compat-decomposition-tests: Likewise.
34201         * modules/uninorm/composition-tests: Likewise.
34202         * modules/uninorm/decomposing-form-tests: Likewise.
34203         * modules/uninorm/decomposition-tests: Likewise.
34204         * modules/uninorm/filter-tests: Likewise.
34205         * modules/uninorm/nfc-tests: Likewise.
34206         * modules/uninorm/nfd-tests: Likewise.
34207         * modules/uninorm/nfkc-tests: Likewise.
34208         * modules/uninorm/nfkd-tests: Likewise.
34209         * modules/uninorm/u8-normcmp-tests: Likewise.
34210         * modules/uninorm/u8-normcoll-tests: Likewise.
34211         * modules/uninorm/u16-normcmp-tests: Likewise.
34212         * modules/uninorm/u16-normcoll-tests: Likewise.
34213         * modules/uninorm/u32-normcmp-tests: Likewise.
34214         * modules/uninorm/u32-normcoll-tests: Likewise.
34215         * modules/unistdio/u8-asnprintf-tests: Likewise.
34216         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34217         * modules/unistdio/u8-vasprintf-tests: Likewise.
34218         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34219         * modules/unistdio/u8-vsprintf-tests: Likewise.
34220         * modules/unistdio/u16-asnprintf-tests: Likewise.
34221         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34222         * modules/unistdio/u16-vasprintf-tests: Likewise.
34223         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34224         * modules/unistdio/u16-vsprintf-tests: Likewise.
34225         * modules/unistdio/u32-asnprintf-tests: Likewise.
34226         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34227         * modules/unistdio/u32-vasprintf-tests: Likewise.
34228         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34229         * modules/unistdio/u32-vsprintf-tests: Likewise.
34230         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34231         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34232         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34233         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34234         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34235         * modules/unistr/u8-check-tests: Likewise.
34236         * modules/unistr/u8-chr-tests: Likewise.
34237         * modules/unistr/u8-cmp-tests: Likewise.
34238         * modules/unistr/u8-cmp2-tests: Likewise.
34239         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34240         * modules/unistr/u8-cpy-tests: Likewise.
34241         * modules/unistr/u8-mblen-tests: Likewise.
34242         * modules/unistr/u8-mbsnlen-tests: Likewise.
34243         * modules/unistr/u8-mbtouc-tests: Likewise.
34244         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34245         * modules/unistr/u8-mbtoucr-tests: Likewise.
34246         * modules/unistr/u8-move-tests: Likewise.
34247         * modules/unistr/u8-next-tests: Likewise.
34248         * modules/unistr/u8-prev-tests: Likewise.
34249         * modules/unistr/u8-set-tests: Likewise.
34250         * modules/unistr/u8-stpcpy-tests: Likewise.
34251         * modules/unistr/u8-stpncpy-tests: Likewise.
34252         * modules/unistr/u8-strcat-tests: Likewise.
34253         * modules/unistr/u8-strcmp-tests: Likewise.
34254         * modules/unistr/u8-strcoll-tests: Likewise.
34255         * modules/unistr/u8-strcpy-tests: Likewise.
34256         * modules/unistr/u8-strdup-tests: Likewise.
34257         * modules/unistr/u8-strlen-tests: Likewise.
34258         * modules/unistr/u8-strmblen-tests: Likewise.
34259         * modules/unistr/u8-strmbtouc-tests: Likewise.
34260         * modules/unistr/u8-strncat-tests: Likewise.
34261         * modules/unistr/u8-strncmp-tests: Likewise.
34262         * modules/unistr/u8-strncpy-tests: Likewise.
34263         * modules/unistr/u8-strnlen-tests: Likewise.
34264         * modules/unistr/u8-to-u16-tests: Likewise.
34265         * modules/unistr/u8-to-u32-tests: Likewise.
34266         * modules/unistr/u8-uctomb-tests: Likewise.
34267         * modules/unistr/u16-check-tests: Likewise.
34268         * modules/unistr/u16-chr-tests: Likewise.
34269         * modules/unistr/u16-cmp-tests: Likewise.
34270         * modules/unistr/u16-cmp2-tests: Likewise.
34271         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34272         * modules/unistr/u16-cpy-tests: Likewise.
34273         * modules/unistr/u16-mblen-tests: Likewise.
34274         * modules/unistr/u16-mbsnlen-tests: Likewise.
34275         * modules/unistr/u16-mbtouc-tests: Likewise.
34276         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34277         * modules/unistr/u16-mbtoucr-tests: Likewise.
34278         * modules/unistr/u16-move-tests: Likewise.
34279         * modules/unistr/u16-next-tests: Likewise.
34280         * modules/unistr/u16-prev-tests: Likewise.
34281         * modules/unistr/u16-set-tests: Likewise.
34282         * modules/unistr/u16-stpcpy-tests: Likewise.
34283         * modules/unistr/u16-stpncpy-tests: Likewise.
34284         * modules/unistr/u16-strcat-tests: Likewise.
34285         * modules/unistr/u16-strcmp-tests: Likewise.
34286         * modules/unistr/u16-strcoll-tests: Likewise.
34287         * modules/unistr/u16-strcpy-tests: Likewise.
34288         * modules/unistr/u16-strdup-tests: Likewise.
34289         * modules/unistr/u16-strlen-tests: Likewise.
34290         * modules/unistr/u16-strmblen-tests: Likewise.
34291         * modules/unistr/u16-strmbtouc-tests: Likewise.
34292         * modules/unistr/u16-strncat-tests: Likewise.
34293         * modules/unistr/u16-strncmp-tests: Likewise.
34294         * modules/unistr/u16-strncpy-tests: Likewise.
34295         * modules/unistr/u16-strnlen-tests: Likewise.
34296         * modules/unistr/u16-to-u32-tests: Likewise.
34297         * modules/unistr/u16-to-u8-tests: Likewise.
34298         * modules/unistr/u16-uctomb-tests: Likewise.
34299         * modules/unistr/u32-check-tests: Likewise.
34300         * modules/unistr/u32-chr-tests: Likewise.
34301         * modules/unistr/u32-cmp-tests: Likewise.
34302         * modules/unistr/u32-cmp2-tests: Likewise.
34303         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34304         * modules/unistr/u32-cpy-tests: Likewise.
34305         * modules/unistr/u32-mblen-tests: Likewise.
34306         * modules/unistr/u32-mbsnlen-tests: Likewise.
34307         * modules/unistr/u32-mbtouc-tests: Likewise.
34308         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34309         * modules/unistr/u32-mbtoucr-tests: Likewise.
34310         * modules/unistr/u32-move-tests: Likewise.
34311         * modules/unistr/u32-next-tests: Likewise.
34312         * modules/unistr/u32-prev-tests: Likewise.
34313         * modules/unistr/u32-set-tests: Likewise.
34314         * modules/unistr/u32-stpcpy-tests: Likewise.
34315         * modules/unistr/u32-stpncpy-tests: Likewise.
34316         * modules/unistr/u32-strcat-tests: Likewise.
34317         * modules/unistr/u32-strcmp-tests: Likewise.
34318         * modules/unistr/u32-strcoll-tests: Likewise.
34319         * modules/unistr/u32-strcpy-tests: Likewise.
34320         * modules/unistr/u32-strdup-tests: Likewise.
34321         * modules/unistr/u32-strlen-tests: Likewise.
34322         * modules/unistr/u32-strmblen-tests: Likewise.
34323         * modules/unistr/u32-strmbtouc-tests: Likewise.
34324         * modules/unistr/u32-strncat-tests: Likewise.
34325         * modules/unistr/u32-strncmp-tests: Likewise.
34326         * modules/unistr/u32-strncpy-tests: Likewise.
34327         * modules/unistr/u32-strnlen-tests: Likewise.
34328         * modules/unistr/u32-to-u16-tests: Likewise.
34329         * modules/unistr/u32-to-u8-tests: Likewise.
34330         * modules/unistr/u32-uctomb-tests: Likewise.
34331         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34332         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34333         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34334         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34335         * modules/uniwidth/u8-strwidth-tests: Likewise.
34336         * modules/uniwidth/u8-width-tests: Likewise.
34337         * modules/uniwidth/u16-strwidth-tests: Likewise.
34338         * modules/uniwidth/u16-width-tests: Likewise.
34339         * modules/uniwidth/u32-strwidth-tests: Likewise.
34340         * modules/uniwidth/u32-width-tests: Likewise.
34341         * modules/uniwidth/width-tests: Likewise.
34342
34343 2010-05-18  Richard Jones  <rjones@redhat.com>
34344
34345         doc: users.txt: list hivex
34346         * users.txt: Add hivex.
34347
34348 2010-05-18  Richard Jones  <rjones@redhat.com>
34349
34350         doc: users.txt: list febootstrap
34351         * users.txt: Add febootstrap.
34352
34353 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34354
34355         bootstrap: fix an error when gnulib is not used as a git submodule
34356         * build-aux/bootstrap (gnulib_path): If its length is zero then
34357         assign "gnulib" to it.
34358         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34359
34360 2010-05-16  Bruno Haible  <bruno@clisp.org>
34361
34362         Avoid autoconf warnings about AM_ICONV.
34363         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34364         2.64.
34365
34366 2010-05-16  Bruno Haible  <bruno@clisp.org>
34367
34368         absolute-header: Make the macro usable in more situations.
34369         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34370         from gl_ABSOLUTE_HEADER.
34371         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34372
34373 2010-05-16  James Youngman  <jay@gnu.org>
34374
34375         doc: update users.txt
34376         * users.txt: Add CSSC.
34377
34378 2010-05-16  Jim Meyering  <meyering@redhat.com>
34379
34380         init.sh: fix an error in the previous change; add more comments
34381         * tests/init.sh: Compare exit code in loop against 9, not 2.
34382         Patch by Bruno Haible.
34383         Make the two tests more similar by adding an empty "then" clause.
34384         Add comments.
34385
34386         init.sh: avoid unnecessary shell re-exec
34387         * tests/init.sh: Improve the re-exec-required check to first test the
34388         current shell.  If it passes the test, do not search for a shell that
34389         does pass, and do not re-exec.  This test is particularly contorted to
34390         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34391         of $(...) evokes a syntax error and causes immediate shell exit with
34392         status 2.  Bruno Haible reported that the re-exec made it impossible
34393         to single-step through any init.sh-using script.
34394
34395 2010-05-16  Bruno Haible  <bruno@clisp.org>
34396
34397         Fix collision between gnulib's and libintl's printf replacements.
34398         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34399         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34400         (printf): When using GNU C, map the __printf__ function to rpl_printf
34401         via __asm__. When not using GNU C, define rpl_printf instead of
34402         __printf__.
34403         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34404         commit.
34405         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34406         commit.
34407         * m4/asm-underscore.m4: New file.
34408         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34409         * modules/stdio (Files): Add m4/asm-underscore.m4.
34410         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34411         Reported by Ben Pfaff.
34412
34413 2010-05-16  Bruno Haible  <bruno@clisp.org>
34414
34415         verify: Avoid skipping the test on openSUSE 11.0.
34416         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34417
34418 2010-05-13  Bruno Haible  <bruno@clisp.org>
34419
34420         Avoid useless warnings from G++.
34421         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34422         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34423         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34424
34425 2010-05-11  Jim Meyering  <meyering@redhat.com>
34426
34427         maint.mk: tweak preceding change
34428         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34429         regexps tighter by anchoring at EOL, and make the new group "shy"
34430         for slightly decreased overhead.
34431
34432 2010-05-11  Eric Blake  <eblake@redhat.com>
34433
34434         maint.mk: gnulib doesn't guarantee NSIG
34435         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34436
34437 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34438
34439         test-pwrite.c: Remove unused variable declaration.
34440         * tests/test-pwrite.c (main): Remove read_buf declaration.
34441
34442         Remove useless test-pwrite.sh file.
34443         * tests/test-pwrite.sh: Delete file.
34444         * modules/pwrite-tests: Remove references.
34445         Reported by Bruno Haible.
34446
34447 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34448
34449         init.sh: fix a typo
34450         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34451
34452 2010-05-10  Jim Meyering  <meyering@redhat.com>
34453
34454         maint.mk: avoid using a temporary file in the always-defined-macros check
34455         * top/maint.mk (.re-defmac): Remove rule.
34456         (gl_trap_): Remove definition.
34457         (sc_prohibit_always-defined_macros): Rewrite not to create and
34458         depend on a temporary file.  Instead, depend on GNU grep's ability
34459         to read a list of regular expressions from stdin when given "-f -".
34460
34461 2010-05-09  Bruno Haible  <bruno@clisp.org>
34462
34463         Update to GNU gettext 0.18, part 1.
34464         * m4/gettext.m4: Update to GNU gettext 0.18.
34465         * m4/intl.m4: Likewise.
34466         * m4/po.m4: Likewise.
34467         * modules/gettext (Files): Add m4/fcntl-o.m4.
34468         (configure.ac): Require gettext infrastructure from version 0.18.
34469
34470 2010-05-09  Jim Meyering  <meyering@redhat.com>
34471
34472         init.sh: enable MALLOC_PERTURB_
34473         * tests/init.sh: Enable glibc's malloc-perturbing option.
34474
34475         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34476         With my recent change in init.sh from the two-line form:
34477             -#   : ${srcdir=.}
34478             -#   . "$srcdir/init.sh"; path_prepend_ .
34479             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34480         I noticed that using the one-line form would cause this test
34481         to fail with a false-positive, or to stop working altogether,
34482         depending on whether help-version changed or all the tests did.
34483         * top/maint.mk (_hv_regex): Remove this definition.
34484         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34485         (_hv_regex_strong): Use a stronger regex to check for conformance.
34486         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34487         Give a separate diagnostic for lack of conforming use.
34488
34489         maint.mk: prohibit definition of symbols defined by gnulib
34490         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34491         definition of symbols defined by gnulib.
34492
34493 2010-05-09  Bruno Haible  <bruno@clisp.org>
34494
34495         acl: Avoid test failure on Cygwin-hosted mingw.
34496         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34497
34498 2010-05-09  Bruno Haible  <bruno@clisp.org>
34499
34500         error: Use system's fcntl function.
34501         * lib/error.c (fcntl): Undefine.
34502
34503 2010-05-09  Jim Meyering  <meyering@redhat.com>
34504
34505         verify: adjust formatting to be more consistent
34506         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34507         argument-list '('s, and after one comma.
34508
34509 2010-05-09  Bruno Haible  <bruno@clisp.org>
34510
34511         error: More reliable output on mingw.
34512         * lib/error.c: Include <windows.h>.
34513         (is_open): New function.
34514         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34515         defined.
34516
34517 2010-05-09  Bruno Haible  <bruno@clisp.org>
34518
34519         vasnprintf: Fix syntax errors in libintl build on mingw.
34520         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34521         pad_ourselves and prec_ourselves after use.
34522
34523 2010-05-08  Bruno Haible  <bruno@clisp.org>
34524
34525         * lib/config.charset: Update comments for Cygwin 1.7.
34526         * lib/localcharset.c: Likewise.
34527
34528 2010-05-07  Jim Meyering  <meyering@redhat.com>
34529
34530         init.sh: improve comments
34531         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34532         . "${srcdir=.}/init.sh"; path_prepend_ .
34533         Add a note about path_prepend_ and the alternative of using
34534         TESTS_ENVIRONMENT.
34535
34536 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34537
34538         exclude: Unescape hashed patterns in wildcard mode.
34539         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34540         to the hash list.
34541         * tests/test-exclude8.sh: New test case.
34542         * modules/exclude-tests: Add new test.
34543
34544 2010-05-05  Eric Blake  <eblake@redhat.com>
34545
34546         verify: automate tests
34547         * modules/verify-tests: New module.
34548         * tests/test-verify.sh: New file.
34549         * tests/test-verify.c: Guard each negative test with a unique id.
34550         Also avoid warning about unused left hand of comma expressions.
34551
34552 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34553
34554         Further improvements to verify.h, suggested by Eric Blake.
34555         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34556         the GL_* versions, to avoid collision with OpenGL.
34557         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34558         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34559         than testing merely whether it's defined.
34560
34561         Modify verify.h to pacify gcc -Wredundant_decls.
34562         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34563         These use the prefix "GL_" since they're likely to be useful elsewhere.
34564         We may need to break them out into a different .h file.
34565         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34566         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34567         of verify_function__.
34568
34569 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34570
34571         Tests for module pwrite.
34572         * modules/pwrite-tests: New file.
34573         * tests/test-pwrite.sh: New file.
34574         * tests/test-pwrite.c: New file.
34575
34576         New module pwrite.
34577         * lib/unistd.in.h (pwrite): New declaration.
34578         * lib/pwrite.c: New file, from glibc with modifications.
34579         * m4/pwrite.m4: New file.
34580         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34581         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34582         REPLACE_PWRITE.
34583         * modules/pwrite: New file.
34584         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34585         REPLACE_PWRITE.
34586         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34587         * doc/posix-functions/pwrite.texi: Mention the new module.
34588
34589 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34590
34591         pread: Update documentation.
34592         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34593
34594 2010-05-04  Eric Blake  <eblake@redhat.com>
34595
34596         docs: update cygwin progress
34597         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34598         this bug.
34599         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34600         Added in cygwin 1.7.2.
34601         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34602         Likewise.
34603         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34604         Likewise.
34605         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34606         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34607         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34608         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34609         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34610         Mention nproc module.
34611         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34612         bug in cygwin 1.7.5 addition.
34613         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34614         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34615         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34616         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34617         1.7.5.
34618         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34619         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34620         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34621         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34622         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34623         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34624         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34625         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34626         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34627         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34628         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34629         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34630         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34631         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34632         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34633         Likewise.
34634         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34635         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34636         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34637         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34638         Likewise.
34639         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34640         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34641         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34642         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34643         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34644         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34645         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34646         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34647         Likewise.
34648         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34649         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34650         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34651         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34652         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34653         Likewise.
34654         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34655         Likewise.
34656         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34657         Likewise.
34658         * doc/glibc-functions/xdrrec_endofrecord.texi
34659         (xdrrec_endofrecord): Likewise.
34660         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34661         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34662         Likewise.
34663         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34664         Likewise.
34665
34666 2010-05-04  Jim Meyering  <meyering@redhat.com>
34667
34668         gendocs.sh: make its "-s FILE" option more useful
34669         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34670         $PACKAGE to reflect the probably-different basename of "FILE".
34671
34672 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34673
34674         bootstrap: don't ignore download_po_files failure
34675         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34676         failure.
34677
34678 2010-05-03  Jim Meyering  <meyering@redhat.com>
34679
34680         maint.mk: allow to pass options to gendocs.sh
34681         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34682         (gendocs_options_): New overridable variable.
34683
34684         gnu-web-doc-update: don't ignore configure or build failure
34685         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34686
34687         announce-gen: backslash-escape '@'s in --help output
34688         * build-aux/announce-gen: Fix syntax errors.
34689
34690         maint.mk, announce-gen: allow project-specific announcement mail headers
34691         * top/maint.mk (translation_project_): Define default.
34692         (announcement_Cc_, announcement_mail_headers_): Likewise.
34693         (announcement): Invoke announce-gen with new --mail-headers option.
34694         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34695
34696         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34697         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34698         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34699         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34700         line in the "err2" output file when running "make check" in verbose
34701         mode (i.e., with set -x enabled).
34702
34703 2010-05-03  Bruno Haible  <bruno@clisp.org>
34704
34705         wctob: Fix for weird platforms.
34706         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34707         argument value.
34708
34709 2010-05-03  Jim Meyering  <meyering@redhat.com>
34710
34711         maint.mk: prohibit unwarranted use of <strings.h>
34712         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34713         strings.h in a file that does not also use strcasecmp, strncasecmp,
34714         ffs or ffsll.
34715
34716         maint.mk: remove obsolete comments
34717         * top/maint.mk: Remove stale, commented-out rules.
34718
34719 2010-05-02  Bruno Haible  <bruno@clisp.org>
34720
34721         wcwidth: Declare also when it's aliased.
34722         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34723         macro.
34724
34725 2010-05-02  Bruno Haible  <bruno@clisp.org>
34726
34727         Fix regression from 2010-04-25.
34728         * gnulib-tool (func_modules_transitive_closure): Check the status of
34729         all modules, not only of the tests that are of the form foo-tests where
34730         foo is a module.
34731
34732 2010-05-02  Bruno Haible  <bruno@clisp.org>
34733
34734         wctob: Work around nasty Cygwin 1.7.2 bug.
34735         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34736         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34737
34738 2010-05-01  Bruno Haible  <bruno@clisp.org>
34739
34740         fpurge: Sharper test.
34741         * tests/test-fpurge.c (main): Add one more ftell check.
34742         * modules/fpurge-tests (Depends-on): Add ftell.
34743         Suggested by Eric Blake.
34744
34745 2010-05-01  Bruno Haible  <bruno@clisp.org>
34746
34747         ftello: Another test.
34748         * tests/test-ftello3.c: New file.
34749         * modules/ftello-tests (Files): Add it.
34750         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34751         MOSTLYCLEANFILES.
34752
34753         ftell: Another test.
34754         * tests/test-ftell3.c: New file.
34755         * modules/ftell-tests (Files): Add it.
34756         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34757         MOSTLYCLEANFILES.
34758
34759 2010-05-01  Bruno Haible  <bruno@clisp.org>
34760
34761         ftell, ftello: Work around Solaris bug.
34762         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34763         * lib/ftello.c: Include stdio-impl.h.
34764         (ftello): On Solaris, when _IOWRT is set, compute the result without
34765         looking at _IOREAD.
34766         * modules/ftello (Files): Add lib/stdio-impl.h.
34767         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34768         * doc/posix-functions/ftello.texi: Likewise.
34769         Reported by Eric Blake.
34770
34771 2010-05-01  Bruno Haible  <bruno@clisp.org>
34772
34773         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34774         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34775         the _IOWRT flag is also set.
34776
34777 2010-05-01  Bruno Haible  <bruno@clisp.org>
34778
34779         Fix doc about a HP-UX stdio bug.
34780         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34781         * doc/posix-functions/ftello.texi: Likewise.
34782
34783 2010-05-01  Bruno Haible  <bruno@clisp.org>
34784
34785         lseek test: Fix failure on Solaris.
34786         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34787         output.
34788
34789 2010-04-30  Jim Meyering  <meyering@redhat.com>
34790
34791         bootstrap: don't ignore failure to generate po*/Makevars
34792         * build-aux/bootstrap (with_gettext): Don't ignore failure
34793         to create po/Makevars or runtime-po/Makevars.
34794
34795 2010-04-29  Eric Blake  <eblake@redhat.com>
34796
34797         headers: relax license to LGPLv2+
34798         * modules/fcntl-h (License): Relax license.
34799         * modules/getopt-posix (License): Likewise.
34800         * modules/locale (License): Likewise.
34801         * modules/math (License): Likewise.
34802         * modules/pty (License): Likewise.
34803         * modules/sched (License): Likewise.
34804         * modules/search (License): Likewise.
34805         * modules/spawn (License): Likewise.
34806         * modules/stdarg (License): Likewise.
34807         * modules/sysexits (License): Likewise.
34808
34809 2010-04-29  Jim Meyering  <meyering@redhat.com>
34810
34811         inttypes: relax license to LGPLv2+
34812         * modules/inttypes (License): Relax license.
34813
34814 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34815
34816         * top/maint.mk (indent): Run twice to produce idempotent results.
34817
34818 2010-04-28  Bruno Haible  <bruno@clisp.org>
34819
34820         getdate: Generate getdate.c in the source directory.
34821         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34822         MOSTLYCLEANFILES.
34823         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34824
34825 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34826
34827         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34828         is not declared as a const *; avoid warnings in that case.
34829
34830 2010-04-28  Eric Blake  <eblake@redhat.com>
34831
34832         canonicalize-lgpl: avoid compiler warning
34833         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34834         declaration' / 'extraneous semicolon' warning with some compilers.
34835         Reported by Andreas Gruenbacher.
34836
34837 2010-04-28  Jim Meyering  <meyering@redhat.com>
34838
34839         init.sh: ensure a more reliable exit status when exiting via trap
34840         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34841         Inspired by patches from Dmitry V. Levin.
34842         Also trap on signal 3 (SIGQUIT).
34843
34844 2010-04-27  Bruno Haible  <bruno@clisp.org>
34845
34846         Update doc about utimes().
34847         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34848         'utimens' module.
34849         Reported by Andreas Gruenbacher <agruen@suse.de>.
34850
34851 2010-04-27  Eric Blake  <eblake@redhat.com>
34852
34853         full-read, full-write: relax license
34854         * modules/full-read (License): Drop to LGPLv2+.
34855         * modules/full-write (License): Likewise.
34856         * modules/safe-read (License): Likewise.
34857         * modules/safe-write (License): Likewise.
34858
34859         pthread: mention library for linking
34860         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34861
34862 2010-04-27  Jim Meyering  <meyering@redhat.com>
34863
34864         maint.mk: fix a bug introduced in last change
34865         * top/maint.mk (gl_assured_headers_): Now that all names are on
34866         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34867         is not anchored to end of word, it should be adequate.
34868
34869         maint.mk: avoid side-effect in latest syntax-check
34870         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34871         to run commands via $(shell...), and hence to incur cost only when
34872         the new rule is actually run.
34873
34874         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34875         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34876         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34877         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34878         (gl_assured_headers_, az_, AZ_): Define.
34879         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34880
34881 2010-04-26  Jim Meyering  <jim@meyering.net>
34882             Bruno Haible  <bruno@clisp.org>
34883
34884         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34885         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34886         Prompted by an exchange with Gilles Espinasse.
34887
34888 2010-04-26  Jim Meyering  <meyering@redhat.com>
34889
34890         git-version-gen: aesthetic tweak
34891         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34892         so that the command remains on a single line.
34893
34894 2010-04-26  Eric Blake  <eblake@redhat.com>
34895
34896         git-version-gen: allow use on EBCDIC hosts
34897         * build-aux/git-version-gen (dirty): Use literal rather than tying
34898         ourselves to ascii.
34899         Reported by Steve Goetze.
34900
34901 2010-04-25  Bruno Haible  <bruno@clisp.org>
34902
34903         netdb: Add support for GNULIB_POSIXCHECK.
34904         * lib/netdb.in.h: Include warn-on-use.h.
34905         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34906         functions are used when GNULIB_POSIXCHECK is defined and the
34907         getaddrinfo module is not in use.
34908         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34909         freeaddrinfo, gai_strerror, getnameinfo are declared.
34910         * modules/netdb (Depends-on): Add warn-on-use.
34911         (Makefile.am): Include warn-on-use.h in netdb.h.
34912
34913 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34914
34915         build: avoid "make check" failure without .git/ directory
34916         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34917         there is no .git/ directory.
34918
34919 2010-04-25  Bruno Haible  <bruno@clisp.org>
34920
34921         ptsname: Fix misuse of ttyname_r.
34922         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34923         of errno.
34924
34925 2010-04-25  Bruno Haible  <bruno@clisp.org>
34926
34927         ttyname_r: Make it work on Solaris 10.
34928         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34929         if the system function has the POSIX declaration. Test whether the
34930         function fails if the buffer is less than 128 bytes large.
34931         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34932         system's ttyname_r function. Provide a reasonably large buffer.
34933         * modules/ttyname_r (Depends-on): Add extensions.
34934         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34935
34936 2010-04-25  Bruno Haible  <bruno@clisp.org>
34937
34938         Use the 'extensions' module for some more functions on Solaris.
34939         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34940         module.
34941         * doc/posix-functions/ctime_r.texi: Likewise.
34942         * doc/posix-functions/getgrgid_r.texi: Likewise.
34943         * doc/posix-functions/getgrnam_r.texi: Likewise.
34944         * doc/posix-functions/getpwnam_r.texi: Likewise.
34945         * doc/posix-functions/getpwuid_r.texi: Likewise.
34946         * doc/posix-functions/readdir_r.texi: Likewise.
34947         * doc/posix-functions/sigwait.texi: Likewise.
34948         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34949         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34950
34951 2010-04-25  Bruno Haible  <bruno@clisp.org>
34952
34953         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34954         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34955         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34956         * lib/ttyname_r.c: Include <limits.h>.
34957         (ttyname_r): Define using the system's ttyname_r function, if it exists
34958         and not on Solaris.
34959         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34960         set.
34961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34962         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34963         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34964         Reported by Simon Josefsson.
34965
34966 2010-04-25  Bruno Haible  <bruno@clisp.org>
34967
34968         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34969         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34970         * doc/posix-functions/ctime_r.texi: Likewise.
34971         * doc/posix-functions/getgrgid_r.texi: Likewise.
34972         * doc/posix-functions/getgrnam_r.texi: Likewise.
34973         * doc/posix-functions/getlogin_r.texi: Likewise.
34974         * doc/posix-functions/getpwnam_r.texi: Likewise.
34975         * doc/posix-functions/getpwuid_r.texi: Likewise.
34976         * doc/posix-functions/readdir_r.texi: Likewise.
34977         * doc/posix-functions/sigwait.texi: Likewise.
34978         * doc/posix-functions/ttyname_r.texi: Likewise.
34979         Reported by Simon Josefsson.
34980
34981 2010-04-25  Bruno Haible  <bruno@clisp.org>
34982
34983         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34984         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34985         also to --create-testdir.
34986         (func_acceptable): Don't consider the status of *-tests modules here.
34987         (func_modules_transitive_closure): Consider it here, before including a
34988         test module.
34989         (func_import, func_create_testdir): Set inc_all_direct_tests,
34990         inc_all_indirect_tests.
34991         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34992         --create-testdir and --create-megatestdir.
34993
34994 2010-04-25  Bruno Haible  <bruno@clisp.org>
34995
34996         gnulib-tool: Add --without-*-tests options.
34997         * gnulib-tool (func_usage): Document the --without-*-tests options.
34998         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34999         excl_unportable_tests): New variables.
35000         Fail if they are specified with --import or --update.
35001         (func_acceptable): Respect the excl_*_tests variables.
35002         (func_import): Set the excl_*_tests variables to empty.
35003
35004 2010-04-25  Simon Josefsson  <simon@josefsson.org>
35005             Bruno Haible  <bruno@clisp.org>
35006
35007         Work around a MacOS X 10.4 bug with openpty.
35008         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
35009         * tests/test-openpty.c (main): Close the master side explicitly.
35010
35011 2010-04-25  Bruno Haible  <bruno@clisp.org>
35012
35013         strnlen: Fix a C++ test error on MacOS X and Solaris.
35014         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
35015         the function is not declared.
35016         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
35017         Simon Josefsson.
35018
35019 2010-04-24  Bruno Haible  <bruno@clisp.org>
35020
35021         Avoid a gcc warning.
35022         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
35023         of correct type for %08lx directive.
35024         Reported by Eric Blake.
35025
35026 2010-04-24  Bruno Haible  <bruno@clisp.org>
35027
35028         vasnprintf: Correct errno value in case of out-of-memory.
35029         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
35030         or sprintf. Use the errno value from SNPRINTF or sprintf.
35031         Reported by Ian Beckwith <ianb@erislabs.net>.
35032
35033 2010-04-24  Bruno Haible  <bruno@clisp.org>
35034
35035         ansi-c++-opt: Find correct compiler when cross-compiling.
35036         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
35037         AC_CHECK_PROGS.
35038         Reported by Simon Josefsson.
35039
35040 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
35041
35042         vc-list-files: Add support for subversion
35043         * build-aux/vc-list-files: Use "svn list" to generate the list of
35044         files controlled by subversion.
35045
35046 2010-04-23  Jim Meyering  <meyering@redhat.com>
35047
35048         vc-list-files tests: convert to use init.sh
35049         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
35050         path_prepend_.
35051         Use Exit, not exit.
35052         Use skip_ rather than open coding it.
35053         Remove trap set-up and compare definitions.
35054         * tests/test-vc-list-files-git.sh: Likewise.
35055         * modules/vc-list-files-tests (Files): Add tests/init.sh.
35056
35057 2010-04-22  Simon Josefsson  <simon@josefsson.org>
35058
35059         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
35060         backup files.
35061
35062 2010-04-21  Simon Josefsson  <simon@josefsson.org>
35063
35064         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
35065
35066 2010-04-20  Eric Blake  <eblake@redhat.com>
35067
35068         tests: be robust to ignored SIGPIPE
35069         * tests/test-select-in.sh: Consume all output.
35070         * tests/test-lseek.sh: Check correct exit status, while avoiding
35071         EPIPE.
35072
35073 2010-04-20  Simon Josefsson  <simon@josefsson.org>
35074             Bruno Haible  <bruno@clisp.org>
35075
35076         visibility: Don't use -fvisibility if it leads to a warning.
35077         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35078         yes, don't pretend that visibility works if it leads to a warning.
35079         Reported by Mike Gran <spk121@yahoo.com>.
35080
35081 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35082
35083         * build-aux/bootstrap: Use "git -h" for testing for supported options
35084         instead of "git --help".  The short-form option only shows a summary,
35085         and doesn't layout the full man page.  Grep for the full option name
35086         in the summary, too.
35087
35088 2010-04-19  Bruno Haible  <bruno@clisp.org>
35089
35090         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35091         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35092         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35093         mention of RELOCATABLE_STRIP.
35094         Reported by Sylvain Beucler <beuc@beuc.net>.
35095
35096 2010-04-19  Bruno Haible  <bruno@clisp.org>
35097
35098         * lib/diffseq.h: Fix typo in comment.
35099         Reported by Eric Blake.
35100
35101 2010-04-19  Bruno Haible  <bruno@clisp.org>
35102
35103         ioctl: Move autoconf macro to a .m4 file.
35104         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35105         * modules/ioctl (Files): Add it.
35106         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35107         Reported by Ian Beckwith <ianb@erislabs.net>.
35108
35109 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35110             Bruno Haible  <bruno@clisp.org>
35111
35112         diffseq: Accommodate use-case with abstract arrays.
35113         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35114         is not defined.
35115         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35116         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35117
35118 2010-04-18  Bruno Haible  <bruno@clisp.org>
35119
35120         * doc/posix-headers/stdbool.texi: More precise wording.
35121
35122 2010-04-17  Jim Meyering  <meyering@redhat.com>
35123
35124         maint.mk: use gnu-style indentation in an embedded perl script
35125         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35126         Rename variable: s/two/last_two_bytes/
35127
35128 2010-04-16  Eric Blake  <eblake@redhat.com>
35129
35130         test-stdbool: skip test that fails with Solaris CC
35131         * tests/test-stdbool.c (f): Skip test that causes compilation
35132         error under buggy C++ compiler.
35133         * lib/stdbool.in.h: Document the limitation.
35134         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35135
35136         setenv: allow compilation with C++
35137         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35138         register keyword.
35139
35140         stdint: allow test to pass with C++
35141         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35142
35143         getopt: allow compilation with C++
35144         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35145         struct.
35146         * lib/getopt.c (_getopt_internal_r): Use correct type.
35147         Reported by Dagobert Michelson, via Joel E. Denny.
35148
35149 2010-04-16  Bruno Haible  <bruno@clisp.org>
35150
35151         Override netdb.h always.
35152         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35153         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35154         Reported by Ludovic Courtès <ludo@gnu.org>.
35155
35156 2010-04-15  Bruno Haible  <bruno@clisp.org>
35157
35158         openpty: Fix mistake from 2010-03-21.
35159         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35160         Reported by Simon Josefsson.
35161
35162 2010-04-15  Eric Blake  <eblake@redhat.com>
35163
35164         test-forkpty: fix expected signature
35165         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35166         Reported by Simon Josefsson.
35167
35168 2010-04-15  Jim Meyering  <meyering@redhat.com>
35169
35170         maint.mk: texinfo_suffix_re_: correct the default regexp
35171         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35172
35173         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35174         make it configurable via texinfo_suffix_re_.
35175
35176 2010-04-14  Eric Blake  <eblake@redhat.com>
35177
35178         strtok_r: relax license to LGPLv2+
35179         * modules/strtok_r (License): Relax license.
35180         Reported by Matthias Bolte.
35181
35182 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35183
35184         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35185         version 1.4.4 by default instead of requiring the libgcrypt
35186         version used during build.  This makes it possible to use the
35187         application with older but still binary compatible libgcrypt
35188         versions.
35189
35190 2010-04-13  Eric Blake  <eblake@redhat.com>
35191
35192         getopt-gnu: match recent glibc fixes and posix ruling
35193         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35194         '+' handling, when requesting extensions.
35195         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35196         'W;' handling.
35197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35198         * doc/posix-functions/getopt.texi (getopt): Document this.
35199         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35200         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35201         Likewise.
35202
35203         getopt: merge bug fixes from glibc
35204         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35205         diagnostics.  Honor '+:' correctly.  Reject ';'.
35206
35207         getopt-posix: detect MacOS bug
35208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35209         optind when missing a required argument.
35210         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35211         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35212         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35213         Likewise.
35214
35215         getopt-posix: avoid spurious failure on Solaris
35216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35217         an indicator that setting optind=1 is sufficient for reset.
35218
35219         getopt-posix: avoid spurious failure on FreeBSD
35220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35221         in POSIX mode, since the m4 test uses it.
35222
35223         gnulib-tool: silence warning on BSD sh
35224         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35225
35226 2010-04-13  Jim Meyering  <meyering@redhat.com>
35227
35228         doc: users.txt: GNU patch now uses gnulib
35229         * users.txt: Add patch.
35230
35231 2010-04-12  Jim Meyering  <meyering@redhat.com>
35232
35233         maint.mk: generate more concise timing data for syntax-check rules
35234         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35235         " done" from each line that reports a syntax-check test duration.
35236
35237 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35238
35239         git-version-gen: use "git update-index..." rather than "git status"
35240         * build-aux/git-version-gen: Use git update-index --refresh, not
35241         "git status".  With some versions of git, "git status" would fail
35242         to update the index and result in an unwarranted "-dirty" suffix.
35243
35244 2010-04-11  Jim Meyering  <meyering@redhat.com>
35245
35246         openat: correct formatting (no semantic change)
35247         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35248         Suggested by Bruno Haible.
35249
35250 2010-04-11  Bruno Haible  <bruno@clisp.org>
35251
35252         Stricter declaration checking in testdirs.
35253         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35254         If for_tests is true, augment AM_CPPFLAGS to define
35255         GNULIB_STRICT_CHECKING.
35256         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35257         GNULIB_STRICT_CHECKING is defined, verify that the function is
35258         declared.
35259
35260 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35261             Bruno Haible  <bruno@clisp.org>
35262
35263         libunistring: Improve configure output.
35264         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35265         Don't say "consider installing GNU libunistring" when checking again
35266         with libiconv.
35267
35268 2010-04-11  Bruno Haible  <bruno@clisp.org>
35269
35270         libunistring: Correct value of $LTLIBUNISTRING.
35271         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35272         correct the value of $LTLIBUNISTRING.
35273
35274 2010-04-11  Bruno Haible  <bruno@clisp.org>
35275
35276         havelib: Add static libraries to LIBS in the right order.
35277         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35278         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35279
35280 2010-04-11  Bruno Haible  <bruno@clisp.org>
35281
35282         libunistring: Detect libunistring also when it depends on libiconv.
35283         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35284         the second AC_LIB_HAVE_LINKFLAGS invocation.
35285
35286 2010-04-11  James Youngman  <jay@gnu.org>
35287
35288         close-stream: declare local scalars to be "const"
35289         * lib/close-stream.c (close_stream): Make boolean variables const
35290         to document the fact that we set but do not change them.
35291
35292 2010-04-11  Bruno Haible  <bruno@clisp.org>
35293
35294         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35295
35296 2010-04-11  Jim Meyering  <meyering@redhat.com>
35297
35298         maint.mk: don't include dist-check.mk
35299         * top/maint.mk: Remove bogus include directive.
35300
35301         maint.mk: improve empty-line-at-EOF check
35302         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35303         solution, rather than tail+Perl-based one.  The latter would read
35304         a few kilobytes from the end of each file, and did not handle empty
35305         files properly.
35306
35307         maint.mk: print the elapsed time for each syntax-check rule
35308         * top/maint.mk (sc_m_rules_): Save start time in a file.
35309         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35310         (local-check): Interpose the .z rules
35311
35312 2010-04-11  Jim Meyering  <meyering@redhat.com>
35313
35314         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35315         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35316         empty file with one that ends in an empty line.
35317
35318 2010-04-10  Bruno Haible  <bruno@clisp.org>
35319
35320         mkdir: Make it work on mingw64.
35321         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35322         * lib/mkdir.c: Update comment.
35323         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35324
35325 2010-04-10  Bruno Haible  <bruno@clisp.org>
35326
35327         Don't override improved macro from newer autoconf.
35328         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35329         autoconf >= 2.62.
35330         Reported by Joel E. Denny <jdenny@clemson.edu>.
35331
35332 2010-04-10  Jim Meyering  <meyering@redhat.com>
35333
35334         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35335         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35336
35337         maint.mk: correct a diagnostic
35338         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35339         in diagnostic; now use $prohibit.
35340
35341 2010-04-10  Bruno Haible  <address@hidden>
35342
35343         fchownat: Fix a C++ test error on Solaris 8.
35344         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35345         the function does not exist.
35346
35347 2010-04-10  Bruno Haible  <bruno@clisp.org>
35348
35349         vasnprintf: Add more tests.
35350         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35351         (test_function): Test converting an invalid wide string.
35352
35353         vasnprintf: Correct handling of unconvertible wide string arguments.
35354         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35355         VASNPRINTF.
35356         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35357         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35358         smaller than the expected maximum need for the directive. Set errno to
35359         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35360         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35362         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35363         * modules/vasnprintf (Files): Add m4/printf.m4.
35364         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35365
35366 2010-04-10  Bruno Haible  <bruno@clisp.org>
35367
35368         vasnprintf: Fix crash in %ls directive.
35369         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35370         string is passed as argument to %ls, with no precision and no width.
35371         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35372
35373 2010-04-10  Bruno Haible  <bruno@clisp.org>
35374
35375         vasnprintf: Fix multiple test failures on mingw.
35376         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35377         _snprintf, or snwprintf, not _snwprintf.
35378
35379 2010-04-10  Bruno Haible  <bruno@clisp.org>
35380
35381         write: Fix a C++ test error on mingw.
35382         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35383
35384 2010-04-10  Bruno Haible  <bruno@clisp.org>
35385
35386         vasnprintf test: Reduce code duplication.
35387         * tests/test-vasnprintf.c (test_function): New function, extracted from
35388         test_vasnprintf.
35389         (test_vasnprintf, test_asnprintf): Invoke it.
35390
35391 2010-04-10  Bruno Haible  <bruno@clisp.org>
35392
35393         strnlen: Fix warning in C++ mode on MacOS X.
35394         * lib/string.in.h (strnlen): Use the modern idiom.
35395         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35396         defining strnlen as a macro already in <config.h>.
35397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35398         REPLACE_STRNLEN.
35399         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35400         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35401
35402 2010-04-08  James Youngman  <jay@gnu.org>
35403
35404         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35405         the example.
35406
35407 2010-04-09  Jim Meyering  <meyering@redhat.com>
35408
35409         maint.mk: print better diagnostic when there is no $(_hv_file)
35410         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35411         announce that when $(_hv_file) (aka help-version) does not exist.
35412
35413         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35414         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35415         not try to interpret its random input bytes.  Jarno Rajahalme reported
35416         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35417         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35418         (mktempd_): Likewise, just in case.
35419
35420         ftruncate: add two years to projected module removal date: 2012
35421         * m4/ftruncate.m4: Adjust comments.
35422
35423         ftruncate: mark module as obsolete; even MinGW provides it, now
35424         * modules/ftruncate (Status): Obsolete.
35425         (Notice): Say that.
35426         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35427         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35428
35429 2010-04-08  Bruno Haible  <bruno@clisp.org>
35430
35431         Fix side effects from tests-related modules.
35432         * modules/dprintf-posix (Comment): New section.
35433         * modules/fprintf-posix (Comment): Likewise.
35434         * modules/obstack-printf-posix (Comment): Likewise.
35435         * modules/printf-posix (Comment): Likewise.
35436         * modules/snprintf-posix (Comment): Likewise.
35437         * modules/sprintf-posix (Comment): Likewise.
35438         * modules/vasnprintf-posix (Comment): Likewise.
35439         * modules/vasprintf-posix (Comment): Likewise.
35440         * modules/vdprintf-posix (Comment): Likewise.
35441         * modules/vfprintf-posix (Comment): Likewise.
35442         * modules/vprintf-posix (Comment): Likewise.
35443         * modules/vsnprintf-posix (Comment): Likewise.
35444         * modules/vsprintf-posix (Comment): Likewise.
35445         * modules/xprintf-posix (Comment): Likewise.
35446         * modules/xvasprintf-posix (Comment): Likewise.
35447         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35448         * modules/floorf-tests (Depends-on): Likewise.
35449         * modules/round-tests (Depends-on): Likewise.
35450         * modules/roundf-tests (Depends-on): Likewise.
35451         * modules/trunc-tests (Depends-on): Likewise.
35452         * modules/truncf-tests (Depends-on): Likewise.
35453         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35454         'fprintf-posix' module is not present.
35455         * tests/test-floorf2.c (check): Likewise.
35456         * tests/test-trunc2.c (check): Likewise.
35457         * tests/test-truncf2.c (check): Likewise.
35458         * tests/test-round2.c (equal): Likewise.
35459         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35460
35461 2010-04-07  Karl Berry  <karl@gnu.org>
35462
35463         * config/srclist.txt,
35464         * config/srclistvars.sh,
35465         * config/srclist-update: doc fixes.
35466
35467 2010-04-07  Jim Meyering  <meyering@redhat.com>
35468
35469         maint.mk: add a PATH crosschecking syntax-check rule
35470         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35471         Useful if you use a test like the one in help-version (coreutils,
35472         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35473         printed by prog --version.
35474
35475 2010-04-06  Bruno Haible  <bruno@clisp.org>
35476
35477         Fix link error on mingw.
35478         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35479         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35480
35481 2010-04-06  Bruno Haible  <bruno@clisp.org>
35482
35483         Assume rmdir exists.
35484         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35485
35486 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35487
35488         doc: update users.txt
35489         * users.txt: Add gcal.
35490
35491 2010-04-06  Jim Meyering  <meyering@redhat.com>
35492
35493         init.sh: simply unset TMPDIR rather than risking env -i
35494         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35495         although it probably works fine on all Unix-based systems, some
35496         systems (Cygwin?) cannot tolerate a totally cleared environment.
35497         Suggestion from Eric Blake.
35498
35499 2010-04-06  Jim Meyering  <meyering@redhat.com>
35500
35501         init.sh: portability fix: use env's POSIX-specified -i option not -u
35502         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35503         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35504
35505 2010-04-05  Bruno Haible  <bruno@clisp.org>
35506
35507         btowc: Work around Cygwin 1.7.2 bug.
35508         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35509         does not map NUL to 0.
35510         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35511
35512 2010-04-05  Bruno Haible  <bruno@clisp.org>
35513
35514         Make the multithread modules work on Cygwin 1.7.2.
35515         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35516         imported symbols can be declared weak, so that it returns "no" on
35517         Cygwin 1.7.2.
35518
35519 2010-04-05  Bruno Haible  <bruno@clisp.org>
35520
35521         Use the module 'strncat'.
35522         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35523
35524         Tests for module 'strncat'.
35525         * modules/strncat-tests: New file.
35526         * tests/test-strncat.c: New file.
35527
35528         New module 'strncat'.
35529         * lib/string.in.h (strncat): New declaration.
35530         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35531         * m4/strncat.m4: New file, based on m4/memchr.m4.
35532         * modules/strncat: New file.
35533         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35534         is declared.
35535         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35536         REPLACE_STRNCAT.
35537         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35538         REPLACE_STRNCAT.
35539         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35540         module.
35541         * tests/test-string-c++.cc: Check signature of strncat.
35542
35543 2010-04-05  Jim Meyering  <meyering@redhat.com>
35544
35545         xstrtoumax-tests: convert to use init.sh
35546         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35547         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35548         Use Exit, not exit.
35549         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35550
35551         xstrtoimax-tests: convert to use init.sh
35552         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35553         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35554         Use Exit, not exit.
35555         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35556
35557 2010-04-05  Bruno Haible  <bruno@clisp.org>
35558
35559         sys_socket: Avoid #define replacements in C++ mode.
35560         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35561         warning to the function if possible, rather than #defining the symbol
35562         to a dysfunctional alias.
35563
35564 2010-04-05  Bruno Haible  <bruno@clisp.org>
35565
35566         fseeko: Fix C++ test error on mingw.
35567         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35568         gl_FUNC_FSEEKO.
35569         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35570         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35571         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35572         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35573
35574 2010-04-05  Bruno Haible  <bruno@clisp.org>
35575
35576         duplocale: Improve test output.
35577         * tests/test-duplocale.c (main): Print reason for skipped test.
35578
35579 2010-04-05  Bruno Haible  <bruno@clisp.org>
35580
35581         Assume rmdir exists.
35582         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35583         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35584
35585 2010-04-05  Bruno Haible  <bruno@clisp.org>
35586
35587         Fix link error on Solaris 8 with cc.
35588         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35589
35590 2010-04-05  Bruno Haible  <bruno@clisp.org>
35591
35592         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35593         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35594
35595 2010-04-05  Bruno Haible  <bruno@clisp.org>
35596
35597         vasprintf: Update documentation.
35598         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35599
35600 2010-04-05  Bruno Haible  <bruno@clisp.org>
35601
35602         ptsname: Improve test.
35603         * tests/test-ptsname.c (main): Also try the various master names of BSD
35604         systems.
35605
35606 2010-04-05  Bruno Haible  <bruno@clisp.org>
35607
35608         memchr: Avoid a possible C++ test error.
35609         * lib/string.in.h (memchr): Provide declaration if function is missing.
35610         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35611         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35613         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35614
35615 2010-04-05  Bruno Haible  <bruno@clisp.org>
35616
35617         strtok_r: Improve idiom.
35618         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35619         AC_LIBOBJ is used.
35620
35621 2010-04-05  Bruno Haible  <bruno@clisp.org>
35622
35623         strdup: Improve idiom.
35624         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35625         AC_LIBOBJ is used.
35626         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35627         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35628         when AC_LIBOBJ is used.
35629
35630 2010-04-05  Bruno Haible  <bruno@clisp.org>
35631
35632         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35633         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35634         don't set REPLACE_MBSINIT to 1.
35635         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35636         don't set REPLACE_MBRTOWC to 1.
35637         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35638         exist, don't set REPLACE_MBSRTOWCS to 1.
35639         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35640         exist, don't set REPLACE_MBSNRTOWCS to 1.
35641         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35642         don't set REPLACE_WCRTOMB to 1.
35643         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35644         exist, don't set REPLACE_WCSRTOMBS to 1.
35645         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35646         exist, don't set REPLACE_WCSNRTOMBS to 1.
35647
35648 2010-04-05  Bruno Haible  <bruno@clisp.org>
35649
35650         ldexpl: Improve idiom.
35651         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35652         make sure to set HAVE_DECL_LDEXPL to 0.
35653
35654 2010-04-05  Jim Meyering  <meyering@redhat.com>
35655
35656         xstrtol-tests: convert to use init.sh
35657         * modules/xstrtol-tests (Files): Add tests/init.sh.
35658         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35659         Use Exit, not exit.
35660         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35661
35662         atexit-tests: convert to use init.sh
35663         * modules/atexit-tests (Files): Add tests/init.sh.
35664         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35665         Use Exit, not exit.
35666         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35667
35668         init.sh: fix typo
35669         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35670
35671         init.sh: make it easier for a test script to write to the tty, ...
35672         when using automake's parallel-tests mode.
35673         * tests/init.sh (stderr_fileno_): Define overridable variable.
35674         (warn_): New function, to use it.
35675         (fail_, skip_, framework_failure_): Use warn_.
35676
35677 2010-04-04  Bruno Haible  <bruno@clisp.org>
35678
35679         btowc: Avoid warning.
35680         * lib/btowc.c: Include <stdlib.h>.
35681         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35682
35683 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35684             Bruno Haible  <bruno@clisp.org>
35685
35686         wchar: Port to NetBSD 1.5.
35687         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35688         * lib/wctype.in.h (WEOF): Likewise.
35689
35690 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35691             Bruno Haible  <bruno@clisp.org>
35692
35693         Port extended stdio to NetBSD 1.5.
35694         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35695         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35696         older.
35697
35698 2010-04-04  Bruno Haible  <bruno@clisp.org>
35699
35700         string: Remove unused substitution.
35701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35702         HAVE_DECL_STRERROR.
35703         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35704
35705 2010-04-04  Bruno Haible  <bruno@clisp.org>
35706
35707         strtod: Avoid a possible C++ test error.
35708         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35709         set REPLACE_STRTOD.
35710
35711 2010-04-04  Bruno Haible  <bruno@clisp.org>
35712
35713         strerror: Update documentation.
35714         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35715
35716 2010-04-04  Bruno Haible  <bruno@clisp.org>
35717
35718         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35719         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35720         _GL_CXXALIAS_SYS_CAST.
35721
35722 2010-04-04  Bruno Haible  <bruno@clisp.org>
35723
35724         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35725         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35726         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35727         REPLACE_FREXPL to 1.
35728         * doc/posix-functions/frexpl.texi: Update documentation.
35729
35730 2010-04-04  Bruno Haible  <bruno@clisp.org>
35731
35732         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35733         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35734
35735 2010-04-04  Bruno Haible  <bruno@clisp.org>
35736
35737         Implement nanosleep for native Windows.
35738         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35739
35740 2010-04-04  Bruno Haible  <bruno@clisp.org>
35741
35742         math: Fix some C++ test errors on Solaris 8.
35743         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35744
35745 2010-04-04  Bruno Haible  <bruno@clisp.org>
35746
35747         math: Fix some C++ test errors on Cygwin.
35748         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35749         truncl): Provide declaration if the system does not have it.
35750         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35751         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35752         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35753         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35754         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35755         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35756         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35757         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35758         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35759         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35760         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35761         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35762         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35763         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35764         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35765         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35767         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35768         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35769         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35770         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35771         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35772
35773 2010-04-04  Bruno Haible  <bruno@clisp.org>
35774
35775         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35776         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35777         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35778         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35779         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35780         * m4/isinf.m4 (gl_ISINF): Likewise.
35781         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35782
35783 2010-04-04  Bruno Haible  <bruno@clisp.org>
35784
35785         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35786         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35787
35788 2010-04-04  Bruno Haible  <bruno@clisp.org>
35789
35790         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35791         * modules/tmpfile (configure.ac): Update.
35792
35793         tmpfile: Fix C++ test error on mingw.
35794         * lib/stdio.in.h (tmpfile): New declaration.
35795         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35796         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35797         * modules/tmpfile (Depends-on): Add stdio.
35798         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35799         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35800         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35801         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35802         REPLACE_TMPFILE.
35803         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35804
35805 2010-04-04  Bruno Haible  <bruno@clisp.org>
35806
35807         ioctl: Fix C++ test error on mingw.
35808         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35809         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35810         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35811
35812 2010-04-03  Bruno Haible  <bruno@clisp.org>
35813
35814         wcwidth: Fix C++ test error on mingw.
35815         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35817         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35818
35819 2010-04-03  Bruno Haible  <bruno@clisp.org>
35820
35821         nanosleep: Fix C++ test error on mingw.
35822         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35823         * lib/time.in.h (nanosleep): Use modern idiom.
35824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35825         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35826         REPLACE_NANOSLEEP to 1.
35827         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35828         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35829
35830 2010-04-03  Bruno Haible  <bruno@clisp.org>
35831
35832         strptime: Fix C++ test error on mingw.
35833         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35834         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35835         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35836         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35837         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35838         not REPLACE_STRPTIME.
35839         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35840         REPLACE_STRPTIME.
35841
35842 2010-04-03  Bruno Haible  <bruno@clisp.org>
35843
35844         timegm: Fix C++ test error on mingw.
35845         * lib/time.in.h (timegm): Use modern idiom.
35846         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35847         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35848         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35849         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35850
35851 2010-04-03  Bruno Haible  <bruno@clisp.org>
35852
35853         timegm: Assume declaration if function exists.
35854         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35855         if it exists. Don't clobber ac_cv_func_timegm.
35856
35857 2010-04-03  Bruno Haible  <bruno@clisp.org>
35858
35859         time_r: Fix C++ test error on mingw.
35860         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35861         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35862         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35863         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35864         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35865
35866 2010-04-03  Bruno Haible  <bruno@clisp.org>
35867
35868         time_r: Minor updates.
35869         * modules/time_r (Description): Mention the provided functions.
35870         * lib/time_r.c: Don't include <string.h>.
35871         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35872         * doc/posix-functions/localtime_r.texi: Likewise.
35873
35874 2010-04-03  Bruno Haible  <bruno@clisp.org>
35875
35876         time: Fix regression introduced on 2010-03-08.
35877         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35878         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35879
35880 2010-04-03  Jim Meyering  <meyering@redhat.com>
35881
35882         maint.mk: don't silently disable project-specific syntax-check rules
35883         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35884         that they need to convert their project-specific syntax-check rules
35885         to use the new _sc_search_regexp.
35886
35887 2010-04-03  Bruno Haible  <bruno@clisp.org>
35888
35889         fchdir: Fix regression introduced on 2010-03-08.
35890         * lib/unistd.in.h (fchdir): Fix declaration.
35891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35893         REPLACE_FCHDIR.
35894         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35895         REPLACE_FCHDIR.
35896
35897 2010-04-03  Bruno Haible  <bruno@clisp.org>
35898
35899         getpagesize: Fix C++ test error on mingw.
35900         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35901         system does not declare the function.
35902         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35903         declared.
35904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35905         HAVE_DECL_GETPAGESIZE.
35906         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35907
35908 2010-04-03  Bruno Haible  <bruno@clisp.org>
35909
35910         stdio: Make C++ tests work on mingw.
35911         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35912         does not declare the function.
35913
35914 2010-04-03  Bruno Haible  <bruno@clisp.org>
35915
35916         ftello: Fix C++ test error on mingw.
35917         * lib/stdio.in.h (ftello): Use modern idiom.
35918         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35919         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35920         is missing and that it needs to be replaced.
35921         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35923         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35924
35925 2010-04-03  Bruno Haible  <bruno@clisp.org>
35926
35927         fseeko: Fix C++ test error on mingw.
35928         * lib/stdio.in.h (fseeko): Use modern idiom.
35929         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35930         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35931         is missing and that it needs to be replaced.
35932         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35934         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35935
35936 2010-04-03  Bruno Haible  <bruno@clisp.org>
35937
35938         mkstemp: Fix C++ test error on mingw.
35939         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35941         function is missing and that it needs to be replaced.
35942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35943         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35944
35945 2010-04-03  Bruno Haible  <bruno@clisp.org>
35946
35947         stpncpy: Fix C++ test error on mingw.
35948         * lib/string.in.h (stpncpy): Use modern idiom.
35949         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35950         function is missing and that it needs to be replaced.
35951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35952         REPLACE_STPNCPY.
35953         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35954
35955 2010-04-03  Bruno Haible  <bruno@clisp.org>
35956
35957         sys_stat: Fix C++ test error on mingw.
35958         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35959         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35960
35961 2010-04-03  Bruno Haible  <bruno@clisp.org>
35962
35963         pty: Update doc.
35964         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35965
35966 2010-04-03  Bruno Haible  <bruno@clisp.org>
35967
35968         unistd: Fix C++ test error on mingw.
35969         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35970
35971 2010-04-03  Bruno Haible  <bruno@clisp.org>
35972
35973         Update doc regarding mingw.
35974         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35975         * doc/glibc-functions/login_tty.texi: Likewise.
35976         * doc/glibc-functions/forkpty.texi: Likewise.
35977
35978 2010-04-03  Bruno Haible  <bruno@clisp.org>
35979
35980         stdlib: Avoid compilation failure of c-strtold on mingw.
35981         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35982
35983 2010-04-03  Bruno Haible  <bruno@clisp.org>
35984
35985         locale: Make C++ tests work on Cygwin and mingw.
35986         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35987         cannot provide the function.
35988         Reported by Simon Josefsson.
35989
35990 2010-04-03  Bruno Haible  <bruno@clisp.org>
35991
35992         localename: Port to MacOS X 10.6.
35993         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35994         memory layout of the locales in MacOS X 10.6 as well.
35995         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35996
35997 2010-04-02  Bruno Haible  <bruno@clisp.org>
35998
35999         gnulib-tool: Ensure that long-running tests are executed last.
36000         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
36001         running tests after the one for the other tests.
36002
36003 2010-04-02  Bruno Haible  <bruno@clisp.org>
36004
36005         gnulib-tool: Ensure the tests in the main directory are executed first.
36006         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
36007         start with the current directory.
36008
36009 2010-04-02  Bruno Haible  <bruno@clisp.org>
36010
36011         Tests for module 'havelib', moved here from GNU gettext.
36012         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36013         modifications.
36014         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
36015         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
36016         with modifications.
36017         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
36018         modifications.
36019         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
36020         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
36021         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
36022         with modifications.
36023         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36024         with modifications.
36025         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
36026         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
36027         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
36028         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
36029         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
36030         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
36031         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
36032         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
36033         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
36034         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
36035         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
36036         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
36037         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
36038         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
36039         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
36040         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
36041         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
36042         with modifications.
36043         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
36044         with modifications.
36045         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
36046         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
36047         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
36048         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
36049         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
36050         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
36051         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
36052         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
36053         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
36054         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
36055         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
36056         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
36057         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
36058         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
36059         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
36060         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
36061         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
36062         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
36063         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
36064         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
36065         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
36066         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
36067         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
36068         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
36069         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
36070         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
36071         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
36072         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
36073         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
36074         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
36075         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36076         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36077         * tests/havelib/rpathx/rpathx.c: New file, from
36078         gettext/autoconf-lib-link.
36079         * tests/havelib/rpathx/Makefile.am: New file, from
36080         gettext/autoconf-lib-link.
36081         * tests/havelib/rpathx/configure.ac: New file, from
36082         gettext/autoconf-lib-link with modifications.
36083         * tests/havelib/rpathy/rpathy.c: New file, from
36084         gettext/autoconf-lib-link.
36085         * tests/havelib/rpathy/Makefile.am: New file, from
36086         gettext/autoconf-lib-link.
36087         * tests/havelib/rpathy/configure.ac: New file, from
36088         gettext/autoconf-lib-link with modifications.
36089         * tests/havelib/rpathz/rpathz.c: New file, from
36090         gettext/autoconf-lib-link.
36091         * tests/havelib/rpathz/Makefile.am: New file, from
36092         gettext/autoconf-lib-link.
36093         * tests/havelib/rpathz/configure.ac: New file, from
36094         gettext/autoconf-lib-link with modifications.
36095         * tests/havelib/rpathlx/usex.c: New file, from
36096         gettext/autoconf-lib-link.
36097         * tests/havelib/rpathlx/Makefile.am: New file, from
36098         gettext/autoconf-lib-link.
36099         * tests/havelib/rpathlx/configure.ac: New file, from
36100         gettext/autoconf-lib-link with modifications.
36101         * tests/havelib/rpathly/usey.c: New file, from
36102         gettext/autoconf-lib-link.
36103         * tests/havelib/rpathly/Makefile.am: New file, from
36104         gettext/autoconf-lib-link.
36105         * tests/havelib/rpathly/configure.ac: New file, from
36106         gettext/autoconf-lib-link with modifications.
36107         * tests/havelib/rpathlz/usez.c: New file, from
36108         gettext/autoconf-lib-link.
36109         * tests/havelib/rpathlz/Makefile.am: New file, from
36110         gettext/autoconf-lib-link.
36111         * tests/havelib/rpathlz/configure.ac: New file, from
36112         gettext/autoconf-lib-link with modifications.
36113         * tests/havelib/rpathlyx/usey.c: New file, from
36114         gettext/autoconf-lib-link.
36115         * tests/havelib/rpathlyx/Makefile.am: New file, from
36116         gettext/autoconf-lib-link.
36117         * tests/havelib/rpathlyx/configure.ac: New file, from
36118         gettext/autoconf-lib-link with modifications.
36119         * tests/havelib/rpathlzyx/usez.c: New file, from
36120         gettext/autoconf-lib-link.
36121         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36122         gettext/autoconf-lib-link.
36123         * tests/havelib/rpathlzyx/configure.ac: New file, from
36124         gettext/autoconf-lib-link with modifications.
36125         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36126         with modifications.
36127
36128 2010-04-02  Bruno Haible  <bruno@clisp.org>
36129
36130         gnulib-tool: Create distributed built sources also for the tests.
36131         * gnulib-tool (func_create_testdir): Also generate distributed built
36132         sources in the tests directory.
36133
36134 2010-04-02  Bruno Haible  <bruno@clisp.org>
36135
36136         gnulib-tool: Obey user's environment variables.
36137         * gnulib-tool (func_create_testdir): When creating built sources,
36138         respect the environment variables for autoconf, automake, etc. given by
36139         the user.
36140
36141 2010-04-02  Bruno Haible  <bruno@clisp.org>
36142
36143         gnulib-tool: Provide the value of --m4-base to modules.
36144         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36145         of gl_m4_base.
36146
36147 2010-04-02  Eric Blake  <eblake@redhat.com>
36148
36149         maint.mk: fix some fallout
36150         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36151         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36152
36153 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36154
36155         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36156         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36157         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36158         (sc_cast_of_x_alloc_return_value): Likewise.
36159         (sc_cast_of_alloca_return_value): Likewise.
36160         (sc_space_tab): Likewise.
36161         (sc_prohibit_atoi_atof): Likewise.
36162         (sc_prohibit_magic_number_exit): Likewise.
36163         (sc_error_exit_success): Likewise.
36164         (sc_file_system): Likewise.
36165         (sc_prohibit_have_config_h): Likewise.
36166         (sc_require_config_h): Likewise.
36167         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36168         (sc_obsolete_symbols): Likewise.
36169         (sc_changelog): Likewise.
36170         (sc_program_name): Likewise.
36171         (sc_the_the): Likewise.
36172         (sc_trailing_blank): Likewise.
36173         (sc_two_space_separator_in_usage): Likewise.
36174         (sc_useless_cpp_parens): Likewise.
36175         (sc_GPL_version): Likewise.
36176         (sc_GFDL_version): Likewise.
36177         (sc_texinfo_acronym): Likewise.
36178         (sc_prohibit_cvs_keyword): Likewise.
36179         (sc_prohibit_stat_st_blocks): Likewise.
36180         (sc_prohibit_S_IS_definition): Likewise.
36181         (sc_redundant_const): Likewise.
36182         (sc_makefile_TAB_only_indentation): Likewise.
36183         (sc_m4_quote_check): Likewise.
36184         (sc_makefile_path_separator_check): Likewise.
36185         (sc_copyright_check): Likewise.
36186         (sc_Wundef_boolean): Likewise.
36187         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36188
36189         maint.mk: match 0 or more whitespace-before-function-call '('
36190         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36191         that have zero or two-and-more spaces between the function name
36192         and the open parenthesis.
36193         (sc_error_message_warn_fatal): Likewise.
36194         (sc_error_message_uppercase): Likewise.
36195         (sc_error_message_period): Likewise.
36196
36197 2010-03-31  Eric Blake  <eblake@redhat.com>
36198
36199         maint.mk: check for [ as well as test
36200         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36201         Based on a libvirt report by Matthias Bolte.
36202
36203         gnumakefile: don't squelch _version output
36204         * top/GNUmakefile (_version): Create one-shot dependency rather
36205         than using $(shell) when version must be regenerated.
36206         (_autoreconf): Run verbosely, by default.
36207
36208         sys_time: avoid compiler warnings
36209         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36210         unconditional, fixing regression from 2010-03-29.
36211         Reported by Simon Josefsson.
36212
36213 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36214
36215         maint.mk: s/_header_without_use/_sc_header_without_use/
36216         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36217         (sc_prohibit_assert_without_use): Use the new name.
36218         (sc_prohibit_close_stream_without_use): Likewise.
36219         (sc_prohibit_getopt_without_use): Likewise.
36220         (sc_prohibit_quotearg_without_use): Likewise.
36221         (sc_prohibit_quote_without_use): Likewise.
36222         (sc_prohibit_long_options_without_use): Likewise.
36223         (sc_prohibit_inttostr_without_use): Likewise.
36224         (sc_prohibit_ignore_value_without_use): Likewise.
36225         (sc_prohibit_error_without_use): Likewise.
36226         (sc_prohibit_xalloc_without_use): Likewise.
36227         (sc_prohibit_hash_without_use): Likewise.
36228         (sc_prohibit_hash_pjw_without_use): Likewise.
36229         (sc_prohibit_safe_read_without_use): Likewise.
36230         (sc_prohibit_argmatch_without_use): Likewise.
36231         (sc_prohibit_canonicalize_without_use): Likewise.
36232         (sc_prohibit_root_dev_ino_without_use): Likewise.
36233         (sc_prohibit_openat_without_use): Likewise.
36234         (sc_prohibit_c_ctype_without_use): Likewise.
36235         (sc_prohibit_signal_without_use): Likewise.
36236         (sc_prohibit_intprops_without_use): Likewise.
36237
36238 2010-03-30  Eric Blake  <eblake@redhat.com>
36239
36240         maint: improve module indicators
36241         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36242         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36243         columns, and avoid extra macro expansion.
36244
36245         fdopendir: work around FreeBSD bug
36246         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36247         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36248         * modules/dirent (Makefile.am): Substitute it.
36249         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36250         declaration.
36251         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36252         fix.
36253         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36254
36255 2010-03-29  Bruno Haible  <bruno@clisp.org>
36256
36257         Emit #pragma system_header after the inclusion guard, not before.
36258         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36259         guard that spans the entire file, not before. This enables an
36260         optimization in GCC's preprocessor.
36261         * lib/ctype.in.h: Likewise.
36262         * lib/dirent.in.h: Likewise.
36263         * lib/errno.in.h: Likewise.
36264         * lib/float.in.h: Likewise.
36265         * lib/getopt.in.h: Likewise.
36266         * lib/iconv.in.h: Likewise.
36267         * lib/langinfo.in.h: Likewise.
36268         * lib/locale.in.h: Likewise.
36269         * lib/math.in.h: Likewise.
36270         * lib/netdb.in.h: Likewise.
36271         * lib/netinet_in.in.h: Likewise.
36272         * lib/pty.in.h: Likewise.
36273         * lib/sched.in.h: Likewise.
36274         * lib/se-selinux.in.h: Likewise.
36275         * lib/search.in.h: Likewise.
36276         * lib/spawn.in.h: Likewise.
36277         * lib/stdarg.in.h: Likewise.
36278         * lib/stdint.in.h: Likewise.
36279         * lib/string.in.h: Likewise.
36280         * lib/strings.in.h: Likewise.
36281         * lib/sys_file.in.h: Likewise.
36282         * lib/sys_ioctl.in.h: Likewise.
36283         * lib/sys_time.in.h: Likewise.
36284         * lib/sys_times.in.h: Likewise.
36285         * lib/sys_utsname.in.h: Likewise.
36286         * lib/sys_wait.in.h: Likewise.
36287         * lib/sysexits.in.h: Likewise.
36288         * lib/wctype.in.h: Likewise.
36289
36290 2010-03-28  James Youngman  <jay@gnu.org>
36291
36292         save-cwd: don't leak a file descriptor when the caller execs.
36293         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36294         saved file descriptor.
36295         * modules/save-cwd (Depends-on): Depend on cloexec.
36296
36297 2010-03-29  Bruno Haible  <bruno@clisp.org>
36298
36299         Remove vestiges of fts-lgpl module.
36300         * lib/fts_.h: Assume GNULIB_FTS is 1.
36301         * lib/fts.c: Likewise.
36302         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36303
36304 2010-03-28  Bruno Haible  <bruno@clisp.org>
36305
36306         Fix definition of tests witness macro.
36307         * gnulib-tool (func_import): Fix definition of witness macro.
36308
36309 2010-03-28  Bruno Haible  <bruno@clisp.org>
36310
36311         Fix ioctl's protoype on glibc systems.
36312         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36313         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36314         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36315         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36316         signature. If not, arrange to replace the ioctl function.
36317         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36318         REPLACE_IOCTL.
36319         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36320         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36321         Reported by Ludovic Courtès <ludo@gnu.org>.
36322
36323 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36324
36325         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36326         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36327         made it so grep -r --include=GLOB* ... did not work.
36328
36329 2010-03-26  Jim Meyering  <meyering@redhat.com>
36330             Eric Blake  <eblake@redhat.com>
36331
36332         maint.mk: prohibit use of test's -o and -a operators
36333         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36334
36335 2010-03-28  Bruno Haible  <bruno@clisp.org>
36336
36337         Remove unused GNULIB_XYZ macro definitions.
36338         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36339         invocation.
36340
36341 2010-03-28  Bruno Haible  <bruno@clisp.org>
36342
36343         Mark privileged tests modules.
36344         * modules/idpriv-drop-tests (Status): New section.
36345         * modules/idpriv-droptemp-tests (Status): New section.
36346
36347 2010-03-28  Bruno Haible  <bruno@clisp.org>
36348
36349         Split C++ tests into separate tests modules.
36350         * modules/dirent-c++-tests: New file, extracted from
36351         modules/dirent-tests.
36352         * modules/dirent-tests: Depend on it.
36353         * modules/fcntl-h-c++-tests: New file, extracted from
36354         modules/fcntl-h-tests.
36355         * modules/fcntl-h-tests: Depend on it.
36356         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36357         * modules/glob-tests: Depend on it.
36358         * modules/iconv-h-c++-tests: New file, extracted from
36359         modules/iconv-h-tests.
36360         * modules/iconv-h-tests: Depend on it.
36361         * modules/langinfo-c++-tests: New file, extracted from
36362         modules/langinfo-tests.
36363         * modules/langinfo-tests: Depend on it.
36364         * modules/locale-c++-tests: New file, extracted from
36365         modules/locale-tests.
36366         * modules/locale-tests: Depend on it.
36367         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36368         * modules/math-tests: Depend on it.
36369         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36370         * modules/pty-tests: Depend on it.
36371         * modules/search-c++-tests: New file, extracted from
36372         modules/search-tests.
36373         * modules/search-tests: Depend on it.
36374         * modules/signal-c++-tests: New file, extracted from
36375         modules/signal-tests.
36376         * modules/signal-tests: Depend on it.
36377         * modules/spawn-c++-tests: New file, extracted from
36378         modules/spawn-tests.
36379         * modules/spawn-tests: Depend on it.
36380         * modules/stdio-c++-tests: New file, extracted from
36381         modules/stdio-tests.
36382         * modules/stdio-tests: Depend on it.
36383         * modules/stdlib-c++-tests: New file, extracted from
36384         modules/stdlib-tests.
36385         * modules/stdlib-tests: Depend on it.
36386         * modules/string-c++-tests: New file, extracted from
36387         modules/string-tests.
36388         * modules/string-tests: Depend on it.
36389         * modules/sys_ioctl-c++-tests: New file, extracted from
36390         modules/sys_ioctl-tests.
36391         * modules/sys_ioctl-tests: Depend on it.
36392         * modules/sys_select-c++-tests: New file, extracted from
36393         modules/sys_select-tests.
36394         * modules/sys_select-tests: Depend on it.
36395         * modules/sys_socket-c++-tests: New file, extracted from
36396         modules/sys_socket-tests.
36397         * modules/sys_socket-tests: Depend on it.
36398         * modules/sys_stat-c++-tests: New file, extracted from
36399         modules/sys_stat-tests.
36400         * modules/sys_stat-tests: Depend on it.
36401         * modules/sys_time-c++-tests: New file, extracted from
36402         modules/sys_time-tests.
36403         * modules/sys_time-tests: Depend on it.
36404         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36405         * modules/time-tests: Depend on it.
36406         * modules/unistd-c++-tests: New file, extracted from
36407         modules/unistd-tests.
36408         * modules/unistd-tests: Depend on it.
36409         * modules/wchar-c++-tests: New file, extracted from
36410         modules/wchar-tests.
36411         * modules/wchar-tests: Depend on it.
36412         * modules/wctype-c++-tests: New file, extracted from
36413         modules/wctype-tests.
36414         * modules/wctype-tests: Depend on it.
36415         Reported by Simon Josefsson.
36416
36417 2010-03-28  Bruno Haible  <bruno@clisp.org>
36418
36419         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36420         * gnulib-tool (func_exists_module): New function, extracted from
36421         func_verify_module.
36422         (func_verify_module): Use it.
36423         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36424         'foo' only if 'foo' exists.
36425         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36426         module.
36427
36428 2010-03-28  Bruno Haible  <bruno@clisp.org>
36429
36430         gnulib-tool: Add support for special categories of tests.
36431         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36432         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36433         (func_usage): Document them.
36434         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36435         inc_unportable_tests, inc_all_tests): New variables.
36436         (func_acceptable): Consider these variables.
36437         (func_modules_transitive_closure): Make it work when the 'Status' field
36438         consists of multiple words.
36439         (func_import): Store and restore the values of inc_cxx_tests,
36440         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36441         inc_all_tests in gnulib-comp.m4.
36442         (func_create_testdir): Set inc_all_tests to true.
36443         * doc/gnulib.texi (Extra tests modules): New section.
36444         Suggested by Jim Meyering.
36445
36446 2010-03-28  Bruno Haible  <bruno@clisp.org>
36447
36448         ansi-c++-opt: Allow turning off the C++ build by default.
36449         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36450         gl_CXX_CHOICE_DEFAULT_NO is defined.
36451         Requested by Eric Blake.
36452
36453 2010-03-28  Bruno Haible  <bruno@clisp.org>
36454
36455         unistd: Avoid #define replacements in C++ mode.
36456         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36457         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36458         setsockopt, shutdown, select): In C++, attach a warning to the function
36459         if possible, rather than #defining the symbol to a dysfunctional alias.
36460         Reported by John W. Eaton <jwe@gnu.org>.
36461
36462 2010-03-28  Bruno Haible  <bruno@clisp.org>
36463
36464         Fix link errors on mingw.
36465         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36466         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36467         $(LIBSOCKET).
36468         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36469         $(LIBSOCKET).
36470
36471 2010-03-28  Bruno Haible  <bruno@clisp.org>
36472             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36473
36474         lib-ignore: Determine different options for different compilers.
36475         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36476         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36477         Add comments.
36478         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36479         * NEWS: Mention the change.
36480
36481 2010-03-27  Bruno Haible  <bruno@clisp.org>
36482
36483         Remove unused GNULIB_XYZ macro definitions.
36484         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36485         * modules/fseek (configure.ac): Likewise.
36486         * modules/ioctl (configure.ac): Likewise.
36487         * modules/open (configure.ac): Likewise.
36488         * modules/stdlib-safer (configure.ac): Likewise.
36489
36490 2010-03-27  Bruno Haible  <bruno@clisp.org>
36491
36492         Add a remark about certain modules.
36493         * modules/malloc (Comment): New section.
36494         * modules/realloc (Comment): Likewise.
36495         * modules/sigpipe (Comment): Likewise.
36496
36497 2010-03-27  Bruno Haible  <bruno@clisp.org>
36498
36499         Resolve conflict between the two kinds of module indicators.
36500         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36501         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36502         * modules/canonicalize (configure.ac): Invoke
36503         gl_MODULE_INDICATOR_FOR_TESTS.
36504         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36505         GNULIB_XYZ.
36506         * tests/test-dirent-c++.cc: Likewise.
36507         * tests/test-dirent-safer.c: Likewise.
36508         * tests/test-dup2.c: Likewise.
36509         * tests/test-fchdir.c: Likewise.
36510         * tests/test-fcntl-h-c++.cc: Likewise.
36511         * tests/test-getopt.c: Likewise.
36512         * tests/test-getopt.h: Likewise.
36513         * tests/test-langinfo-c++.cc: Likewise.
36514         * tests/test-locale-c++.cc: Likewise.
36515         * tests/test-math-c++.cc: Likewise.
36516         * tests/test-pty-c++.cc: Likewise.
36517         * tests/test-search-c++.cc: Likewise.
36518         * tests/test-signal-c++.cc: Likewise.
36519         * tests/test-spawn-c++.cc: Likewise.
36520         * tests/test-stdio-c++.cc: Likewise.
36521         * tests/test-stdlib-c++.cc: Likewise.
36522         * tests/test-string-c++.cc: Likewise.
36523         * tests/test-sys_ioctl-c++.cc: Likewise.
36524         * tests/test-sys_select-c++.cc: Likewise.
36525         * tests/test-sys_socket-c++.cc: Likewise.
36526         * tests/test-sys_stat-c++.cc: Likewise.
36527         * tests/test-sys_time-c++.cc: Likewise.
36528         * tests/test-time-c++.cc: Likewise.
36529         * tests/test-unistd-c++.cc: Likewise.
36530         * tests/test-wchar-c++.cc: Likewise.
36531         * tests/uninorm/test-u8-nfc.c: Likewise.
36532         * tests/uninorm/test-u8-nfd.c: Likewise.
36533         * tests/uninorm/test-u8-nfkc.c: Likewise.
36534         * tests/uninorm/test-u8-nfkd.c: Likewise.
36535         * tests/uninorm/test-u16-nfc.c: Likewise.
36536         * tests/uninorm/test-u16-nfd.c: Likewise.
36537         * tests/uninorm/test-u16-nfkc.c: Likewise.
36538         * tests/uninorm/test-u16-nfkd.c: Likewise.
36539         * tests/uninorm/test-u32-nfc.c: Likewise.
36540         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36541         * tests/uninorm/test-u32-nfd.c: Likewise.
36542         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36543         * tests/uninorm/test-u32-nfkc.c: Likewise.
36544         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36545         * tests/uninorm/test-u32-nfkd.c: Likewise.
36546         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36547         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36548
36549 2010-03-27  Bruno Haible  <bruno@clisp.org>
36550
36551         Distinguish two kinds of module indicators.
36552         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36553         gl_MODULE_INDICATOR.
36554         (gl_MODULE_INDICATOR): New macro.
36555         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36556         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36557         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36558         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36559         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36560         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36561         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36562         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36563         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36564         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36565         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36566         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36568         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36569         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36570         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36571         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36572         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36573         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36574         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36575         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36576         * modules/cloexec (configure.ac): Likewise.
36577         * modules/getopt-gnu (configure.ac): Likewise.
36578         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36579         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36580         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36581         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36582
36583 2010-03-27  Bruno Haible  <bruno@clisp.org>
36584
36585         New module description field 'Comment'.
36586         * gnulib-tool: New option --extract-comment.
36587         (func_usage): Document it.
36588         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36589         (func_get_comment): New function.
36590         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36591
36592 2010-03-27  Bruno Haible  <bruno@clisp.org>
36593
36594         Addendum to 2010-02-07 commit.
36595         * gnulib-tool (func_usage): Document --extract-applicability option.
36596
36597 2010-03-27  Bruno Haible  <bruno@clisp.org>
36598
36599         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36600         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36601         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36602         rather than link errors.
36603
36604 2010-03-27  Bruno Haible  <bruno@clisp.org>
36605
36606         Avoid side effects from tests-related modules on the compilation of lib.
36607         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36608         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36609         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36610         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36611         macro.
36612         (func_import): Define a witness macro. Assign it a value that depends
36613         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36614         tests-related modules.
36615         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36616         Reported by Jim Meyering.
36617
36618 2010-03-27  Bruno Haible  <bruno@clisp.org>
36619
36620         Factorize common .m4 code.
36621         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36622         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36623         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36624         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36625         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36626         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36627         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36628         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36629         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36630         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36631         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36632         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36633         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36634         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36635         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36636         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36637         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36638         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36640         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36641         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36642         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36643         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36644         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36645         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36646         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36647         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36648         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36649         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36650         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36651         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36652         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36653
36654 2010-03-27  Bruno Haible  <bruno@clisp.org>
36655
36656         Fix a compilation error on Cygwin with g++ >= 4.3.
36657         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36658         if it is undefined or if we alias it to chmod.
36659         (lstat): Don't warn about the use of this function if it is undefined
36660         or if we alias it to stat.
36661         Reported by Simon Josefsson.
36662
36663 2010-03-27  Bruno Haible  <bruno@clisp.org>
36664
36665         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36666         * modules/getlogin (configure.ac): Update.
36667
36668         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36669         * modules/getlogin_r (configure.ac): Update.
36670
36671         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36673         * modules/inet_ntop (configure.ac): Update.
36674
36675         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36676         * modules/inet_pton (configure.ac): Update.
36677
36678         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36679         * modules/mbslen (configure.ac): Update.
36680
36681         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36682         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36683         * modules/forkpty (configure.ac): Update.
36684         * modules/openpty (configure.ac): Update.
36685
36686 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36687
36688         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36689         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36690
36691 2010-03-25  Eric Blake  <eblake@redhat.com>
36692
36693         maint: use pragma consistently across replacement headers
36694         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36695         * lib/dirent.in.h (system_header): Likewise.
36696         * lib/errno.in.h (system_header): Likewise.
36697         * lib/float.in.h (system_header): Likewise.
36698         * lib/getopt.in.h (system_header): Likewise.
36699         * lib/iconv.in.h (system_header): Likewise.
36700         * lib/inttypes.in.h (system_header): Likewise.
36701         * lib/langinfo.in.h (system_header): Likewise.
36702         * lib/locale.in.h (system_header): Likewise.
36703         * lib/math.in.h (system_header): Likewise.
36704         * lib/netdb.in.h (system_header): Likewise.
36705         * lib/netinet_in.in.h (system_header): Likewise.
36706         * lib/pty.in.h (system_header): Likewise.
36707         * lib/sched.in.h (system_header): Likewise.
36708         * lib/se-selinux.in.h (system_header): Likewise.
36709         * lib/search.in.h (system_header): Likewise.
36710         * lib/spawn.in.h (system_header): Likewise.
36711         * lib/stdarg.in.h (system_header): Likewise.
36712         * lib/stdint.in.h (system_header): Likewise.
36713         * lib/string.in.h (system_header): Likewise.
36714         * lib/strings.in.h (system_header): Likewise.
36715         * lib/sys_file.in.h (system_header): Likewise.
36716         * lib/sys_ioctl.in.h (system_header): Likewise.
36717         * lib/sys_socket.in.h (system_header): Likewise.
36718         * lib/sys_times.in.h (system_header): Likewise.
36719         * lib/sys_utsname.in.h (system_header): Likewise.
36720         * lib/sys_wait.in.h (system_header): Likewise.
36721         * lib/sysexits.in.h (system_header): Likewise.
36722         * lib/unistd.in.h (system_header): Likewise.
36723         * lib/wctype.in.h (system_header): Likewise.
36724
36725         arpa/inet: fix mingw compilation warning
36726         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36727         Reported by Matthew Bolte.
36728
36729 2010-03-25  Bruno Haible  <bruno@clisp.org>
36730
36731         Avoid collision between gnulib wrapper and libintl wrapper.
36732         * lib/printf.c (printf): Don't define if a printf wrapper is already
36733         defined in intl/printf.c.
36734         Reported by Michel Boaventura <michel@michelboaventura.com>.
36735
36736 2010-03-25  Bruno Haible  <bruno@clisp.org>
36737
36738         Use ANSI C.
36739         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36740
36741 2010-03-25  Bruno Haible  <bruno@clisp.org>
36742
36743         Minor formatting changes.
36744         * lib/acosl.c: Insert space before function argument list.
36745         * lib/argz.c: Likewise.
36746         * lib/asinl.c: Likewise.
36747         * lib/expl.c: Likewise.
36748         * lib/gen-uni-tables.c: Likewise.
36749         * lib/gettext.h: Likewise.
36750         * lib/glthread/lock.h: Likewise.
36751         * lib/tanl.c: Likewise.
36752         * lib/uniname/uniname.c: Likewise.
36753         * tests/test-idpriv-drop.c: Likewise.
36754         * tests/test-idpriv-droptemp.c: Likewise.
36755         * tests/test-lock.c: Likewise.
36756         * tests/test-tls.c: Likewise.
36757         * lib/argp-help.c: Insert space before function-like macro argument
36758         list.
36759         * lib/memcmp.c: Likewise.
36760         * tests/test-base64.c: Likewise.
36761         * lib/localename.c: Insert space before sizeof's argument list.
36762         * lib/safe-alloc.h: Likewise.
36763         * lib/file-set.h: Insert space before macro argument list.
36764         * tests/test-argp.c: Likewise.
36765         * lib/argp-namefrob.h: Insert space before function parameter list.
36766         * lib/getaddrinfo.c: Likewise.
36767         * lib/netdb.in.h: Likewise.
36768         * lib/parse-duration.h: Likewise.
36769         * lib/parse-duration.c: Likewise.
36770         * lib/poll.c: Likewise.
36771         * lib/select.c: Likewise.
36772         * lib/trim.h: Likewise.
36773         * tests/test-usleep.c: Likewise.
36774         * lib/ldexpl.c: Insert space before function parameter list and before
36775         function argument list.
36776         * lib/logl.c: Likewise.
36777         * lib/sqrtl.c: Likewise.
36778         * lib/trim.c: Likewise.
36779         * lib/cosl.c: Use GNU style indentation. Insert space before function
36780         argument list.
36781         * lib/sinl.c: Likewise.
36782         * lib/tsearch.c: Insert space after 'for'.
36783         Reported by Jim Meyering.
36784
36785 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36786
36787         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36788         config header before grepping, as it's not present before
36789         autoreconf/configure are run.  Reported by Simon Josefsson.
36790
36791 2010-03-23  Bruno Haible  <bruno@clisp.org>
36792
36793         pt_chown: Make it work with automake < 1.11.
36794         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36795         Reported by Simon Josefsson.
36796
36797 2010-03-23  Bruno Haible  <bruno@clisp.org>
36798
36799         pt_chown: Don't depend on GPLed modules.
36800         * lib/pt_chown.c: Don't include idpriv.h.
36801         (main): Don't drop privileges.
36802         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36803         Reported by Simon Josefsson.
36804
36805 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36806
36807         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36808         suggestions from karl@freefriends.org (Karl Berry).
36809
36810 2010-03-22  Eric Blake  <eblake@redhat.com>
36811
36812         gethostname: further tweaks
36813         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36814         are overriding gethostname.
36815         Suggested by Bruno Haible.
36816
36817 2010-03-21  Bruno Haible  <bruno@clisp.org>
36818
36819         Fix comments.
36820         * lib/forkpty.c (rpl_forkpty): Fix comment.
36821         * lib/openpty.c (rpl_openpty): Likewise.
36822         Reported by Eric Blake.
36823
36824 2010-03-22  Eric Blake  <eblake@redhat.com>
36825
36826         gethostname: fix build on mingw
36827         * lib/unistd.in.h (includes): Work around fact that mingw
36828         <winsock2.h> re-includes <unistd.h>, by avoiding any
36829         redeclarations if we are being included by <winsock2.h>.
36830         Reported by Matthias Bolte.
36831
36832 2010-03-21  Bruno Haible  <bruno@clisp.org>
36833
36834         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36835         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36836         modifications.
36837         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36838         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36839         provide the replacement.
36840         * modules/forkpty (Depends-on): Add openpty, login_tty.
36841         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36842         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36843         * doc/glibc-functions/forkpty.texi: More supported platforms.
36844         * config/srclist.txt: Add forkpty.c (commented).
36845
36846 2010-03-21  Bruno Haible  <bruno@clisp.org>
36847
36848         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36849         (Makefile.am): Verify that PTY_LIB is defined.
36850
36851         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36852
36853 2010-03-21  Bruno Haible  <bruno@clisp.org>
36854
36855         Tests for module 'login_tty'.
36856         * modules/login_tty-tests: New file.
36857         * tests/test-login_tty.c: New file.
36858
36859         New module 'login_tty'.
36860         * lib/login_tty.c: New file.
36861         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36862         * modules/login_tty: New file.
36863         * doc/glibc-functions/login_tty.texi: Mention the new module.
36864
36865 2010-03-21  Bruno Haible  <bruno@clisp.org>
36866
36867         login_tty: Documentation.
36868         * doc/glibc-functions/login_tty.texi: New file.
36869         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36870
36871 2010-03-21  Bruno Haible  <bruno@clisp.org>
36872
36873         pty: Consistent macro naming.
36874         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36875         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36876         * modules/pty (configure.ac): Update.
36877
36878 2010-03-21  Bruno Haible  <bruno@clisp.org>
36879
36880         Tests for openpty: Make stricter.
36881         * tests/test-openpty.c (main): Add test of canonical processing and
36882         erase.
36883         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36884
36885         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36886         * lib/openpty.c (openpty): New replacement function.
36887         * lib/pty.in.h: Include <termios.h>.
36888         (openpty): Update declaration. Add comments.
36889         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36890         is not declared, arrange to provide the replacement. Check for _getpty
36891         and posix_openpt.
36892         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36893         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36894         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36895         * modules/pty-tests (test_pty_c___LDADD): New variable.
36896         * doc/glibc-functions/openpty.texi: More supported platforms.
36897
36898 2010-03-21  Bruno Haible  <bruno@clisp.org>
36899
36900         setenv: Tweaks.
36901         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36902         the test program.
36903         * doc/posix-functions/setenv.texi: Update platforms list.
36904
36905 2010-03-21  Bruno Haible  <bruno@clisp.org>
36906
36907         New module 'unlockpt'.
36908         * lib/unlockpt.c: New file, from glibc with modifications.
36909         * m4/unlockpt.m4: New file.
36910         * modules/unlockpt: New file.
36911         * lib/stdlib.in.h (unlockpt): New declaration.
36912         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36913         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36914         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36915         HAVE_UNLOCKPT.
36916         * doc/posix-functions/unlockpt.texi: Mention the new module.
36917         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36918         * config/srclist.txt: Add unlockpt.c (commented).
36919
36920 2010-03-21  Jim Meyering  <meyering@redhat.com>
36921
36922         maint.mk: prohibit inclusion of "intprops.h" without use
36923         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36924
36925 2010-03-21  Bruno Haible  <bruno@clisp.org>
36926
36927         New module 'grantpt'.
36928         * lib/grantpt.c: New file, from glibc with modifications.
36929         * m4/grantpt.m4: New file.
36930         * modules/grantpt: New file.
36931         * lib/stdlib.in.h (grantpt): New declaration.
36932         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36933         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36934         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36935         HAVE_GRANTPT.
36936         * doc/posix-functions/grantpt.texi: Mention the new module.
36937         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36938         * config/srclist.txt: Add grantpt.c (commented).
36939
36940 2010-03-21  Bruno Haible  <bruno@clisp.org>
36941
36942         New module 'pt_chown'.
36943         * lib/pt_chown.c: New file, from glibc with modifications.
36944         * lib/pty-private.h: New file, from glibc with modifications.
36945         * modules/pt_chown: New file.
36946         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36947
36948 2010-03-21  Bruno Haible  <bruno@clisp.org>
36949
36950         Tests for module 'ptsname'.
36951         * modules/ptsname-tests: New file.
36952         * tests/test-ptsname.c: New file.
36953
36954         New module 'ptsname'.
36955         * lib/ptsname.c: New file, from glibc with modifications.
36956         * m4/ptsname.m4: New file.
36957         * modules/ptsname: New file.
36958         * lib/stdlib.in.h (ptsname): New declaration.
36959         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36960         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36961         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36962         HAVE_PTSNAME.
36963         * doc/posix-functions/ptsname.texi: Mention the new module.
36964         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36965         * config/srclist.txt: Add ptsname.c (commented).
36966
36967 2010-03-21  Bruno Haible  <bruno@clisp.org>
36968
36969         Tests for module 'ttyname_r'.
36970         * modules/ttyname_r-tests: New file.
36971         * tests/test-ttyname_r.c: New file.
36972
36973         New module 'ttyname_r'.
36974         * lib/ttyname_r.c: New file.
36975         * m4/ttyname_r.m4: New file.
36976         * modules/ttyname_r: New file.
36977         * lib/unistd.in.h (ttyname_r): New declaration.
36978         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36979         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36980         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36981         HAVE_TTYNAME_R.
36982         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36983         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36984
36985 2010-03-20  Bruno Haible  <bruno@clisp.org>
36986
36987         signal: Undefine macro definitions in C++ mode.
36988         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36989         sigfillset): Undefine macro definitions from the system header in C++
36990         mode.
36991         Reported by John W. Eaton <jwe@gnu.org>.
36992
36993 2010-03-20  Bruno Haible  <bruno@clisp.org>
36994
36995         Ensure no #include statements inside extern "C" { ... }.
36996         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36997         contain #include statements.
36998         * lib/time.in.h: Likewise.
36999
37000 2010-03-20  Bruno Haible  <bruno@clisp.org>
37001
37002         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
37003         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
37004         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
37005         Reported by John W. Eaton <jwe@gnu.org>.
37006
37007 2010-03-20  Bruno Haible  <bruno@clisp.org>
37008
37009         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
37010         Reported by Jim Meyering.
37011
37012 2010-03-20  Bruno Haible  <bruno@clisp.org>
37013
37014         pipe: Set errno upon failure.
37015         * lib/pipe.h: Specify that when -1 is returned, errno is set.
37016         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
37017         errno value in error message.
37018
37019 2010-03-20  Bruno Haible  <bruno@clisp.org>
37020             Jim Meyering  <meyering@redhat.com>
37021
37022         lchown: Avoid "unused variable" warning.
37023         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
37024
37025 2010-03-20  Bruno Haible  <bruno@clisp.org>
37026
37027         Work around unlink() bug on MacOS X 10.5.6.
37028         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
37029         attempting to unlink a parent directory.
37030         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
37031         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
37032         activate for the replacement function.
37033         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
37034
37035 2010-03-20  Bruno Haible  <bruno@clisp.org>
37036
37037         Fix link errors on Solaris 8.
37038         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
37039         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
37040
37041 2010-03-19  Jim Meyering  <meyering@redhat.com>
37042
37043         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
37044         The _LIBC implementation of build_range_exp correctly honors the
37045         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
37046         However, the non-_LIBC implementation would ignore that syntax-bit
37047         flag and return REG_ERANGE unconditionally.
37048         This change makes it honor that flag.
37049         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
37050         Make two pointer parameters "const".
37051         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
37052         (parse_bracket_exp): Update caller.
37053
37054         regex.m4: correct the reversed range endpoint ([b-a]) test
37055         * m4/regex.m4: When requiring that [b-a] evoke failure,
37056         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
37057         test pass once again for x86-based systems.
37058
37059 2010-03-19  Bruno Haible  <bruno@clisp.org>
37060
37061         scandir: Fix link error on Solaris 8.
37062         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
37063         macros.
37064
37065 2010-03-19  Bruno Haible  <bruno@clisp.org>
37066
37067         getusershell: Fix documentation.
37068         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
37069         module.
37070         * doc/glibc-functions/setusershell.texi: Likewise.
37071
37072         getusershell: Provide declaration, missing on Solaris 9.
37073         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
37074         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
37075         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37076         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37078         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37079         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37080         HAVE_GETUSERSHELL.
37081         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37082
37083 2010-03-19  Bruno Haible  <bruno@clisp.org>
37084
37085         wctype: Provide iswblank function.
37086         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37087         exists and is fine.
37088         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37089         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37090         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37091         * doc/posix-functions/iswblank.texi: Update.
37092
37093 2010-03-19  Bruno Haible  <bruno@clisp.org>
37094
37095         Tests of module 'pty' in C++ mode.
37096         * modules/pty-tests: New file.
37097         * tests/test-pty-c++.cc: New file.
37098         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37099
37100 2010-03-19  Eric Blake  <eblake@redhat.com>
37101
37102         logb: fix documentation
37103         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37104         1.5 declaration bug.
37105
37106         forkpty, openpty: prefer glibc's const-safe prototype
37107         * lib/forkpty.c (rpl_forkpty): New file.
37108         * lib/openpty.c (rpl_openpty): Likewise.
37109         * modules/forkpty (Files): Distribute it.
37110         * modules/openpty (Files): Likewise.
37111         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37112         check...
37113         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37114         replacement for for non-const BSD signature.
37115         * modules/pty (Makefile.am): Substitute witnesses.
37116         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37117         * tests/test-forkpty.c: Update signature check.
37118         * tests/test-openpty.c: Likewise.
37119         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37120         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37121
37122         forkpty, openpty: split functions into new modules
37123         * modules/pty (Makefile.am): Substitute new witnesses.
37124         (Libraries): Move library detection...
37125         * modules/forkpty: ...into new module.
37126         * modules/openpty: Another new module.
37127         * modules/pty-tests: Rename and split...
37128         * modules/forkpty-tests: ...to this...
37129         * modules/openpty-tests: ...and this.
37130         * tests/test-pty.c: Rename and split...
37131         * tests/test-forkpty.c: ...to this...
37132         * tests/test-openpty.c: ...and this.
37133         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37134         (gl_PTY): Split library searching...
37135         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37136         (gl_FORKPTY, gl_OPENPTY): New macros.
37137         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37138         * NEWS: Mention the split.
37139         * MODULES.html.sh (Misc): Document the modules.
37140         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37141         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37142
37143         pty: improve replacement header
37144         * lib/pty.in.h: New file.
37145         * modules/pty (Files): Ship it.
37146         (Makefile.am): Always build replacement.
37147         * m4/pty.m4: Rename...
37148         * m4/pty_h.m4: ...to this.
37149         (gl_PTY): Modernize setting of witness macros; update check of
37150         forkpty to take proper advantage of cache.
37151         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37152
37153         getopt: avoid compiler warning
37154         * lib/getopt.c (attribute_hidden): Remove unused macro.
37155
37156 2010-03-18  Bruno Haible  <bruno@clisp.org>
37157
37158         Fix link errors on Solaris 8.
37159         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37160         * modules/search-tests (test_search_c___LDADD): Likewise.
37161         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37162         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37163         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37164         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37165         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37166         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37167         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37168
37169 2010-03-18  Bruno Haible  <bruno@clisp.org>
37170
37171         Fix bug introduced on 2010-03-14.
37172         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37173         (gl_SPAWN_H): Require it.
37174         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37175         Reported by Simon Josefsson.
37176
37177 2010-03-18  Bruno Haible  <bruno@clisp.org>
37178
37179         Fix typo introduced on 2009-12-31.
37180         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37181         posix_spawn_file_actions_adddup2.
37182
37183 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37184         and Eric Blake  <eblake@redhat.com>
37185
37186         test-vc-list-files-git: make more robust
37187         * tests/test-vc-list-files-git.sh: Unset problematic environment
37188         variables.  Chain commands together.
37189
37190 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37191
37192         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37193         `AC_CHECK_DECL' invocation.
37194
37195 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37196
37197         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37198         appears before executable statements. Suggested by Petr Sumbera
37199         <Petr.Sumbera@Sun.COM>.
37200
37201 2010-03-14  Bruno Haible  <bruno@clisp.org>
37202
37203         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37204         portability problems. Instead use a simpler test.
37205         (main): Check that invalid arguments are rejected only on Linux.
37206
37207 2010-03-14  Bruno Haible  <bruno@clisp.org>
37208
37209         Fix bug introduced on 2009-12-31.
37210         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37211         gl_PREREQ_SYS_H_WINSOCK2 always.
37212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37213         SYS_SOCKET_H variable.
37214         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37215         Update comments.
37216         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37217         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37218         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37219         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37220         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37221
37222 2010-03-14  Bruno Haible  <bruno@clisp.org>
37223
37224         Fix values returned by sinl, cosl.
37225         * lib/trigl.h: Add specification comments.
37226         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37227         that combines the values from the precomputed table with the values of
37228         the Chebyshev polynomials.
37229
37230 2010-03-14  Bruno Haible  <bruno@clisp.org>
37231
37232         Fix compilation error when modules 'posix_spawn[p]' are not used.
37233         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37234         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37235
37236 2010-03-14  Bruno Haible  <bruno@clisp.org>
37237
37238         Fix compilation error on mingw when module 'time_r' is not used.
37239         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37240         is 1.
37241         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37242         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37243         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37244         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37245
37246 2010-03-14  Bruno Haible  <bruno@clisp.org>
37247
37248         Fix compilation error with Sun C.
37249         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37250         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37251         instead of GCC specific ULONG_LONG_MAX.
37252         * lib/xstrtoll.c: Likewise.
37253         * lib/xstrtoull.c: Likewise.
37254
37255 2010-03-13  Bruno Haible  <bruno@clisp.org>
37256
37257         Allow the user to disable C++ code and tests.
37258         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37259         (gl_PROG_ANSI_CXX): Require it.
37260
37261 2010-03-13  Bruno Haible  <bruno@clisp.org>
37262
37263         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37264         cases.
37265
37266 2010-03-13  Bruno Haible  <bruno@clisp.org>
37267
37268         Test that gnulib does not break the standard C++ headers.
37269         * tests/test-locale-c++2.cc: New file.
37270         * modules/locale-tests (Files): Add it.
37271         (Makefile.am): Compile it for test-locale-c++.
37272         * tests/test-math-c++2.cc: New file.
37273         * modules/math-tests (Files): Add it.
37274         (Makefile.am): Compile it for test-math-c++.
37275         * tests/test-signal-c++2.cc: New file.
37276         * modules/signal-tests (Files): Add it.
37277         (Makefile.am): Compile it for test-signal-c++.
37278         * tests/test-stdio-c++2.cc: New file.
37279         * modules/stdio-tests (Files): Add it.
37280         (Makefile.am): Compile it for test-stdio-c++.
37281         * tests/test-stdlib-c++2.cc: New file.
37282         * modules/stdlib-tests (Files): Add it.
37283         (Makefile.am): Compile it for test-stdlib-c++.
37284         * tests/test-string-c++2.cc: New file.
37285         * modules/string-tests (Files): Add it.
37286         (Makefile.am): Compile it for test-string-c++.
37287         * tests/test-time-c++2.cc: New file.
37288         * modules/time-tests (Files): Add it.
37289         (Makefile.am): Compile it for test-time-c++.
37290         Reported by John W. Eaton <jwe@gnu.org>.
37291
37292 2010-03-13  Bruno Haible  <bruno@clisp.org>
37293
37294         * gnulib-tool (func_usage): Clarify which options are available for
37295         --create-testdir and --create-megatestdir.
37296
37297 2010-03-13  Bruno Haible  <bruno@clisp.org>
37298
37299         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37300         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37301         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37302         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37303         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37304         when appropriate.
37305         Reported by Jim Meyering.
37306
37307 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37308
37309         * gnulib-tool (func_import): Explain origin of code.
37310
37311 2010-03-12  Bruno Haible  <bruno@clisp.org>
37312
37313         Fix problem with automake's definition of CXXLINK.
37314         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37315         Reported by Simon Josefsson and Ludovic Courtès.
37316
37317 2010-03-12  Bruno Haible  <bruno@clisp.org>
37318
37319         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37320         stable releases.
37321
37322 2010-03-11  Bruno Haible  <bruno@clisp.org>
37323
37324         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37325         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37326         whether the system provides one variant or multiple variants of the
37327         function.
37328         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37329         C++ compilers.
37330         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37331         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37332         Reported by Jim Meyering.
37333
37334 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37335
37336         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37337
37338 2010-03-08  Bruno Haible  <bruno@clisp.org>
37339
37340         gnulib-tool: Add support for --libtool in --create-testdir.
37341         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37342         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37343
37344 2010-03-08  Eric Blake  <eblake@redhat.com>
37345
37346         gnulib-tool.texi: mention possibility of git submodule
37347         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37348         submodules.
37349         * doc/.gitignore: Ignore another generated file.
37350
37351 2010-03-08  Karl Berry  <karl@gnu.org>
37352
37353         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37354         of committing gnulib files while skipping others.
37355
37356 2010-03-07  Bruno Haible  <bruno@clisp.org>
37357
37358         Tests of module 'wctype' in C++ mode.
37359         * tests/test-wctype-c++.cc: New file.
37360         * modules/wctype-tests (Files): Add it and tests/signature.h.
37361         (Depends-on): Add ansi-c++-opt.
37362         (Makefile.am): Arrange to compile and run test-wctype-c++.
37363
37364         Tests of module 'wchar' in C++ mode.
37365         * tests/test-wchar-c++.cc: New file.
37366         * modules/wchar-tests (Files): Add it and tests/signature.h.
37367         (Depends-on): Add ansi-c++-opt.
37368         (Makefile.am): Arrange to compile and run test-wchar-c++.
37369         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37370         gl_MODULE_INDICATOR.
37371
37372         Tests of module 'unistd' in C++ mode.
37373         * tests/test-unistd-c++.cc: New file.
37374         * modules/unistd-tests (Files): Add it and tests/signature.h.
37375         (Depends-on): Add ansi-c++-opt.
37376         (Makefile.am): Arrange to compile and run test-unistd-c++.
37377         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37378         gl_MODULE_INDICATOR.
37379
37380         Tests of module 'time' in C++ mode.
37381         * tests/test-time-c++.cc: New file.
37382         * modules/time-tests (Files): Add it and tests/signature.h.
37383         (Depends-on): Add ansi-c++-opt.
37384         (Makefile.am): Arrange to compile and run test-time-c++.
37385         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37386
37387         Tests of module 'sys_time' in C++ mode.
37388         * tests/test-sys_time-c++.cc: New file.
37389         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37390         (Depends-on): Add ansi-c++-opt.
37391         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37392         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37393         gl_MODULE_INDICATOR.
37394
37395         Tests of module 'sys_stat' in C++ mode.
37396         * tests/test-sys_stat-c++.cc: New file.
37397         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37398         (Depends-on): Add ansi-c++-opt.
37399         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37400         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37401         gl_MODULE_INDICATOR.
37402
37403         Tests of module 'sys_socket' in C++ mode.
37404         * tests/test-sys_socket-c++.cc: New file.
37405         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37406         (Depends-on): Add ansi-c++-opt.
37407         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37408         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37409         gl_MODULE_INDICATOR.
37410
37411         Tests of module 'sys_select' in C++ mode.
37412         * tests/test-sys_select-c++.cc: New file.
37413         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37414         (Depends-on): Add ansi-c++-opt.
37415         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37416         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37417         gl_MODULE_INDICATOR.
37418
37419         Tests of module 'sys_ioctl' in C++ mode.
37420         * tests/test-sys_ioctl-c++.cc: New file.
37421         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37422         (Depends-on): Add ansi-c++-opt.
37423         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37424         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37425         gl_MODULE_INDICATOR.
37426
37427         Tests of module 'string' in C++ mode.
37428         * tests/test-string-c++.cc: New file.
37429         * modules/string-tests (Files): Add it and tests/signature.h.
37430         (Depends-on): Add ansi-c++-opt.
37431         (Makefile.am): Arrange to compile and run test-string-c++.
37432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37433         gl_MODULE_INDICATOR.
37434
37435         Tests of module 'stdlib' in C++ mode.
37436         * tests/test-stdlib-c++.cc: New file.
37437         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37438         (Depends-on): Add ansi-c++-opt.
37439         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37440         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37441         gl_MODULE_INDICATOR.
37442
37443         Tests of module 'stdio' in C++ mode.
37444         * tests/test-stdio-c++.cc: New file.
37445         * modules/stdio-tests (Files): Add it and tests/signature.h.
37446         (Depends-on): Add ansi-c++-opt.
37447         (Makefile.am): Arrange to compile and run test-stdio-c++.
37448         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37449         gl_MODULE_INDICATOR.
37450
37451         Tests of module 'spawn' in C++ mode.
37452         * tests/test-spawn-c++.cc: New file.
37453         * modules/spawn-tests (Files): Add it and tests/signature.h.
37454         (Depends-on): Add ansi-c++-opt.
37455         (Makefile.am): Arrange to compile and run test-spawn-c++.
37456         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37457         gl_MODULE_INDICATOR.
37458
37459         Tests of module 'signal' in C++ mode.
37460         * tests/test-signal-c++.cc: New file.
37461         * modules/signal-tests (Files): Add it and tests/signature.h.
37462         (Depends-on): Add ansi-c++-opt.
37463         (Makefile.am): Arrange to compile and run test-signal-c++.
37464         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37465         gl_MODULE_INDICATOR.
37466
37467         Tests of module 'search' in C++ mode.
37468         * tests/test-search-c++.cc: New file.
37469         * modules/search-tests (Files): Add it and tests/signature.h.
37470         (Depends-on): Add ansi-c++-opt.
37471         (Makefile.am): Arrange to compile and run test-search-c++.
37472         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37473         gl_MODULE_INDICATOR.
37474
37475         Tests of module 'math' in C++ mode.
37476         * tests/test-math-c++.cc: New file.
37477         * modules/math-tests (Files): Add it and tests/signature.h.
37478         (Depends-on): Add ansi-c++-opt.
37479         (Makefile.am): Arrange to compile and run test-math-c++.
37480         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37481
37482         Tests of module 'locale' in C++ mode.
37483         * tests/test-locale-c++.cc: New file.
37484         * modules/locale-tests (Files): Add it and tests/signature.h.
37485         (Depends-on): Add ansi-c++-opt.
37486         (Makefile.am): Arrange to compile and run test-locale-c++.
37487         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37488         gl_MODULE_INDICATOR.
37489
37490         Tests of module 'langinfo' in C++ mode.
37491         * tests/test-langinfo-c++.cc: New file.
37492         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37493         (Depends-on): Add ansi-c++-opt.
37494         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37495         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37496         gl_MODULE_INDICATOR.
37497
37498         Tests of module 'iconv-h' in C++ mode.
37499         * tests/test-iconv-h-c++.cc: New file.
37500         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37501         (Depends-on): Add ansi-c++-opt.
37502         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37503
37504         Tests of module 'glob' in C++ mode.
37505         * tests/test-glob-c++.cc: New file.
37506         * modules/glob-tests (Files): Add it.
37507         (Depends-on): Add ansi-c++-opt.
37508         (Makefile.am): Arrange to compile and run test-glob-c++.
37509
37510         Tests of module 'fcntl-h' in C++ mode.
37511         * tests/test-fcntl-h-c++.cc: New file.
37512         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37513         (Depends-on): Add ansi-c++-opt.
37514         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37515         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37516         gl_MODULE_INDICATOR.
37517
37518         Tests of module 'dirent' in C++ mode.
37519         * tests/test-dirent-c++.cc: New file.
37520         * modules/dirent-tests (Files): Add it and tests/signature.h.
37521         (Depends-on): Add ansi-c++-opt.
37522         (Makefile.am): Arrange to compile and run test-dirent-c++.
37523         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37524         gl_MODULE_INDICATOR.
37525
37526         New module 'ansi-c++-opt'.
37527         * modules/ansi-c++-opt: New file.
37528         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37529
37530         Document C++ namespace mode.
37531         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37532
37533         wctype: Avoid #define replacements in C++ mode.
37534         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37535         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37536         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37537         In C++, define a namespaced alias symbol.
37538         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37539         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37540         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37541         rule.
37542
37543         wchar: Avoid #define replacements in C++ mode.
37544         * lib/wchar.in.h: Include c++defs.h.
37545         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37546         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37547         symbol.
37548         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37549         * modules/wchar (Depends-on): Add c++defs.
37550         (Makefile.am): Update wchar.h rule.
37551
37552         unistd: Avoid #define replacements in C++ mode.
37553         * lib/unistd.in.h: Include c++defs.h.
37554         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37555         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37556         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37557         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37558         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37559         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37560         symbol.
37561         (environ): Update.
37562         * modules/unistd (Depends-on): Add c++defs.
37563         (Makefile.am): Update unistd.h rule.
37564
37565         time: Avoid #define replacements in C++ mode.
37566         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37567         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37568         define a namespaced alias symbol.
37569         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37570         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37571         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37572         * modules/time (Depends-on): Add c++defs, warn-on-use.
37573         (Makefile.am): Update time.h rule.
37574         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37575         * modules/nanosleep (configure.ac): Likewise.
37576         * modules/strptime (configure.ac): Likewise.
37577         * modules/timegm (configure.ac): Likewise.
37578
37579         sys_time: Avoid #define replacements in C++ mode.
37580         * lib/sys_time.in.h: Include c++defs.h.
37581         (gettimeofday): In C++, define a namespaced alias symbol.
37582         * modules/sys_time (Depends-on): Add c++defs.
37583         (Makefile.am): Update sys/time.h rule.
37584
37585         sys_stat: Avoid #define replacements in C++ mode.
37586         * lib/sys_stat.in.h: Include c++defs.h.
37587         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37588         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37589         namespaced alias symbol.
37590         In C++, define a namespaced alias symbol.
37591         * modules/sys_stat (Depends-on): Add c++defs.
37592         (Makefile.am): Update sys/stat.h rule.
37593
37594         sys_socket: Avoid #define replacements in C++ mode.
37595         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37596         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37597         definitions also when the system has a <sys/socket.h>.
37598         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37599         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37600         In C++, define a namespaced alias symbol.
37601         * modules/sys_socket (Depends-on): Add c++defs.
37602         (Makefile.am): Update sys/socket.h rule.
37603
37604         sys_select: Avoid #define replacements in C++ mode.
37605         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37606         definitions also when the system has a <sys/select.h>.
37607         (select): In C++, define a namespaced alias symbol.
37608         * modules/sys_select (Depends-on): Add c++defs.
37609         (Makefile.am): Update sys/select.h rule.
37610
37611         sys_ioctl: Avoid #define replacements in C++ mode.
37612         * lib/sys_ioctl.in.h: Include c++defs.h.
37613         (ioctl): In C++, define a namespaced alias symbol.
37614         * modules/sys_ioctl (Depends-on): Add c++defs.
37615         (Makefile.am): Update sys/ioctl.h rule.
37616
37617         string: Avoid #define replacements in C++ mode.
37618         * lib/string.in.h: Include c++defs.h.
37619         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37620         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37621         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37622         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37623         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37624         * modules/string (Depends-on): Add c++defs.
37625         (Makefile.am): Update string.h rule.
37626
37627         stdlib: Avoid #define replacements in C++ mode.
37628         * lib/stdlib.in.h: Include c++defs.h.
37629         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37630         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37631         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37632         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37633         symbol.
37634         * modules/stdlib (Depends-on): Add c++defs.
37635         (Makefile.am): Update stdlib.h rule.
37636
37637         stdio: Avoid #define replacements in C++ mode.
37638         * lib/stdio.in.h: Include c++defs.h.
37639         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37640         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37641         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37642         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37643         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37644         namespaced alias symbol.
37645         * modules/stdio (Depends-on): Add c++defs.
37646         (Makefile.am): Update stdio.h rule.
37647
37648         spawn: Avoid #define replacements in C++ mode.
37649         * lib/spawn.in.h: Include c++defs.h.
37650         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37651         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37652         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37653         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37654         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37655         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37656         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37657         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37658         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37659         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37660         In C++, define a namespaced alias symbol.
37661         * modules/spawn (Depends-on): Add c++defs.
37662         (Makefile.am): Update spawn.h rule.
37663
37664         signal: Avoid #define replacements in C++ mode.
37665         * lib/signal.in.h: Include c++defs.h.
37666         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37667         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37668         namespaced alias symbol.
37669         * modules/signal (Depends-on): Add c++defs.
37670         (Makefile.am): Update signal.h rule.
37671
37672         search: Avoid #define replacements in C++ mode.
37673         * lib/search.in.h: Include c++defs.h.
37674         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37675         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37676         symbol.
37677         * modules/search (Depends-on): Add c++defs.
37678         (Makefile.am): Update search.h rule.
37679
37680         math: Avoid #define replacements in C++ mode.
37681         * lib/math.in.h: Include c++defs.h.
37682         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37683         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37684         trunc, truncl): In C++, define a namespaced alias symbol.
37685         * modules/math (Depends-on): Add c++defs.
37686         (Makefile.am): Update math.h rule.
37687
37688         locale: Avoid #define replacements in C++ mode.
37689         * lib/locale.in.h: Include c++defs.h.
37690         (duplocale): In C++, define a namespaced alias symbol.
37691         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37692         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37693         * modules/locale (Depends-on): Add c++defs.
37694         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37695
37696         langinfo: Avoid #define replacements in C++ mode.
37697         * lib/langinfo.in.h: Include c++defs.h.
37698         (nl_langinfo): In C++, define a namespaced alias symbol.
37699         * modules/langinfo (Depends-on): Add c++defs.
37700         (Makefile.am): Update langinfo.h rule.
37701
37702         iconv-h: Avoid #define replacements in C++ mode.
37703         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37704         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37705         symbol.
37706         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37707         whenever iconv is present.
37708         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37709         (Makefile.am): Update iconv.h rule.
37710
37711         glob: Avoid #define replacements in C++ mode.
37712         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37713         (_gl_glob_errfunc_fn): New type.
37714         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37715         symbol.
37716         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37717         (Makefile.am): Update glob.h rule.
37718
37719         fcntl-h: Avoid #define replacements in C++ mode.
37720         * lib/fcntl.in.h: Include c++defs.h.
37721         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37722         * modules/fcntl-h (Depends-on): Add c++defs.
37723         (Makefile.am): Update fcntl.h rule.
37724
37725         dirent: Avoid #define replacements in C++ mode.
37726         * lib/dirent.in.h: Include c++defs.h.
37727         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37728         namespaced alias symbol.
37729         (dirfd): Update declaration.
37730         * modules/dirent (Depends-on): Add c++defs.
37731         (Makefile.am): Update dirent.h rule.
37732
37733         ctype: Make it usable in C++ code.
37734         * lib/ctype.in.h: Include c++defs.h.
37735         (isblank): Declare as extern "C".
37736         * modules/ctype (Depends-on): Add c++defs.
37737         (Makefile.am): Update ctype.h rule.
37738
37739         New module 'c++defs'.
37740         * modules/c++defs: New file.
37741         * build-aux/c++defs.h: New file.
37742         Reported by John W. Eaton <jwe@gnu.org>.
37743
37744 2010-03-07  Bruno Haible  <bruno@clisp.org>
37745
37746         logb: Provide missing declaration for Cygwin.
37747         * lib/math.in.h (logb): New declaration.
37748         * m4/logb.m4: New file.
37749         * modules/logb (Files): Add m4/logb.m4.
37750         (Depends-on): Add math.
37751         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37752         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37754         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37755         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37756
37757 2010-03-07  Bruno Haible  <bruno@clisp.org>
37758
37759         Fix test-cond link error.
37760         * tests/test-cond.c: Include <stdio.h>.
37761
37762 2010-03-07  Bruno Haible  <bruno@clisp.org>
37763
37764         Fix test-dirent-safer link error.
37765         * modules/dirent-safer-tests (Makefile.am): Define
37766         test_dirent_safer_LDADD.
37767
37768 2010-03-07  Bruno Haible  <bruno@clisp.org>
37769
37770         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37771         among default module list.
37772
37773 2010-03-07  Bruno Haible  <bruno@clisp.org>
37774
37775         Fix link error on platforms with GNU libiconv.
37776         * modules/unistr/u8-strcoll-tests (Makefile): Define
37777         test_u8_strcoll_LDADD.
37778         * modules/unistr/u16-strcoll-tests (Makefile): Define
37779         test_u16_strcoll_LDADD.
37780         * modules/unistr/u32-strcoll-tests (Makefile): Define
37781         test_u32_strcoll_LDADD.
37782
37783 2010-03-07  Bruno Haible  <bruno@clisp.org>
37784
37785         Use POSIX declarations for socket functions.
37786         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37787         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37788         rpl_sendto): Change declaration to match POSIX.
37789         * lib/connect.c (rpl_connect): Likewise.
37790         * lib/accept.c (rpl_accept): Likewise.
37791         * lib/bind.c (rpl_bind): Likewise.
37792         * lib/getpeername.c (rpl_getpeername): Likewise.
37793         * lib/getsockname.c (rpl_getsockname): Likewise.
37794         * lib/recv.c (rpl_recv): Likewise.
37795         * lib/send.c (rpl_send): Likewise.
37796         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37797         * lib/sendto.c (rpl_sendto): Likewise.
37798
37799 2010-03-06  Bruno Haible  <bruno@clisp.org>
37800
37801         Clarify access, euidaccess, faccessat.
37802         * doc/posix-functions/faccessat.texi: Mention security problem under
37803         "Other problems", not "Portability problems".
37804         * doc/posix-functions/access.texi: Likewise. Mention a related security
37805         problem.
37806         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37807         * lib/euidaccess.c: Add comments about platforms.
37808         * lib/unistd.in.h (access, euidaccess): Add warnings.
37809
37810 2010-03-07  Bruno Haible  <bruno@clisp.org>
37811
37812         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37813         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37814         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37815         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37816         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37817         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37818         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37819         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37820         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37821         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37822         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37823         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37824         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37825         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37826         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37827         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37828         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37829         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37830         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37831         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37832         Likewise.
37833         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37834         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37835         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37836         Likewise.
37837         * tests/test-spawn.c (main): Make it work when
37838         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37839
37840 2010-03-07  Bruno Haible  <bruno@clisp.org>
37841
37842         Fix incorrect Makefile.am generation in German locale.
37843         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37844         Execute sed command with character range in C locale.
37845
37846 2010-03-06  Bruno Haible  <bruno@clisp.org>
37847
37848         Tests for module 'iconv-h'.
37849         * modules/iconv-h-tests: New file.
37850         * tests/test-iconv-h.c: New file.
37851
37852         New module 'iconv-h'.
37853         * modules/iconv-h: New file.
37854         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37855         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37856         (configure.ac): Remove gl_ICONV_H.
37857         (Makefile.am): Remove rule for iconv.h.
37858
37859 2010-03-06  Bruno Haible  <bruno@clisp.org>
37860
37861         More consistent naming of *.m4 files.
37862         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37863         * modules/wctype (Files): Update.
37864
37865         More consistent naming of *.m4 files.
37866         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37867         * modules/wchar (Files): Update.
37868
37869 2010-03-06  Jim Meyering  <meyering@redhat.com>
37870
37871         euidaccess: relax license to LGPLv2+
37872         * modules/euidaccess (License): Relax to LGPLv2+.
37873
37874 2010-03-06  Bruno Haible  <bruno@clisp.org>
37875
37876         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37877         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37878         (Makefile.am): Augment lib_SOURCES instead.
37879
37880 2010-03-04  Jim Meyering  <meyering@redhat.com>
37881
37882         utime: remove obsolete module
37883         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37884         unnecessary for years, and has been marked as obsolete for 10 months.
37885         * modules/utime: Remove file.
37886         * lib/utime.c: Remove file.
37887         * m4/utime.m4: Remove file.
37888         * m4/utimes-null.m4: Remove file.
37889         * doc/posix-functions/utime.texi (utime): Remove reference to
37890         the module.  Move the sole "fixed by gnulib" item into the
37891         "problems not fixed by Gnulib" list.
37892         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37893
37894 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37895
37896         * modules/exit (License): Relax license to LGPLv2+.
37897         (Status): Mark as obsolete.
37898         * NEWS: Mention deprecated 'exit' module.
37899         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37900         of now obsolete 'exit'.
37901
37902 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37903
37904         fts-lgpl: remove unused module
37905         * modules/fts-lgpl: Remove.
37906         * MODULES.html.sh (func_all_modules): Adjust.
37907         * check-module (find_included_lib_files): Adjust.
37908         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37909
37910 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37911
37912         copy-acl: enhance Solaris ACL error handling
37913         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37914         * lib/set-mode-acl.c (qset_acl): Likewise.
37915
37916 2010-03-02  Bruno Haible  <bruno@clisp.org>
37917
37918         spawn: Don't override the system defined values on FreeBSD 8.
37919         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37920         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37921         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37922         if HAVE_POSIX_SPAWN is 1.
37923         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37924
37925 2010-03-01  Bruno Haible  <bruno@clisp.org>
37926
37927         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37928         regarding Automake.
37929
37930 2010-02-25  Bruno Haible  <bruno@clisp.org>
37931
37932         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37933         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37934         setting, not afterwards.
37935         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37936
37937 2010-02-24  Eric Blake  <eblake@redhat.com>
37938
37939         bootstrap, git-version-gen: use timestamp
37940         * build-aux/git-version-gen (scriptversion): Force UTC.
37941         * build-aux/bootstrap (scriptversion): New variable.
37942
37943         bootstrap: allow older git
37944         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37945         older than 1.6.4.  Requested by the libvirt project.
37946
37947 2010-02-23  Eric Blake  <eblake@redhat.com>
37948
37949         warn-on-use: work with old autoconf
37950         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37951         AS_VAR semantics of autoconf 2.60.
37952         Reported by Bruno Haible.
37953
37954         bootstrap: improve some comments
37955         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37956         clarification comments.
37957
37958         gettimeofday: provide correct function
37959         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37960         when replacement is declared, otherwise provide gettimeofday.
37961         Reported by Michael Goffioul.
37962
37963 2010-02-23  Jim Meyering  <meyering@redhat.com>
37964
37965         lib-ignore: relax license to "unlimited", not LGPLv2+
37966         * modules/lib-ignore (License): Relax to "unlimited".
37967
37968 2010-02-23  Jim Meyering  <meyering@redhat.com>
37969
37970         lib-ignore: relax license to LGPLv2+
37971         * modules/lib-ignore (License): Relax to LGPLv2+.
37972
37973 2010-02-22  Eric Blake  <eblake@redhat.com>
37974
37975         lseek: avoid bash 3.2 broken pipe bug
37976         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37977         warning from bash 3.2.
37978         Reported by Ben Pfaff, with analysis from Bruno Haible.
37979
37980         bootstrap: support non-FSF copyright holder
37981         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37982         bootstrap.conf override of COPYRIGHT_HOLDER.
37983         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37984
37985         bootstrap: interoperate with gettext 0.14.1
37986         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37987
37988         bootstrap: allow for alternate submodule location
37989         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37990         hardcoding submodule location.
37991         (gnulib_mk): Allow direct use of Makefile.am.
37992
37993         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37994         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37995         rather than reconfiguring where the submodule points.
37996
37997         gettimeofday: restore support for platforms that lack function
37998         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37999         replacement if function is missing.
38000         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
38001         * modules/sys_time (Makefile.am): Substitute it.
38002         * lib/sys_time.in.h (gettimeofday): Check it.
38003         Reported by Michael Goffioul.
38004
38005 2010-02-21  Bruno Haible  <bruno@clisp.org>
38006
38007         * lib/stdio.in.h (obstack_printf): Fix typo.
38008
38009 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38010
38011         vc-list-files: use bzr ls's -R option
38012         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
38013         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
38014
38015 2010-02-21  Jim Meyering  <meyering@redhat.com>
38016
38017         init.sh: fix EXEEXT shims to work also for names like test-prog
38018         * tests/init.sh: Re-exec a better shell, when needed.
38019         If the current shell lacks support for posix $(...), an init.sh-using
38020         test will now try to find a shell that supports that.  If EXEEXT is
38021         nonempty, we also require support for hyphen-in-alias-name and shell
38022         substitutions like ${var#glob}.  Failure to find such a shell results
38023         in a skipped test.
38024
38025 2010-02-21  Bruno Haible  <bruno@clisp.org>
38026
38027         Really work around around "broken pipe" error message from bash 3.2.
38028         * gnulib-tool (func_reset_sigpipe): Remove function.
38029         (echo): In bash 3.2, define to a function that uses printf.
38030         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
38031
38032 2010-02-20  Bruno Haible  <bruno@clisp.org>
38033
38034         Restore support for automake 1.9.6 with autoconf 2.61.
38035         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
38036         Reported by James Youngman <jay@gnu.org>.
38037
38038 2010-02-20  Bruno Haible  <bruno@clisp.org>
38039
38040         Improve *printf warning condition.
38041         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
38042         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
38043         and the function is overridden due to SIGPIPE emulation.
38044
38045 2010-02-20  Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/stdio.in.h: Tweak comments.
38048
38049 2010-02-19  Bruno Haible  <bruno@clisp.org>
38050
38051         Make it easier to find modules. New gnulib-tool option '--find'.
38052         * gnulib-tool: New option --find.
38053         (func_usage): Document it.
38054         (func_sanitize_modulelist): New function, extracted from
38055         func_all_modules.
38056         (func_all_modules): Invoke it.
38057         * doc/gnulib-tool.texi (Which modules?): New node.
38058
38059 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
38060
38061         * lib/sys_select.in.h: Provide select replacement even if
38062         sys/select.h exists on a system, for Interix.
38063
38064 2010-02-18  Jim Meyering  <meyering@redhat.com>
38065
38066         init.sh: don't use $(...) just yet
38067         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
38068         to accommodate e.g., Solaris' /bin/sh.
38069
38070 2010-02-17  Bruno Haible  <bruno@clisp.org>
38071
38072         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
38073         Reported by Ludovic Courtès <ludo@gnu.org>.
38074
38075 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38076
38077         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38078         linking with -lintl.
38079
38080 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38081
38082         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38083         if not provided by the system's netdb.h.  Reported by
38084         ludo@gnu.org (Ludovic Courtès).
38085
38086 2010-02-15  Jim Meyering  <meyering@redhat.com>
38087
38088         init.sh: improve portability and efficiency
38089         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38090         "dummy" in a for loop.
38091         Use '!', not '^' to select the complement of a character set used
38092         in a "case" statement.
38093         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38094         Suggestions from Eric Blake.
38095
38096         init.sh: automatically accommodate programs with the .exe suffix
38097         Automatically arrange for an invocation of "prog" to execute the
38098         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38099         may use the simpler "prog", yet still work when built on a system
38100         that requires specifying the added suffix.
38101         Do this by constructing a function named "prog" that invokes
38102         "prog.exe" for each .exe file in selected directories.
38103         * tests/init.sh (find_exe_basenames_): New function.
38104         (create_exe_shim_functions_): New function.
38105         (path_prepend_): Use it.
38106
38107         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38108         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38109         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38110
38111 2010-02-14  Jim Meyering  <meyering@redhat.com>
38112
38113         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38114         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38115         (sc_prohibit_hash_pjw_without_use): New rule.
38116
38117         maint.mk: allow the default upload destination dir to be overridden
38118         * top/maint.mk (upload_dest_dir_): Define with a default that
38119         preserves the status quo.
38120         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38121         Reported by Peter Simons.
38122
38123         maint.mk: prohibit inclusion of "hash.h" without_use
38124         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38125
38126 2010-02-10  Jim Meyering  <meyering@redhat.com>
38127
38128         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38129         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38130
38131 2010-02-09  Eric Blake  <ebb9@byu.net>
38132         and Bruno Haible  <bruno@clisp.org>
38133
38134         obstack-printf-posix: ensure declaration
38135         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38136         extracted from gl_FUNC_OBSTACK_PRINTF.
38137         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38138         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38139         Likewise.
38140         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38141         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38142         0.
38143
38144 2010-02-08  Bruno Haible  <bruno@clisp.org>
38145
38146         gnulib-tool: Fix typo in 2010-02-07 commit.
38147         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38148         Reported by Eric Blake.
38149
38150 2010-02-07  Bruno Haible  <bruno@clisp.org>
38151
38152         gnulib-tool: Fix up caching patches.
38153         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38154         option --no-cache. Use associative arrays when supported by the shell.
38155         (sed_comments): New variable.
38156         (modcache): Renamed from do_cache.
38157         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38158         abbreviate unnecessarily.
38159         (have_associative): New variable.
38160         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38161         way also for ksh and zsh.
38162         (func_init_sed_convert_to_cache_statements): New function, extracted
38163         from func_cache_lookup_module. Add support for associative arrays.
38164         Don't set the c_MODULE_cached variable here. Ignore all lines before
38165         the first field header. Remove only the final newline, not all trailing
38166         newlines. Support empty fields correctly. Limit the use of 'eval' to
38167         assignments.
38168         (func_get_description, func_get_status, func_get_notice,
38169         func_get_applicability, func_get_filelist, func_get_dependencies,
38170         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38171         func_get_automake_snippet, func_get_include_directive,
38172         func_get_link_directive, func_get_license, func_get_maintainer):
38173         Update documentation. List the unoptimized code first. Add support for
38174         associative arrays. Limit the use of 'eval' to assignments.
38175         (func_get_applicability): Undo stylistic pessimisations.
38176         (func_get_automake_snippet, func_get_include_directive): Reduce code
38177         duplication.
38178         (func_modules_transitive_closure, func_modules_add_dummy,
38179         func_modules_notice, func_modules_to_filelist, func_add_file,
38180         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38181         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38182         func_create_testdir, func_create_megatestdir): Update documentation.
38183
38184 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38185
38186         * gnulib-tool (func_cache_lookup_module): Store the module name
38187         belonging to the cache variable; error out if two different
38188         module names map to the same cache variable name.
38189
38190 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38191
38192         gnulib-tool: Make caching optional.
38193         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38194         Update matching short versions of --no-changelog.
38195         (func_usage): Update.
38196         (sed_extract_cache_prog): Renamed from ...
38197         (sed_extract_prog): ... this; revert to old extraction script.
38198         (func_get_description, func_get_status)
38199         (func_get_notice, func_get_applicability, func_get_filelist)
38200         (func_get_dependencies, func_get_autoconf_early_snippet)
38201         (func_get_autoconf_snippet, func_get_automake_snippet)
38202         (func_get_include_directive, func_get_link_directive)
38203         (func_get_license, func_get_maintainer): If $do_cache is false,
38204         use old, non-caching extraction scripts.
38205         Suggestion by Bruno Haible.
38206
38207 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38208
38209         gnulib-tool: cache module metainformation.
38210         * gnulib-tool (sed_extract_prog): Match newline before each
38211         header, and rewrite header to a shell variable suffix.
38212         (func_cache_var, func_cache_lookup_module): New functions,
38213         to turn a module name into a cache variable prefix, and to
38214         look up and cache module metainformation.
38215         (func_get_description, func_get_status)
38216         (func_get_notice, func_get_applicability, func_get_filelist)
38217         (func_get_dependencies, func_get_autoconf_early_snippet)
38218         (func_get_autoconf_snippet, func_get_automake_snippet)
38219         (func_get_include_directive, func_get_link_directive)
38220         (func_get_license, func_get_maintainer): Use
38221         func_cache_lookup_module.
38222
38223 2010-02-07  Bruno Haible  <bruno@clisp.org>
38224
38225         fnctl: Fix missing dependency.
38226         * modules/fcntl (Depends-on): Add getdtablesize.
38227         Reported by John W. Eaton <jwe@gnu.org>.
38228
38229 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38230
38231         Argp: fix recognition of short alias options.
38232
38233         * lib/argp-parse.c (convert_options): Fix improper use of
38234         `|' between character values.
38235         * tests/test-argp.c (group1_option): New alias option
38236         --read (-r).
38237         (group1_parser): Special handling for 'r'.
38238         (test15): New test case.
38239         (test_fun): Add test15.
38240         * tests/test-argp-2.sh: Update expected --help and --usage
38241         outputs.
38242
38243 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38244
38245         * tests/test-argp.c: Fix indentation.
38246
38247 2010-02-04  Eric Blake  <ebb9@byu.net>
38248
38249         gettimeofday: expose type of second argument
38250         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38251         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38252         * tests/test-gettimeofday.c: Use it to silence warning.
38253         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38254         the issue.
38255
38256 2010-02-03  Jim Meyering  <meyering@redhat.com>
38257
38258         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38259         * lib/regcomp.c (TYPE_SIGNED): Define.
38260         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38261
38262         regcomp.c: avoid a new -Wshadow warning
38263         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38264
38265 2010-02-01  Jim Meyering  <meyering@redhat.com>
38266
38267         removing useless parentheses in cpp #define directives
38268         For motivation, see commit c0221df4, "define STREQ(a,b)
38269         consistently, removing useless parentheses"
38270         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38271         * lib/mountlist.c (MNT_IGNORE): Likewise.
38272         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38273
38274 2010-02-01  Eric Blake  <ebb9@byu.net>
38275
38276         sys_time: use link-warning
38277         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38278         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38279         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38280         * modules/sys_time (Depends-on): Add warn-on-use.
38281         (Makefile.am): Always build replacement.
38282         (configure.ac): Update substitutions.
38283         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38284         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38285         bother with SYS_TIME_H.
38286         * modules/gettimeofday (configure.ac): Declare indicator.
38287         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38288         in use.
38289
38290         closein-tests: silence compiler warning
38291         * tests/test-closein.c (main): Ignore fread result.
38292         * modules/closein-tests (Depends-on): Add ignore-value.
38293
38294         tests: silence warning about system return
38295         * tests/test-areadlink-with-size.c (main): Ignore system result.
38296         * tests/test-areadlink.c (main): Likewise.
38297         * tests/test-areadlinkat-with-size.c (main): Likewise.
38298         * tests/test-areadlinkat.c (main): Likewise.
38299         * tests/test-canonicalize-lgpl.c (main): Likewise.
38300         * tests/test-canonicalize.c (main): Likewise.
38301         * tests/test-chown.c (main): Likewise.
38302         * tests/test-fchownat.c (main): Likewise.
38303         * tests/test-fdutimensat.c (main): Likewise.
38304         * tests/test-fstatat.c (main): Likewise.
38305         * tests/test-futimens.c (main): Likewise.
38306         * tests/test-lchown.c (main): Likewise.
38307         * tests/test-link.c (main): Likewise.
38308         * tests/test-linkat.c (main): Likewise.
38309         * tests/test-lstat.c (main): Likewise.
38310         * tests/test-mkdir.c (main): Likewise.
38311         * tests/test-mkdirat.c (main): Likewise.
38312         * tests/test-mkfifo.c (main): Likewise.
38313         * tests/test-mkfifoat.c (main): Likewise.
38314         * tests/test-mknod.c (main): Likewise.
38315         * tests/test-readlink.c (main): Likewise.
38316         * tests/test-remove.c (main): Likewise.
38317         * tests/test-rename.c (main): Likewise.
38318         * tests/test-renameat.c (main): Likewise.
38319         * tests/test-rmdir.c (main): Likewise.
38320         * tests/test-symlink.c (main): Likewise.
38321         * tests/test-symlinkat.c (main): Likewise.
38322         * tests/test-unlink.c (main): Likewise.
38323         * tests/test-unlinkat.c (main): Likewise.
38324         * tests/test-utimens.c (main): Likewise.
38325         * tests/test-utimensat.c (main): Likewise.
38326         * modules/areadlink-tests (Depends-on): Add ignore-value.
38327         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38328         * modules/areadlinkat-tests (Depends-on): Likewise.
38329         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38330         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38331         * modules/canonicalize-tests (Depends-on): Likewise.
38332         * modules/chown-tests (Depends-on): Likewise.
38333         * modules/fdutimensat-tests (Depends-on): Likewise.
38334         * modules/futimens-tests (Depends-on): Likewise.
38335         * modules/lchown-tests (Depends-on): Likewise.
38336         * modules/link-tests (Depends-on): Likewise.
38337         * modules/linkat-tests (Depends-on): Likewise.
38338         * modules/lstat-tests (Depends-on): Likewise.
38339         * modules/mkdir-tests (Depends-on): Likewise.
38340         * modules/mkfifo-tests (Depends-on): Likewise.
38341         * modules/mkfifoat-tests (Depends-on): Likewise.
38342         * modules/mknod-tests (Depends-on): Likewise.
38343         * modules/openat-tests (Depends-on): Likewise.
38344         * modules/readlink-tests (Depends-on): Likewise.
38345         * modules/remove-tests (Depends-on): Likewise.
38346         * modules/rename-tests (Depends-on): Likewise.
38347         * modules/renameat-tests (Depends-on): Likewise.
38348         * modules/rmdir-tests (Depends-on): Likewise.
38349         * modules/symlink-tests (Depends-on): Likewise.
38350         * modules/symlinkat-tests (Depends-on): Likewise.
38351         * modules/unlink-tests (Depends-on): Likewise.
38352         * modules/utimens-tests (Depends-on): Likewise.
38353         * modules/utimensat-tests (Depends-on): Likewise.
38354
38355 2010-01-31  Bruno Haible  <bruno@clisp.org>
38356
38357         Perform the same test for many <math.h> functions.
38358         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38359         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38360         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38361         of gl_MATHFUNC.
38362         * modules/acos (configure.ac): Likewise.
38363         * modules/asin (configure.ac): Likewise.
38364         * modules/atan (configure.ac): Likewise.
38365         * modules/atan2 (configure.ac): Likewise.
38366         * modules/cbrt (configure.ac): Likewise.
38367         * modules/copysign (configure.ac): Likewise.
38368         * modules/cos (configure.ac): Likewise.
38369         * modules/cosh (configure.ac): Likewise.
38370         * modules/erf (configure.ac): Likewise.
38371         * modules/erfc (configure.ac): Likewise.
38372         * modules/exp (configure.ac): Likewise.
38373         * modules/fmod (configure.ac): Likewise.
38374         * modules/hypot (configure.ac): Likewise.
38375         * modules/j0 (configure.ac): Likewise.
38376         * modules/j1 (configure.ac): Likewise.
38377         * modules/jn (configure.ac): Likewise.
38378         * modules/lgamma (configure.ac): Likewise.
38379         * modules/log (configure.ac): Likewise.
38380         * modules/log10 (configure.ac): Likewise.
38381         * modules/log1p (configure.ac): Likewise.
38382         * modules/pow (configure.ac): Likewise.
38383         * modules/remainder (configure.ac): Likewise.
38384         * modules/sin (configure.ac): Likewise.
38385         * modules/sinh (configure.ac): Likewise.
38386         * modules/tan (configure.ac): Likewise.
38387         * modules/tanh (configure.ac): Likewise.
38388         * modules/y0 (configure.ac): Likewise.
38389         * modules/y1 (configure.ac): Likewise.
38390         * modules/yn (configure.ac): Likewise.
38391         Suggested by Paolo Bonzini.
38392
38393 2010-01-31  Bruno Haible  <bruno@clisp.org>
38394
38395         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38396
38397 2010-01-31  Bruno Haible  <bruno@clisp.org>
38398
38399         Work around getdelim() bug on FreeBSD 8.0.
38400         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38401         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38402         not work.
38403         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38404         is 1.
38405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38406         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38407         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38408         a non-zero size.
38409         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38410
38411 2010-01-31  Bruno Haible  <bruno@clisp.org>
38412
38413         Work around getline() bug on FreeBSD 8.0.
38414         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38415         and a non-zero size.
38416         * tests/test-getline.c (main): Likewise.
38417         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38418         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38419
38420 2010-01-28  Eric Blake  <ebb9@byu.net>
38421
38422         regex: fix build failure
38423         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38424         platforms.
38425
38426 2010-01-28  Jim Meyering  <meyering@redhat.com>
38427
38428         regex: do not ignore memory allocation failure
38429         * lib/regex_internal.c (create_cd_newstate): Detect
38430         re_node_set_init_copy failure.   Extracted from glibc commit
38431         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38432
38433         regex: sync more white-space changes from libc
38434         * lib/regex_internal.c: White-space only changes.
38435         * lib/regexec.c: Likewise.
38436
38437         regex: add many uses of __attribute_warn_unused_result__
38438         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38439         * lib/regexec.c: Likewise.
38440         Extracted from a messy glibc commit.
38441
38442         regcomp.c: spelling and merge-artifact from glibc
38443         * lib/regcomp.c: Merge remainder of glibc's
38444         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38445
38446         regcomp.c: sync white-space changes from glibc
38447         * lib/regcomp.c: Merge to accommodate white space
38448         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38449
38450         regcomp.c: do not ignore internal return values
38451         * lib/regcomp.c: Do not ignore internal return values.
38452         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38453         but without its white-space changes and spelling fixes.
38454
38455         regex_internal.h: define __attribute_warn_unused_result__
38456         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38457
38458         maint: add a syntax-check rule to check for vulnerable Makefile.in
38459         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38460
38461 2010-01-27  Jim Meyering  <meyering@redhat.com>
38462
38463         ncftpput-ftp: clean up spaces
38464         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38465         Remove trailing blanks.
38466
38467 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38468
38469         * build-aux/git-version-gen: Fix copyright statement.
38470         * build-aux/gnupload: Likewise.
38471         * tests/test-arcfour.c: Likewise.
38472         * tests/test-arctwo.c: Likewise.
38473         * tests/test-count-one-bits.c: Likewise.
38474         * tests/test-crc.c: Likewise.
38475         * tests/test-des.c: Likewise.
38476         * tests/test-gc-arcfour.c: Likewise.
38477         * tests/test-gc-arctwo.c: Likewise.
38478         * tests/test-gc-des.c: Likewise.
38479         * tests/test-gc-hmac-md5.c: Likewise.
38480         * tests/test-gc-hmac-sha1.c: Likewise.
38481         * tests/test-gc-md2.c: Likewise.
38482         * tests/test-gc-md4.c: Likewise.
38483         * tests/test-gc-md5.c: Likewise.
38484         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38485         * tests/test-gc-rijndael.c: Likewise.
38486         * tests/test-gc-sha1.c: Likewise.
38487         * tests/test-gc.c: Likewise.
38488         * tests/test-gethostname.c: Likewise.
38489         * tests/test-gettimeofday.c: Likewise.
38490         * tests/test-hash.c: Likewise.
38491         * tests/test-hmac-md5.c: Likewise.
38492         * tests/test-hmac-sha1.c: Likewise.
38493         * tests/test-md2.c: Likewise.
38494         * tests/test-md4.c: Likewise.
38495         * tests/test-md5.c: Likewise.
38496         * tests/test-memchr.c: Likewise.
38497         * tests/test-memchr2.c: Likewise.
38498         * tests/test-memcmp.c: Likewise.
38499         * tests/test-memmem.c: Likewise.
38500         * tests/test-memrchr.c: Likewise.
38501         * tests/test-rawmemchr.c: Likewise.
38502         * tests/test-read-file.c: Likewise.
38503         * tests/test-rijndael.c: Likewise.
38504         * tests/test-sockets.c: Likewise.
38505         * tests/test-strchrnul.c: Likewise.
38506         * tests/test-strstr.c: Likewise.
38507         * tests/test-strtod.c: Likewise.
38508         * build-aux/ncftpput-ftp: Likewise.
38509
38510 2010-01-26  Eric Blake  <ebb9@byu.net>
38511
38512         ignore-value: update recommended header name
38513         * modules/ignore-value (Include): Only use <> for headers that
38514         exist in glibc.
38515
38516 2010-01-26  Jim Meyering  <meyering@redhat.com>
38517
38518         test-userspec.c: avoid compiler warnings
38519         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38520         and "initialization discards qualifiers..." warnings.
38521         Put the first "uid" in its own scope, and make char* members "const".
38522
38523 2010-01-25  Bruno Haible  <bruno@clisp.org>
38524
38525         gnulib-tool: Make warning diagnostics consistent.
38526         * gnulib-tool (func_warning): New function.
38527         Use it everywhere where gnulib-tool produces output to stderr and it is
38528         not a fatal error.
38529
38530 2010-01-25  Bruno Haible  <bruno@clisp.org>
38531
38532         Fix test dependencies.
38533         * modules/xstrtol-tests (Depends-on): Add inttypes.
38534         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38535
38536 2010-01-25 Pádraig Brady <P@draigBrady.com>
38537
38538         syntax-check: detect incorrect boolean macro values in config.h
38539         * modules/maintainer-makefile (configure.ac): Parameterize the location
38540         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38541         The logic is from Eric Blake and the location indicated by Jim Meyering.
38542         Note the more natural CONFIG_HEADER name is prohibited by automake
38543         for backwards compatibility reasons.
38544         * top/maint.mk (sc_Wundef_boolean): New rule.
38545
38546 2010-01-25  Jim Meyering  <meyering@redhat.com>
38547
38548         bootstrap: detect MacOS 10.6's shasum, too
38549         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38550         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38551
38552 2010-01-23  Jim Meyering  <meyering@redhat.com>
38553
38554         xstrtoll: new module
38555         * modules/xstrtoll: New file.
38556         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38557         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38558         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38559         ./configure fails if you use this module and lack "long long".
38560         * modules/xstrtoll-tests: New module.
38561         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38562         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38563         new init.sh-based test framework.
38564
38565 2010-01-24  Bruno Haible  <bruno@clisp.org>
38566
38567         Tests for module 'yn'.
38568         * modules/yn-tests: New file.
38569         * tests/test-yn.c: New file.
38570
38571         Tests for module 'y1'.
38572         * modules/y1-tests: New file.
38573         * tests/test-y1.c: New file.
38574
38575         Tests for module 'y0'.
38576         * modules/y0-tests: New file.
38577         * tests/test-y0.c: New file.
38578
38579         Tests for module 'tanh'.
38580         * modules/tanh-tests: New file.
38581         * tests/test-tanh.c: New file.
38582
38583         Tests for module 'tan'.
38584         * modules/tan-tests: New file.
38585         * tests/test-tan.c: New file.
38586
38587         Tests for module 'sqrt'.
38588         * modules/sqrt-tests: New file.
38589         * tests/test-sqrt.c: New file.
38590
38591         Tests for module 'sinh'.
38592         * modules/sinh-tests: New file.
38593         * tests/test-sinh.c: New file.
38594
38595         Tests for module 'sin'.
38596         * modules/sin-tests: New file.
38597         * tests/test-sin.c: New file.
38598
38599         Tests for module 'rint'.
38600         * modules/rint-tests: New file.
38601         * tests/test-rint.c: New file.
38602
38603         Tests for module 'remainder'.
38604         * modules/remainder-tests: New file.
38605         * tests/test-remainder.c: New file.
38606
38607         Tests for module 'pow'.
38608         * modules/pow-tests: New file.
38609         * tests/test-pow.c: New file.
38610
38611         Tests for module 'nextafter'.
38612         * modules/nextafter-tests: New file.
38613         * tests/test-nextafter.c: New file.
38614
38615         Tests for module 'modf'.
38616         * modules/modf-tests: New file.
38617         * tests/test-modf.c: New file.
38618
38619         Tests for module 'logb'.
38620         * modules/logb-tests: New file.
38621         * tests/test-logb.c: New file.
38622
38623         Tests for module 'log1p'.
38624         * modules/log1p-tests: New file.
38625         * tests/test-log1p.c: New file.
38626
38627         Tests for module 'log10'.
38628         * modules/log10-tests: New file.
38629         * tests/test-log10.c: New file.
38630
38631         Tests for module 'log'.
38632         * modules/log-tests: New file.
38633         * tests/test-log.c: New file.
38634
38635         Tests for module 'lgamma'.
38636         * modules/lgamma-tests: New file.
38637         * tests/test-lgamma.c: New file.
38638
38639         Tests for module 'ldexp'.
38640         * modules/ldexp-tests: New file.
38641         * tests/test-ldexp.c: New file.
38642
38643         Tests for module 'jn'.
38644         * modules/jn-tests: New file.
38645         * tests/test-jn.c: New file.
38646
38647         Tests for module 'j1'.
38648         * modules/j1-tests: New file.
38649         * tests/test-j1.c: New file.
38650
38651         Tests for module 'j0'.
38652         * modules/j0-tests: New file.
38653         * tests/test-j0.c: New file.
38654
38655         Tests for module 'hypot'.
38656         * modules/hypot-tests: New file.
38657         * tests/test-hypot.c: New file.
38658
38659         Tests for module 'fmod'.
38660         * modules/fmod-tests: New file.
38661         * tests/test-fmod.c: New file.
38662
38663         Tests for module 'fabs'.
38664         * modules/fabs-tests: New file.
38665         * tests/test-fabs.c: New file.
38666
38667         Tests for module 'exp'.
38668         * modules/exp-tests: New file.
38669         * tests/test-exp.c: New file.
38670
38671         Tests for module 'erfc'.
38672         * modules/erfc-tests: New file.
38673         * tests/test-erfc.c: New file.
38674
38675         Tests for module 'erf'.
38676         * modules/erf-tests: New file.
38677         * tests/test-erf.c: New file.
38678
38679         Tests for module 'cosh'.
38680         * modules/cosh-tests: New file.
38681         * tests/test-cosh.c: New file.
38682
38683         Tests for module 'cos'.
38684         * modules/cos-tests: New file.
38685         * tests/test-cos.c: New file.
38686
38687         Tests for module 'copysign'.
38688         * modules/copysign-tests: New file.
38689         * tests/test-copysign.c: New file.
38690
38691         Tests for module 'cbrt'.
38692         * modules/cbrt-tests: New file.
38693         * tests/test-cbrt.c: New file.
38694
38695         Tests for module 'atan2'.
38696         * modules/atan2-tests: New file.
38697         * tests/test-atan2.c: New file.
38698
38699         Tests for module 'atan'.
38700         * modules/atan-tests: New file.
38701         * tests/test-atan.c: New file.
38702
38703         Tests for module 'asin'.
38704         * modules/asin-tests: New file.
38705         * tests/test-asin.c: New file.
38706
38707         Tests for module 'acos'.
38708         * modules/acos-tests: New file.
38709         * tests/test-acos.c: New file.
38710
38711 2010-01-24  Bruno Haible  <bruno@clisp.org>
38712
38713         Fix tests for common <math.h> functions.
38714         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38715         code snippet that references the function pointer, rather than merely
38716         calling the function. Substitute the FUNC_LIBM variable.
38717         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38718         * modules/acos (configure.ac): Likewise.
38719         * modules/asin (configure.ac): Likewise.
38720         * modules/atan (configure.ac): Likewise.
38721         * modules/atan2 (configure.ac): Likewise.
38722         * modules/cbrt (configure.ac): Likewise.
38723         * modules/copysign (configure.ac): Likewise.
38724         * modules/cos (configure.ac): Likewise.
38725         * modules/cosh (configure.ac): Likewise.
38726         * modules/erf (configure.ac): Likewise.
38727         * modules/erfc (configure.ac): Likewise.
38728         * modules/exp (configure.ac): Likewise.
38729         * modules/fabs (configure.ac): Likewise.
38730         * modules/fmod (configure.ac): Likewise.
38731         * modules/hypot (configure.ac): Likewise.
38732         * modules/j0 (configure.ac): Likewise.
38733         * modules/j1 (configure.ac): Likewise.
38734         * modules/jn (configure.ac): Likewise.
38735         * modules/ldexp (configure.ac): Likewise.
38736         * modules/lgamma (configure.ac): Likewise.
38737         * modules/log (configure.ac): Likewise.
38738         * modules/log10 (configure.ac): Likewise.
38739         * modules/log1p (configure.ac): Likewise.
38740         * modules/logb (configure.ac): Likewise.
38741         * modules/modf (configure.ac): Likewise.
38742         * modules/nextafter (configure.ac): Likewise.
38743         * modules/pow (configure.ac): Likewise.
38744         * modules/remainder (configure.ac): Likewise.
38745         * modules/rint (configure.ac): Likewise.
38746         * modules/sin (configure.ac): Likewise.
38747         * modules/sinh (configure.ac): Likewise.
38748         * modules/tan (configure.ac): Likewise.
38749         * modules/tanh (configure.ac): Likewise.
38750         * modules/y0 (configure.ac): Likewise.
38751         * modules/y1 (configure.ac): Likewise.
38752         * modules/yn (configure.ac): Likewise.
38753
38754 2010-01-24  Bruno Haible  <bruno@clisp.org>
38755
38756         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38757         * tests/test-acosl.c (x): New variable.
38758         (main): Store argument in x and fetch it from x.
38759         * tests/test-asinl.c (x): New variable.
38760         (main): Store argument in x and fetch it from x.
38761         * tests/test-atanl.c (x): New variable.
38762         (main): Store argument in x and fetch it from x.
38763         * tests/test-cosl.c (x): New variable.
38764         (main): Store argument in x and fetch it from x.
38765         * tests/test-expl.c (x): New variable.
38766         (main): Store argument in x and fetch it from x.
38767         * tests/test-logl.c (x): New variable.
38768         (main): Store argument in x and fetch it from x.
38769         * tests/test-sinl.c (x): New variable.
38770         (main): Store argument in x and fetch it from x.
38771         * tests/test-sqrtl.c (x): New variable.
38772         (main): Store argument in x and fetch it from x.
38773         * tests/test-tanl.c (x): New variable.
38774         (main): Store argument in x and fetch it from x.
38775
38776 2010-01-24  Bruno Haible  <bruno@clisp.org>
38777
38778         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38779         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38780         assignments to the initial TESTS_ENVIRONMENT.
38781         * doc/gnulib.texi (Unit test modules): Document it.
38782         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38783         TESTS_ENVIRONMENT.
38784         * modules/btowc-tests (Makefile.am): Likewise.
38785         * modules/c-stack-tests (Makefile.am): Likewise.
38786         * modules/c-strcase-tests (Makefile.am): Likewise.
38787         * modules/copy-file-tests (Makefile.am): Likewise.
38788         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38789         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38790         * modules/mbrtowc-tests (Makefile.am): Likewise.
38791         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38792         * modules/mbscasestr-tests (Makefile.am): Likewise.
38793         * modules/mbschr-tests (Makefile.am): Likewise.
38794         * modules/mbscspn-tests (Makefile.am): Likewise.
38795         * modules/mbsinit-tests (Makefile.am): Likewise.
38796         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38797         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38798         * modules/mbspbrk-tests (Makefile.am): Likewise.
38799         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38800         * modules/mbsrchr-tests (Makefile.am): Likewise.
38801         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38802         * modules/mbsspn-tests (Makefile.am): Likewise.
38803         * modules/mbsstr-tests (Makefile.am): Likewise.
38804         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38805         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38806         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38807         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38808         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38809         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38810         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38811         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38812         * modules/wcrtomb-tests (Makefile.am): Likewise.
38813         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38814         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38815         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38816         assignments from TESTS_ENVIRONMENT.
38817         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38818         augmentation.
38819         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38820         * modules/atexit-tests (Makefile.am): Likewise.
38821         * modules/binary-io-tests (Makefile.am): Likewise.
38822         * modules/closein-tests (Makefile.am): Likewise.
38823         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38824         * modules/exclude-tests (Makefile.am): Likewise.
38825         * modules/fflush-tests (Makefile.am): Likewise.
38826         * modules/fpending-tests (Makefile.am): Likewise.
38827         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38828         * modules/freadahead-tests (Makefile.am): Likewise.
38829         * modules/freadptr-tests (Makefile.am): Likewise.
38830         * modules/freadseek-tests (Makefile.am): Likewise.
38831         * modules/fseek-tests (Makefile.am): Likewise.
38832         * modules/fseeko-tests (Makefile.am): Likewise.
38833         * modules/ftell-tests (Makefile.am): Likewise.
38834         * modules/ftello-tests (Makefile.am): Likewise.
38835         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38836         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38837         * modules/lseek-tests (Makefile.am): Likewise.
38838         * modules/parse-duration-tests (Makefile.am): Likewise.
38839         * modules/perror-tests (Makefile.am): Likewise.
38840         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38841         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38842         * modules/pipe-tests (Makefile.am): Likewise.
38843         * modules/pread-tests (Makefile.am): Likewise.
38844         * modules/printf-posix-tests (Makefile.am): Likewise.
38845         * modules/select-tests (Makefile.am): Likewise.
38846         * modules/sigpipe-tests (Makefile.am): Likewise.
38847         * modules/tsearch-tests (Makefile.am): Likewise.
38848         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38849         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38850         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38851         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38852         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38853         * modules/version-etc-tests (Makefile.am): Likewise.
38854         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38855         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38856         * modules/xalloc-die-tests (Makefile.am): Likewise.
38857         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38858         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38859         * modules/xstrtol-tests (Makefile.am): Likewise.
38860         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38861         * modules/yesno-tests (Makefile.am): Likewise.
38862         Suggested by Jim Meyering.
38863
38864 2010-01-24  Bruno Haible  <bruno@clisp.org>
38865
38866         More documentation.
38867         * doc/gnulib.texi (Writing modules): New chapter.
38868         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38869         the new chapter.
38870
38871 2010-01-24  Jim Meyering  <meyering@redhat.com>
38872
38873         maint.mk: do not prepend "./" after filtering
38874         * top/maint.mk (_prepend_srcdir_prefix): New variable
38875         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38876         "./" when $(srcdir) is ".".
38877
38878         define STREQ(a,b) consistently, removing useless parentheses
38879         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38880         since the only risk is that "a" or "b" contains an unparenthesized
38881         comma, but if either did that, STREQ would have 3 or more arguments.
38882         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38883         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38884         * lib/hash-triple.c (STREQ): Likewise.
38885         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38886         * lib/getugroups.c (STREQ): Likewise.
38887
38888 2010-01-23  Jim Meyering  <meyering@redhat.com>
38889
38890         maint.mk: fix syntax-check in a non-srcdir build directory
38891         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38892         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38893
38894 2010-01-22  Jim Meyering  <meyering@redhat.com>
38895
38896         userspec: add unit tests
38897         * tests/test-userspec.c: New file.
38898         * modules/userspec-tests: Likewise.
38899
38900 2010-01-21  Jim Meyering  <meyering@redhat.com>
38901
38902         maint.mk: handle source file names containing "." robustly
38903         * top/maint.mk (_dot_escaped_srcdir): Define.
38904         (VC_LIST): Use it in LHS of sed substitution.
38905
38906 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38907
38908         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38909         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38910         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38911         from a non-srcdir build.
38912
38913 2010-01-20  Eric Blake  <ebb9@byu.net>
38914
38915         warn-on-use: use instead of link-warning
38916         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38917         * modules/unistd (Depends-on, Makefile.am): Likewise.
38918         * modules/arpa_inet (Depends-on): Replace link-warning with
38919         warn-on-use.
38920         (Makefile.am): Update rules accordingly.
38921         * modules/ctype (Depends-on, Makefile.am): Likewise.
38922         * modules/dirent (Depends-on, Makefile.am): Likewise.
38923         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38924         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38925         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38926         * modules/locale (Depends-on, Makefile.am): Likewise.
38927         * modules/math (Depends-on, Makefile.am): Likewise.
38928         * modules/search (Depends-on, Makefile.am): Likewise.
38929         * modules/signal (Depends-on, Makefile.am): Likewise.
38930         * modules/spawn (Depends-on, Makefile.am): Likewise.
38931         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38932         * modules/string (Depends-on, Makefile.am): Likewise.
38933         * modules/strings (Depends-on, Makefile.am): Likewise.
38934         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38935         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38936         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38937         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38938         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38939         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38940         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38941         * modules/wchar (Depends-on, Makefile.am): Likewise.
38942         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38943         should be poisoned.
38944         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38945         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38946         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38947         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38948         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38949         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38950         * m4/math_h.m4 (gl_MATH_H): Likewise.
38951         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38952         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38953         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38954         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38955         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38956         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38957         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38958         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38959         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38960         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38961         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38962         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38963         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38964         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38965         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38966         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38967         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38968         GL_LINK_WARNING.
38969         * lib/ctype.in.h: Likewise.
38970         * lib/dirent.in.h: Likewise.
38971         * lib/fcntl.in.h: Likewise.
38972         * lib/inttypes.in.h: Likewise.
38973         * lib/langinfo.in.h: Likewise.
38974         * lib/locale.in.h: Likewise.
38975         * lib/math.in.h: Likewise.
38976         * lib/search.in.h: Likewise.
38977         * lib/signal.in.h: Likewise.
38978         * lib/spawn.in.h: Likewise.
38979         * lib/stdio.in.h: Likewise.
38980         * lib/stdlib.in.h: Likewise.
38981         * lib/string.in.h: Likewise.
38982         * lib/strings.in.h: Likewise.
38983         * lib/sys_file.in.h: Likewise.
38984         * lib/sys_ioctl.in.h: Likewise.
38985         * lib/sys_select.in.h: Likewise.
38986         * lib/sys_socket.in.h: Likewise.
38987         * lib/sys_stat.in.h: Likewise.
38988         * lib/sys_times.in.h: Likewise.
38989         * lib/sys_utsname.in.h: Likewise.
38990         * lib/unistd.in.h: Likewise.
38991         * lib/wchar.in.h: Likewise.
38992
38993 2010-01-20  Bruno Haible  <bruno@clisp.org>
38994
38995         Avoid duplicate -lm.
38996         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38997         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38998         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38999         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
39000         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
39001         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
39002         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
39003         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
39004         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
39005         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
39006         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
39007         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
39008         Reported by Paolo Bonzini.
39009
39010 2010-01-19  Bruno Haible  <bruno@clisp.org>
39011
39012         langinfo, nl_langinfo: Relicense under LGPLv2+.
39013         * modules/langinfo (License): Change to LGPLv2+.
39014         * modules/nl_langinfo (License): Likewise.
39015         Patch by David Lutterkort <lutter@redhat.com>.
39016
39017 2010-01-19  Bruno Haible  <bruno@clisp.org>
39018
39019         Avoid compilation error with cc on OSF/1 5.1.
39020         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
39021         statement, not before.
39022         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39023
39024 2010-01-18  Bruno Haible  <bruno@clisp.org>
39025
39026         Avoid a link error due to the __printf__ symbol.
39027         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
39028         and 2.6.x.
39029         (__format__, __printf__): Remove definitions.
39030         * lib/argp-fmtstream.h: Likewise.
39031         * lib/argp.h: Likewise.
39032         * lib/error.h: Likewise.
39033         * lib/vasnprintf.h: Likewise.
39034         * lib/xprintf.h: Likewise.
39035         * lib/xvasprintf.h: Likewise.
39036         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39037
39038 2010-01-18  Bruno Haible  <bruno@clisp.org>
39039
39040         Tests for module 'tanl'.
39041         * modules/tanl-tests: New file.
39042         * tests/test-tanl.c: New file.
39043
39044         Tests for module 'sqrtl'.
39045         * modules/sqrtl-tests: New file.
39046         * tests/test-sqrtl.c: New file.
39047
39048         Tests for module 'sinl'.
39049         * modules/sinl-tests: New file.
39050         * tests/test-sinl.c: New file.
39051
39052         Tests for module 'logl'.
39053         * modules/logl-tests: New file.
39054         * tests/test-logl.c: New file.
39055
39056         Tests for module 'expl'.
39057         * modules/expl-tests: New file.
39058         * tests/test-expl.c: New file.
39059
39060         Tests for module 'cosl'.
39061         * modules/cosl-tests: New file.
39062         * tests/test-cosl.c: New file.
39063
39064         Tests for module 'atanl'.
39065         * modules/atanl-tests: New file.
39066         * tests/test-atanl.c: New file.
39067
39068         Tests for module 'asinl'.
39069         * modules/asinl-tests: New file.
39070         * tests/test-asinl.c: New file.
39071
39072         Tests for module 'acosl'.
39073         * modules/acosl-tests: New file.
39074         * tests/test-acosl.c: New file.
39075
39076         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39077         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39078         tanl): Use the standard gnulib idiom.
39079         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39080         * lib/sinl.c: Likewise.
39081         * lib/tanl.c: Don't include trigl.c.
39082         (kernel_tanl): Make static.
39083         * lib/sincosl.c: Include trigl.h first.
39084         * lib/trigl.c: Likewise.
39085         * m4/acosl.m4: New file.
39086         * m4/asinl.m4: New file.
39087         * m4/atanl.m4: New file.
39088         * m4/cosl.m4: New file.
39089         * m4/expl.m4: New file.
39090         * m4/logl.m4: New file.
39091         * m4/sinl.m4: New file.
39092         * m4/sqrtl.m4: New file.
39093         * m4/tanl.m4: New file.
39094         * m4/mathl.m4: Remove file.
39095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39096         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39097         Don't initialize GNULIB_MATHL.
39098         * modules/acosl: New file.
39099         * modules/asinl: New file.
39100         * modules/atanl: New file.
39101         * modules/cosl: New file.
39102         * modules/expl: New file.
39103         * modules/logl: New file.
39104         * modules/sinl: New file.
39105         * modules/sqrtl: New file.
39106         * modules/tanl: New file.
39107         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39108         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39109         substitute GNULIB_MATHL.
39110         * modules/mathl: Rewritten.
39111         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39112         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39113         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39114         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39115         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39116         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39117         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39118         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39119         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39120
39121 2010-01-18  Bruno Haible  <bruno@clisp.org>
39122
39123         sqrt: Make gl_FUNC_SQRT requirable.
39124         * m4/sqrt.m4: New file.
39125         * modules/sqrt (Files): Add it.
39126         (configure.ac): Invoke gl_FUNC_SQRT.
39127
39128 2010-01-18  Bruno Haible  <bruno@clisp.org>
39129
39130         New modules for common <math.h> functions.
39131         * m4/mathfunc.m4: New file.
39132         * modules/acos: New file.
39133         * modules/asin: New file.
39134         * modules/atan: New file.
39135         * modules/atan2: New file.
39136         * modules/cbrt: New file.
39137         * modules/copysign: New file.
39138         * modules/cos: New file.
39139         * modules/cosh: New file.
39140         * modules/erf: New file.
39141         * modules/erfc: New file.
39142         * modules/exp: New file.
39143         * modules/fabs: New file.
39144         * modules/fmod: New file.
39145         * modules/hypot: New file.
39146         * modules/j0: New file.
39147         * modules/j1: New file.
39148         * modules/jn: New file.
39149         * modules/ldexp: New file.
39150         * modules/lgamma: New file.
39151         * modules/log: New file.
39152         * modules/log10: New file.
39153         * modules/log1p: New file.
39154         * modules/logb: New file.
39155         * modules/modf: New file.
39156         * modules/nextafter: New file.
39157         * modules/pow: New file.
39158         * modules/remainder: New file.
39159         * modules/rint: New file.
39160         * modules/sin: New file.
39161         * modules/sinh: New file.
39162         * modules/sqrt: New file.
39163         * modules/tan: New file.
39164         * modules/tanh: New file.
39165         * modules/y0: New file.
39166         * modules/y1: New file.
39167         * modules/yn: New file.
39168         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39169         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39170         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39171         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39172         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39173         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39174         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39175         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39176         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39177         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39178         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39179         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39180         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39181         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39182         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39183         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39184         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39185         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39186         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39187         * doc/posix-functions/log.texi: Mention the 'log' module.
39188         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39189         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39190         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39191         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39192         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39193         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39194         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39195         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39196         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39197         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39198         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39199         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39200         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39201         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39202         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39203         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39204
39205 2010-01-18  Jim Meyering  <meyering@redhat.com>
39206
39207         ignore-value: relax license to LGPLv2+
39208         * modules/ignore-value (License): Relax to LGPLv2+.
39209
39210         getdate: don't leak when TZ contains two or more '"'s
39211         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39212         double quote in TZ after the first one.
39213
39214         readtokens: do not leak internal token_lengths buffer
39215         * lib/readtokens.c (readtokens): Free the local, lengths,
39216         when the supplied "token_lengths" parameter is NULL.
39217
39218 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39219
39220         Fix a couple of missing LIBTHREAD link failures on AIX.
39221         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39222         $(LIBTHREAD).
39223         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39224
39225         Link test-poll against INET_PTON_LIB.
39226         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39227         for inet_pton on Solaris 10.
39228
39229 2010-01-17  Bruno Haible  <bruno@clisp.org>
39230
39231         unistdio/*-sprintf: Fix typo in module description.
39232         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39233         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39234         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39235         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39236         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39237         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39238         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39239         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39240
39241 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39242
39243         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39244         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39245         variables in shell case patterns, for AIX and HP-UX ksh.
39246
39247         Split large sed scripts, for HP-UX sed.
39248         * modules/stdio: Split sed scripts around 50 sed commands,
39249         to avoid HP-UX limit of 99 commands, in the near future.
39250         * modules/string: Likewise.
39251         * modules/unistd: Likewise.
39252
39253         gnulib-tool: avoid writing in the current directory.
39254         * gnulib-tool (func_emit_lib_Makefile_am)
39255         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39256         not in the current directory, so concurrent gnulib-tool
39257         instances do not interfere.
39258
39259 2010-01-16  Jim Meyering  <meyering@redhat.com>
39260
39261         doc: update users.txt
39262         * users.txt: Add grep.
39263         (diffutils, gzip): Update URLs.
39264
39265 2010-01-12  Bruno Haible  <bruno@clisp.org>
39266
39267         posix_spawn: Avoid test failure on Cygwin.
39268         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39269         characters.
39270         Reported by Simon Josefsson.
39271
39272 2010-01-12  Bruno Haible  <bruno@clisp.org>
39273
39274         * tests/test-cond.c (main): When skipping the test, show the reason.
39275
39276 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39277
39278         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39279
39280 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39281
39282         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39283         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39284
39285 2010-01-12  Eric Blake  <ebb9@byu.net>
39286
39287         build: guarantee AS_VAR_IF
39288         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39289         (gl_AS_VAR_IF): Move...
39290         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39291         Reported by Simon Josefsson.
39292
39293 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39294
39295         * lib/stdio.in.h: Fix typo.
39296
39297 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39298
39299         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39300         libgpg-error.
39301
39302 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39303
39304         * tests/test-xalloc-die.sh: Use $EXEEXT.
39305
39306 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39307             Bruno Haible  <bruno@clisp.org>
39308
39309         getlogin, getlogin_r: Avoid test failure.
39310         * tests/test-getlogin.c: Include <stdio.h>.
39311         (main): Skip the test when the function fails because stdin is not a
39312         tty.
39313         * tests/test-getlogin_r.c: Include <stdio.h>.
39314         (main): Skip the test when the function fails because stdin is not a
39315         tty.
39316
39317 2010-01-11  Eric Blake  <ebb9@byu.net>
39318
39319         tests: avoid more large file warnings
39320         * tests/test-fflush.c: Avoid warning about ftell use.
39321         * tests/test-fseek.c: Avoid warning about fseek use.
39322
39323 2010-01-10  Bruno Haible  <bruno@clisp.org>
39324
39325         nproc: Work better on Linux when /proc and /sys are not mounted.
39326         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39327         as lower bound when, on glibc/Linux systems,
39328         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39329         Suggested by Pádraig Brady <P@draigbrady.com>.
39330         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39331
39332         nproc: Refactor.
39333         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39334         extracted from num_processors.
39335         (num_processors): Call it.
39336
39337 2010-01-11  Jim Meyering  <meyering@redhat.com>
39338
39339         utimecmp: avoid new warning from upcoming gcc-4.5.0
39340         * lib/utimecmp.c (BILLION): Define using #define rather than an
39341         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39342
39343 2010-01-11  Eric Blake  <ebb9@byu.net>
39344
39345         math: add portability warnings for classification macros
39346         * modules/math (Depends-on): Add warn-on-use.
39347         (Makefile.am): Provide new substitutions.
39348         * m4/math_h.m4 (gl_MATH_H): Require inline.
39349         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39350         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39351         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39352         implement warnings.
39353
39354         unistd: warn on use of environ without module
39355         * modules/unistd (Depends-on): Add warn-on-use.
39356         (Makefile.am): Provide new substitutions.
39357         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39358         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39359
39360         stdio: warn on suspicious uses
39361         * modules/stdio (Depends-on): Add warn-on-use.
39362         (Makefile.am): Provide new substitutions.
39363         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39364         fseeko.
39365         * lib/stdio.in.h (gets): Always warn on use.
39366         (fseek, ftell): Adjust when warnings are issued, and honor
39367         _GL_NO_LARGE_FILES as a way to silence the warning.
39368         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39369         any warning about large file offsets.
39370         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39371         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39372         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39373         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39374         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39375         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39376         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39377         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39378
39379         warn-on-use: new module
39380         * modules/warn-on-use: New file.
39381         * build-aux/warn-on-use.h: Likewise.
39382         * m4/warn-on-use.m4: Likewise.
39383         * MODULES.html.sh (Support for building): Mention it.
39384
39385 2010-01-10  Bruno Haible  <bruno@clisp.org>
39386
39387         Tests for module 'unistr/u32-strdup'.
39388         * modules/unistr/u32-strdup-tests: New file.
39389         * tests/unistr/test-u32-strdup.c: New file.
39390
39391         Tests for module 'unistr/u16-strdup'.
39392         * modules/unistr/u16-strdup-tests: New file.
39393         * tests/unistr/test-u16-strdup.c: New file.
39394
39395         Tests for module 'unistr/u8-strdup'.
39396         * modules/unistr/u8-strdup-tests: New file.
39397         * tests/unistr/test-u8-strdup.c: New file.
39398         * tests/unistr/test-strdup.h: New file.
39399
39400         Tests for module 'unistr/u32-strncmp'.
39401         * modules/unistr/u32-strncmp-tests: New file.
39402         * tests/unistr/test-u32-strncmp.c: New file.
39403
39404         Tests for module 'unistr/u16-strncmp'.
39405         * modules/unistr/u16-strncmp-tests: New file.
39406         * tests/unistr/test-u16-strncmp.c: New file.
39407
39408         Tests for module 'unistr/u8-strncmp'.
39409         * modules/unistr/u8-strncmp-tests: New file.
39410         * tests/unistr/test-u8-strncmp.c: New file.
39411         * tests/unistr/test-strncmp.h: New file.
39412
39413         Tests for module 'unistr/u32-strcoll'.
39414         * modules/unistr/u32-strcoll-tests: New file.
39415         * tests/unistr/test-u32-strcoll.c: New file.
39416
39417         Tests for module 'unistr/u16-strcoll'.
39418         * modules/unistr/u16-strcoll-tests: New file.
39419         * tests/unistr/test-u16-strcoll.c: New file.
39420
39421         Tests for module 'unistr/u8-strcoll'.
39422         * modules/unistr/u8-strcoll-tests: New file.
39423         * tests/unistr/test-u8-strcoll.c: New file.
39424
39425         Tests for module 'unistr/u32-strcmp'.
39426         * modules/unistr/u32-strcmp-tests: New file.
39427         * tests/unistr/test-u32-strcmp.c: New file.
39428         * tests/unistr/test-u32-strcmp.h: New file.
39429
39430         Tests for module 'unistr/u16-strcmp'.
39431         * modules/unistr/u16-strcmp-tests: New file.
39432         * tests/unistr/test-u16-strcmp.c: New file.
39433         * tests/unistr/test-u16-strcmp.h: New file.
39434
39435         Tests for module 'unistr/u8-strcmp'.
39436         * modules/unistr/u8-strcmp-tests: New file.
39437         * tests/unistr/test-u8-strcmp.c: New file.
39438         * tests/unistr/test-u8-strcmp.h: New file.
39439         * tests/unistr/test-strcmp.h: New file.
39440
39441         Tests for module 'unistr/u32-strncat'.
39442         * modules/unistr/u32-strncat-tests: New file.
39443         * tests/unistr/test-u32-strncat.c: New file.
39444
39445         Tests for module 'unistr/u16-strncat'.
39446         * modules/unistr/u16-strncat-tests: New file.
39447         * tests/unistr/test-u16-strncat.c: New file.
39448
39449         Tests for module 'unistr/u8-strncat'.
39450         * modules/unistr/u8-strncat-tests: New file.
39451         * tests/unistr/test-u8-strncat.c: New file.
39452         * tests/unistr/test-strncat.h: New file.
39453
39454         Tests for module 'unistr/u32-strcat'.
39455         * modules/unistr/u32-strcat-tests: New file.
39456         * tests/unistr/test-u32-strcat.c: New file.
39457
39458         Tests for module 'unistr/u16-strcat'.
39459         * modules/unistr/u16-strcat-tests: New file.
39460         * tests/unistr/test-u16-strcat.c: New file.
39461
39462         Tests for module 'unistr/u8-strcat'.
39463         * modules/unistr/u8-strcat-tests: New file.
39464         * tests/unistr/test-u8-strcat.c: New file.
39465         * tests/unistr/test-strcat.h: New file.
39466
39467         Tests for module 'unistr/u32-stpncpy'.
39468         * modules/unistr/u32-stpncpy-tests: New file.
39469         * tests/unistr/test-u32-stpncpy.c: New file.
39470
39471         Tests for module 'unistr/u16-stpncpy'.
39472         * modules/unistr/u16-stpncpy-tests: New file.
39473         * tests/unistr/test-u16-stpncpy.c: New file.
39474
39475         Tests for module 'unistr/u8-stpncpy'.
39476         * modules/unistr/u8-stpncpy-tests: New file.
39477         * tests/unistr/test-u8-stpncpy.c: New file.
39478         * tests/unistr/test-stpncpy.h: New file.
39479
39480         Tests for module 'unistr/u32-strncpy'.
39481         * modules/unistr/u32-strncpy-tests: New file.
39482         * tests/unistr/test-u32-strncpy.c: New file.
39483
39484         Tests for module 'unistr/u16-strncpy'.
39485         * modules/unistr/u16-strncpy-tests: New file.
39486         * tests/unistr/test-u16-strncpy.c: New file.
39487
39488         Tests for module 'unistr/u8-strncpy'.
39489         * modules/unistr/u8-strncpy-tests: New file.
39490         * tests/unistr/test-u8-strncpy.c: New file.
39491         * tests/unistr/test-strncpy.h: New file.
39492
39493         Tests for module 'unistr/u32-stpcpy'.
39494         * modules/unistr/u32-stpcpy-tests: New file.
39495         * tests/unistr/test-u32-stpcpy.c: New file.
39496
39497         Tests for module 'unistr/u16-stpcpy'.
39498         * modules/unistr/u16-stpcpy-tests: New file.
39499         * tests/unistr/test-u16-stpcpy.c: New file.
39500
39501         Tests for module 'unistr/u8-stpcpy'.
39502         * modules/unistr/u8-stpcpy-tests: New file.
39503         * tests/unistr/test-u8-stpcpy.c: New file.
39504         * tests/unistr/test-stpcpy.h: New file.
39505
39506         Tests for module 'unistr/u32-strcpy'.
39507         * modules/unistr/u32-strcpy-tests: New file.
39508         * tests/unistr/test-u32-strcpy.c: New file.
39509
39510         Tests for module 'unistr/u16-strcpy'.
39511         * modules/unistr/u16-strcpy-tests: New file.
39512         * tests/unistr/test-u16-strcpy.c: New file.
39513
39514         Tests for module 'unistr/u8-strcpy'.
39515         * modules/unistr/u8-strcpy-tests: New file.
39516         * tests/unistr/test-u8-strcpy.c: New file.
39517         * tests/unistr/test-strcpy.h: New file.
39518
39519         Tests for module 'unistr/u32-strnlen'.
39520         * modules/unistr/u32-strnlen-tests: New file.
39521         * tests/unistr/test-u32-strnlen.c: New file.
39522
39523         Tests for module 'unistr/u16-strnlen'.
39524         * modules/unistr/u16-strnlen-tests: New file.
39525         * tests/unistr/test-u16-strnlen.c: New file.
39526
39527         Tests for module 'unistr/u8-strnlen'.
39528         * modules/unistr/u8-strnlen-tests: New file.
39529         * tests/unistr/test-u8-strnlen.c: New file.
39530         * tests/unistr/test-strnlen.h: New file.
39531
39532         Tests for module 'unistr/u32-strlen'.
39533         * modules/unistr/u32-strlen-tests: New file.
39534         * tests/unistr/test-u32-strlen.c: New file.
39535
39536         Tests for module 'unistr/u16-strlen'.
39537         * modules/unistr/u16-strlen-tests: New file.
39538         * tests/unistr/test-u16-strlen.c: New file.
39539
39540         Tests for module 'unistr/u8-strlen'.
39541         * modules/unistr/u8-strlen-tests: New file.
39542         * tests/unistr/test-u8-strlen.c: New file.
39543
39544         Tests for module 'unistr/u32-prev'.
39545         * modules/unistr/u32-prev-tests: New file.
39546         * tests/unistr/test-u32-prev.c: New file.
39547
39548         Tests for module 'unistr/u16-prev'.
39549         * modules/unistr/u16-prev-tests: New file.
39550         * tests/unistr/test-u16-prev.c: New file.
39551
39552         Tests for module 'unistr/u8-prev'.
39553         * modules/unistr/u8-prev-tests: New file.
39554         * tests/unistr/test-u8-prev.c: New file.
39555
39556         Tests for module 'unistr/u32-next'.
39557         * modules/unistr/u32-next-tests: New file.
39558         * tests/unistr/test-u32-next.c: New file.
39559
39560         Tests for module 'unistr/u16-next'.
39561         * modules/unistr/u16-next-tests: New file.
39562         * tests/unistr/test-u16-next.c: New file.
39563
39564         Tests for module 'unistr/u8-next'.
39565         * modules/unistr/u8-next-tests: New file.
39566         * tests/unistr/test-u8-next.c: New file.
39567
39568         Tests for module 'unistr/u32-strmbtouc'.
39569         * modules/unistr/u32-strmbtouc-tests: New file.
39570         * tests/unistr/test-u32-strmbtouc.c: New file.
39571
39572         Tests for module 'unistr/u16-strmbtouc'.
39573         * modules/unistr/u16-strmbtouc-tests: New file.
39574         * tests/unistr/test-u16-strmbtouc.c: New file.
39575
39576         Tests for module 'unistr/u8-strmbtouc'.
39577         * modules/unistr/u8-strmbtouc-tests: New file.
39578         * tests/unistr/test-u8-strmbtouc.c: New file.
39579
39580         Tests for module 'unistr/u32-strmblen'.
39581         * modules/unistr/u32-strmblen-tests: New file.
39582         * tests/unistr/test-u32-strmblen.c: New file.
39583
39584         Tests for module 'unistr/u16-strmblen'.
39585         * modules/unistr/u16-strmblen-tests: New file.
39586         * tests/unistr/test-u16-strmblen.c: New file.
39587
39588         Tests for module 'unistr/u8-strmblen'.
39589         * modules/unistr/u8-strmblen-tests: New file.
39590         * tests/unistr/test-u8-strmblen.c: New file.
39591
39592         Tests for module 'unistr/u32-cpy-alloc'.
39593         * modules/unistr/u32-cpy-alloc-tests: New file.
39594         * tests/unistr/test-u32-cpy-alloc.c: New file.
39595
39596         Tests for module 'unistr/u16-cpy-alloc'.
39597         * modules/unistr/u16-cpy-alloc-tests: New file.
39598         * tests/unistr/test-u16-cpy-alloc.c: New file.
39599
39600         Tests for module 'unistr/u8-cpy-alloc'.
39601         * modules/unistr/u8-cpy-alloc-tests: New file.
39602         * tests/unistr/test-u8-cpy-alloc.c: New file.
39603         * tests/unistr/test-cpy-alloc.h: New file.
39604
39605         Tests for module 'unistr/u32-mbsnlen'.
39606         * modules/unistr/u32-mbsnlen-tests: New file.
39607         * tests/unistr/test-u32-mbsnlen.c: New file.
39608
39609         Tests for module 'unistr/u16-mbsnlen'.
39610         * modules/unistr/u16-mbsnlen-tests: New file.
39611         * tests/unistr/test-u16-mbsnlen.c: New file.
39612
39613         Tests for module 'unistr/u8-mbsnlen'.
39614         * modules/unistr/u8-mbsnlen-tests: New file.
39615         * tests/unistr/test-u8-mbsnlen.c: New file.
39616
39617         Tests for module 'unistr/u32-chr'.
39618         * modules/unistr/u32-chr-tests: New file.
39619         * tests/unistr/test-u32-chr.c: New file.
39620
39621         Tests for module 'unistr/u16-chr'.
39622         * modules/unistr/u16-chr-tests: New file.
39623         * tests/unistr/test-u16-chr.c: New file.
39624
39625         Tests for module 'unistr/u8-chr'.
39626         * modules/unistr/u8-chr-tests: New file.
39627         * tests/unistr/test-u8-chr.c: New file.
39628         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39629
39630         Tests for module 'unistr/u32-cmp2'.
39631         * modules/unistr/u32-cmp2-tests: New file.
39632         * tests/unistr/test-u32-cmp2.c: New file.
39633
39634         Tests for module 'unistr/u16-cmp2'.
39635         * modules/unistr/u16-cmp2-tests: New file.
39636         * tests/unistr/test-u16-cmp2.c: New file.
39637
39638         Tests for module 'unistr/u8-cmp2'.
39639         * modules/unistr/u8-cmp2-tests: New file.
39640         * tests/unistr/test-u8-cmp2.c: New file.
39641         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39642
39643         Tests for module 'unistr/u32-cmp'.
39644         * modules/unistr/u32-cmp-tests: New file.
39645         * tests/unistr/test-u32-cmp.c: New file.
39646
39647         Tests for module 'unistr/u16-cmp'.
39648         * modules/unistr/u16-cmp-tests: New file.
39649         * tests/unistr/test-u16-cmp.c: New file.
39650
39651         Tests for module 'unistr/u8-cmp'.
39652         * modules/unistr/u8-cmp-tests: New file.
39653         * tests/unistr/test-u8-cmp.c: New file.
39654         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39655
39656         Tests for module 'unistr/u32-set'.
39657         * modules/unistr/u32-set-tests: New file.
39658         * tests/unistr/test-u32-set.c: New file.
39659
39660         Tests for module 'unistr/u16-set'.
39661         * modules/unistr/u16-set-tests: New file.
39662         * tests/unistr/test-u16-set.c: New file.
39663
39664         Tests for module 'unistr/u8-set'.
39665         * modules/unistr/u8-set-tests: New file.
39666         * tests/unistr/test-u8-set.c: New file.
39667         * tests/unistr/test-set.h: New file.
39668
39669         Tests for module 'unistr/u32-move'.
39670         * modules/unistr/u32-move-tests: New file.
39671         * tests/unistr/test-u32-move.c: New file.
39672
39673         Tests for module 'unistr/u16-move'.
39674         * modules/unistr/u16-move-tests: New file.
39675         * tests/unistr/test-u16-move.c: New file.
39676
39677         Tests for module 'unistr/u8-move'.
39678         * modules/unistr/u8-move-tests: New file.
39679         * tests/unistr/test-u8-move.c: New file.
39680         * tests/unistr/test-move.h: New file.
39681
39682         Tests for module 'unistr/u32-cpy'.
39683         * modules/unistr/u32-cpy-tests: New file.
39684         * tests/unistr/test-u32-cpy.c: New file.
39685
39686         Tests for module 'unistr/u16-cpy'.
39687         * modules/unistr/u16-cpy-tests: New file.
39688         * tests/unistr/test-u16-cpy.c: New file.
39689
39690         Tests for module 'unistr/u8-cpy'.
39691         * modules/unistr/u8-cpy-tests: New file.
39692         * tests/unistr/test-u8-cpy.c: New file.
39693         * tests/unistr/test-cpy.h: New file.
39694
39695 2010-01-09  Bruno Haible  <bruno@clisp.org>
39696
39697         Tests for module 'unistr/u32-uctomb'.
39698         * modules/unistr/u32-uctomb-tests: New file.
39699         * tests/unistr/test-u32-uctomb.c: New file.
39700
39701         Tests for module 'unistr/u16-uctomb'.
39702         * modules/unistr/u16-uctomb-tests: New file.
39703         * tests/unistr/test-u16-uctomb.c: New file.
39704
39705         Tests for module 'unistr/u8-uctomb'.
39706         * modules/unistr/u8-uctomb-tests: New file.
39707         * tests/unistr/test-u8-uctomb.c: New file.
39708
39709         Tests for module 'unistr/u32-mbtoucr'.
39710         * modules/unistr/u32-mbtoucr-tests: New file.
39711         * tests/unistr/test-u32-mbtoucr.c: New file.
39712
39713         Tests for module 'unistr/u16-mbtoucr'.
39714         * modules/unistr/u16-mbtoucr-tests: New file.
39715         * tests/unistr/test-u16-mbtoucr.c: New file.
39716
39717         Tests for module 'unistr/u8-mbtoucr'.
39718         * modules/unistr/u8-mbtoucr-tests: New file.
39719         * tests/unistr/test-u8-mbtoucr.c: New file.
39720
39721         Tests for module 'unistr/u32-mbtouc'.
39722         * modules/unistr/u32-mbtouc-tests: New file.
39723         * tests/unistr/test-u32-mbtouc.c: New file.
39724
39725         Tests for module 'unistr/u16-mbtouc'.
39726         * modules/unistr/u16-mbtouc-tests: New file.
39727         * tests/unistr/test-u16-mbtouc.c: New file.
39728
39729         Tests for module 'unistr/u8-mbtouc'.
39730         * modules/unistr/u8-mbtouc-tests: New file.
39731         * tests/unistr/test-u8-mbtouc.c: New file.
39732
39733         Tests for module 'unistr/u32-mbtouc-unsafe'.
39734         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39735         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39736         * tests/unistr/test-u32-mbtouc.h: New file.
39737
39738         Tests for module 'unistr/u16-mbtouc-unsafe'.
39739         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39740         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39741         * tests/unistr/test-u16-mbtouc.h: New file.
39742
39743         Tests for module 'unistr/u8-mbtouc-unsafe'.
39744         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39745         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39746         * tests/unistr/test-u8-mbtouc.h: New file.
39747
39748         Tests for module 'unistr/u32-mblen'.
39749         * modules/unistr/u32-mblen-tests: New file.
39750         * tests/unistr/test-u32-mblen.c: New file.
39751
39752         Tests for module 'unistr/u16-mblen'.
39753         * modules/unistr/u16-mblen-tests: New file.
39754         * tests/unistr/test-u16-mblen.c: New file.
39755
39756         Tests for module 'unistr/u8-mblen'.
39757         * modules/unistr/u8-mblen-tests: New file.
39758         * tests/unistr/test-u8-mblen.c: New file.
39759
39760         Tests for module 'unistr/u32-to-u16'.
39761         * modules/unistr/u32-to-u16-tests: New file.
39762         * tests/unistr/test-u32-to-u16.c: New file.
39763
39764         Tests for module 'unistr/u32-to-u8'.
39765         * modules/unistr/u32-to-u8-tests: New file.
39766         * tests/unistr/test-u32-to-u8.c: New file.
39767
39768         Tests for module 'unistr/u16-to-u32'.
39769         * modules/unistr/u16-to-u32-tests: New file.
39770         * tests/unistr/test-u16-to-u32.c: New file.
39771
39772         Tests for module 'unistr/u16-to-u8'.
39773         * modules/unistr/u16-to-u8-tests: New file.
39774         * tests/unistr/test-u16-to-u8.c: New file.
39775
39776         Tests for module 'unistr/u8-to-u32'.
39777         * modules/unistr/u8-to-u32-tests: New file.
39778         * tests/unistr/test-u8-to-u32.c: New file.
39779
39780         Tests for module 'unistr/u8-to-u16'.
39781         * modules/unistr/u8-to-u16-tests: New file.
39782         * tests/unistr/test-u8-to-u16.c: New file.
39783
39784         Tests for module 'unistr/u32-check'.
39785         * modules/unistr/u32-check-tests: New file.
39786         * tests/unistr/test-u32-check.c: New file.
39787
39788         Tests for module 'unistr/u16-check'.
39789         * modules/unistr/u16-check-tests: New file.
39790         * tests/unistr/test-u16-check.c: New file.
39791
39792         Tests for module 'unistr/u8-check'.
39793         * modules/unistr/u8-check-tests: New file.
39794         * tests/unistr/test-u8-check.c: New file.
39795
39796         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39797         (category_equals): New function.
39798         (main): Add more tests.
39799         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39800
39801         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39802
39803 2010-01-10  Bruno Haible  <bruno@clisp.org>
39804
39805         unistr/u*-strcoll: Try harder to distinguish different strings.
39806         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39807         compare s1 and s2 to see if they are different.
39808
39809 2010-01-10  Bruno Haible  <bruno@clisp.org>
39810
39811         unistr/u*-stpncpy: Fix the return value.
39812         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39813         description of the return value consistent with stpncpy in glibc.
39814         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39815         written non-NUL unit.
39816
39817 2010-01-10  Bruno Haible  <bruno@clisp.org>
39818
39819         unistr/u*-next: Add missing dependencies.
39820         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39821         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39822         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39823
39824 2010-01-10  Bruno Haible  <bruno@clisp.org>
39825
39826         unistr/u8-mbsnlen: Fix return value for incomplete character.
39827         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39828         u8_mblen.
39829         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39830         Remove unistr/u8-mblen.
39831         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39832         u16_mblen.
39833         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39834         Remove unistr/u16-mblen.
39835
39836 2010-01-10  Bruno Haible  <bruno@clisp.org>
39837
39838         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39839         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39840         Reported by Brian Gough <bjg@gnu.org> and
39841         Chris Clayton <chris2553@googlemail.com> via
39842         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39843
39844 2010-01-09  Bruno Haible  <bruno@clisp.org>
39845
39846         unistr/u16-to-u32: Reject invalid input.
39847         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39848         u16_mbtouc.
39849         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39850         Remove unistr/u16-mbtouc.
39851
39852         unistr/u16-to-u8: Reject invalid input.
39853         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39854         u16_mbtouc.
39855         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39856         Remove unistr/u16-mbtouc.
39857
39858         unistr/u8-to-u32: Reject invalid input.
39859         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39860         u8_mbtouc.
39861         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39862         Remove unistr/u8-mbtouc.
39863
39864         unistr/u8-to-u16: Reject invalid input.
39865         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39866         u8_mbtouc.
39867         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39868         Remove unistr/u8-mbtouc.
39869
39870 2010-01-09  Bruno Haible  <bruno@clisp.org>
39871
39872         Tests for module 'getlogin'.
39873         * modules/getlogin-tests: New file.
39874         * tests/test-getlogin.c: New file.
39875
39876         New module 'getlogin'.
39877         * lib/unistd.in.h (getlogin): New declaration.
39878         * lib/getlogin.c: New file.
39879         * m4/getlogin.m4: New file.
39880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39881         HAVE_GETLOGIN.
39882         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39883         HAVE_GETLOGIN.
39884         * modules/getlogin: New file.
39885         * doc/posix-functions/getlogin.texi: Mention the new module.
39886         Reported by John W. Eaton <jwe@gnu.org>.
39887
39888 2010-01-09  Bruno Haible  <bruno@clisp.org>
39889
39890         getlogin_r: Support for native Windows.
39891         * lib/getlogin_r.c: Include <windows.h>
39892         (getlogin_r): Implement for native Windows.
39893         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39894         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39895         via John W. Eaton <jwe@gnu.org>.
39896
39897 2010-01-09  Bruno Haible  <bruno@clisp.org>
39898
39899         getlogin_r: Small fixes.
39900         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39901         succeeds.
39902         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39903         before testing whether getlogin_r is declared. No need to set
39904         HAVE_DECL_GETLOGIN_R to 1.
39905         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39906
39907 2010-01-09  Bruno Haible  <bruno@clisp.org>
39908
39909         * lib/unistd.in.h (getlogin_r): Add comment.
39910
39911 2010-01-09  Bruno Haible  <bruno@clisp.org>
39912
39913         Tests for module 'getlogin_r'.
39914         * modules/getlogin_r-tests: New file.
39915         * tests/test-getlogin_r.c: New file.
39916
39917 2010-01-09  Jim Meyering  <meyering@redhat.com>
39918
39919         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39920         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39921         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39922
39923 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39924
39925         * lib/dup2.c (rpl_dup2): Improve comment.
39926
39927 2010-01-08  Eric Blake  <ebb9@byu.net>
39928
39929         maint.mk: allow packages to add makefile @@ exceptions
39930         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39931         (sc_makefile_check): Rename...
39932         (sc_makefile_at_at_check): ...to this, and use hook.
39933
39934         dup2: work around mingw bug
39935         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39936         Reported by Simon Josefsson.
39937
39938 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39939
39940         glob: Fix C++ compilation.
39941         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39942         C++.
39943
39944 2010-01-07  Bruno Haible  <bruno@clisp.org>
39945
39946         Fix indentation of wctype.in.h, broken since 2007-01-06.
39947         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39948
39949 2010-01-07  Bruno Haible  <bruno@clisp.org>
39950
39951         mbslen: Avoid collision with system function.
39952         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39953         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39954         * m4/mbslen.m4: New file.
39955         * modules/mbslen (Files): Add it.
39956         (configure.ac): Invoke gl_MBSLEN.
39957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39958         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39959         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39960         via Ian Beckwith <ianb@erislabs.net>.
39961
39962 2010-01-07  Bruno Haible  <bruno@clisp.org>
39963
39964         dirent: Document the last fix.
39965         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39966
39967 2010-01-07  Bruno Haible  <bruno@clisp.org>
39968
39969         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39970         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39971         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39972         va_list are defined.
39973         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39974         Reported by Eric Blake.
39975
39976 2010-01-07  Bruno Haible  <bruno@clisp.org>
39977
39978         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39979         * modules/xlist (Depends-on): Add 'list',
39980         * modules/xoset (Depends-on): Add 'oset'.
39981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39982
39983 2010-01-07  Bruno Haible  <bruno@clisp.org>
39984
39985         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39986         * doc/posix-functions/strncasecmp.texi: Likewise.
39987
39988 2010-01-07  Bruno Haible  <bruno@clisp.org>
39989
39990         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39991
39992 2010-01-07  John W. Eaton  <jwe@octave.org>
39993
39994         wctype: allow C++ use
39995         * lib/wctype.in.h: Add extern "C" block for C++.
39996
39997 2010-01-06  Eric Blake  <ebb9@byu.net>
39998
39999         maint.mk: detect incorrect GFDL usage
40000         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
40001
40002 2010-01-06  Jim Meyering  <meyering@redhat.com>
40003         and Eric Blake  <ebb9@byu.net>
40004
40005         maint.mk: ignore multi-line copyright in NEWS
40006         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
40007
40008 2010-01-06  Eric Blake  <ebb9@byu.net>
40009
40010         select: add missing dependency
40011         * modules/select-tests (Depends-on): Move sockets dependency...
40012         * modules/select (Depends-on): ...here.
40013         Reported by Ian Beckwith.
40014
40015         doc: regenerate INSTALL
40016         * doc/INSTALL: Reflect recent autoconf update.
40017         * doc/INSTALL.ISO: Likewise.
40018         * doc/INSTALL.UTF-8: Likewise.
40019
40020         pread: fix compilation on glibc
40021         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
40022         Reported by Ralf Wildenhues.
40023
40024         dirent: fix test failure
40025         * lib/dirent.in.h (includes): Guarantee ino_t.
40026         Reported by Ralf Wildenhues.
40027
40028 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
40029
40030         linkat, renameat: avoid bad free
40031         * lib/at-func2.c (at_func2): Fix typo.
40032         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
40033
40034 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40035
40036         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
40037         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
40038         to avoid failure of symlink test later.
40039
40040 2010-01-06  Eric Blake  <ebb9@byu.net>
40041
40042         stdio, unistd: guarantee ssize_t
40043         * lib/unistd.in.h (includes): Ensure that types required by POSIX
40044         2008 are exposed when needed.
40045         * lib/stdio.in.h (includes): Likewise.
40046         Reported by Ralf Wildenhues.
40047
40048 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
40049
40050         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
40051         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
40052         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
40053
40054 2010-01-06  Jim Meyering  <meyering@redhat.com>
40055
40056         readtokens: this module *does* require xalloc.h
40057         It uses only functions that were omitted by the old syntax-check rule.
40058         * lib/readtokens.c: Include "xalloc.h" once again.
40059         * modules/readtokens (Depends-on): Add xalloc.
40060         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
40061
40062 2010-01-05  Eric Blake  <ebb9@byu.net>
40063
40064         maint: support 'make announcement' from a VPATH build
40065         * top/maint.mk (announcement): Look for correct NEWS file.
40066
40067 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
40068
40069         utimens (fdutimens): ignore a negative FD, per contract
40070         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
40071         when we have a valid file descriptor.  Otherwise, using a brand
40072         new glibc (with just-patched futimens that now fails with EBADF)
40073         would cause this function to fail with ENOSYS.
40074         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
40075         See also http://bugzilla.redhat.com/552320.
40076
40077 2010-01-05  Eric Blake  <ebb9@byu.net>
40078
40079         strcase: document what it provides
40080         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40081         gnulib module.
40082         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40083         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40084
40085 2010-01-05  Jim Meyering  <meyering@redhat.com>
40086
40087         maint: remove useless inclusions of "xalloc.h"
40088         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40089         * lib/readtokens.c: Likewise.
40090         * lib/same.c: Likewise.
40091         * modules/getloadavg (Depends-on): Remove xalloc.
40092         * modules/readtokens: Likewise.
40093         * modules/same: Likewise.
40094
40095         maint.mk: include 4 more function names in alloca.h-checking regexp
40096         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40097         regexp.  Before, we would give a false-positive (saying alloca.h
40098         is included unnecessarily) when the only uses involved omitted symbols.
40099
40100         xalloc.h: use consistent formatting
40101         * lib/xalloc.h: Move declarations to start in the first column.
40102
40103 2010-01-05  Eric Blake  <ebb9@byu.net>
40104
40105         mkdir: avoid xalloc
40106         * lib/mkdir.c (includes): Drop unused header.
40107         Reported by John W. Eaton.
40108
40109 2010-01-04  Jim Meyering  <meyering@redhat.com>
40110
40111         nl_langinfo: avoid configure-time syntax error
40112         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40113         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40114         the empty string.  Don't let that provoke a shell syntax error.
40115
40116         regcomp, regexec, fnmatch: avoid array bounds read error
40117         * lib/regcomp.c (build_equiv_class): From glibc:
40118         Use only the low 24 bits of a findidx return value as an index
40119         into the weights array.  Patch by Ulrich Drepper:
40120         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40121         * lib/regexec.c (check_node_accept_bytes): Likewise.
40122         * lib/fnmatch_loop.c (FCT): Likewise.
40123
40124         regcomp: skip collseq lookup when there are no rules
40125         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40126         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40127
40128         regcomp: recognize ill-formed { } expressions
40129         * lib/regcomp.c (parse_dup_op): From glibc:
40130         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40131
40132         regcomp: fix typo in comment
40133         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40134         s/satisfy/satisfies/.
40135
40136         regcomp: sync from glibc: remove dead store
40137         * lib/regcomp.c (duplicate_node_closure): Remove useless
40138         search_duplicated_node call and dead store.
40139
40140         regcomp: sync from glibc; always use nl_langinfo
40141         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40142         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40143         * modules/regex (Depends-on): Add nl_langinfo.
40144
40145 2010-01-04  Eric Blake  <ebb9@byu.net>
40146
40147         fdopendir: fix configure test
40148         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40149
40150 2010-01-01  Bruno Haible  <bruno@clisp.org>
40151
40152         wchar: Remove unused configure check.
40153         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40154
40155 2010-01-01  Eric Blake  <ebb9@byu.net>
40156
40157         headers: make check of system header explicit
40158         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40159         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40160         ourselves.
40161         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40163         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40164         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40165         internals.
40166         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40167         missing.
40168         Suggested by Bruno Haible.
40169
40170 2010-01-01  Jim Meyering  <meyering@redhat.com>
40171
40172         ChangeLog: tweak to eliminate unnecessary copyright line
40173         * ChangeLog: Remove a copyright line that was mistakenly updated
40174         by today's update-copyright run.  Reported by Eric Blake.
40175
40176         test-update-copyright: don't let envvar setting cause test failure
40177         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40178
40179 2010-01-01  Bruno Haible  <bruno@clisp.org>
40180
40181         localename: Avoid gcc warning.
40182         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40183         function if it is not used.
40184
40185 2010-01-01  Jim Meyering  <meyering@redhat.com>
40186
40187         update nearly all FSF copyright year lists to include 2010
40188         Use the same procedure as for 2009, outlined in
40189         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40190
40191         version-etc: set COPYRIGHT_YEAR to 2010
40192         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40193
40194 2009-12-31  Eric Blake  <ebb9@byu.net>
40195
40196         doc: correct availability of cygwin 1.5.x getopt
40197         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40198         variables.
40199         * doc/posix-functions/opterr.texi (opterr): Likewise.
40200         * doc/posix-functions/optind.texi (optind): Likewise.
40201         * doc/posix-functions/optopt.texi (optopt): Likewise.
40202         * doc/posix-functions/tzname.texi (tzname): Likewise.
40203
40204         openat: update maintainer
40205         * modules/openat (Maintainer): Add myself.
40206
40207         utimens: avoid shadowing warning
40208         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40209         buffers into one, to avoid shadowing, as well as avoiding a
40210         redundant stat.
40211         Reported by Jim Meyering.
40212
40213         test-dup2: avoid compiler warning
40214         * tests/test-dup2.c (is_inheritable): Only define if used.
40215
40216 2010-01-01  Bruno Haible  <bruno@clisp.org>
40217
40218         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40219         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40220         defined, use wctomb instead of wcrtomb.
40221
40222 2010-01-01  Bruno Haible  <bruno@clisp.org>
40223
40224         iconv: Reject native Solaris iconv.
40225         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40226         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40227
40228 2009-12-31  Bruno Haible  <bruno@clisp.org>
40229
40230         * tests/test-signal.c (main): Remove test of 'SIG'.
40231
40232 2009-12-31  Bruno Haible  <bruno@clisp.org>
40233
40234         spawn: Fix incomplete fix.
40235         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40236         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40237         warnings for GNULIB_POSIXCHECK again.
40238         Reported by Eric Blake.
40239
40240 2009-12-31  Bruno Haible  <bruno@clisp.org>
40241
40242         Avoid namespace pollution on glibc systems.
40243         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40244         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40245         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40246         glibc systems.
40247
40248 2009-12-31  Bruno Haible  <bruno@clisp.org>
40249
40250         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40251         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40252         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40253         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40254         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40255         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40256         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40257
40258 2009-12-31  Bruno Haible  <bruno@clisp.org>
40259
40260         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40261         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40262         afterwards.
40263
40264 2009-12-31  Bruno Haible  <bruno@clisp.org>
40265
40266         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40267         SYS_UTSNAME_H.
40268
40269 2009-12-31  Bruno Haible  <bruno@clisp.org>
40270
40271         spawn: Fix misapplied patch.
40272         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40273         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40274         warnings for GNULIB_POSIXCHECK.
40275
40276 2009-12-31  Bruno Haible  <bruno@clisp.org>
40277
40278         times: Update after sys_times changed.
40279         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40280         * modules/times (Files): Add it.
40281         (configure.ac): Invoke gl_FUNC_TIMES.
40282
40283 2009-12-31  Bruno Haible  <bruno@clisp.org>
40284
40285         Use AC_C_INLINE where necessary.
40286         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40287         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40288         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40289         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40290         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40291         * m4/mbiter.m4 (gl_MBITER): Likewise.
40292         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40293         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40294         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40295         * modules/u64 (configure.ac): Likewise.
40296
40297 2009-12-31  Bruno Haible  <bruno@clisp.org>
40298
40299         Use AC_C_INLINE instead of module 'inline' where possible.
40300         * modules/inline (Description): Clarify purpose.
40301         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40302         * modules/count-one-bits (Depends-on): Remove inline.
40303         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40304         * modules/openat (Depends-on): Remove inline.
40305         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40306         instead of depending on module 'inline'.
40307         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40308         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40309         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40310         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40311         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40312         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40313         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40314         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40315         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40316         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40317         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40318         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40319         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40320         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40321         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40322         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40323         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40324         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40325         Likewise.
40326         * modules/unictype/property-ascii-hex-digit (Depends-on,
40327         configure.ac): Likewise.
40328         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40329         configure.ac): Likewise.
40330         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40331         configure.ac): Likewise.
40332         * modules/unictype/property-bidi-block-separator (Depends-on,
40333         configure.ac): Likewise.
40334         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40335         configure.ac): Likewise.
40336         * modules/unictype/property-bidi-common-separator (Depends-on,
40337         configure.ac): Likewise.
40338         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40339         Likewise.
40340         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40341         configure.ac): Likewise.
40342         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40343         configure.ac): Likewise.
40344         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40345         configure.ac): Likewise.
40346         * modules/unictype/property-bidi-european-digit (Depends-on,
40347         configure.ac): Likewise.
40348         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40349         configure.ac): Likewise.
40350         * modules/unictype/property-bidi-left-to-right (Depends-on,
40351         configure.ac): Likewise.
40352         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40353         configure.ac): Likewise.
40354         * modules/unictype/property-bidi-other-neutral (Depends-on,
40355         configure.ac): Likewise.
40356         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40357         Likewise.
40358         * modules/unictype/property-bidi-segment-separator (Depends-on,
40359         configure.ac): Likewise.
40360         * modules/unictype/property-bidi-whitespace (Depends-on,
40361         configure.ac): Likewise.
40362         * modules/unictype/property-combining (Depends-on, configure.ac):
40363         Likewise.
40364         * modules/unictype/property-composite (Depends-on, configure.ac):
40365         Likewise.
40366         * modules/unictype/property-currency-symbol (Depends-on,
40367         configure.ac): Likewise.
40368         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40369         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40370         Likewise.
40371         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40372         configure.ac): Likewise.
40373         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40374         Likewise.
40375         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40376         Likewise.
40377         * modules/unictype/property-extender (Depends-on, configure.ac):
40378         Likewise.
40379         * modules/unictype/property-format-control (Depends-on, configure.ac):
40380         Likewise.
40381         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40382         Likewise.
40383         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40384         Likewise.
40385         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40386         Likewise.
40387         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40388         Likewise.
40389         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40390         Likewise.
40391         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40392         Likewise.
40393         * modules/unictype/property-id-start (Depends-on, configure.ac):
40394         Likewise.
40395         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40396         Likewise.
40397         * modules/unictype/property-ids-binary-operator (Depends-on,
40398         configure.ac): Likewise.
40399         * modules/unictype/property-ids-trinary-operator (Depends-on,
40400         configure.ac): Likewise.
40401         * modules/unictype/property-ignorable-control (Depends-on,
40402         configure.ac): Likewise.
40403         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40404         Likewise.
40405         * modules/unictype/property-join-control (Depends-on, configure.ac):
40406         Likewise.
40407         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40408         Likewise.
40409         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40410         Likewise.
40411         * modules/unictype/property-logical-order-exception (Depends-on,
40412         configure.ac): Likewise.
40413         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40414         Likewise.
40415         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40416         * modules/unictype/property-non-break (Depends-on, configure.ac):
40417         Likewise.
40418         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40419         Likewise.
40420         * modules/unictype/property-numeric (Depends-on, configure.ac):
40421         Likewise.
40422         * modules/unictype/property-other-alphabetic (Depends-on,
40423         configure.ac): Likewise.
40424         * modules/unictype/property-other-default-ignorable-code-point
40425         (Depends-on, configure.ac): Likewise.
40426         * modules/unictype/property-other-grapheme-extend (Depends-on,
40427         configure.ac): Likewise.
40428         * modules/unictype/property-other-id-continue (Depends-on,
40429         configure.ac): Likewise.
40430         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40431         Likewise.
40432         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40433         Likewise.
40434         * modules/unictype/property-other-math (Depends-on, configure.ac):
40435         Likewise.
40436         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40437         Likewise.
40438         * modules/unictype/property-paired-punctuation (Depends-on,
40439         configure.ac): Likewise.
40440         * modules/unictype/property-paragraph-separator (Depends-on,
40441         configure.ac): Likewise.
40442         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40443         Likewise.
40444         * modules/unictype/property-pattern-white-space (Depends-on,
40445         configure.ac): Likewise.
40446         * modules/unictype/property-private-use (Depends-on, configure.ac):
40447         Likewise.
40448         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40449         Likewise.
40450         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40451         Likewise.
40452         * modules/unictype/property-radical (Depends-on, configure.ac):
40453         Likewise.
40454         * modules/unictype/property-sentence-terminal (Depends-on,
40455         configure.ac): Likewise.
40456         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40457         Likewise.
40458         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40459         * modules/unictype/property-terminal-punctuation (Depends-on,
40460         configure.ac): Likewise.
40461         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40462         Likewise.
40463         * modules/unictype/property-unassigned-code-value (Depends-on,
40464         configure.ac): Likewise.
40465         * modules/unictype/property-unified-ideograph (Depends-on,
40466         configure.ac): Likewise.
40467         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40468         Likewise.
40469         * modules/unictype/property-variation-selector (Depends-on,
40470         configure.ac): Likewise.
40471         * modules/unictype/property-white-space (Depends-on, configure.ac):
40472         Likewise.
40473         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40474         Likewise.
40475         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40476         Likewise.
40477         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40478         Likewise.
40479         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40480         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40481         Likewise.
40482
40483 2009-12-31  Bruno Haible  <bruno@clisp.org>
40484
40485         Remove unnecessary AC_C_INLINE invocation.
40486         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40487         since 2009-08-21.
40488
40489 2009-12-31  Jim Meyering  <meyering@redhat.com>
40490
40491         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40492         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40493         With this change, we can all remove the gpg_key_ID = ... definition
40494         from our respective cfg.mk files.
40495
40496         maint.mk: create announcement template in ~/, not in /tmp
40497         * top/maint.mk (emit_upload_commands): Adjust.
40498         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40499         Remove temporary file, .ci-msg.
40500
40501 2009-12-31  Eric Blake  <ebb9@byu.net>
40502
40503         link-warning: always build headers with link warnings
40504         * modules/arpa_inet (Makefile.am): Always build replacement
40505         header.
40506         * modules/ctype (Makefile.am): Likewise.
40507         * modules/dirent (Makefile.am): Likewise.
40508         * modules/inttypes (Makefile.am): Likewise.
40509         * modules/langinfo (Makefile.am): Likewise.
40510         * modules/locale (Makefile.am): Likewise.
40511         * modules/spawn (Makefile.am): Likewise.
40512         * modules/sys_file (Makefile.am): Likewise.
40513         * modules/sys_ioctl (Makefile.am): Likewise.
40514         * modules/sys_select (Makefile.am): Likewise.
40515         * modules/sys_socket (Makefile.am): Likewise.
40516         * modules/sys_times (Makefile.am): Likewise.
40517         * modules/sys_utsname (Makefile.am): Likewise.
40518         * modules/sys_wait (Makefile.am): Likewise.
40519         * modules/wchar (Makefile.am): Likewise.
40520         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40521         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40522         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40523         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40524         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40525         Likewise.
40526         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40527         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40528         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40529         Likewise.
40530         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40531         Likewise.
40532         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40533         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40534         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40536         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40537         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40538         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40539         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40540         (gl_WCHAR_H_DEFAULTS): Likewise.
40541
40542 2009-12-31  Eric Blake  <ebb9@byu.net>
40543
40544         signal, spawn: use link warnings
40545         * lib/signal.in.h (sigset_t): Make unconditional.
40546         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40547         (sigpending, sigprocmask, sigaction): Add link warnings.
40548         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40549         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40550         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40551         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40552         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40553         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40554         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40555         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40556         (posix_spawn_file_actions_destroy)
40557         (posix_spawn_file_actions_addopen)
40558         (posix_spawn_file_actions_addclose)
40559         (posix_spawn_file_actions_adddup2): Likewise.
40560         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40561         * tests/test-signal.c (main): Enhance test.
40562
40563         spawn: improve wrapper support
40564         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40565         (gl_SPAWN_H_DEFAULTS): New defaults.
40566         * modules/spawn (Makefile.am): Substitute them.
40567         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40568         Only declare if missing or broken.
40569
40570         sys_times, sys_utsname: use include_next
40571         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40572         header.
40573         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40574         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40575         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40576         * modules/sys_times (Depends-on): Add include_next.
40577         (Makefile.am): Substitute additional values.
40578         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40579         * lib/sys_times.in.h (includes): Include native header, if
40580         available.
40581         * lib/sys_utsname.in.h (includes): Likewise.
40582         * tests/test-sys_times.c (main): Enhance test.
40583
40584         fdutimensat: revert prior patch
40585         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40586         utimens.h.
40587         Reported by Bruno Haible.
40588
40589 2009-12-30  Eric Blake  <ebb9@byu.net>
40590
40591         sys_wait: drop link-warning dependency
40592         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40593         link-warning efforts.
40594         * lib/sys_wait.in.h: Likewise.
40595
40596         fdutimensat: remove bogus dependency
40597         * modules/fdutimensat (Depends-on): Drop inline.
40598
40599         unistd: fix typo
40600         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40601
40602 2009-12-30  Bruno Haible  <bruno@clisp.org>
40603
40604         Fix compilation error with Solaris cc.
40605         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40606         * lib/unicase/u16-is-invariant.c: Likewise.
40607         * lib/unicase/u32-is-invariant.c: Likewise.
40608         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40609
40610 2009-12-30  Bruno Haible  <bruno@clisp.org>
40611
40612         Fix test crash.
40613         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40614         locales.
40615         Reported by Simon Josefsson <simon@josefsson.org>.
40616
40617 2009-12-30  Bruno Haible  <bruno@clisp.org>
40618
40619         Fix compilation error on most platforms.
40620         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40621         Reported by Simon Josefsson <simon@josefsson.org>
40622         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40623
40624 2009-12-30  Eric Blake  <ebb9@byu.net>
40625
40626         futimens, utimensat: work around ntfs-3g bug
40627         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40628         a ctime bug is present, and expand workaround to cover ntfs-3g.
40629         * lib/utimens.c (fdutimens, lutimens): Likewise.
40630         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40631         (validate_timespec): Adjust return value.
40632         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40633         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40634         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40635
40636 2009-12-29  Eric Blake  <ebb9@byu.net>
40637
40638         link-warning: make usage consistent
40639         * modules/ctype (Depends-on): Add link-warning.
40640         (Makefile.am): Update rules accordingly.
40641         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40642         * modules/locale (Depends-on, Makefile.am): Likewise.
40643         * modules/sys_file (Makefile.am): Likewise.
40644         * modules/getopt-posix (Makefile.am): Delete unused link warning
40645         efforts.
40646         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40647         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40648         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40649         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40650
40651         stdio: remove unused variables
40652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40653         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40654         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40655
40656         tests: test more substitute headers
40657         * modules/ctype-tests: New file.
40658         * modules/dirent-tests: Likewise.
40659         * modules/spawn-tests: Likewise.
40660         * modules/sys_file-tests: Likewise.
40661         * modules/sys_ioctl-tests: Likewise.
40662         * modules/sys_wait-tests: Likewise.
40663         * tests/test-ctype.c: Likewise.
40664         * tests/test-dirent.c: Likewise.
40665         * tests/test-spawn.c: Likewise.
40666         * tests/test-sys_file.c: Likewise.
40667         * tests/test-sys_ioctl.c: Likewise.
40668         * tests/test-sys_wait.c: Likewise.
40669         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40670         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40671         whether or not flock is in use.
40672
40673         tests: remove License section from module
40674         * modules/arpa_inet-tests: Remove unneeded section.
40675         * modules/byteswap-tests: Likewise.
40676         * modules/ceilf-tests: Likewise.
40677         * modules/ceill-tests: Likewise.
40678         * modules/crypto/des-tests: Likewise.
40679         * modules/crypto/gc-arcfour-tests: Likewise.
40680         * modules/crypto/gc-arctwo-tests: Likewise.
40681         * modules/crypto/gc-des-tests: Likewise.
40682         * modules/crypto/gc-hmac-md5-tests: Likewise.
40683         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40684         * modules/crypto/gc-md2-tests: Likewise.
40685         * modules/crypto/gc-md4-tests: Likewise.
40686         * modules/crypto/gc-md5-tests: Likewise.
40687         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40688         * modules/crypto/gc-rijndael-tests: Likewise.
40689         * modules/crypto/gc-sha1-tests: Likewise.
40690         * modules/crypto/gc-tests: Likewise.
40691         * modules/crypto/md2-tests: Likewise.
40692         * modules/crypto/md4-tests: Likewise.
40693         * modules/fcntl-h-tests: Likewise.
40694         * modules/floorf-tests: Likewise.
40695         * modules/floorl-tests: Likewise.
40696         * modules/frexp-nolibm-tests: Likewise.
40697         * modules/frexp-tests: Likewise.
40698         * modules/frexpl-nolibm-tests: Likewise.
40699         * modules/frexpl-tests: Likewise.
40700         * modules/getaddrinfo-tests: Likewise.
40701         * modules/inttypes-tests: Likewise.
40702         * modules/isfinite-tests: Likewise.
40703         * modules/isinf-tests: Likewise.
40704         * modules/ldexpl-tests: Likewise.
40705         * modules/locale-tests: Likewise.
40706         * modules/math-tests: Likewise.
40707         * modules/netdb-tests: Likewise.
40708         * modules/netinet_in-tests: Likewise.
40709         * modules/printf-frexp-tests: Likewise.
40710         * modules/printf-frexpl-tests: Likewise.
40711         * modules/priv-set-tests: Likewise.
40712         * modules/random_r-tests: Likewise.
40713         * modules/round-tests: Likewise.
40714         * modules/roundf-tests: Likewise.
40715         * modules/roundl-tests: Likewise.
40716         * modules/search-tests: Likewise.
40717         * modules/select-tests: Likewise.
40718         * modules/signal-tests: Likewise.
40719         * modules/stdbool-tests: Likewise.
40720         * modules/stddef-tests: Likewise.
40721         * modules/stdint-tests: Likewise.
40722         * modules/stdio-tests: Likewise.
40723         * modules/stdlib-tests: Likewise.
40724         * modules/string-tests: Likewise.
40725         * modules/strings-tests: Likewise.
40726         * modules/sys_select-tests: Likewise.
40727         * modules/sys_socket-tests: Likewise.
40728         * modules/sys_stat-tests: Likewise.
40729         * modules/sys_time-tests: Likewise.
40730         * modules/sys_utsname-tests: Likewise.
40731         * modules/sysexits-tests: Likewise.
40732         * modules/time-tests: Likewise.
40733         * modules/trunc-tests: Likewise.
40734         * modules/truncf-tests: Likewise.
40735         * modules/truncl-tests: Likewise.
40736         * modules/tsearch-tests: Likewise.
40737         * modules/unistd-tests: Likewise.
40738         * modules/wchar-tests: Likewise.
40739         * modules/wctype-tests: Likewise.
40740
40741         tests: fix license on several tests
40742         * tests/test-des.c: Update to GPLv3+.
40743         * tests/test-flock.c: Likewise.
40744         * tests/test-fsync.c: Likewise.
40745         * tests/test-futimens.h: Likewise.
40746         * tests/test-gc-arcfour.c: Likewise.
40747         * tests/test-gc-arctwo.c: Likewise.
40748         * tests/test-gc-des.c: Likewise.
40749         * tests/test-gc-hmac-md5.c: Likewise.
40750         * tests/test-gc-hmac-sha1.c: Likewise.
40751         * tests/test-gc-md2.c: Likewise.
40752         * tests/test-gc-md4.c: Likewise.
40753         * tests/test-gc-md5.c: Likewise.
40754         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40755         * tests/test-gc-rijndael.c: Likewise.
40756         * tests/test-gc-sha1.c: Likewise.
40757         * tests/test-gc.c: Likewise.
40758         * tests/test-getcwd.c: Likewise.
40759         * tests/test-link.c: Likewise.
40760         * tests/test-link.h: Likewise.
40761         * tests/test-lutimens.h: Likewise.
40762         * tests/test-md2.c: Likewise.
40763         * tests/test-md4.c: Likewise.
40764         * tests/test-mkdir.h: Likewise.
40765         * tests/test-rename.c: Likewise.
40766         * tests/test-rename.h: Likewise.
40767         * tests/test-safe-alloc.c: Likewise.
40768         * tests/test-utimens-common.h: Likewise.
40769         * tests/test-utimens.h: Likewise.
40770
40771         maint: sync license texts
40772         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40773         * doc/gpl-3.0.texi: Revert copyright year update.
40774         * doc/lgpl-3.0.texi: Likewise.
40775
40776 2009-12-29  Jim Meyering  <meyering@redhat.com>
40777
40778         update nearly all FSF copyright year lists to include 2009
40779         The files named by the following are exempted:
40780             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40781               test -f "$dst" && { echo "$dst"; continue; }
40782               test -d "$dst" || continue
40783               echo "$dst"/$(basename "$src")
40784             done > exempt
40785             git ls-files tests/unictype >> exempt
40786         In the remaining files, convert to all-interval notation if
40787         - there is already at least one year interval like 2000-2003
40788         - the file is maintained by me
40789         - the file is in lib/uni*/, where that style already prevails
40790         Otherwise, use update-copyright's default.
40791
40792 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40793         and Eric Blake  <ebb9@byu.net>
40794
40795         tests: don't require debug system() to pass
40796         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40797         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40798         * tests/test-unlink.h (test_unlink_func): Likewise.
40799         * tests/test-fstatat.c (main): ...into callers.
40800         * tests/test-lstat.c (main): Likewise.
40801         * tests/test-rmdir.c (main): Likewise.
40802         * tests/test-unlink.c (main): Likewise.
40803         * tests/test-unlinkat.c (main): Likewise.
40804         * tests/test-areadlink-with-size.c (main): Don't require a
40805         debug-only system call to pass, aiding cross-testing to mingw.
40806         * tests/test-areadlink.c (main): Likewise.
40807         * tests/test-areadlinkat-with-size.c (main): Likewise.
40808         * tests/test-areadlinkat.c (main): Likewise.
40809         * tests/test-canonicalize-lgpl.c (main): Likewise.
40810         * tests/test-canonicalize.c (main): Likewise.
40811         * tests/test-chown.c (main): Likewise.
40812         * tests/test-fchownat.c (main): Likewise.
40813         * tests/test-lchown.c (main): Likewise.
40814         * tests/test-fdutimensat.c (main): Likewise.
40815         * tests/test-futimens.c (main): Likewise.
40816         * tests/test-link.c (main): Likewise.
40817         * tests/test-linkat.c (main): Likewise.
40818         * tests/test-mkdir.c (main): Likewise.
40819         * tests/test-mkdirat.c (main): Likewise.
40820         * tests/test-mkfifo.c (main): Likewise.
40821         * tests/test-mkfifoat.c (main): Likewise.
40822         * tests/test-mknod.c (main): Likewise.
40823         * tests/test-readlink.c (main): Likewise.
40824         * tests/test-remove.c (main): Likewise.
40825         * tests/test-rename.c (main): Likewise.
40826         * tests/test-renameat.c (main): Likewise.
40827         * tests/test-symlink.c (main): Likewise.
40828         * tests/test-symlinkat.c (main): Likewise.
40829         * tests/test-utimens.c (main): Likewise.
40830         * tests/test-utimensat.c (main): Likewise.
40831
40832 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40833
40834         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40835         on $(UNUSED_PARAMETER_H) to avoid build failure.
40836
40837 2009-12-28  Jim Meyering  <meyering@redhat.com>
40838
40839         update-copyright: you may specify a max. line length other than 72
40840         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40841
40842         maint: use consistent FSF copyright line syntax
40843         * lib/posixtm.c: Add missing comma in FSF copyright line.
40844         * lib/posixtm.h: Likewise.
40845         * lib/getugroups.c: Add missing ", Inc.".
40846
40847         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40848         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40849         FSF copyright line.  Remove trailing blanks.
40850
40851 2009-12-28  Eric Blake  <ebb9@byu.net>
40852
40853         test-dup2: reduce dependencies
40854         * modules/cloexec (Configure.ac): Set witness.
40855         * modules/dup2-tests (Depends-on): Drop cloexec.
40856         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40857         not present.
40858         Suggested by Bruno Haible.
40859
40860 2009-12-26  Bruno Haible  <bruno@clisp.org>
40861
40862         Remove an unneeded dependency.
40863         * modules/fseterr (Depends-on): Remove dup2.
40864
40865 2009-12-26  Eric Blake  <ebb9@byu.net>
40866
40867         tests: use macros.h in more places
40868         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40869         (ASSERT_STREAM): Provide default of stderr.
40870         * tests/test-dirent-safer.c: Include macros.h, using alternate
40871         stream for assertions.
40872         * tests/test-dup-safer.c: Likewise.
40873         * tests/test-freopen-safer.c: Likewise.
40874         * tests/test-getopt.c: Likewise.
40875         * tests/test-openat-safer.c: Likewise.
40876         * tests/test-pipe.c: Likewise.
40877         * tests/test-popen-safer.c: Likewise.
40878         * modules/dirent-safer-tests (Files): Include macros.h.
40879         * modules/unistd-safer-tests (Files): Likewise.
40880         * modules/freopen-safer-tests (Files): Likewise.
40881         * modules/getopt-posix-tests (Files): Likewise.
40882         * modules/openat-safer-tests (Files): Likewise.
40883         * modules/pipe-tests (Files): Likewise.
40884
40885 2009-12-26  Bruno Haible  <bruno@clisp.org>
40886
40887         javacomp: Portability fix.
40888         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40889         that it also works on Solaris.
40890
40891 2009-12-26  Bruno Haible  <bruno@clisp.org>
40892
40893         localename: Fix storage allocation of gl_locale_name_thread's result.
40894         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40895         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40896         all platforms that have 'uselocale'.
40897         (gl_locale_name_thread_unsafe): New function, extracted from
40898         gl_locale_name_thread.
40899         (gl_locale_name_thread): Call struniq on all platforms that have
40900         'uselocale'.
40901         * tests/test-localename.c (test_locale_name_thread): Check that the
40902         resulting strings are permanently allocated.
40903         * modules/localename-tests (Depends-on): Add strdup.
40904
40905 2009-12-26  Bruno Haible  <bruno@clisp.org>
40906
40907         * tests/test-localename.c (categories): Fill in the strings.
40908
40909 2009-12-26  Jim Meyering  <meyering@redhat.com>
40910
40911         isdir: complete the removal of m4/isdir.m4
40912         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40913
40914         isdir: clean up, since at least grep still uses it
40915         * lib/isdir.c: Include "isdir.h".
40916         (S_ISDIR): Remove now-unneeded definition.
40917         * modules/isdir (Files): Add lib/isdir.h.
40918         * lib/isdir.h: New file, with declaration.
40919         * m4/isdir.m4: Remove file -- unneeded.
40920
40921 2009-12-25  Bruno Haible  <bruno@clisp.org>
40922
40923         selinux-h: Make generated .h files standalone.
40924         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40925         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40926         * lib/se-selinux.in.h: Likewise.
40927         * modules/selinux-h (Depends-on): Add unused-parameter.
40928         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40929         selinux/selinux.h and selinux/context.h.
40930         Suggested by Eric Blake.
40931
40932 2009-12-25  Bruno Haible  <bruno@clisp.org>
40933
40934         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40935         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40936         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40937         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40938         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40939
40940 2009-12-24  Bruno Haible  <bruno@clisp.org>
40941
40942         openat: Fix warning.
40943         * lib/openat-proc.c: Include <unistd.h>.
40944
40945 2009-12-24  Bruno Haible  <bruno@clisp.org>
40946
40947         New module 'unused-parameter'.
40948         * build-aux/unused-parameter.h: New file, extracted from earlier
40949         gnulib-common.m4.
40950         * modules/unused-parameter: New file.
40951         * lib/unistr.h: Include unused-parameter.h.
40952         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40953         _GL_UNUSED.
40954         * modules/unistr/base (Depends-on): Add unused-parameter.
40955
40956 2009-12-24  Bruno Haible  <bruno@clisp.org>
40957
40958         Add missing dependencies to 'extensions' module.
40959         * m4/extensions.m4: Add comment.
40960         * modules/accept4 (Depends-on): Add extensions.
40961         * modules/dup3 (Depends-on): Likewise.
40962         * modules/fcntl (Depends-on): Likewise.
40963         * modules/futimens (Depends-on): Likewise.
40964         * modules/mknod (Depends-on): Likewise.
40965         * modules/pipe2 (Depends-on): Likewise.
40966         * modules/stat-time (Depends-on): Likewise.
40967         * modules/strcasestr-simple (Depends-on): Likewise.
40968         * modules/strsignal (Depends-on): Likewise.
40969         * modules/utimensat (Depends-on): Likewise.
40970         * modules/localcharset (Depends-on): Likewise. Needed because of
40971         gl_FCNTL_O_FLAGS.
40972         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40973         AC_TYPE_MBSTATE_T.
40974         * modules/wcsnrtombs (Depends-on): Likewise.
40975         * modules/wcsrtombs (Depends-on): Likewise.
40976
40977 2009-12-24  Bruno Haible  <bruno@clisp.org>
40978
40979         binary-io: Avoid gcc warning due to SET_BINARY.
40980         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40981         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40982
40983 2009-12-24  Bruno Haible  <bruno@clisp.org>
40984
40985         Avoid future namespace pollution on glibc systems.
40986         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40987         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40988         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40989         glibc systems.
40990
40991 2009-12-24  Bruno Haible  <bruno@clisp.org>
40992
40993         Refactor common macros used in tests.
40994         * tests/macros.h: New file.
40995         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40996         and/or <stdlib.h>, if appropriate.
40997         (ASSERT, SIZEOF): Remove macros.
40998         * tests/test-areadlink-with-size.c: Likewise.
40999         * tests/test-areadlinkat.c: Likewise.
41000         * tests/test-areadlinkat-with-size.c: Likewise.
41001         * tests/test-argmatch.c: Likewise.
41002         * tests/test-argv-iter.c: Likewise.
41003         * tests/test-array-mergesort.c: Likewise.
41004         * tests/test-array_list.c: Likewise.
41005         * tests/test-array_oset.c: Likewise.
41006         * tests/test-avltree_list.c: Likewise.
41007         * tests/test-avltree_oset.c: Likewise.
41008         * tests/test-avltreehash_list.c: Likewise.
41009         * tests/test-base64.c: Likewise.
41010         * tests/test-binary-io.c: Likewise.
41011         * tests/test-bitrotate.c: Likewise.
41012         * tests/test-btowc.c: Likewise.
41013         * tests/test-byteswap.c: Likewise.
41014         * tests/test-c-ctype.c: Likewise.
41015         * tests/test-c-stack.c: Likewise.
41016         * tests/test-c-strcasecmp.c: Likewise.
41017         * tests/test-c-strcasestr.c: Likewise.
41018         * tests/test-c-strncasecmp.c: Likewise.
41019         * tests/test-c-strstr.c: Likewise.
41020         * tests/test-canonicalize-lgpl.c: Likewise.
41021         * tests/test-canonicalize.c: Likewise.
41022         * tests/test-carray_list.c: Likewise.
41023         * tests/test-ceilf1.c: Likewise.
41024         * tests/test-ceilf2.c: Likewise.
41025         * tests/test-ceill.c: Likewise.
41026         * tests/test-chown.c: Likewise.
41027         * tests/test-cloexec.c: Likewise.
41028         * tests/test-copy-acl.c: Likewise.
41029         * tests/test-copy-file.c: Likewise.
41030         * tests/test-count-one-bits.c: Likewise.
41031         * tests/test-dprintf-posix.c: Likewise.
41032         * tests/test-dup2.c: Likewise.
41033         * tests/test-dup3.c: Likewise.
41034         * tests/test-duplocale.c: Likewise.
41035         * tests/test-fbufmode.c: Likewise.
41036         * tests/test-fchdir.c: Likewise.
41037         * tests/test-fchownat.c: Likewise.
41038         * tests/test-fcntl-safer.c: Likewise.
41039         * tests/test-fcntl.c: Likewise.
41040         * tests/test-fdopendir.c: Likewise.
41041         * tests/test-fdutimensat.c: Likewise.
41042         * tests/test-fflush2.c: Likewise.
41043         * tests/test-file-has-acl.c: Likewise.
41044         * tests/test-filevercmp.c: Likewise.
41045         * tests/test-flock.c: Likewise.
41046         * tests/test-floorf1.c: Likewise.
41047         * tests/test-floorf2.c: Likewise.
41048         * tests/test-floorl.c: Likewise.
41049         * tests/test-fnmatch.c: Likewise.
41050         * tests/test-fopen.h: Likewise.
41051         * tests/test-fpending.c: Likewise.
41052         * tests/test-fprintf-posix.c: Likewise.
41053         * tests/test-fpurge.c: Likewise.
41054         * tests/test-freadable.c: Likewise.
41055         * tests/test-freadahead.c: Likewise.
41056         * tests/test-freading.c: Likewise.
41057         * tests/test-freadptr.c: Likewise.
41058         * tests/test-freadptr2.c: Likewise.
41059         * tests/test-freadseek.c: Likewise.
41060         * tests/test-freopen.c: Likewise.
41061         * tests/test-frexp.c: Likewise.
41062         * tests/test-frexpl.c: Likewise.
41063         * tests/test-fseek.c: Likewise.
41064         * tests/test-fseeko.c: Likewise.
41065         * tests/test-fstatat.c: Likewise.
41066         * tests/test-fstrcmp.c: Likewise.
41067         * tests/test-fsync.c: Likewise.
41068         * tests/test-ftell.c: Likewise.
41069         * tests/test-ftello.c: Likewise.
41070         * tests/test-func.c: Likewise.
41071         * tests/test-futimens.c: Likewise.
41072         * tests/test-fwritable.c: Likewise.
41073         * tests/test-fwriting.c: Likewise.
41074         * tests/test-getcwd.c: Likewise.
41075         * tests/test-getdate.c: Likewise.
41076         * tests/test-getdelim.c: Likewise.
41077         * tests/test-getdtablesize.c: Likewise.
41078         * tests/test-getgroups.c: Likewise.
41079         * tests/test-getline.c: Likewise.
41080         * tests/test-getndelim2.c: Likewise.
41081         * tests/test-glob.c: Likewise.
41082         * tests/test-hash.c: Likewise.
41083         * tests/test-i-ring.c: Likewise.
41084         * tests/test-iconv-utf.c: Likewise.
41085         * tests/test-iconv.c: Likewise.
41086         * tests/test-idpriv-drop.c: Likewise.
41087         * tests/test-idpriv-droptemp.c: Likewise.
41088         * tests/test-inet_ntop.c: Likewise.
41089         * tests/test-inet_pton.c: Likewise.
41090         * tests/test-isblank.c: Likewise.
41091         * tests/test-isfinite.c: Likewise.
41092         * tests/test-isinf.c: Likewise.
41093         * tests/test-isnan.c: Likewise.
41094         * tests/test-isnand.h: Likewise.
41095         * tests/test-isnanf.h: Likewise.
41096         * tests/test-isnanl.h: Likewise.
41097         * tests/test-lchown.c: Likewise.
41098         * tests/test-ldexpl.c: Likewise.
41099         * tests/test-link.c: Likewise.
41100         * tests/test-linkat.c: Likewise.
41101         * tests/test-linked_list.c: Likewise.
41102         * tests/test-linkedhash_list.c: Likewise.
41103         * tests/test-localename.c: Likewise.
41104         * tests/test-lseek.c: Likewise.
41105         * tests/test-lstat.c: Likewise.
41106         * tests/test-mbmemcasecmp.c: Likewise.
41107         * tests/test-mbmemcasecoll.c: Likewise.
41108         * tests/test-mbrtowc.c: Likewise.
41109         * tests/test-mbscasecmp.c: Likewise.
41110         * tests/test-mbscasestr1.c: Likewise.
41111         * tests/test-mbscasestr2.c: Likewise.
41112         * tests/test-mbscasestr3.c: Likewise.
41113         * tests/test-mbscasestr4.c: Likewise.
41114         * tests/test-mbschr.c: Likewise.
41115         * tests/test-mbscspn.c: Likewise.
41116         * tests/test-mbsinit.c: Likewise.
41117         * tests/test-mbsncasecmp.c: Likewise.
41118         * tests/test-mbsnrtowcs.c: Likewise.
41119         * tests/test-mbspbrk.c: Likewise.
41120         * tests/test-mbspcasecmp.c: Likewise.
41121         * tests/test-mbsrchr.c: Likewise.
41122         * tests/test-mbsrtowcs.c: Likewise.
41123         * tests/test-mbsspn.c: Likewise.
41124         * tests/test-mbsstr1.c: Likewise.
41125         * tests/test-mbsstr2.c: Likewise.
41126         * tests/test-mbsstr3.c: Likewise.
41127         * tests/test-memchr.c: Likewise.
41128         * tests/test-memchr2.c: Likewise.
41129         * tests/test-memcmp.c: Likewise.
41130         * tests/test-memmem.c: Likewise.
41131         * tests/test-memrchr.c: Likewise.
41132         * tests/test-mkdir.c: Likewise.
41133         * tests/test-mkdirat.c: Likewise.
41134         * tests/test-mkfifo.c: Likewise.
41135         * tests/test-mkfifoat.c: Likewise.
41136         * tests/test-mknod.c: Likewise.
41137         * tests/test-nanosleep.c: Likewise.
41138         * tests/test-nl_langinfo.c: Likewise.
41139         * tests/test-obstack-printf.c: Likewise.
41140         * tests/test-open.c: Likewise.
41141         * tests/test-openat.c: Likewise.
41142         * tests/test-pipe-filter-gi1.c: Likewise.
41143         * tests/test-pipe-filter-gi2-main.c: Likewise.
41144         * tests/test-pipe-filter-ii1.c: Likewise.
41145         * tests/test-pipe-filter-ii2-main.c: Likewise.
41146         * tests/test-pipe2.c: Likewise.
41147         * tests/test-popen.h: Likewise.
41148         * tests/test-posixtm.c: Likewise.
41149         * tests/test-pread.c: Likewise.
41150         * tests/test-printf-frexp.c: Likewise.
41151         * tests/test-printf-frexpl.c: Likewise.
41152         * tests/test-printf-posix.c: Likewise.
41153         * tests/test-priv-set.c: Likewise.
41154         * tests/test-quotearg.c: Likewise.
41155         * tests/test-random_r.c: Likewise.
41156         * tests/test-rawmemchr.c: Likewise.
41157         * tests/test-rbtree_list.c: Likewise.
41158         * tests/test-rbtree_oset.c: Likewise.
41159         * tests/test-rbtreehash_list.c: Likewise.
41160         * tests/test-readlink.c: Likewise.
41161         * tests/test-remove.c: Likewise.
41162         * tests/test-rename.c: Likewise.
41163         * tests/test-renameat.c: Likewise.
41164         * tests/test-rmdir.c: Likewise.
41165         * tests/test-round1.c: Likewise.
41166         * tests/test-roundf1.c: Likewise.
41167         * tests/test-roundl.c: Likewise.
41168         * tests/test-safe-alloc.c: Likewise.
41169         * tests/test-sameacls.c: Likewise.
41170         * tests/test-set-mode-acl.c: Likewise.
41171         * tests/test-setenv.c: Likewise.
41172         * tests/test-sigaction.c: Likewise.
41173         * tests/test-signbit.c: Likewise.
41174         * tests/test-sleep.c: Likewise.
41175         * tests/test-snprintf-posix.c: Likewise.
41176         * tests/test-snprintf.c: Likewise.
41177         * tests/test-sprintf-posix.c: Likewise.
41178         * tests/test-stat-time.c: Likewise.
41179         * tests/test-stat.c: Likewise.
41180         * tests/test-strcasestr.c: Likewise.
41181         * tests/test-strchrnul.c: Likewise.
41182         * tests/test-strerror.c: Likewise.
41183         * tests/test-striconv.c: Likewise.
41184         * tests/test-striconveh.c: Likewise.
41185         * tests/test-striconveha.c: Likewise.
41186         * tests/test-strsignal.c: Likewise.
41187         * tests/test-strstr.c: Likewise.
41188         * tests/test-strtod.c: Likewise.
41189         * tests/test-strverscmp.c: Likewise.
41190         * tests/test-symlink.c: Likewise.
41191         * tests/test-symlinkat.c: Likewise.
41192         * tests/test-trunc1.c: Likewise.
41193         * tests/test-trunc2.c: Likewise.
41194         * tests/test-truncf1.c: Likewise.
41195         * tests/test-truncf2.c: Likewise.
41196         * tests/test-truncl.c: Likewise.
41197         * tests/test-uname.c: Likewise.
41198         * tests/test-unlink.c: Likewise.
41199         * tests/test-unlinkat.c: Likewise.
41200         * tests/test-unsetenv.c: Likewise.
41201         * tests/test-usleep.c: Likewise.
41202         * tests/test-utimens.c: Likewise.
41203         * tests/test-utimensat.c: Likewise.
41204         * tests/test-vasnprintf-posix.c: Likewise.
41205         * tests/test-vasnprintf-posix2.c: Likewise.
41206         * tests/test-vasnprintf.c: Likewise.
41207         * tests/test-vasprintf-posix.c: Likewise.
41208         * tests/test-vasprintf.c: Likewise.
41209         * tests/test-vdprintf-posix.c: Likewise.
41210         * tests/test-vfprintf-posix.c: Likewise.
41211         * tests/test-vprintf-posix.c: Likewise.
41212         * tests/test-vsnprintf-posix.c: Likewise.
41213         * tests/test-vsnprintf.c: Likewise.
41214         * tests/test-vsprintf-posix.c: Likewise.
41215         * tests/test-wcrtomb.c: Likewise.
41216         * tests/test-wcsnrtombs.c: Likewise.
41217         * tests/test-wcsrtombs.c: Likewise.
41218         * tests/test-wctype.c: Likewise.
41219         * tests/test-wcwidth.c: Likewise.
41220         * tests/test-xfprintf-posix.c: Likewise.
41221         * tests/test-xmemdup0.c: Likewise.
41222         * tests/test-xprintf-posix.c: Likewise.
41223         * tests/test-xvasprintf.c: Likewise.
41224         * tests/unicase/test-locale-language.c: Likewise.
41225         * tests/unicase/test-mapping-part1.h: Likewise.
41226         * tests/unicase/test-predicate-part1.h: Likewise.
41227         * tests/unicase/test-u8-casecmp.c: Likewise.
41228         * tests/unicase/test-u8-casecoll.c: Likewise.
41229         * tests/unicase/test-u8-casefold.c: Likewise.
41230         * tests/unicase/test-u8-is-cased.c: Likewise.
41231         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41232         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41233         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41234         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41235         * tests/unicase/test-u8-tolower.c: Likewise.
41236         * tests/unicase/test-u8-totitle.c: Likewise.
41237         * tests/unicase/test-u8-toupper.c: Likewise.
41238         * tests/unicase/test-u16-casecmp.c: Likewise.
41239         * tests/unicase/test-u16-casecoll.c: Likewise.
41240         * tests/unicase/test-u16-casefold.c: Likewise.
41241         * tests/unicase/test-u16-is-cased.c: Likewise.
41242         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41243         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41244         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41245         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41246         * tests/unicase/test-u16-tolower.c: Likewise.
41247         * tests/unicase/test-u16-totitle.c: Likewise.
41248         * tests/unicase/test-u16-toupper.c: Likewise.
41249         * tests/unicase/test-u32-casecmp.c: Likewise.
41250         * tests/unicase/test-u32-casecoll.c: Likewise.
41251         * tests/unicase/test-u32-casefold.c: Likewise.
41252         * tests/unicase/test-u32-is-cased.c: Likewise.
41253         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41254         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41255         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41256         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41257         * tests/unicase/test-u32-tolower.c: Likewise.
41258         * tests/unicase/test-u32-totitle.c: Likewise.
41259         * tests/unicase/test-u32-toupper.c: Likewise.
41260         * tests/unicase/test-ulc-casecmp.c: Likewise.
41261         * tests/unicase/test-ulc-casecoll.c: Likewise.
41262         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41263         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41264         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41265         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41266         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41267         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41268         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41269         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41270         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41271         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41272         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41273         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41274         * tests/unictype/test-bidi_byname.c: Likewise.
41275         * tests/unictype/test-bidi_name.c: Likewise.
41276         * tests/unictype/test-bidi_of.c: Likewise.
41277         * tests/unictype/test-bidi_test.c: Likewise.
41278         * tests/unictype/test-block_list.c: Likewise.
41279         * tests/unictype/test-block_of.c: Likewise.
41280         * tests/unictype/test-block_test.c: Likewise.
41281         * tests/unictype/test-categ_and.c: Likewise.
41282         * tests/unictype/test-categ_and_not.c: Likewise.
41283         * tests/unictype/test-categ_byname.c: Likewise.
41284         * tests/unictype/test-categ_name.c: Likewise.
41285         * tests/unictype/test-categ_none.c: Likewise.
41286         * tests/unictype/test-categ_of.c: Likewise.
41287         * tests/unictype/test-categ_or.c: Likewise.
41288         * tests/unictype/test-categ_test_withtable.c: Likewise.
41289         * tests/unictype/test-combining.c: Likewise.
41290         * tests/unictype/test-decdigit.c: Likewise.
41291         * tests/unictype/test-digit.c: Likewise.
41292         * tests/unictype/test-mirror.c: Likewise.
41293         * tests/unictype/test-numeric.c: Likewise.
41294         * tests/unictype/test-pr_byname.c: Likewise.
41295         * tests/unictype/test-pr_test.c: Likewise.
41296         * tests/unictype/test-predicate-part1.h: Likewise.
41297         * tests/unictype/test-scripts.c: Likewise.
41298         * tests/unictype/test-sy_c_ident.c: Likewise.
41299         * tests/unictype/test-sy_java_ident.c: Likewise.
41300         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41301         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41302         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41303         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41304         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41305         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41306         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41307         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41308         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41309         * tests/uninorm/test-compat-decomposition.c: Likewise.
41310         * tests/uninorm/test-composition.c: Likewise.
41311         * tests/uninorm/test-decomposing-form.c: Likewise.
41312         * tests/uninorm/test-decomposition.c: Likewise.
41313         * tests/uninorm/test-u8-nfc.c: Likewise.
41314         * tests/uninorm/test-u8-nfd.c: Likewise.
41315         * tests/uninorm/test-u8-nfkc.c: Likewise.
41316         * tests/uninorm/test-u8-nfkd.c: Likewise.
41317         * tests/uninorm/test-u8-normcmp.c: Likewise.
41318         * tests/uninorm/test-u8-normcoll.c: Likewise.
41319         * tests/uninorm/test-u16-nfc.c: Likewise.
41320         * tests/uninorm/test-u16-nfd.c: Likewise.
41321         * tests/uninorm/test-u16-nfkc.c: Likewise.
41322         * tests/uninorm/test-u16-nfkd.c: Likewise.
41323         * tests/uninorm/test-u16-normcmp.c: Likewise.
41324         * tests/uninorm/test-u16-normcoll.c: Likewise.
41325         * tests/uninorm/test-u32-nfc.c: Likewise.
41326         * tests/uninorm/test-u32-nfd.c: Likewise.
41327         * tests/uninorm/test-u32-nfkc.c: Likewise.
41328         * tests/uninorm/test-u32-nfkd.c: Likewise.
41329         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41330         * tests/uninorm/test-u32-normcmp.c: Likewise.
41331         * tests/uninorm/test-u32-normcoll.c: Likewise.
41332         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41333         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41334         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41335         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41336         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41337         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41338         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41339         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41340         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41341         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41342         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41343         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41344         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41345         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41346         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41347         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41348         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41349         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41350         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41351         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41352         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41353         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41354         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41355         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41356         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41357         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41358         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41359         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41360         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41361         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41362         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41363         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41364         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41365         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41366         * tests/uniwidth/test-u8-width.c: Likewise.
41367         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41368         * tests/uniwidth/test-u16-width.c: Likewise.
41369         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41370         * tests/uniwidth/test-u32-width.c: Likewise.
41371         * tests/uniwidth/test-uc_width.c: Likewise.
41372         * tests/uniwidth/test-uc_width2.c: Likewise.
41373         * modules/acl-tests (Files): Add tests/macros.h.
41374         * modules/areadlink-tests (Files): Likewise.
41375         * modules/areadlink-with-size-tests (Files): Likewise.
41376         * modules/areadlinkat-tests (Files): Likewise.
41377         * modules/areadlinkat-with-size-tests (Files): Likewise.
41378         * modules/argmatch-tests (Files): Likewise.
41379         * modules/argv-iter-tests (Files): Likewise.
41380         * modules/array-list-tests (Files): Likewise.
41381         * modules/array-mergesort-tests (Files): Likewise.
41382         * modules/array-oset-tests (Files): Likewise.
41383         * modules/avltree-list-tests (Files): Likewise.
41384         * modules/avltree-oset-tests (Files): Likewise.
41385         * modules/avltreehash-list-tests (Files): Likewise.
41386         * modules/base64-tests (Files): Likewise.
41387         * modules/binary-io-tests (Files): Likewise.
41388         * modules/bitrotate-tests (Files): Likewise.
41389         * modules/btowc-tests (Files): Likewise.
41390         * modules/byteswap-tests (Files): Likewise.
41391         * modules/c-ctype-tests (Files): Likewise.
41392         * modules/c-stack-tests (Files): Likewise.
41393         * modules/c-strcase-tests (Files): Likewise.
41394         * modules/c-strcasestr-tests (Files): Likewise.
41395         * modules/c-strstr-tests (Files): Likewise.
41396         * modules/canonicalize-lgpl-tests (Files): Likewise.
41397         * modules/canonicalize-tests (Files): Likewise.
41398         * modules/carray-list-tests (Files): Likewise.
41399         * modules/ceilf-tests (Files): Likewise.
41400         * modules/ceill-tests (Files): Likewise.
41401         * modules/chown-tests (Files): Likewise.
41402         * modules/cloexec-tests (Files): Likewise.
41403         * modules/copy-file-tests (Files): Likewise.
41404         * modules/count-one-bits-tests (Files): Likewise.
41405         * modules/dprintf-posix-tests (Files): Likewise.
41406         * modules/dup2-tests (Files): Likewise.
41407         * modules/dup3-tests (Files): Likewise.
41408         * modules/duplocale-tests (Files): Likewise.
41409         * modules/fbufmode-tests (Files): Likewise.
41410         * modules/fchdir-tests (Files): Likewise.
41411         * modules/fcntl-safer-tests (Files): Likewise.
41412         * modules/fcntl-tests (Files): Likewise.
41413         * modules/fdopendir-tests (Files): Likewise.
41414         * modules/fdutimensat-tests (Files): Likewise.
41415         * modules/fflush-tests (Files): Likewise.
41416         * modules/filevercmp-tests (Files): Likewise.
41417         * modules/flock-tests (Files): Likewise.
41418         * modules/floorf-tests (Files): Likewise.
41419         * modules/floorl-tests (Files): Likewise.
41420         * modules/fnmatch-tests (Files): Likewise.
41421         * modules/fopen-safer-tests (Files): Likewise.
41422         * modules/fopen-tests (Files): Likewise.
41423         * modules/fpending-tests (Files): Likewise.
41424         * modules/fprintf-posix-tests (Files): Likewise.
41425         * modules/fpurge-tests (Files): Likewise.
41426         * modules/freadable-tests (Files): Likewise.
41427         * modules/freadahead-tests (Files): Likewise.
41428         * modules/freading-tests (Files): Likewise.
41429         * modules/freadptr-tests (Files): Likewise.
41430         * modules/freadseek-tests (Files): Likewise.
41431         * modules/freopen-tests (Files): Likewise.
41432         * modules/frexp-nolibm-tests (Files): Likewise.
41433         * modules/frexp-tests (Files): Likewise.
41434         * modules/frexpl-nolibm-tests (Files): Likewise.
41435         * modules/frexpl-tests (Files): Likewise.
41436         * modules/fseek-tests (Files): Likewise.
41437         * modules/fseeko-tests (Files): Likewise.
41438         * modules/fstrcmp-tests (Files): Likewise.
41439         * modules/fsync-tests (Files): Likewise.
41440         * modules/ftell-tests (Files): Likewise.
41441         * modules/ftello-tests (Files): Likewise.
41442         * modules/func-tests (Files): Likewise.
41443         * modules/futimens-tests (Files): Likewise.
41444         * modules/fwritable-tests (Files): Likewise.
41445         * modules/fwriting-tests (Files): Likewise.
41446         * modules/getcwd-tests (Files): Likewise.
41447         * modules/getdate-tests (Files): Likewise.
41448         * modules/getdelim-tests (Files): Likewise.
41449         * modules/getdtablesize-tests (Files): Likewise.
41450         * modules/getgroups-tests (Files): Likewise.
41451         * modules/getline-tests (Files): Likewise.
41452         * modules/getndelim2-tests (Files): Likewise.
41453         * modules/glob-tests (Files): Likewise.
41454         * modules/hash-tests (Files): Likewise.
41455         * modules/i-ring-tests (Files): Likewise.
41456         * modules/iconv-tests (Files): Likewise.
41457         * modules/iconv_open-utf-tests (Files): Likewise.
41458         * modules/idpriv-drop-tests (Files): Likewise.
41459         * modules/idpriv-droptemp-tests (Files): Likewise.
41460         * modules/inet_ntop-tests (Files): Likewise.
41461         * modules/inet_pton-tests (Files): Likewise.
41462         * modules/isblank-tests (Files): Likewise.
41463         * modules/isfinite-tests (Files): Likewise.
41464         * modules/isinf-tests (Files): Likewise.
41465         * modules/isnan-tests (Files): Likewise.
41466         * modules/isnand-nolibm-tests (Files): Likewise.
41467         * modules/isnand-tests (Files): Likewise.
41468         * modules/isnanf-nolibm-tests (Files): Likewise.
41469         * modules/isnanf-tests (Files): Likewise.
41470         * modules/isnanl-nolibm-tests (Files): Likewise.
41471         * modules/isnanl-tests (Files): Likewise.
41472         * modules/lchown-tests (Files): Likewise.
41473         * modules/ldexpl-tests (Files): Likewise.
41474         * modules/link-tests (Files): Likewise.
41475         * modules/linkat-tests (Files): Likewise.
41476         * modules/linked-list-tests (Files): Likewise.
41477         * modules/linkedhash-list-tests (Files): Likewise.
41478         * modules/localename-tests (Files): Likewise.
41479         * modules/lseek-tests (Files): Likewise.
41480         * modules/lstat-tests (Files): Likewise.
41481         * modules/mbmemcasecmp-tests (Files): Likewise.
41482         * modules/mbmemcasecoll-tests (Files): Likewise.
41483         * modules/mbrtowc-tests (Files): Likewise.
41484         * modules/mbscasecmp-tests (Files): Likewise.
41485         * modules/mbscasestr-tests (Files): Likewise.
41486         * modules/mbschr-tests (Files): Likewise.
41487         * modules/mbscspn-tests (Files): Likewise.
41488         * modules/mbsinit-tests (Files): Likewise.
41489         * modules/mbsncasecmp-tests (Files): Likewise.
41490         * modules/mbsnrtowcs-tests (Files): Likewise.
41491         * modules/mbspbrk-tests (Files): Likewise.
41492         * modules/mbspcasecmp-tests (Files): Likewise.
41493         * modules/mbsrchr-tests (Files): Likewise.
41494         * modules/mbsrtowcs-tests (Files): Likewise.
41495         * modules/mbsspn-tests (Files): Likewise.
41496         * modules/mbsstr-tests (Files): Likewise.
41497         * modules/memchr-tests (Files): Likewise.
41498         * modules/memchr2-tests (Files): Likewise.
41499         * modules/memcmp-tests (Files): Likewise.
41500         * modules/memmem-tests (Files): Likewise.
41501         * modules/memrchr-tests (Files): Likewise.
41502         * modules/mkdir-tests (Files): Likewise.
41503         * modules/mkfifo-tests (Files): Likewise.
41504         * modules/mkfifoat-tests (Files): Likewise.
41505         * modules/mknod-tests (Files): Likewise.
41506         * modules/nanosleep-tests (Files): Likewise.
41507         * modules/nl_langinfo-tests (Files): Likewise.
41508         * modules/obstack-printf-tests (Files): Likewise.
41509         * modules/open-tests (Files): Likewise.
41510         * modules/openat-tests (Files): Likewise.
41511         * modules/pipe-filter-gi-tests (Files): Likewise.
41512         * modules/pipe-filter-ii-tests (Files): Likewise.
41513         * modules/pipe2-tests (Files): Likewise.
41514         * modules/popen-safer-tests (Files): Likewise.
41515         * modules/popen-tests (Files): Likewise.
41516         * modules/posixtm-tests (Files): Likewise.
41517         * modules/pread-tests (Files): Likewise.
41518         * modules/printf-frexp-tests (Files): Likewise.
41519         * modules/printf-frexpl-tests (Files): Likewise.
41520         * modules/printf-posix-tests (Files): Likewise.
41521         * modules/priv-set-tests (Files): Likewise.
41522         * modules/quotearg-tests (Files): Likewise.
41523         * modules/random_r-tests (Files): Likewise.
41524         * modules/rawmemchr-tests (Files): Likewise.
41525         * modules/rbtree-list-tests (Files): Likewise.
41526         * modules/rbtree-oset-tests (Files): Likewise.
41527         * modules/rbtreehash-list-tests (Files): Likewise.
41528         * modules/readlink-tests (Files): Likewise.
41529         * modules/remove-tests (Files): Likewise.
41530         * modules/rename-tests (Files): Likewise.
41531         * modules/renameat-tests (Files): Likewise.
41532         * modules/rmdir-tests (Files): Likewise.
41533         * modules/round-tests (Files): Likewise.
41534         * modules/roundf-tests (Files): Likewise.
41535         * modules/roundl-tests (Files): Likewise.
41536         * modules/safe-alloc-tests (Files): Likewise.
41537         * modules/setenv-tests (Files): Likewise.
41538         * modules/sigaction-tests (Files): Likewise.
41539         * modules/signbit-tests (Files): Likewise.
41540         * modules/sleep-tests (Files): Likewise.
41541         * modules/snprintf-posix-tests (Files): Likewise.
41542         * modules/snprintf-tests (Files): Likewise.
41543         * modules/sprintf-posix-tests (Files): Likewise.
41544         * modules/stat-tests (Files): Likewise.
41545         * modules/stat-time-tests (Files): Likewise.
41546         * modules/strcasestr-tests (Files): Likewise.
41547         * modules/strchrnul-tests (Files): Likewise.
41548         * modules/strerror-tests (Files): Likewise.
41549         * modules/striconv-tests (Files): Likewise.
41550         * modules/striconveh-tests (Files): Likewise.
41551         * modules/striconveha-tests (Files): Likewise.
41552         * modules/strsignal-tests (Files): Likewise.
41553         * modules/strstr-tests (Files): Likewise.
41554         * modules/strtod-tests (Files): Likewise.
41555         * modules/strverscmp-tests (Files): Likewise.
41556         * modules/symlink-tests (Files): Likewise.
41557         * modules/symlinkat-tests (Files): Likewise.
41558         * modules/trunc-tests (Files): Likewise.
41559         * modules/truncf-tests (Files): Likewise.
41560         * modules/truncl-tests (Files): Likewise.
41561         * modules/uname-tests (Files): Likewise.
41562         * modules/unicase/cased-tests (Files): Likewise.
41563         * modules/unicase/ignorable-tests (Files): Likewise.
41564         * modules/unicase/locale-language-tests (Files): Likewise.
41565         * modules/unicase/tolower-tests (Files): Likewise.
41566         * modules/unicase/totitle-tests (Files): Likewise.
41567         * modules/unicase/toupper-tests (Files): Likewise.
41568         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41569         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41570         * modules/unicase/u8-casefold-tests (Files): Likewise.
41571         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41572         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41573         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41574         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41575         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41576         * modules/unicase/u8-tolower-tests (Files): Likewise.
41577         * modules/unicase/u8-totitle-tests (Files): Likewise.
41578         * modules/unicase/u8-toupper-tests (Files): Likewise.
41579         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41580         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41581         * modules/unicase/u16-casefold-tests (Files): Likewise.
41582         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41583         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41584         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41585         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41586         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41587         * modules/unicase/u16-tolower-tests (Files): Likewise.
41588         * modules/unicase/u16-totitle-tests (Files): Likewise.
41589         * modules/unicase/u16-toupper-tests (Files): Likewise.
41590         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41591         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41592         * modules/unicase/u32-casefold-tests (Files): Likewise.
41593         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41594         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41595         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41596         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41597         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41598         * modules/unicase/u32-tolower-tests (Files): Likewise.
41599         * modules/unicase/u32-totitle-tests (Files): Likewise.
41600         * modules/unicase/u32-toupper-tests (Files): Likewise.
41601         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41602         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41603         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41604         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41605         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41606         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41607         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41608         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41609         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41610         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41611         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41612         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41613         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41614         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41615         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41616         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41617         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41618         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41619         * modules/unictype/block-list-tests (Files): Likewise.
41620         * modules/unictype/block-of-tests (Files): Likewise.
41621         * modules/unictype/block-test-tests (Files): Likewise.
41622         * modules/unictype/category-C-tests (Files): Likewise.
41623         * modules/unictype/category-Cc-tests (Files): Likewise.
41624         * modules/unictype/category-Cf-tests (Files): Likewise.
41625         * modules/unictype/category-Cn-tests (Files): Likewise.
41626         * modules/unictype/category-Co-tests (Files): Likewise.
41627         * modules/unictype/category-Cs-tests (Files): Likewise.
41628         * modules/unictype/category-L-tests (Files): Likewise.
41629         * modules/unictype/category-Ll-tests (Files): Likewise.
41630         * modules/unictype/category-Lm-tests (Files): Likewise.
41631         * modules/unictype/category-Lo-tests (Files): Likewise.
41632         * modules/unictype/category-Lt-tests (Files): Likewise.
41633         * modules/unictype/category-Lu-tests (Files): Likewise.
41634         * modules/unictype/category-M-tests (Files): Likewise.
41635         * modules/unictype/category-Mc-tests (Files): Likewise.
41636         * modules/unictype/category-Me-tests (Files): Likewise.
41637         * modules/unictype/category-Mn-tests (Files): Likewise.
41638         * modules/unictype/category-N-tests (Files): Likewise.
41639         * modules/unictype/category-Nd-tests (Files): Likewise.
41640         * modules/unictype/category-Nl-tests (Files): Likewise.
41641         * modules/unictype/category-No-tests (Files): Likewise.
41642         * modules/unictype/category-P-tests (Files): Likewise.
41643         * modules/unictype/category-Pc-tests (Files): Likewise.
41644         * modules/unictype/category-Pd-tests (Files): Likewise.
41645         * modules/unictype/category-Pe-tests (Files): Likewise.
41646         * modules/unictype/category-Pf-tests (Files): Likewise.
41647         * modules/unictype/category-Pi-tests (Files): Likewise.
41648         * modules/unictype/category-Po-tests (Files): Likewise.
41649         * modules/unictype/category-Ps-tests (Files): Likewise.
41650         * modules/unictype/category-S-tests (Files): Likewise.
41651         * modules/unictype/category-Sc-tests (Files): Likewise.
41652         * modules/unictype/category-Sk-tests (Files): Likewise.
41653         * modules/unictype/category-Sm-tests (Files): Likewise.
41654         * modules/unictype/category-So-tests (Files): Likewise.
41655         * modules/unictype/category-Z-tests (Files): Likewise.
41656         * modules/unictype/category-Zl-tests (Files): Likewise.
41657         * modules/unictype/category-Zp-tests (Files): Likewise.
41658         * modules/unictype/category-Zs-tests (Files): Likewise.
41659         * modules/unictype/category-and-not-tests (Files): Likewise.
41660         * modules/unictype/category-and-tests (Files): Likewise.
41661         * modules/unictype/category-byname-tests (Files): Likewise.
41662         * modules/unictype/category-name-tests (Files): Likewise.
41663         * modules/unictype/category-none-tests (Files): Likewise.
41664         * modules/unictype/category-of-tests (Files): Likewise.
41665         * modules/unictype/category-or-tests (Files): Likewise.
41666         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41667         * modules/unictype/combining-class-tests (Files): Likewise.
41668         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41669         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41670         * modules/unictype/ctype-blank-tests (Files): Likewise.
41671         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41672         * modules/unictype/ctype-digit-tests (Files): Likewise.
41673         * modules/unictype/ctype-graph-tests (Files): Likewise.
41674         * modules/unictype/ctype-lower-tests (Files): Likewise.
41675         * modules/unictype/ctype-print-tests (Files): Likewise.
41676         * modules/unictype/ctype-punct-tests (Files): Likewise.
41677         * modules/unictype/ctype-space-tests (Files): Likewise.
41678         * modules/unictype/ctype-upper-tests (Files): Likewise.
41679         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41680         * modules/unictype/decimal-digit-tests (Files): Likewise.
41681         * modules/unictype/digit-tests (Files): Likewise.
41682         * modules/unictype/mirror-tests (Files): Likewise.
41683         * modules/unictype/numeric-tests (Files): Likewise.
41684         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41685         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41686         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41687         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41688         Likewise.
41689         * modules/unictype/property-bidi-block-separator-tests (Files):
41690         Likewise.
41691         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41692         Likewise.
41693         * modules/unictype/property-bidi-common-separator-tests (Files):
41694         Likewise.
41695         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41696         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41697         Likewise.
41698         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41699         Likewise.
41700         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41701         Likewise.
41702         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41703         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41704         Likewise.
41705         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41706         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41707         Likewise.
41708         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41709         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41710         * modules/unictype/property-bidi-segment-separator-tests (Files):
41711         Likewise.
41712         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41713         * modules/unictype/property-byname-tests (Files): Likewise.
41714         * modules/unictype/property-combining-tests (Files): Likewise.
41715         * modules/unictype/property-composite-tests (Files): Likewise.
41716         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41717         * modules/unictype/property-dash-tests (Files): Likewise.
41718         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41719         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41720         Likewise.
41721         * modules/unictype/property-deprecated-tests (Files): Likewise.
41722         * modules/unictype/property-diacritic-tests (Files): Likewise.
41723         * modules/unictype/property-extender-tests (Files): Likewise.
41724         * modules/unictype/property-format-control-tests (Files): Likewise.
41725         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41726         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41727         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41728         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41729         * modules/unictype/property-hyphen-tests (Files): Likewise.
41730         * modules/unictype/property-id-continue-tests (Files): Likewise.
41731         * modules/unictype/property-id-start-tests (Files): Likewise.
41732         * modules/unictype/property-ideographic-tests (Files): Likewise.
41733         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41734         * modules/unictype/property-ids-trinary-operator-tests (Files):
41735         Likewise.
41736         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41737         * modules/unictype/property-iso-control-tests (Files): Likewise.
41738         * modules/unictype/property-join-control-tests (Files): Likewise.
41739         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41740         * modules/unictype/property-line-separator-tests (Files): Likewise.
41741         * modules/unictype/property-logical-order-exception-tests (Files):
41742         Likewise.
41743         * modules/unictype/property-lowercase-tests (Files): Likewise.
41744         * modules/unictype/property-math-tests (Files): Likewise.
41745         * modules/unictype/property-non-break-tests (Files): Likewise.
41746         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41747         * modules/unictype/property-numeric-tests (Files): Likewise.
41748         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41749         * modules/unictype/property-other-default-ignorable-code-point-tests
41750         (Files): Likewise.
41751         * modules/unictype/property-other-grapheme-extend-tests (Files):
41752         Likewise.
41753         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41754         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41755         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41756         * modules/unictype/property-other-math-tests (Files): Likewise.
41757         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41758         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41759         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41760         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41761         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41762         * modules/unictype/property-private-use-tests (Files): Likewise.
41763         * modules/unictype/property-punctuation-tests (Files): Likewise.
41764         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41765         * modules/unictype/property-radical-tests (Files): Likewise.
41766         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41767         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41768         * modules/unictype/property-space-tests (Files): Likewise.
41769         * modules/unictype/property-terminal-punctuation-tests (Files):
41770         Likewise.
41771         * modules/unictype/property-test-tests (Files): Likewise.
41772         * modules/unictype/property-titlecase-tests (Files): Likewise.
41773         * modules/unictype/property-unassigned-code-value-tests (Files):
41774         Likewise.
41775         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41776         * modules/unictype/property-uppercase-tests (Files): Likewise.
41777         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41778         * modules/unictype/property-white-space-tests (Files): Likewise.
41779         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41780         * modules/unictype/property-xid-start-tests (Files): Likewise.
41781         * modules/unictype/property-zero-width-tests (Files): Likewise.
41782         * modules/unictype/scripts-tests (Files): Likewise.
41783         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41784         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41785         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41786         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41787         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41788         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41789         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41790         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41791         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41792         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41793         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41794         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41795         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41796         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41797         * modules/uninorm/composition-tests (Files): Likewise.
41798         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41799         * modules/uninorm/decomposition-tests (Files): Likewise.
41800         * modules/uninorm/filter-tests (Files): Likewise.
41801         * modules/uninorm/nfc-tests (Files): Likewise.
41802         * modules/uninorm/nfd-tests (Files): Likewise.
41803         * modules/uninorm/nfkc-tests (Files): Likewise.
41804         * modules/uninorm/nfkd-tests (Files): Likewise.
41805         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41806         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41807         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41808         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41809         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41810         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41811         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41812         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41813         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41814         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41815         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41816         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41817         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41818         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41819         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41820         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41821         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41822         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41823         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41824         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41825         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41826         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41827         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41828         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41829         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41830         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41831         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41832         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41833         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41834         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41835         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41836         * modules/uniwidth/u8-width-tests (Files): Likewise.
41837         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41838         * modules/uniwidth/u16-width-tests (Files): Likewise.
41839         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41840         * modules/uniwidth/u32-width-tests (Files): Likewise.
41841         * modules/uniwidth/width-tests (Files): Likewise.
41842         * modules/unlink-tests (Files): Likewise.
41843         * modules/unsetenv-tests (Files): Likewise.
41844         * modules/usleep-tests (Files): Likewise.
41845         * modules/utimens-tests (Files): Likewise.
41846         * modules/utimensat-tests (Files): Likewise.
41847         * modules/vasnprintf-posix-tests (Files): Likewise.
41848         * modules/vasnprintf-tests (Files): Likewise.
41849         * modules/vasprintf-posix-tests (Files): Likewise.
41850         * modules/vasprintf-tests (Files): Likewise.
41851         * modules/vdprintf-posix-tests (Files): Likewise.
41852         * modules/vfprintf-posix-tests (Files): Likewise.
41853         * modules/vprintf-posix-tests (Files): Likewise.
41854         * modules/vsnprintf-posix-tests (Files): Likewise.
41855         * modules/vsnprintf-tests (Files): Likewise.
41856         * modules/vsprintf-posix-tests (Files): Likewise.
41857         * modules/wcrtomb-tests (Files): Likewise.
41858         * modules/wcsnrtombs-tests (Files): Likewise.
41859         * modules/wcsrtombs-tests (Files): Likewise.
41860         * modules/wctype-tests (Files): Likewise.
41861         * modules/wcwidth-tests (Files): Likewise.
41862         * modules/xmemdup0-tests (Files): Likewise.
41863         * modules/xprintf-posix-tests (Files): Likewise.
41864         * modules/xvasprintf-tests (Files): Likewise.
41865
41866 2009-12-24  Eric Blake  <ebb9@byu.net>
41867
41868         test-nanosleep: fix typo
41869         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41870         patch.
41871         Reported by Bruno Haible.
41872
41873 2009-12-24  Bruno Haible  <bruno@clisp.org>
41874
41875         Reduce namespace pollution on glibc systems.
41876         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41877         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41878         systems.
41879         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41880         <getopt.h> on glibc systems.
41881         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41882         systems.
41883         * lib/fcntl.c: Include <unistd.h> here instead.
41884
41885 2009-12-24  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41888
41889 2009-12-24  Eric Blake  <ebb9@byu.net>
41890
41891         tests: add signature checks
41892         * tests/signature.h (SIGNATURE_CHECK): New file.
41893         * modules/atexit-tests (Files): Use it.
41894         * modules/btowc-tests (Files): Likewise.
41895         * modules/canonicalize-lgpl-tests (Files): Likewise.
41896         * modules/ceilf-tests (Files): Likewise.
41897         * modules/ceill-tests (Files): Likewise.
41898         * modules/chown-tests (Files): Likewise.
41899         * modules/dprintf-posix-tests (Files): Likewise.
41900         * modules/dup2-tests (Files): Likewise.
41901         * modules/dup3-tests (Files): Likewise.
41902         * modules/duplocale-tests (Files): Likewise.
41903         * modules/fchdir-tests (Files): Likewise.
41904         * modules/fcntl-tests (Files): Likewise.
41905         * modules/fdopendir-tests (Files): Likewise.
41906         * modules/fflush-tests (Files): Likewise.
41907         * modules/flock-tests (Files): Likewise.
41908         * modules/floorf-tests (Files): Likewise.
41909         * modules/floorl-tests (Files): Likewise.
41910         * modules/fnmatch-tests (Files): Likewise.
41911         * modules/fopen-tests (Files): Likewise.
41912         * modules/fprintf-posix-tests (Files): Likewise.
41913         * modules/freopen-tests (Files): Likewise.
41914         * modules/frexp-nolibm-tests (Files): Likewise.
41915         * modules/frexp-tests (Files): Likewise.
41916         * modules/frexpl-nolibm-tests (Files): Likewise.
41917         * modules/frexpl-tests (Files): Likewise.
41918         * modules/fseek-tests (Files): Likewise.
41919         * modules/fseeko-tests (Files): Likewise.
41920         * modules/fsync-tests (Files): Likewise.
41921         * modules/ftell-tests (Files): Likewise.
41922         * modules/ftello-tests (Files): Likewise.
41923         * modules/futimens-tests (Files): Likewise.
41924         * modules/getaddrinfo-tests (Files): Likewise.
41925         * modules/getcwd-tests (Files): Likewise.
41926         * modules/getdelim-tests (Files): Likewise.
41927         * modules/getdtablesize-tests (Files): Likewise.
41928         * modules/getgroups-tests (Files): Likewise.
41929         * modules/gethostname-tests (Files): Likewise.
41930         * modules/getline-tests (Files): Likewise.
41931         * modules/getopt-posix-tests (Files): Likewise.
41932         * modules/gettimeofday-tests (Files): Likewise.
41933         * modules/glob-tests (Files): Likewise.
41934         * modules/iconv-tests (Files): Likewise.
41935         * modules/inet_ntop-tests (Files): Likewise.
41936         * modules/inet_pton-tests (Files): Likewise.
41937         * modules/isblank-tests (Files): Likewise.
41938         * modules/lchown-tests (Files): Likewise.
41939         * modules/ldexpl-tests (Files): Likewise.
41940         * modules/link-tests (Files): Likewise.
41941         * modules/linkat-tests (Files): Likewise.
41942         * modules/lseek-tests (Files): Likewise.
41943         * modules/lstat-tests (Files): Likewise.
41944         * modules/mbrtowc-tests (Files): Likewise.
41945         * modules/mbsinit-tests (Files): Likewise.
41946         * modules/mbsnrtowcs-tests (Files): Likewise.
41947         * modules/mbsrtowcs-tests (Files): Likewise.
41948         * modules/memchr-tests (Files): Likewise.
41949         * modules/memcmp-tests (Files): Likewise.
41950         * modules/memmem-tests (Files): Likewise.
41951         * modules/memrchr-tests (Files): Likewise.
41952         * modules/mkdir-tests (Files): Likewise.
41953         * modules/mkfifo-tests (Files): Likewise.
41954         * modules/mkfifoat-tests (Files): Likewise.
41955         * modules/mknod-tests (Files): Likewise.
41956         * modules/nanosleep-tests (Files): Likewise.
41957         * modules/nl_langinfo-tests (Files): Likewise.
41958         * modules/obstack-printf-tests (Files): Likewise.
41959         * modules/open-tests (Files): Likewise.
41960         * modules/openat-tests (Files): Likewise.
41961         * modules/perror-tests (Files): Likewise.
41962         * modules/pipe2-tests (Files): Likewise.
41963         * modules/poll-tests (Files): Likewise.
41964         * modules/popen-tests (Files): Likewise.
41965         * modules/posix_spawn-tests (Files): Likewise.
41966         * modules/posix_spawnp-tests (Files): Likewise.
41967         * modules/pread-tests (Files): Likewise.
41968         * modules/printf-posix-tests (Files): Likewise.
41969         * modules/pty-tests (Files): Likewise.
41970         * modules/random_r-tests (Files): Likewise.
41971         * modules/rawmemchr-tests (Files): Likewise.
41972         * modules/readlink-tests (Files): Likewise.
41973         * modules/remove-tests (Files): Likewise.
41974         * modules/rename-tests (Files): Likewise.
41975         * modules/renameat-tests (Files): Likewise.
41976         * modules/rmdir-tests (Files): Likewise.
41977         * modules/round-tests (Files): Likewise.
41978         * modules/roundf-tests (Files): Likewise.
41979         * modules/roundl-tests (Files): Likewise.
41980         * modules/select-tests (Files): Likewise.
41981         * modules/setenv-tests (Files): Likewise.
41982         * modules/sigaction-tests (Files): Likewise.
41983         * modules/sleep-tests (Files): Likewise.
41984         * modules/snprintf-posix-tests (Files): Likewise.
41985         * modules/snprintf-tests (Files): Likewise.
41986         * modules/sprintf-posix-tests (Files): Likewise.
41987         * modules/stat-tests (Files): Likewise.
41988         * modules/strcasestr-tests (Files): Likewise.
41989         * modules/strchrnul-tests (Files): Likewise.
41990         * modules/strerror-tests (Files): Likewise.
41991         * modules/strsignal-tests (Files): Likewise.
41992         * modules/strstr-tests (Files): Likewise.
41993         * modules/strtod-tests (Files): Likewise.
41994         * modules/strverscmp-tests (Files): Likewise.
41995         * modules/symlink-tests (Files): Likewise.
41996         * modules/symlinkat-tests (Files): Likewise.
41997         * modules/times-tests (Files): Likewise.
41998         * modules/trunc-tests (Files): Likewise.
41999         * modules/truncf-tests (Files): Likewise.
42000         * modules/truncl-tests (Files): Likewise.
42001         * modules/tsearch-tests (Files): Likewise.
42002         * modules/uname-tests (Files): Likewise.
42003         * modules/unlink-tests (Files): Likewise.
42004         * modules/unsetenv-tests (Files): Likewise.
42005         * modules/usleep-tests (Files): Likewise.
42006         * modules/utimensat-tests (Files): Likewise.
42007         * modules/vasprintf-tests (Files): Likewise.
42008         * modules/vdprintf-posix-tests (Files): Likewise.
42009         * modules/vfprintf-posix-tests (Files): Likewise.
42010         * modules/vprintf-posix-tests (Files): Likewise.
42011         * modules/vsnprintf-posix-tests (Files): Likewise.
42012         * modules/vsnprintf-tests (Files): Likewise.
42013         * modules/vsprintf-posix-tests (Files): Likewise.
42014         * modules/wcrtomb-tests (Files): Likewise.
42015         * modules/wcsnrtombs-tests (Files): Likewise.
42016         * modules/wcsrtombs-tests (Files): Likewise.
42017         * modules/wcwidth-tests (Files): Likewise.
42018         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
42019         * tests/test-isinf.c (isinf): Likewise.
42020         * tests/test-isnan.c (isnan): Likewise.
42021         * tests/test-signbit.c (signbit): Likewise.
42022         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
42023         declaration, either as macro or with correct signature.
42024         (select): Ensure function under test is declared with correct
42025         signature in correct header.
42026         * tests/test-atexit.c (atexit): Likewise.
42027         * tests/test-btowc.c (btowc): Likewise.
42028         * tests/test-canonicalize-lgpl.c (realpath)
42029         (canonicalize_file_name): Likewise.
42030         * tests/test-ceilf1.c (ceilf): Likewise.
42031         * tests/test-ceill.c (ceill): Likewise.
42032         * tests/test-chown.c (chown): Likewise.
42033         * tests/test-dprintf-posix.c (dprintf): Likewise.
42034         * tests/test-dup2.c (dup2): Likewise.
42035         * tests/test-dup3.c (dup3): Likewise.
42036         * tests/test-duplocale.c (duplocale): Likewise.
42037         * tests/test-fchdir.c (fchdir): Likewise.
42038         * tests/test-fchownat.c (fchownat): Likewise.
42039         * tests/test-fcntl.c (fcntl): Likewise.
42040         * tests/test-fdopendir.c (fdopendir): Likewise.
42041         * tests/test-fflush.c (fflush): Likewise.
42042         * tests/test-flock.c (flock): Likewise.
42043         * tests/test-floorf1.c (floorf): Likewise.
42044         * tests/test-floorl.c (floorl): Likewise.
42045         * tests/test-fnmatch.c (fnmatch): Likewise.
42046         * tests/test-fopen.c (fopen): Likewise.
42047         * tests/test-fprintf-posix.c (fprintf): Likewise.
42048         * tests/test-freopen.c (freopen): Likewise.
42049         * tests/test-frexp.c (frexp): Likewise.
42050         * tests/test-frexpl.c (frexpl): Likewise.
42051         * tests/test-fseek.c (fseek): Likewise.
42052         * tests/test-fseeko.c (fseeko): Likewise.
42053         * tests/test-fstatat.c (fstatat): Likewise.
42054         * tests/test-fsync.c (fsync): Likewise.
42055         * tests/test-ftell.c (ftell): Likewise.
42056         * tests/test-ftello.c (ftello): Likewise.
42057         * tests/test-futimens.c (futimens): Likewise.
42058         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
42059         (gai_strerror): Likewise.
42060         * tests/test-getcwd.c (getcwd): Likewise.
42061         * tests/test-getdelim.c (getdelim): Likewise.
42062         * tests/test-getdtablesize.c (getdtablesize): Likewise.
42063         * tests/test-getgroups.c (getgroups): Likewise.
42064         * tests/test-gethostname.c (gethostname): Likewise.
42065         * tests/test-getline.c (getline): Likewise.
42066         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
42067         Likewise.
42068         * tests/test-gettimeofday.c (gettimeofday): Likewise.
42069         * tests/test-glob.c (glob, globfree): Likewise.
42070         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
42071         * tests/test-inet_ntop.c (inet_ntop): Likewise.
42072         * tests/test-inet_pton.c (inet_pton): Likewise.
42073         * tests/test-isblank.c (isblank): Likewise.
42074         * tests/test-lchown.c (lchown): Likewise.
42075         * tests/test-ldexpl.c (ldexpl): Likewise.
42076         * tests/test-link.c (link): Likewise.
42077         * tests/test-linkat.c (linkat): Likewise.
42078         * tests/test-lseek.c (lseek): Likewise.
42079         * tests/test-lstat.c (lstat): Likewise.
42080         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42081         * tests/test-mbsinit.c (mbsinit): Likewise.
42082         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42083         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42084         * tests/test-memchr.c (memchr): Likewise.
42085         * tests/test-memcmp.c (memcmp): Likewise.
42086         * tests/test-memmem.c (memmem): Likewise.
42087         * tests/test-memrchr.c (memrchr): Likewise.
42088         * tests/test-mkdir.c (mkdir): Likewise.
42089         * tests/test-mkdirat.c (mkdirat): Likewise.
42090         * tests/test-mkfifo.c (mkfifo): Likewise.
42091         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42092         * tests/test-mknod.c (mknod): Likewise.
42093         * tests/test-nanosleep.c (nanosleep): Likewise.
42094         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42095         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42096         Likewise.
42097         * tests/test-open.c (open): Likewise.
42098         * tests/test-openat.c (openat): Likewise.
42099         * tests/test-perror.c (perror): Likewise.
42100         * tests/test-pipe2.c (pipe2): Likewise.
42101         * tests/test-poll.c (poll): Likewise.
42102         * tests/test-popen.c (popen, pclose): Likewise.
42103         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42104         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42105         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42106         (posix_spawn_file_actions_destroy)
42107         (posix_spawn_file_actions_addclose)
42108         (posix_spawn_file_actions_addopen)
42109         (posix_spawn_file_actions_adddup2): Likewise.
42110         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42111         * tests/test-pread.c (pread): Likewise.
42112         * tests/test-printf-posix.c (printf): Likewise.
42113         * tests/test-pty.c (openpty, forkpty): Likewise.
42114         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42115         (random_r): Likewise.
42116         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42117         * tests/test-readlink.c (readlink): Likewise.
42118         * tests/test-remove.c (remove): Likewise.
42119         * tests/test-rename.c (rename): Likewise.
42120         * tests/test-renameat.c (renameat): Likewise.
42121         * tests/test-rmdir.c (rmdir): Likewise.
42122         * tests/test-round1.c (round): Likewise.
42123         * tests/test-roundf1.c (roundf): Likewise.
42124         * tests/test-roundl.c (roundl): Likewise.
42125         * tests/test-setenv.c (setenv): Likewise.
42126         * tests/test-sigaction.c (sigaction): Likewise.
42127         * tests/test-sleep.c (sleep): Likewise.
42128         * tests/test-snprintf.c (snprintf): Likewise.
42129         * tests/test-sprintf-posix.c (sprintf): Likewise.
42130         * tests/test-stat.c (stat): Likewise.
42131         * tests/test-stpncpy.c (stpncpy): Likewise.
42132         * tests/test-strcasestr.c (strcasestr): Likewise.
42133         * tests/test-strchrnul.c (strchrnul): Likewise.
42134         * tests/test-strerror.c (strerror): Likewise.
42135         * tests/test-strsignal.c (strsignal): Likewise.
42136         * tests/test-strstr.c (strstr): Likewise.
42137         * tests/test-strtod.c (strtod): Likewise.
42138         * tests/test-strverscmp.c (strverscmp): Likewise.
42139         * tests/test-symlink.c (symlink): Likewise.
42140         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42141         * tests/test-times.c (times): Likewise.
42142         * tests/test-trunc1.c (trunc): Likewise.
42143         * tests/test-truncf1.c (truncf): Likewise.
42144         * tests/test-truncl.c (truncl): Likewise.
42145         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42146         Likewise.
42147         * tests/test-uname.c (uname): Likewise.
42148         * tests/test-unlink.c (unlink): Likewise.
42149         * tests/test-unlinkat.c (unlinkat): Likewise.
42150         * tests/test-unsetenv.c (unsetenv): Likewise.
42151         * tests/test-usleep.c (usleep): Likewise.
42152         * tests/test-utimensat.c (utimensat): Likewise.
42153         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42154         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42155         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42156         * tests/test-vprintf-posix.c (vprintf): Likewise.
42157         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42158         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42159         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42160         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42161         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42162         * tests/test-wcwidth.c (wcwidth): Likewise.
42163
42164         build: pull in conditional headers during GNULIB_POSIXCHECK
42165         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42166         definitions from any conditionally-included headers.
42167         * lib/stdlib.in.h (includes): Likewise.
42168         * lib/unistd.in.h (includes): Likewise.
42169
42170 2009-12-24  Bruno Haible  <bruno@clisp.org>
42171
42172         * tests/test-argv-iter.c: Include header file being tested immediately
42173         after config.h.
42174         * tests/test-base64.c: Likewise.
42175         * tests/test-flock.c: Likewise.
42176         * tests/test-fsync.c: Likewise.
42177         * tests/test-getdate.c: Likewise.
42178         * tests/test-getndelim2.c: Likewise.
42179         * tests/test-isfinite.c: Likewise.
42180         * tests/test-isinf.c: Likewise.
42181         * tests/test-strerror.c: Likewise.
42182         * tests/test-strsignal.c: Likewise.
42183
42184 2009-12-23  Eric Blake  <ebb9@byu.net>
42185
42186         unistd: work around cygwin bug
42187         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42188         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42189         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42190
42191 2009-12-23  Bruno Haible  <bruno@clisp.org>
42192
42193         localename: More tests.
42194         * tests/test-localename.c (SIZEOF): New macro.
42195         (categories): New variable.
42196         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42197         test_locale_name_default): Add test w.r.t. thread locale.
42198         (test_locale_name_thread): New function.
42199         (main): Invoke it.
42200
42201         localename: Make aware of thread locale.
42202         * lib/localename.h (gl_locale_name_thread): New declaration.
42203         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42204         behaviour with respect to thread locale.
42205         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42206         <langinfo.h>, glthread/lock.h.
42207         (SIZE_BITS): New macro.
42208         (string_hash): New function.
42209         (struct hash_node): New type.
42210         (HASH_TABLE_SIZE): New macro.
42211         (struniq_hash_table, struniq_lock): New variables.
42212         (struniq): New function.
42213         (gl_locale_name_thread): New function.
42214         (gl_locale_name): Invoke it.
42215         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42216         * modules/localename (Depends-on): Add lock.
42217         Reported by Mike Gran <spk121@yahoo.com>.
42218
42219 2009-12-23  Eric Blake  <ebb9@byu.net>
42220
42221         va-args: new module
42222         * modules/va-args: New file.
42223         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42224         * MODULES.html.sh (Core language properties): Mention it.
42225
42226         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42227         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42228         named alias for __attribute__((__unused__)).
42229         * lib/chown.c: Update client.
42230         * lib/fchmodat.c: Likewise.
42231         * lib/fts.c: Likewise.
42232         * lib/getdate.y: Likewise.
42233         * lib/getgroups.c: Likewise.
42234         * lib/getopt.c: Likewise.
42235         * lib/getugroups.c: Likewise.
42236         * lib/mkdir.c: Likewise.
42237         * lib/mkfifo.c: Likewise.
42238         * lib/mkfifoat.c: Likewise.
42239         * lib/mknod.c: Likewise.
42240         * lib/mknodat.c: Likewise.
42241         * lib/readlink.c: Likewise.
42242         * lib/se-context.in.h: Likewise.
42243         * lib/se-selinux.in.h: Likewise.
42244         * lib/sockets.c: Likewise.
42245         * lib/symlink.c: Likewise.
42246         * lib/symlinkat.c: Likewise.
42247         * lib/unicodeio.c: Likewise.
42248         * lib/unistr.h: Likewise.
42249         * tests/test-areadlink.c: Likewise.
42250         * tests/test-areadlinkat.c: Likewise.
42251         * tests/test-filenamecat.c: Likewise.
42252         * tests/test-fseeko.c: Likewise.
42253         * tests/test-ftello.c: Likewise.
42254         * tests/test-getdate.c: Likewise.
42255         * tests/test-getgroups.c: Likewise.
42256         * tests/test-gethostname.c: Likewise.
42257         * tests/test-quotearg.c: Likewise.
42258         * tests/test-version-etc.c: Likewise.
42259         * tests/test-xalloc-die.c: Likewise.
42260         * tests/test-xfprintf-posix.c: Likewise.
42261         * tests/test-xprintf-posix.c: Likewise.
42262         * tests/test-xvasprintf.c: Likewise.
42263
42264         tests: avoid compiler warnings
42265         * tests/test-fcntl.c (main): Delete unused parameters.
42266         * tests/test-freopen-safer.c (main): Likewise.
42267         * tests/test-xalloc-die.c (main): Mark unused parameters.
42268         * tests/test-fseeko.c (main): Likewise.
42269         * tests/test-ftello.c (main): Likewise.
42270         * tests/test-nanosleep.c (main): Avoid declaration warning.
42271         * tests/test-sleep.c (main): Likewise.
42272         * tests/test-unsetenv.c (main): Silence warning about string
42273         literal.
42274         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42275
42276 2009-12-23  Bruno Haible  <bruno@clisp.org>
42277
42278         * tests/test-localename.c (test_locale_name): New function, extracted
42279         from main. Also test mixed situations.
42280         (test_locale_name_posix, test_locale_name_environ,
42281         test_locale_name_default): New functions.
42282         (main): Invoke them all.
42283         * modules/localename-tests (configure.ac): Test for newlocale.
42284
42285 2009-12-23  Bruno Haible  <bruno@clisp.org>
42286
42287         unistd: Ensure getcwd gets declared before being overridden.
42288         * lib/unistd.in.h: Conditionally include <io.h>.
42289
42290 2009-12-22  Bruno Haible  <bruno@clisp.org>
42291
42292         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42293         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42294         (gl_WCHAR_H): Invoke it.
42295         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42296         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42297         Reported by Karl Berry <karl@freefriends.org>.
42298
42299 2009-12-22  Eric Blake  <ebb9@byu.net>
42300
42301         math, unistd: avoid redundant includes
42302         * lib/math.in.h (isnan): No need to re-include <math.h>.
42303         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42304
42305         getsubopt: work around cygwin bug
42306         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42307         avoid conflicting with system getsubopt.
42308         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42309         bug.
42310
42311         getopt: synchronize from glibc
42312         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42313         parameter order.  Adjust all callers.
42314         (_getopt_internal_r, main): Adjust quoting in error messages.
42315         Drop considerations for outdated POSIX 1003.2 error message.
42316         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42317         callers.
42318         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42319
42320         test-getopt: test stderr behavior
42321         * modules/getopt-posix-tests (Depends-on): Add dup2.
42322         * tests/test-getopt.c (ASSERT): Avoid stderr.
42323         (main): Move stderr to a temporary file.
42324         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42325         Instead, add parameter to inform caller if output occurred.
42326         (test_getopt): Adjust all existing tests to expect silence, and
42327         add new tests of leading ":".
42328         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42329         glibc shortcomings with leading "-:" or "+:" in optstring.
42330         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42331         Likewise.
42332         * doc/posix-functions/getopt.texi (getopt): Likewise.
42333
42334         test-getopt: enhance test
42335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42336         supports optind=0.
42337         * tests/test-getopt.c (OPTIND_MIN): Move...
42338         * tests/test-getopt.h (OPTIND_MIN): ...here.
42339         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42340         Require that optind=0 works, since modern BSD supports it in
42341         addition to optreset, and since coreutils expects it.
42342         (test_getopt_long_only): New test.
42343         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42344         glibc shortcomings with 'W;', and enforcement of optind=0.
42345         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42346         Likewise.
42347
42348 2009-12-21  Bruno Haible  <bruno@clisp.org>
42349
42350         localename: Improvements for MacOS X and Cygwin.
42351         * lib/localename.h (gl_locale_name_environ): New declaration.
42352         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42353         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42354         (gl_locale_name_posix): Invoke it.
42355         (gl_locale_name_default): Add comments. Use Windows native API also on
42356         Cygwin.
42357
42358 2009-12-21  Bruno Haible  <bruno@clisp.org>
42359
42360         Update list of Win32 locale ids.
42361         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42362         (LANG_SAMI): Renamed from LANG_SAAMI.
42363         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42364         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42365         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42366         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42367         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42368         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42369         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42370         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42371         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42372         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42373         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42374         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42375         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42376         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42377         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42378         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42379         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42380         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42381         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42382         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42383         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42384         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42385         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42386         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42387         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42388         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42389         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42390         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42391         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42392         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42393         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42394         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42395         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42396         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42397         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42398         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42399         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42400         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42401         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42402         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42403         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42404         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42405         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42406         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42407         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42408         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42409         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42410         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42411         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42412         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42413         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42414         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42415         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42416         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42417         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42418         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42419         Add more languages and countries for Sami, Sorbian. Add more countries
42420         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42421         for Pashto. Change country for Syriac, Tswana.
42422
42423 2009-12-21  Eric Blake  <ebb9@byu.net>
42424
42425         test-utimens: avoid spurious failure
42426         * tests/test-chown.h (nap): Factor...
42427         * tests/nap.h: ...into new file.
42428         * tests/test-lchown.h (nap): Avoid duplication.
42429         * tests/test-utimens-common.h (nap): Use shared implementation,
42430         necessary on file systems with 1-second resolution.
42431         * modules/chown-tests (Files): Include new file.
42432         * modules/fdutimensat-tests (Files): Likewise.
42433         * modules/futimens-tests (Files): Likewise.
42434         * modules/lchown-tests (Files): Likewise.
42435         * modules/openat-tests (Files): Likewise.
42436         * modules/utimens-tests (Files): Likewise.
42437         * modules/utimensat-tests (Files): Likewise.
42438
42439 2009-12-19  Eric Blake  <ebb9@byu.net>
42440
42441         futimens, utimensat: work around Linux bug
42442         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42443         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42444         * lib/utimensat.c (rpl_utimensat): Work around it.
42445         * lib/futimens.c (rpl_futimens): Adjust comment.
42446
42447         utimens: work around Linux ctime bug
42448         * lib/utimens.c (detect_ctime_bug): New helper function.
42449         (update_timespec): Differentiate between workaround needed for
42450         this bug vs. what is needed for systems that lack utimensat.
42451         (fdutimens, lutimens): Work around bug.
42452
42453         utimens: check for ctime update
42454         * tests/test-utimens-common.h (check_ctime): Define.
42455         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42456         * tests/test-futimens.h (test_futimens): Likewise.
42457         * tests/test-lutimens.h (test_lutimens): Likewise.
42458         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42459         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42460
42461 2009-12-19  Bruno Haible  <bruno@clisp.org>
42462
42463         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42464         * tests/test-dprintf-posix2.sh: New file.
42465         * tests/test-dprintf-posix2.c: New file.
42466         * modules/dprintf-posix-tests (Files): Add them.
42467         (configure.ac): Check for getrlimit and setrlimit.
42468         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42469
42470 2009-12-19  Bruno Haible  <bruno@clisp.org>
42471
42472         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42473         * tests/test-fprintf-posix3.sh: New file.
42474         * tests/test-fprintf-posix3.c: New file.
42475         * modules/fprintf-posix-tests (Files): Add them.
42476         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42477
42478 2009-12-19  Eric Blake  <ebb9@byu.net>
42479
42480         dirfd: fix prototype
42481         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42482         * lib/dirfd.c (dirfd): Likewise.
42483
42484         canonicalize: reduce memory usage
42485         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42486         allocation to size.
42487         Reported by Solar Designer <solar@openwall.com>.
42488
42489 2009-12-19  Bruno Haible  <bruno@clisp.org>
42490
42491         New module attribute 'Applicability'.
42492         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42493         * gnulib-tool: New option --extract-applicability.
42494         (func_usage): Document it.
42495         (sed_extract_prog): Recognize it.
42496         (func_get_applicability): New function.
42497         (func_import): Generalize handling of 'link-warning' module.
42498         * modules/link-warning (Applicability): New section.
42499         * modules/arg-nonnull (Applicability): New section.
42500         Repoted by Simon Josefsson <simon@josefsson.org>.
42501
42502 2009-12-19  Bruno Haible  <bruno@clisp.org>
42503
42504         fflush: tweak
42505         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42506         * lib/fseeko.c (rpl_fseeko): Likewise.
42507
42508 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42509
42510         * lib/gl_list.h: Fix typo in comment.
42511
42512 2009-12-16  Eric Blake  <ebb9@byu.net>
42513
42514         fcntl: use to simplify other modules
42515         * modules/cloexec (Depends-on): Add fcntl.
42516         * modules/fchdir (Depends-on): Likewise.
42517         * modules/fd-safer-flag (Depends-on): Likewise.
42518         * modules/unistd-safer (Depends-on): Likewise.
42519         * modules/dup3 (configure.ac): Set module indicator.
42520         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42521         missing.
42522         * lib/fchdir.c (_gl_register_dup): Fix comment.
42523         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42524         * lib/dup-safer.c (dup_safer): Likewise.
42525         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42526         * lib/dup3.c (dup3): Likewise.
42527         * tests/test-fchdir.c (main): Enhance test.
42528         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42529
42530         fcntl: port portions of fcntl to mingw
42531         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42532         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42533         replacement for mingw.
42534         * modules/fcntl (Description): Update.
42535         (Depends-on): Add dup2.
42536         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42537         * modules/fcntl-h (Makefile.am): Substitute it.
42538         * lib/fcntl.in.h (fcntl): Update declaration.
42539         (F_DUPFD, F_GETFD): New macros, when needed.
42540         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42541         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42542         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42543         we now guarantee.
42544
42545         fcntl: work around cygwin bug in F_DUPFD
42546         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42547         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42548         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42549         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42550         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42551
42552         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42553         * modules/fcntl (Files): List new files.
42554         (configure.ac): Run a test.
42555         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42556         * lib/fcntl.c (rpl_fcntl): Likewise.
42557         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42558         (gl_FCNTL_H): Always replace fcntl.h.
42559         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42560         * lib/fcntl.in.h (fcntl): Declare replacement.
42561         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42562         needed, plus a witness.
42563         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42564         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42565         * tests/test-fcntl.c: New file.
42566         * modules/fcntl-tests: Likewise.
42567
42568         binary-io: avoid potential compilation warning
42569         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42570         directives.
42571
42572         fflush: avoid compilation error on NetBSD
42573         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42574         between off_t and fpos_t, since the latter is sometimes a struct.
42575         * lib/fseeko.c (rpl_fseeko): Likewise.
42576         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42577
42578 2009-12-15  Eric Blake  <ebb9@byu.net>
42579
42580         fcntl-h, stdio, sys_ioctl: fix declarations
42581         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42582         function must not take arguments.
42583         * lib/sys_ioctl.in.h (ioctl): Likewise.
42584         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42585         (open): Add a link warning.
42586
42587 2009-12-15  Jim Meyering  <meyering@redhat.com>
42588
42589         areadlink, areadlink-with-size: relax license to LGPLv2+
42590         * modules/areadlink (License): Relax to LGPLv2+.
42591         * modules/areadlink-with-size (License): Likewise.
42592
42593 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42594             Bruno Haible  <bruno@clisp.org>
42595
42596         *printf: Fix memory leak.
42597         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42598         * lib/vfprintf.c (vfprintf): Likewise.
42599         * lib/dprintf.c (dprintf): Likewise.
42600         * lib/vdprintf.c (vdprintf): Likewise.
42601
42602 2009-12-14  Eric Blake  <ebb9@byu.net>
42603
42604         accept4: adjust module dependencies
42605         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42606
42607         utimens: one more try at avoiding compiler warning
42608         * lib/utimens.c (lutimens): Lower scope of result.
42609
42610 2009-12-13  Bruno Haible  <bruno@clisp.org>
42611
42612         Move the malloc checking from module 'list' to new module 'xlist'.
42613         * modules/xlist: New file.
42614         * lib/gl_xlist.h: New file.
42615         * lib/gl_xlist.c: New file.
42616         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42617         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42618         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42619         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42620         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42621         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42622         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42623         gl_sortedlist_nx_add): New declarations.
42624         (struct gl_list_implementation): Rename and change methods accordingly.
42625         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42626         (gl_list_nx_create): Renamed from gl_list_create.
42627         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42628         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42629         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42630         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42631         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42632         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42633         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42634         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42635         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42636         gl_list_create_empty.
42637         (gl_list_nx_create): Renamed from gl_list_create.
42638         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42639         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42640         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42641         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42642         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42643         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42644         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42645         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42646         * lib/gl_array_list.c: Don't include xalloc.h.
42647         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42648         NULL upon out-of-memory.
42649         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42650         out-of-memory.
42651         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42652         Change return type to 'int'.
42653         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42654         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42655         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42656         upon out-of-memory.
42657         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42658         upon out-of-memory.
42659         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42660         upon out-of-memory.
42661         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42662         upon out-of-memory.
42663         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42664         out-of-memory.
42665         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42666         Update.
42667         (gl_array_list_implementation): Update.
42668         * lib/gl_carray_list.c: Don't include xalloc.h.
42669         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42670         Return NULL upon out-of-memory.
42671         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42672         out-of-memory.
42673         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42674         Change return type to 'int'.
42675         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42676         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42677         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42678         upon out-of-memory.
42679         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42680         upon out-of-memory.
42681         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42682         out-of-memory.
42683         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42684         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42685         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42686         Update.
42687         (gl_carray_list_implementation): Update.
42688         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42689         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42690         gl_linked_create_empty. Return NULL upon out-of-memory.
42691         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42692         out-of-memory.
42693         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42694         Change return type to 'int'. Return -1 upon out-of-memory.
42695         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42696         out-of-memory.
42697         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42698         upon out-of-memory.
42699         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42700         upon out-of-memory.
42701         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42702         NULL upon out-of-memory.
42703         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42704         upon out-of-memory.
42705         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42706         out-of-memory.
42707         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42708         Update.
42709         * lib/gl_linked_list.c: Don't include xalloc.h.
42710         (gl_linked_list_implementation): Update.
42711         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42712         (add_to_bucket): Change return type to 'int'.
42713         (gl_linkedhash_list_implementation): Update.
42714         * lib/gl_anytree_list1.h (free_subtree): New function.
42715         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42716         gl_tree_create_empty. Return NULL upon out-of-memory.
42717         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42718         Change return type to 'int'. Return -1 upon out-of-memory.
42719         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42720         out-of-memory.
42721         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42722         (gl_tree_remove_node): New function, moved here from
42723         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42724         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42725         Update.
42726         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42727         malloc, not xmalloc. Return NULL upon out-of-memory.
42728         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42729         out-of-memory.
42730         (gl_tree_remove_node_from_tree): New function, extracted from
42731         gl_tree_remove_node.
42732         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42733         upon out-of-memory.
42734         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42735         out-of-memory.
42736         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42737         upon out-of-memory.
42738         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42739         upon out-of-memory.
42740         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42741         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42742         not xmalloc. Return NULL upon out-of-memory.
42743         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42744         out-of-memory.
42745         (gl_tree_remove_node_from_tree): New function, extracted from
42746         gl_tree_remove_node.
42747         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42748         upon out-of-memory.
42749         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42750         out-of-memory.
42751         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42752         upon out-of-memory.
42753         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42754         upon out-of-memory.
42755         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42756         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42757         gl_anytree_list1.h before gl_anyavltree_list2.h.
42758         (gl_avltree_list_implementation): Update.
42759         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42760         gl_anytree_list1.h before gl_anyavltree_list2.h.
42761         (gl_rbtree_list_implementation): Update.
42762         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42763         Change return type to 'int'. Return -1 upon out-of-memory. Use
42764         __builtin_expect.
42765         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42766         (gl_avltreehash_list_implementation): Update.
42767         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42768         (gl_rbtreehash_list_implementation): Update.
42769         * modules/array-list (Depends-on): Remove xalloc.
42770         * modules/carray-list (Depends-on): Likewise.
42771         * modules/linked-list (Depends-on): Likewise.
42772         * modules/linkedhash-list (Depends-on): Likewise.
42773         * modules/avltree-list (Depends-on): Likewise.
42774         * modules/rbtree-list (Depends-on): Likewise.
42775         * modules/avltreehash-list (Depends-on): Likewise.
42776         * modules/rbtreehash-list (Depends-on): Likewise.
42777
42778         * modules/xsublist: New file.
42779         * lib/gl_xsublist.h: New file.
42780         * lib/gl_xsublist.c: New file.
42781         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42782         (gl_sublist_nx_create): New declaration.
42783         * lib/gl_sublist.c: Don't include xalloc.h.
42784         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42785         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42786         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42787         Change return type to 'int'. Return -1 upon out-of-memory.
42788         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42789         upon out-of-memory.
42790         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42791         NULL upon out-of-memory.
42792         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42793         upon out-of-memory.
42794         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42795         NULL upon out-of-memory.
42796         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42797         NULL upon out-of-memory.
42798         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42799         upon out-of-memory.
42800         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42801         (gl_sublist_list_implementation): Update.
42802         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42803         upon out-of-memory.
42804         * modules/sublist (Depends-on): Remove xalloc.
42805
42806         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42807         * tests/test-carray_list.c: Likewise.
42808         * tests/test-linked_list.c: Likewise.
42809         * tests/test-linkedhash_list.c: Likewise.
42810         * tests/test-avltree_list.c: Likewise.
42811         * tests/test-rbtree_list.c: Likewise.
42812         * tests/test-avltreehash_list.c: Likewise.
42813         * tests/test-rbtreehash_list.c: Likewise.
42814         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42815         * modules/carray-list-tests (Makefile.am): Likewise.
42816         * modules/linked-list-tests (Makefile.am): Likewise.
42817         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42818         * modules/avltree-list-tests (Makefile.am): Likewise.
42819         * modules/rbtree-list-tests (Makefile.am): Likewise.
42820         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42821         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42822
42823         * NEWS: Mention the changes.
42824
42825         * lib/clean-temp.c: Include gl_xlist.h.
42826         * modules/clean-temp (Depends-on): Add xlist.
42827
42828         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42829         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42830
42831         * tests/test-array_oset.c: Include gl_xlist.h.
42832         * modules/array-oset-tests (Depends-on): Add xlist.
42833
42834         Reported by José E. Marchesi <jemarch@gnu.org>.
42835
42836 2009-12-13  Bruno Haible  <bruno@clisp.org>
42837
42838         Move the malloc checking from module 'oset' to new module 'xoset'.
42839         * modules/xoset: New file.
42840         * lib/gl_xoset.h: New file.
42841         * lib/gl_xoset.c: New file.
42842         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42843         declarations.
42844         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42845         (struct gl_oset_implementation): Rename and change methods accordingly.
42846         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42847         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42848         'int'. Mark as __warn_unused_result__.
42849         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42850         gl_oset_create_empty.
42851         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42852         'int'.
42853         * lib/gl_array_oset.c: Don't include xalloc.h.
42854         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42855         malloc, not xmalloc.
42856         (grow): Change return type to 'int'. Don't call xalloc_die.
42857         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42858         to 'int'.
42859         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42860         'int'.
42861         (gl_array_oset_implementation): Update.
42862         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42863         gl_tree_create_empty.
42864         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42865         'int'.
42866         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42867         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42868         xmalloc.
42869         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42870         not xmalloc.
42871         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42872         xmalloc.
42873         (gl_avltree_oset_implementation): Update.
42874         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42875         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42876         xmalloc.
42877         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42878         not xmalloc.
42879         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42880         xmalloc.
42881         (gl_rbtree_oset_implementation): Update.
42882         * modules/array-oset (Depends-on): Remove xalloc.
42883         * modules/avltree-oset (Depends-on): Likewise.
42884         * modules/rbtree-oset (Depends-on): Likewise.
42885         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42886         * tests/test-avltree_oset.c: Likewise.
42887         * tests/test-rbtree_oset.c: Likewise.
42888         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42889         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42890         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42891         * NEWS: Mention the change.
42892
42893 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42894
42895         maint.mk: allow a project to override release-prep commands
42896         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42897         commands into a new rule.
42898         (release-prep): New rule.
42899         (release-prep-hook): New overridable variable.
42900
42901 2009-12-13  Bruno Haible  <bruno@clisp.org>
42902
42903         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42904
42905 2009-12-13  Jim Meyering  <meyering@redhat.com>
42906
42907         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42908         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42909
42910 2009-12-12  Bruno Haible  <bruno@clisp.org>
42911
42912         duplocale: Tweak.
42913         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42914
42915 2009-12-12  Karl Berry  <karl@gnu.org>
42916
42917         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42918
42919 2009-12-12  Bruno Haible  <bruno@clisp.org>
42920
42921         * m4/po.m4: Undo incorrect untabification.
42922
42923 2009-12-12  Bruno Haible  <bruno@clisp.org>
42924
42925         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42926         * modules/c-strtod (Depends-on): Add locale.
42927         * modules/c-strtold (Depends-on): Likewise.
42928
42929 2009-12-12  Bruno Haible  <bruno@clisp.org>
42930
42931         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42932
42933 2009-12-11  Eric Blake  <ebb9@byu.net>
42934
42935         setenv: relax requirement in light of POSIX ruling
42936         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42937         not NULL.
42938         * tests/test-setenv.c (main): Relax test.
42939         * tests/test-unsetenv.c (main): Likewise.
42940         * doc/posix-functions/setenv.texi (setenv): Document this.
42941         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42942
42943 2009-12-11  Bruno Haible  <bruno@clisp.org>
42944
42945         New module 'fd-safer-flag'.
42946         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42947         * lib/dup-safer.c (dup_safer_flag): Remove function.
42948         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42949         * lib/fd-safer.c (fd_safer_flag): Remove function.
42950         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42951         * modules/cloexec (configure.ac): Drop indicator macro.
42952         * modules/fd-safer-flag: New file.
42953         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42954         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42955         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42956
42957 2009-12-11  Bruno Haible  <bruno@clisp.org>
42958
42959         Tests for module 'nl_langinfo'.
42960         * modules/nl_langinfo-tests: New file.
42961         * tests/test-nl_langinfo.sh: New file.
42962         * tests/test-nl_langinfo.c: New file.
42963
42964         New module 'nl_langinfo'.
42965         * lib/nl_langinfo.c: New file.
42966         * m4/nl_langinfo.m4: New file.
42967         * modules/nl_langinfo: New file.
42968         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42969
42970 2009-12-11  Bruno Haible  <bruno@clisp.org>
42971
42972         Tests for module 'langinfo'.
42973         * modules/langinfo-tests: New file.
42974         * tests/test-langinfo.c: New file.
42975
42976         New module 'langinfo'.
42977         * lib/langinfo.in.h: New file.
42978         * m4/langinfo_h.m4: New file.
42979         * modules/langinfo: New file.
42980         * doc/posix-headers/langinfo.texi: Mention the new module.
42981
42982 2009-12-11  Bruno Haible  <bruno@clisp.org>
42983
42984         * lib/config.charset: Untabify.
42985
42986 2009-12-11  Bruno Haible  <bruno@clisp.org>
42987
42988         * modules/unistd-safer (configure.ac): Drop indicator macro.
42989
42990 2009-12-11  Bruno Haible  <bruno@clisp.org>
42991
42992         Move pipe2-safer code to its own file.
42993         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42994         * lib/pipe-safer.c (pipe2_safer): Remove function.
42995         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42996         (Makefile.am): Add it to lib_SOURCES.
42997
42998 2009-12-10  Bruno Haible  <bruno@clisp.org>
42999
43000         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
43001
43002 2009-12-10  Bruno Haible  <bruno@clisp.org>
43003
43004         Declare which arguments expect non-NULL values, for GCC and clang.
43005         * build-aux/arg-nonnull.h: New file.
43006         * modules/arg-nonnull: New file.
43007         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
43008         (inet_ntop, inet_pton): Use it.
43009         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
43010         (closedir, dirfd, opendir, scandir, alphasort): Use it.
43011         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
43012         (open, openat): Use it.
43013         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
43014         (fnmatch): Use it.
43015         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
43016         (getopt, getopt_long, getopt_long_only): Use it.
43017         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
43018         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
43019         Use it.
43020         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
43021         (iconv_open): Use it.
43022         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
43023         (strtoimax, strtoumax): Use it.
43024         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
43025         (duplocale): Use it.
43026         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
43027         (frexp, frexpl): Use it.
43028         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
43029         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
43030         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
43031         (tsearch, tfind, tdelete, twalk): Use it.
43032         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
43033         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
43034         sigpending): Use it.
43035         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
43036         (posix_spawn, posix_spawnp, posix_spawnattr_init,
43037         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
43038         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
43039         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
43040         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
43041         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
43042         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
43043         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
43044         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
43045         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
43046         Use it.
43047         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
43048         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
43049         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
43050         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
43051         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
43052         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
43053         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
43054         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
43055         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
43056         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
43057         strtoull, unsetenv): Use it.
43058         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
43059         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
43060         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
43061         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
43062         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
43063         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
43064         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
43065         (strcasecmp, strncasecmp): Use it.
43066         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
43067         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
43068         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
43069         rpl_setsockopt): Use it.
43070         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
43071         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
43072         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
43073         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
43074         (gettimeofday): Use it.
43075         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43076         (times): Use it.
43077         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43078         (uname): Use it.
43079         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43080         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43081         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43082         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43083         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43084         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43085         unlinkat, write): Use it.
43086         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43087         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43088         * lib/argv-iter.h: Include arg-nonnull.h.
43089         (_ATTRIBUTE_NONNULL_): Remove macro.
43090         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43091         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43092         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43093         optimization.
43094         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43095         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43096         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43097         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43098         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43099         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43100         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43101         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43102         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43103         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43104         * modules/dirent (Depends-on): Add arg-nonnull.
43105         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43106         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43107         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43108         * modules/fnmatch (Depends-on): Add arg-nonnull.
43109         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43110         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43111         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43112         * modules/glob (Depends-on): Add arg-nonnull.
43113         (Makefile.am): Insert arg-nonnull.h into glob.h.
43114         * modules/iconv_open (Depends-on): Add arg-nonnull.
43115         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43116         * modules/inttypes (Depends-on): Add arg-nonnull.
43117         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43118         * modules/locale (Depends-on): Add arg-nonnull.
43119         (Makefile.am): Insert arg-nonnull.h into locale.h.
43120         * modules/math (Depends-on): Add arg-nonnull.
43121         (Makefile.am): Insert arg-nonnull.h into math.h.
43122         * modules/netdb (Depends-on): Add arg-nonnull.
43123         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43124         * modules/search (Depends-on): Add arg-nonnull.
43125         (Makefile.am): Insert arg-nonnull.h into search.h.
43126         * modules/signal (Depends-on): Add arg-nonnull.
43127         (Makefile.am): Insert arg-nonnull.h into signal.h.
43128         * modules/spawn (Depends-on): Add arg-nonnull.
43129         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43130         * modules/stdio (Depends-on): Add arg-nonnull.
43131         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43132         * modules/stdlib (Depends-on): Add arg-nonnull.
43133         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43134         * modules/string (Depends-on): Add arg-nonnull.
43135         (Makefile.am): Insert arg-nonnull.h into string.h.
43136         * modules/strings (Depends-on): Add arg-nonnull.
43137         (Makefile.am): Insert arg-nonnull.h into strings.h.
43138         * modules/sys_socket (Depends-on): Add arg-nonnull.
43139         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43140         * modules/sys_stat (Depends-on): Add arg-nonnull.
43141         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43142         * modules/sys_time (Depends-on): Add arg-nonnull.
43143         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43144         * modules/sys_times (Depends-on): Add arg-nonnull.
43145         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43146         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43147         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43148         * modules/time (Depends-on): Add arg-nonnull.
43149         (Makefile.am): Insert arg-nonnull.h into time.h.
43150         * modules/unistd (Depends-on): Add arg-nonnull.
43151         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43152         * modules/wchar (Depends-on): Add arg-nonnull.
43153         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43154         * modules/argv-iter (Depends-on): Add arg-nonnull.
43155         * tests/test-canonicalize.c (null_ptr): New function.
43156         (main): Use it.
43157         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43158         (main): Use it.
43159         * tests/test-memmem.c (null_ptr): New function.
43160         (main): Use it.
43161         Reported by Jim Meyering.
43162
43163 2009-12-10  Bruno Haible  <bruno@clisp.org>
43164
43165         Use spaces for indentation, not tabs.
43166         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43167         * m4/*.m4: Untabify.
43168         * build-aux/*.h: Untabify.
43169         * tests/**/*.[hc]: Untabify.
43170         * README: New section "Indent with spaces, not TABs", based on
43171         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43172         * NEWS: Mention the change.
43173
43174 2009-12-10  Bruno Haible  <bruno@clisp.org>
43175
43176         pty test: Fix link error.
43177         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43178         test_pty_LDADD.
43179
43180 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43181
43182         * modules/pty: New file.
43183         * modules/pty-tests: New file.
43184         * m4/pty.m4: New file.
43185         * tests/test-pty.c: New file.
43186         * doc/glibc-headers/pty.texi: Modified.
43187         * doc/glibc-functions/forkpty.texi: Modified.
43188         * doc/glibc-functions/openpty.texi: Modified.
43189
43190 2009-12-10  Bruno Haible  <bruno@clisp.org>
43191
43192         Avoid syntax error in C++ mode.
43193         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43194
43195 2009-12-10  Bruno Haible  <bruno@clisp.org>
43196
43197         Use sed with option -e.
43198         * gnulib-tool (func_version, func_emit_copyright_notice,
43199         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43200         option -e to sed.
43201         * modules/link-warning (Makefile.am): Likewise.
43202
43203 2009-12-10  Jim Meyering  <meyering@redhat.com>
43204
43205         mgetgroups: do not write bytes beyond end of malloc'd buffer
43206         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43207         username, we call getgroups with a one-element-shorter buffer,
43208         but still told it the length was original, max_n_groups.
43209
43210 2009-12-09  Eric Blake  <ebb9@byu.net>
43211
43212         cloexec: relax license
43213         * modules/cloexec (Maintainer): Add myself.
43214         (License): Use LGPL, not GPL.
43215
43216         link-warning: optimize generation
43217         * modules/link-warning (Makefile.am): Reduce process usage.
43218
43219 2009-12-09  Bruno Haible  <bruno@clisp.org>
43220
43221         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43222         workaround was added on 2009-11-17.
43223
43224 2009-12-09  Jim Meyering  <meyering@redhat.com>
43225             Bruno Haible  <bruno@clisp.org>
43226
43227         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43228         * modules/link-warning (Makefile.am): Make the comment-removing sed
43229         command more robust in the face of bootstrap-prepended comment lines.
43230
43231 2009-12-09  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43234         most one group.
43235
43236 2009-12-09  Simon Josefsson <simon@josefsson.org>
43237             Bruno Haible  <bruno@clisp.org>
43238
43239         * build-aux/link-warning.h: Add copyright notice.
43240         * modules/link-warning (Makefile.am): Generate link-warning.h from
43241         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43242         * NEWS: Mention change in link-warning module.
43243         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43244         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43245         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43246         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43247         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43248         * modules/math (Makefile.am): Add dependency to math.h.
43249         * modules/search (Makefile.am): Add dependency to search.h.
43250         * modules/signal (Makefile.am): Add dependency to signal.h.
43251         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43252         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43253         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43254         * modules/string (Makefile.am): Add dependency to string.h.
43255         * modules/strings (Makefile.am): Add dependency to strings.h.
43256         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43257         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43258         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43259         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43260         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43261         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43262         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43263         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43264         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43265
43266 2009-12-09  Bruno Haible  <bruno@clisp.org>
43267
43268         fchdir: Optimize away rpl_fstat when possible.
43269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43270         REPLACE_OPEN_DIRECTORY.
43271         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43272
43273 2009-12-09  Bruno Haible  <bruno@clisp.org>
43274
43275         * lib/fchdir.c: Update comment.
43276
43277 2009-12-09  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43280
43281 2009-12-08  Eric Blake  <ebb9@byu.net>
43282
43283         fchdir: avoid memory leak on re-registration.
43284         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43285
43286 2009-12-08  Jim Meyering  <meyering@redhat.com>
43287
43288         init.sh: avoid Solaris 10 /bin/sh portability problem
43289         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43290         sourced script:
43291           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43292           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43293           bar
43294         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43295         and two tests used that idiom.
43296         * tests/init.sh: Update suggested usage comments.
43297         (path_prepend_): New function, to be used in place
43298         of the --src-path=DIR option.
43299         (setup_): Move PATH-prepending code into path_prepend_.
43300         * tests/test-pread.sh: Adapt to new usage.
43301         * tests/test-xalloc-die.sh: Likewise.
43302
43303 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43304
43305         * doc/gnulib.texi (Glibc pty.h): Add.
43306         * doc/glibc-functions/forkpty.texi: Add.
43307         * doc/glibc-functions/openpty.texi: Add.
43308         Suggested by Bruno Haible.
43309
43310 2009-12-08  Eric Blake  <ebb9@byu.net>
43311
43312         fchdir: fix logic bugs
43313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43314         * tests/test-fchdir.c (main): Enhance test.
43315         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43316         is in use.
43317
43318         dup2: fix logic bugs
43319         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43320         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43321         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43322         exists.
43323         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43324
43325 2009-12-07  Eric Blake  <ebb9@byu.net>
43326
43327         unlink: fix m4 detection
43328         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43329
43330         unistd-safer: add unit test
43331         * modules/unistd-safer-tests: New file.
43332         * tests/test-dup-safer.c: Likewise.
43333         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43334         * tests/test-dup2.c (setmode): Likewise.
43335         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43336
43337         cloexec: preserve text vs. binary across dup_cloexec
43338         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43339         mode.
43340         * modules/dup2-tests (Depends-on): Add binary-io.
43341         * modules/cloexec-tests (Depends-on): Likewise.
43342         * tests/test-dup2.c (setmode, is_mode): New helpers.
43343         (main): Add tests that translation mode is preserved.
43344         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43345         Reported by Bruno Haible.
43346
43347         mgetgroups: reduce duplicate listings
43348         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43349         resulting array.
43350         * tests/test-chown.h (test_chown): Simplify client.
43351         * tests/test-lchown.h (test_lchown): Likewise.
43352
43353 2009-12-06  Bruno Haible  <bruno@clisp.org>
43354
43355         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43356         value.
43357
43358 2009-12-06  Bruno Haible  <bruno@clisp.org>
43359
43360         * lib/progname.c: Include stdio.h, stdlib.h.
43361         (set_program_name): Reject a NULL argument.
43362
43363 2009-12-05  Eric Blake  <ebb9@byu.net>
43364
43365         pipe2-safer: new module
43366         * modules/pipe2-safer: New file.
43367         * lib/unistd-safer.h (pipe2_safer): New prototype.
43368         * lib/unistd--.h (pipe2): New wrapper.
43369         * lib/pipe-safer.c (pipe2_safer): New function.
43370         * modules/pipe (Depends-on): Add pipe2-safer.
43371         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43372
43373         stdlib-safer: preserve cloexec flag for mkostemp[s]
43374         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43375         fd_safer_flag.
43376
43377         unistd-safer: allow preservation of cloexec status via flag
43378         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43379         prototypes.
43380         * lib/dup-safer.c (dup_safer_flag): New function.
43381         * lib/fd-safer.c (fd_safer_flag): Likewise.
43382         * modules/cloexec (configure.ac): Set witness.
43383
43384         test-dup2: enhance test
43385         * modules/dup2-tests (Depends-on): Add cloexec.
43386         * tests/test-dup2.c (main): Enhance test.
43387
43388         cloexec: add dup_cloexec
43389         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43390         header and comments.
43391         * lib/cloexec.c (set_cloexec_flag): Add comments.
43392         (dup_cloexec): New function, with mingw implementation borrowed
43393         from...
43394         * lib/w32spawn.h (dup_noinherit): ...here.
43395         * modules/execute (Depends-on): Add cloexec.
43396         * modules/pipe (Depends-on): Likewise.
43397         * modules/cloexec (Depends-on): Add dup2.
43398         * modules/cloexec-tests (Files): New file.
43399         * tests/test-cloexec.c: Likewise.
43400
43401         test-xalloc-die: fix test for mingw
43402         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43403         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43404         directory and .exe suffix off argv[0] output.
43405
43406         test-fseeko: fix test for mingw
43407         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43408         than undefining fseek, so test will pass on mingw.
43409
43410 2009-12-05  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/progname.h (set_program_name): Clarify specification.
43413         * lib/progname.c (set_program_name): Likewise.
43414         Reported by Jim Meyering.
43415
43416 2009-12-05  Jim Meyering  <meyering@redhat.com>
43417
43418         maint.mk: backslash-escape parens in default regexp
43419         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43420         backslash-escape the literal parentheses.
43421
43422         maint.mk: news-date-check: use grep -E
43423         * top/maint.mk (today): Define a Make variable, not a...
43424         (news-date-check): ...shell variable.
43425         (news-date-regexp): Use the Make variable.
43426         Use grep's -E option.  Change the failing diagnostic to mention
43427         the variable, $(news-date-regexp).
43428
43429 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43430
43431         maintainer-makefile: allow customization of NEWS entry format
43432         * top/maint.mk (news-date-regexp): New overridable variable.
43433         (news-date-check): Use it.
43434
43435 2009-12-04  Eric Blake  <ebb9@byu.net>
43436
43437         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43438         * lib/mgetgroups.h (xgetgroups): New prototype.
43439         * lib/mgetgroups.c (xgetgroups): New wrapper.
43440         (mgetgroups): Handle ENOSYS.
43441         * modules/mgetgroups (Depends-on): Add realloc.
43442         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43443
43444         mgetgroups: avoid argument promotion issues with -1
43445         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43446         for invalid gid_t.
43447         * tests/test-chown.h (getegid, test_chown): Likewise.
43448         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43449
43450 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43451
43452         exclude: Fix header file problems.
43453         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43454
43455 2009-12-01  Jim Meyering  <meyering@redhat.com>
43456
43457         fts: fts_open: do not let an empty string cause immediate failure
43458         This is required in support of GNU rm, for which the command
43459         "rm A '' B" must process and remove both A and B, in spite of
43460         the empty string argument.
43461         * lib/fts.c (fts_open): Do not let the presence of an empty string
43462         cause fts_open to fail immediately.  Most fts-using tools must be
43463         able to process all arguments, in order, and can be expected to
43464         diagnose such arguments themselves.
43465
43466 2009-11-30  Eric Blake  <ebb9@byu.net>
43467
43468         utimens: fix compilation error
43469         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43470         Declare variable at right scope.
43471
43472 2009-11-29  Jim Meyering  <meyering@redhat.com>
43473
43474         bootstrap: handle perl-5.11's changed --version output
43475         * build-aux/bootstrap (get_version): Handle perl separately,
43476         since perl-5.11's --version output is different.
43477
43478 2009-11-28  Jim Meyering  <meyering@redhat.com>
43479
43480         userspec: depend on the inttostr module, too
43481         * modules/userspec (Depends-on): Add inttostr.
43482
43483         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43484         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43485         number of MAXUID when it evaluates to (uid_t) -1.
43486         Likewise for group ID.  Reported by Matt McCutchen in
43487         <http://savannah.gnu.org/bugs/?28113>
43488
43489         userspec: reformat to use spaces, not TABs
43490         * lib/userspec.c: Expand TABs to spaces.
43491         Add Emacs' "indent-tabs-mode: nil" hint.
43492
43493 2009-11-27  Eric Blake  <ebb9@byu.net>
43494
43495         getopt-gnu: flush out another BSD bug
43496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43497         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43498         flush out BSD bug.
43499         * tests/test-getopt.h (test_getopt): End lists with NULL.
43500         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43501         (test_getopt_long_posix): Enhance test.
43502         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43503         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43504         getopt-gnu.
43505         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43506         Likewise.
43507
43508 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43509
43510         * modules/idpriv-droptemp-tests (Notice): Fix text.
43511
43512 2009-11-27  Jim Meyering  <meyering@redhat.com>
43513
43514         test-xalloc-die: avoid spurious failure due to libtool argv difference
43515         In a libtool-enabled project, this test would fail due to a difference
43516         in the emitted program name, e.g.,
43517         -test-xalloc-die: memory exhausted
43518         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43519         Use program to avoid that.
43520         * modules/xalloc-die-tests (Depends-on): Add progname.
43521         * tests/test-xalloc-die.c: Include progname.h".
43522         (program_name): Remove decl.
43523         (main): Call set_program_name.
43524         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43525
43526 2009-11-26  Richard Jones  <rjones@redhat.com>
43527
43528         w32sock: leave win32 error in place.
43529         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43530
43531 2009-11-26  Eric Blake  <ebb9@byu.net>
43532
43533         init.sh: suggest to use skip_ and fail_ functions in comments
43534         * tests/init.sh: Add a sentence.
43535
43536 2009-11-25  Bruno Haible  <bruno@clisp.org>
43537
43538         init.sh: add documentation in comments
43539         * tests/init.sh: Add some developer and user documentation.
43540
43541 2009-11-26  Jim Meyering  <meyering@redhat.com>
43542
43543         init.sh: accommodate even those who specify bogus srcdir manually
43544         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43545         configure-time tests to be sanitized, so that there is no need to
43546         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43547         (with no double quotes) suffices.  However, since tests may be
43548         invoked manually, and since you may explicitly set srcdir to the
43549         name of a directory containing spaces, do quote its uses here.
43550         * tests/test-pread.sh: Likewise.
43551         Suggested by Bruno Haible.
43552
43553         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43554         * tests/test-pread.sh: Write no data into the pipe, because
43555         test-pread actually reads none.  This avoids a diagnostic,
43556         "bash: echo: write error: Broken pipe", that arises in the unusual
43557         event something is ignoring SIGPIPE, and might be interpreted
43558         as some sort of failure.  Reported by Bruno Haible.
43559
43560 2009-11-25  Jim Meyering  <meyering@redhat.com>
43561
43562         test-pread: cover failure with ESPIPE and EINVAL
43563         * tests/test-pread.c (main): Test for failure, too.
43564         * tests/test-pread.sh: Invoke with stdin on a pipe.
43565         Suggested by Eric Blake.
43566
43567         pread: improvement and fix
43568         * modules/pread (Depends-on): Depend on lseek, for portability to
43569         e.g., mingw.  Suggested by Eric Blake.
43570         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43571
43572         unistd.in.h: correct declaration of pread
43573         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43574         Reported by Richard W.M. Jones.
43575
43576         test-pread.sh: distribute the test script
43577         * modules/pread-tests (Files): Include test-pread.sh.
43578
43579         test-pread.sh: clean up
43580         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43581         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43582         That is unnecessary, since it's always ".".
43583         Suggestion from Eric Blake.
43584
43585         test-pread.sh: make executable
43586         * tests/test-pread.sh: Set executable bit.
43587         Reported by Eric Blake.
43588
43589         correct typo in test-pread.sh
43590         * tests/test-pread.sh: Add #! line.
43591
43592         test pread
43593         * tests/test-pread.c: New file.
43594         * tests/test-pread.sh: Likewise.
43595         * modules/pread-tests: Likewise.
43596
43597         pread: new module
43598         * modules/pread: New file.
43599         * lib/unistd.in.h (pread): Define/declare.
43600         * lib/pread.c (pread): New file.
43601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43602         * modules/unistd (Makefile.am): Substitute witnesses.
43603         * doc/posix-functions/pread.texi (pread): Update.
43604         * MODULES.html.sh: Add pread.
43605
43606 2009-11-25  Jim Meyering  <meyering@redhat.com>
43607
43608         tests/init.sh: new file to be used via most *.sh tests
43609         * tests/init.sh: New file.
43610
43611 2009-11-25  Eric Blake  <ebb9@byu.net>
43612
43613         utimens: work around older Linux failure with symlinks
43614         * lib/utimens.c (lutimensat_works_really): New variable.
43615         (fdutimens, lutimens): Use it to manage kernels that support
43616         nanosecond times on files, but not on symlinks.
43617         Reported by Ondřej Vašík.
43618
43619         utimes: fix configure grammar
43620         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43621
43622 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43623
43624         regex: Fix fastmap for multibyte character ranges.
43625         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43626         characters when a multibyte character range is included.
43627
43628 2009-11-22  Andy Wingo  <wingo@pobox.com>
43629
43630         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43631         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43632
43633 2009-11-24  Bruno Haible  <bruno@clisp.org>
43634
43635         doc: Most *_l functions exist in MacOS X 10.5.
43636         * doc/posix-functions/duplocale.texi: Update platforms list.
43637         * doc/posix-functions/freelocale.texi: Likewise.
43638         * doc/posix-functions/newlocale.texi: Likewise.
43639         * doc/posix-functions/uselocale.texi: Likewise.
43640         * doc/posix-functions/isalnum_l.texi: Likewise.
43641         * doc/posix-functions/isalpha_l.texi: Likewise.
43642         * doc/posix-functions/isblank_l.texi: Likewise.
43643         * doc/posix-functions/iscntrl_l.texi: Likewise.
43644         * doc/posix-functions/isdigit_l.texi: Likewise.
43645         * doc/posix-functions/isgraph_l.texi: Likewise.
43646         * doc/posix-functions/islower_l.texi: Likewise.
43647         * doc/posix-functions/isprint_l.texi: Likewise.
43648         * doc/posix-functions/ispunct_l.texi: Likewise.
43649         * doc/posix-functions/isspace_l.texi: Likewise.
43650         * doc/posix-functions/isupper_l.texi: Likewise.
43651         * doc/posix-functions/iswalnum_l.texi: Likewise.
43652         * doc/posix-functions/iswalpha_l.texi: Likewise.
43653         * doc/posix-functions/iswblank_l.texi: Likewise.
43654         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43655         * doc/posix-functions/iswctype_l.texi: Likewise.
43656         * doc/posix-functions/iswdigit_l.texi: Likewise.
43657         * doc/posix-functions/iswgraph_l.texi: Likewise.
43658         * doc/posix-functions/iswlower_l.texi: Likewise.
43659         * doc/posix-functions/iswprint_l.texi: Likewise.
43660         * doc/posix-functions/iswpunct_l.texi: Likewise.
43661         * doc/posix-functions/iswspace_l.texi: Likewise.
43662         * doc/posix-functions/iswupper_l.texi: Likewise.
43663         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43664         * doc/posix-functions/isxdigit_l.texi: Likewise.
43665         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43666         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43667         * doc/posix-functions/strcoll_l.texi: Likewise.
43668         * doc/posix-functions/strfmon_l.texi: Likewise.
43669         * doc/posix-functions/strftime_l.texi: Likewise.
43670         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43671         * doc/posix-functions/strxfrm_l.texi: Likewise.
43672         * doc/posix-functions/tolower_l.texi: Likewise.
43673         * doc/posix-functions/toupper_l.texi: Likewise.
43674         * doc/posix-functions/towctrans_l.texi: Likewise.
43675         * doc/posix-functions/towlower_l.texi: Likewise.
43676         * doc/posix-functions/towupper_l.texi: Likewise.
43677         * doc/posix-functions/wcscoll_l.texi: Likewise.
43678         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43679         * doc/posix-functions/wctrans_l.texi: Likewise.
43680         * doc/posix-functions/wctype_l.texi: Likewise.
43681         * doc/glibc-functions/strptime_l.texi: Likewise.
43682         * doc/glibc-functions/strtod_l.texi: Likewise.
43683         * doc/glibc-functions/strtof_l.texi: Likewise.
43684         * doc/glibc-functions/strtol_l.texi: Likewise.
43685         * doc/glibc-functions/strtold_l.texi: Likewise.
43686         * doc/glibc-functions/strtoll_l.texi: Likewise.
43687         * doc/glibc-functions/strtoul_l.texi: Likewise.
43688         * doc/glibc-functions/strtoull_l.texi: Likewise.
43689         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43690         * doc/glibc-functions/wcstod_l.texi: Likewise.
43691         * doc/glibc-functions/wcstof_l.texi: Likewise.
43692         * doc/glibc-functions/wcstol_l.texi: Likewise.
43693         * doc/glibc-functions/wcstold_l.texi: Likewise.
43694         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43695         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43696         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43697
43698 2009-11-24  Bruno Haible  <bruno@clisp.org>
43699
43700         duplocale: Fix logic bug.
43701         * lib/duplocale.c: Don't include <langinfo.h>.
43702         (_NL_LOCALE_NAME): Remove macro.
43703         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43704         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43705
43706 2009-11-23  Jim Meyering  <meyering@redhat.com>
43707
43708         test-update-copyright: don't hard-code /usr/bin/perl
43709         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43710         perl to print the current year.  Gilles Espinasse reported that
43711         the replaced use of perl was hard-coded as /usr/bin/perl.
43712
43713 2009-11-23  Bruno Haible  <bruno@clisp.org>
43714
43715         duplocale: Add support for glibc 2.3.x.
43716         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43717
43718 2009-11-22  Bruno Haible  <bruno@clisp.org>
43719
43720         vasnprintf: Tiny optimization.
43721         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43722         MacOS X.
43723
43724 2009-11-22  Bruno Haible  <bruno@clisp.org>
43725
43726         Tests for module 'duplocale'.
43727         * modules/duplocale-tests: New file.
43728         * tests/test-duplocale.c: New file.
43729
43730         New module 'duplocale'.
43731         * m4/duplocale.m4: New file.
43732         * lib/locale.in.h (duplocale): New declaration.
43733         * lib/duplocale.c: New file.
43734         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43735         gl_LOCALE_H_DEFAULTS): New macros.
43736         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43737         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43738         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43739         REPLACE_DUPLOCALE.
43740         * modules/duplocale: New file.
43741         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43742
43743 2009-11-22  Bruno Haible  <bruno@clisp.org>
43744
43745         * modules/locale-tests (configure.ac): Test for newlocale function.
43746         * tests/test-locale.c: When the system has extended locale functions,
43747         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43748
43749         locale: Make locale_t available when possible.
43750         * lib/locale.in.h: Include <xlocale.h> when it exists.
43751         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43752         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43753         * modules/locale (Depends-on): Add extensions.
43754         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43755         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43756
43757 2009-11-22  Bruno Haible  <bruno@clisp.org>
43758
43759         Add comments.
43760         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43761         invocation.
43762         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43763         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43764         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43765
43766 2009-11-22  Bruno Haible  <bruno@clisp.org>
43767
43768         error: account for the possibility of freopen (stdout).
43769         * lib/error.c: Include <unistd.h>.
43770         (flush_stdout): New function, extracted from error and error_at_line.
43771         Determine stdout's fd dynamically.
43772         (error, error_at_line): Invoke flush_stdout.
43773         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43774         * modules/error (Depends-on): Add unistd.
43775
43776 2009-11-22  Bruno Haible  <bruno@clisp.org>
43777
43778         diffseq: Add comment.
43779         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43780
43781 2009-11-22  Jim Meyering  <meyering@redhat.com>
43782
43783         c-stack: avoid defining an unused static function
43784         * lib/c-stack.c (find_stack_direction): Do not define this function
43785         when it will not be used.
43786
43787         diffseq: avoid spurious gcc warnings
43788         * lib/diffseq.h (IF_LINT2): Define.
43789         (compareseq): Use it to initialize two members of "part".
43790         This avoids two used-uninitialized warnings.
43791
43792 2009-11-21  Jim Meyering  <meyering@redhat.com>
43793
43794         c-stack: avoid "ignoring return value of `write'" warning
43795         * lib/c-stack.c: Include "ignore-value.h".
43796         (die): Explicitly ignore each write return value.
43797         * modules/c-stack (Depends-on): Add ignore-value.
43798
43799 2009-11-21  Bruno Haible  <bruno@clisp.org>
43800
43801         diffseq: reduce scope of variable 'best'.
43802         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43803         variable, earlier used for two different purposes.
43804
43805 2009-11-21  Jim Meyering  <meyering@redhat.com>
43806
43807         diffseq: remove useless assignment to "best"
43808         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43809         assignment.  At that point "best" is already guaranteed to be zero.
43810
43811 2009-11-20  Eric Blake  <ebb9@byu.net>
43812
43813         build: mention ftp redirector in release announcements
43814         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43815         values that used to come from cfg.mk; mention FTP redirect URL.
43816         * build-aux/announce-gen: Mention the mirror list.
43817         Suggested by Karl Berry.
43818
43819         nanosleep: improve port to mingw
43820         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43822         LIB_NANOSLEEP, but only when needed.
43823         * modules/select (Link): Document LIBSOCKET.
43824         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43825         enough.
43826
43827         nanosleep: work around cygwin bug
43828         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43829         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43830         bug.
43831         (getnow): Delete, not needed.
43832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43833         LIB_CLOCK_GETTIME.
43834         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43835         clock-time, gettime.
43836         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43837         bug.
43838         * modules/nanosleep-tests: New test.
43839         * tests/test-nanosleep.c: New file.
43840
43841         sleep: work around cygwin bug
43842         * lib/sleep.c (rpl_sleep): Work around the bug.
43843         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43844         (gl_PREREQ_SLEEP): Delete unused macro.
43845         * modules/sleep (Depends-on): Add verify.
43846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43847         * modules/unistd (Makefile.am): Substitute witness.
43848         * lib/unistd.in.h (sleep): Update prototype.
43849         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43850         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43851         * modules/sleep-tests (Depends-on): Check for alarm.
43852
43853 2009-11-20  Jim Meyering  <meyering@redhat.com>
43854
43855         maint.mk: improve sc_prohibit_magic_number_exit
43856         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43857         so it does not match uses like System.exit(1).
43858         Add comments showing how to correct all offenders.
43859
43860 2009-11-19  Eric Blake  <ebb9@byu.net>
43861
43862         xalloc-die-tests: add missing library
43863         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43864
43865         test-xvasprintf: silence compiler warnings
43866         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43867         empty string from gcc.
43868
43869 2009-11-19  Jim Meyering  <meyering@redhat.com>
43870
43871         xfreopen: new module, from coreutils
43872         * modules/xfreopen: New module.
43873         * lib/xfreopen.c: New file.
43874         * lib/xfreopen.h: New file.
43875         * MODULES.html.sh (File stream based Input/Output"): Add it.
43876
43877 2009-11-19  Eric Blake  <ebb9@byu.net>
43878
43879         manywarnings: depend on warnings
43880         * modules/manywarnings (Depends-on): Add warnings.
43881
43882         build: avoid compiler warnings
43883         * lib/select.c (rpl_select): Delete unused variable.
43884         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43885
43886 2009-11-18  Eric Blake  <ebb9@byu.net>
43887
43888         tests: avoid false negative with --with-packager
43889         * tests/test-version-etc.sh: Discard packager information.
43890         * tests/test-argp-version-etc-1.sh: Likewise.
43891         Reported by Mike Frysinger.
43892
43893         utimens: fix regression on Solaris
43894         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43895         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43896         can only change fd timestamps via futimesat.  Instead, use an
43897         additional witness macro to avoid BSD bug.
43898         Reported by Jim Meyering.
43899
43900 2009-11-17  Eric Blake  <ebb9@byu.net>
43901
43902         usleep: use it to simplify tests
43903         * modules/stat-time-tests (Depends-on): Add usleep.
43904         (configure.ac): Drop usleep check.
43905         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43906         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43907         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43908         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43909         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43910         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43911         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43912         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43913         Likewise.
43914         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43915         * tests/test-lchown.h (nap): Likewise.
43916         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43917         * tests/test-stat-time.c (nap): Likewise.
43918         * tests/test-utimens-common.h (nap): Update comments.
43919
43920         usleep: new module
43921         * modules/usleep: New file.
43922         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43923         * lib/usleep.c (usleep): Likewise.
43924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43925         * modules/unistd (Makefile.am): Substitute witnesses.
43926         * lib/unistd.in.h (usleep): Add declaration.
43927         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43928         * MODULES.html.sh (Date and time): Likewise.
43929         * modules/usleep-tests (Depends-on): New test.
43930         * tests/test-usleep.c: New file.
43931
43932         chown: work around OpenBSD bug
43933         * lib/chown.c (rpl_chown): Work around the bug.
43934         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43935         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43936         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43937         * modules/chown (Depends-on): Add stdbool.
43938         * modules/lchown (Depends-on): Likewise.
43939         * doc/posix-functions/chown.texi (chown): Document the bug.
43940         * doc/posix-functions/lchown.texi (lchown): Likewise.
43941         * tests/test-lchown.h (test_chown): Relax test.
43942
43943         mkstemp: avoid conflict with C++ keyword template
43944         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43945         * lib/mkostemp.c (mkostemp): Likewise.
43946         * lib/mkostemps.c (mkostemps): Likewise.
43947         * lib/mkstemp.c (mkstemp): Likewise.
43948         * lib/mkstemps.c (mkstemps): Likewise.
43949
43950         xalloc-die-tests: optimize
43951         * tests/test-xalloc-die.sh: Reduce number of processes.
43952
43953 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43954
43955         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43956         patch from ludo@gnu.org (Ludovic Courtès).
43957
43958 2009-11-17  Jim Meyering  <meyering@redhat.com>
43959
43960         version-etc: use proper license string
43961         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43962         * modules/version-etc-fsf: Likewise.
43963
43964 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43965
43966         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43967         printed to stdout.  Deal with EOL differences.
43968
43969 2009-11-17  Eric Blake  <ebb9@byu.net>
43970
43971         unsetenv: work around Solaris bug
43972         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43973         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43974         Reported by Jim Meyering.
43975
43976         vasnprintf: avoid compiler warnings
43977         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43978         variables.
43979         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43980
43981 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43982
43983         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43984         settings since xalloc-die is no longer the self test,
43985         xalloc-die.sh is.
43986
43987 2009-11-17  Jim Meyering  <meyering@redhat.com>
43988
43989         test-xalloc-die.sh: make the code agree with the commit log
43990         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43991         at the end, just in case you happen to have a test-xalloc-die
43992         program in some other PATH directory.
43993
43994         test-xalloc-die.sh: fix a portability bug
43995         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43996         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43997         Otherwise, argv[0] (as often seen in diagnostics) would be too
43998         system-dependent, sometimes with, and sometimes without the leading "./".
43999
44000         version-etc-fsf: relax license to LGPLv3+
44001         * modules/version-etc-fsf (License): Relax license.
44002
44003 2009-11-16  Eric Blake  <ebb9@byu.net>
44004
44005         xalloc-die-tests: avoid printing null pointer
44006         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
44007         shell script.
44008         * tests/test-xalloc-die.c (program_name): Declare.
44009         * tests/test-xalloc-die.sh (tmpfiles): New file.
44010
44011         setenv, unsetenv: work around various bugs
44012         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
44013         (setenv) [HAVE_SETENV]: Work around bugs.
44014         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
44015         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
44016         for bugs.
44017         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
44018         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
44019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
44020         * modules/stdlib (Makefile.am): Update substitutions.
44021         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
44022         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
44023         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
44024         * modules/setenv-tests: New test.
44025         * modules/unsetenv-tests: Likewise.
44026         * tests/test-setenv.c: New file.
44027         * tests/test-unsetenv.c: Likewise.
44028
44029 2009-11-16  Jim Meyering  <meyering@redhat.com>
44030
44031         version-etc: relax license to LGPLv3+
44032         * modules/version-etc (License): Relax license.
44033
44034         better AC_REQUIRE expanded-before-required-warning avoidance
44035         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
44036         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
44037         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
44038         which is no longer needed.
44039
44040 2009-11-16  Eric Blake  <ebb9@byu.net>
44041
44042         test-freading: clean up temporary file
44043         * tests/test-freading.c (main): Remove file on success, and use
44044         ASSERT more liberally.
44045         Reported by Jim Meyering.
44046
44047 2009-11-16  Jim Meyering  <meyering@redhat.com>
44048
44049         avoid new AC_REQUIRE expanded-before-required warnings
44050         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
44051         merely using it.
44052         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
44053         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
44054
44055 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44056
44057         * tests/test-xalloc-die.c: New file.
44058         * modules/xalloc-die-tests: New file.
44059         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
44060         XFAIL_TESTS so it can be appended by modules.
44061
44062 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44063
44064         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
44065         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
44066
44067 2009-11-14  Eric Blake  <ebb9@byu.net>
44068
44069         fnmatch: avoid compiler warning
44070         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
44071         to silence compiler warning about mismatch signedness in ?:.
44072         Reported by Robert Millan.
44073
44074         intprops: add double-inclusion guard
44075         * lib/intprops.h: Allow idempotent includes.
44076         Suggested by Bruce Korb.
44077
44078         openat: detect Solaris fchownat bug
44079         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44080         penalizing glibc chownat when only lchownat is broken.
44081         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44082         trailing slash bugs.
44083         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44084         * modules/openat-tests (Files): Include more files.
44085         (Depends-on): Add mgetgroups, sleep, stat-time.
44086         (configure.ac): Add additional checks.
44087         (Makefile.am): Build new test.
44088         * tests/test-fchownat.c: New file.
44089
44090         lchown: detect Solaris and FreeBSD bug
44091         * lib/lchown.c (rpl_lchown): Work around bug.
44092         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44094         * modules/unistd (Makefile.am): Populate it.
44095         * lib/unistd.in.h (lchown): Update declaration.
44096         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44097         * modules/lchown-tests: New file.
44098         * tests/test-lchown.h (test_lchown): Likewise.
44099         * tests/test-lchown.c (main): Likewise.
44100
44101         chown: detect Solaris and FreeBSD bug
44102         * lib/chown.c (rpl_chown): Work around bug.
44103         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44104         (gl_PREREQ_CHOWN): Delete.
44105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44106         * modules/unistd (Makefile.am): Populate it.
44107         * lib/unistd.in.h (chown): Update declaration.
44108         * lib/lchown.c (chown): Update client.
44109         * modules/lchown (Depends-on): Add lstat.
44110         * doc/posix-functions/chown.texi (chown): Document the bug.
44111         * doc/posix-functions/getgroups.texi (getgroups): Document
44112         getgroups pitfall.
44113         * modules/chown-tests: New file.
44114         * tests/test-chown.h (test_chown): Likewise.
44115         * tests/test-chown.c (main): Likewise.
44116
44117 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44118
44119         gnulib-tool: correctly detect absence of m4 directories
44120         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44121
44122 2009-11-14  Jim Meyering  <meyering@redhat.com>
44123
44124         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44125         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44126
44127 2009-11-14  John W. Eaton  <jwe@gnu.org>
44128
44129         strftime.h: wrap function declaration in extern "C" block
44130         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44131
44132 2009-11-13  Eric Blake  <ebb9@byu.net>
44133
44134         getgroups: avoid compiler warning
44135         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44136
44137         getgroups: work around FreeBSD bug
44138         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44139         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44140         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44141         * tests/test-getgroups.c (main): Fix buffer overrun.
44142
44143         getgroups: avoid compilation failure
44144         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44145         * modules/getgroups (Depends-on): Add stdint.
44146
44147 2009-11-13  Jim Meyering  <meyering@redhat.com>
44148
44149         test-getgroups: avoid compilation failure
44150         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44151
44152 2009-11-13  Eric Blake  <ebb9@byu.net>
44153
44154         mgetgroups: new module, taken from coreutils
44155         * modules/mgetgroups: New file.
44156         * lib/mgetgroups.h: Likewise.
44157         * lib/mgetgroups.c (mgetgroups): Likewise.
44158         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44159         * MODULES.html.sh (Users and groups): Mention it.
44160
44161         getgroups: don't expose GETGROUPS_T to user
44162         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44163         an element at a time if GETGROUPS_T is wrong size.
44164         * lib/getugroups.h (getugroups): Change signature.
44165         * lib/unistd.in.h (getgroups): Likewise.
44166         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44167         signature needs fixing.
44168         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44169         AC_TYPE_GETGROUPS.
44170         * modules/group-member (Depends-on): Add getgroups.
44171         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44172         (group_member): Rely on getgroups replacement.
44173         * lib/getugroups.c (getugroups): Use gid_t.
44174         * tests/test-getgroups.c (main): Likewise.
44175         * NEWS: Mention the signature change.
44176         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44177         problem with signature.
44178         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44179         GETGROUPS_T is still useful for setgroups.
44180
44181         getgroups, getugroups: provide stubs for mingw
44182         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44183         * lib/getugroups.c (getugroups): Likewise.
44184         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44185         function.  Modernize replacement scheme.
44186         (gl_PREREQ_GETGROUPS): Delete.
44187         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44188         * modules/getgroups (configure.ac): Declare witness.
44189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44190         * modules/unistd (Depends-on): Substitute witness.
44191         * lib/unistd.in.h (getgroups): Declare replacement.
44192
44193         getgroups: avoid calling exit
44194         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44195         drop xalloc.
44196         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44197         dependencies.
44198         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44199         exiting, in the rare case of malloc failure.
44200
44201         getgroups: fix logic error
44202         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44203         has more than 20 groups.
44204         * modules/getgroups-tests: New test.
44205         * tests/test-getgroups.c: New file.
44206
44207 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44208
44209         * tests/test-base64.c: Improve.
44210
44211 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44212
44213         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44214         Blake <ebb9@byu.net>.
44215
44216 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44217
44218         * tests/test-xvasprintf.c: Add %s%s related checks.
44219
44220 2009-11-12  Eric Blake  <ebb9@byu.net>
44221
44222         version-etc: match standards.texi style
44223         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44224         and use <> only for URLs.
44225
44226 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44227
44228         fts: do not fail on a submount during traversal
44229         * lib/fts.c (fts_build): Read the stat info again after opening
44230         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44231         Original report at http://bugzilla.redhat.com/501848.
44232
44233 2009-11-12  Jim Meyering  <meyering@redhat.com>
44234
44235         bootstrap: sync from coreutils
44236         * build-aux/bootstrap (bootstrap_epilogue): New function.
44237         Use git_modules_config in one more place.  This make bootstrap's
44238         --gnulib-srcdir option more useful for testing.
44239
44240         bootstrap: generalize autoheader check
44241         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44242         AC_CONFIG_HEADERS.
44243
44244 2009-11-11  Eric Blake  <ebb9@byu.net>
44245
44246         mkfifoat: use new modules for Solaris and BSD bugs
44247         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44248         * lib/mkfifoat.c (mknodat): Split...
44249         * lib/mknodat.c (mknodat): ...into new file.
44250         * modules/mkfifoat (Files): Ship new file.
44251         (Depends-on): Add mkfifo, mknod.
44252         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44253         (Depends-on): Add symlink.
44254         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44255         redundant with test_mkfifo.h.
44256         (do_mkfifoat, do_mknodat): New helpers.
44257
44258         mknod: new module
44259         * modules/mknod: New file.
44260         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44261         * lib/mknod.c (mknod): Likewise.
44262         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44263         defaults.
44264         * modules/sys_stat (Makefile.am): Substitute them.
44265         * lib/sys_stat.in.h (mknod): Declare replacement.
44266         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44267         Document it.
44268         * doc/posix-functions/mknod.texi (mknod): Likewise.
44269         * modules/mknod-tests: New test.
44270         * tests/test-mknod.c: Likewise.
44271
44272         mkfifo: new module
44273         * modules/mkfifo: New file.
44274         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44275         * lib/mkfifo.c (mkfifo): Likewise.
44276         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44277         defaults.
44278         * modules/sys_stat (Makefile.am): Substitute them.
44279         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44280         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44281         Document it.
44282         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44283         * modules/mkfifo-tests: New test.
44284         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44285         from test-mkfifoat.c.
44286         * tests/test-mkfifo.c: New file.
44287
44288         readlink: detect FreeBSD bug
44289         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44290         slash on symlink.
44291         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44292         * tests/test-readlink.h (test_readlink): Enhance test.
44293
44294         symlink: detect FreeBSD bug
44295         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44296         slash on symlink.
44297         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44298         * tests/test-symlink.h (test_symlink): Enhance test.
44299
44300 2009-11-10  Eric Blake  <ebb9@byu.net>
44301
44302         link: detect FreeBSD bug
44303         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44304         symlink.
44305         * doc/posix-functions/link.texi (link): Document the bug.
44306         * tests/test-link.h (test_link): Enhance test.
44307         * tests/test-linkat.c (main): Update caller.
44308
44309         unlink, remove: detect FreeBSD bug
44310         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44311         slash on symlink.
44312         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44313         * doc/posix-functions/remove.texi (remove): Likewise.
44314         * tests/test-unlink.h (test_unlink): Enhance test.
44315         * tests/test-remove.c (main): Likewise.
44316
44317 2009-11-09  Eric Blake  <ebb9@byu.net>
44318
44319         rename: detect FreeBSD bug
44320         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44321         slash on symlink.
44322         * modules/renameat-tests (Depends-on): Add filenamecat.
44323         * tests/test-rename.h (test_rename): Allow one more errno.
44324         * tests/test-renameat.c (main): Likewise.
44325         * doc/posix-functions/rename.texi (rename): Document the bug.
44326
44327         open: detect FreeBSD bug
44328         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44329         symlink.
44330         * doc/posix-functions/open.texi (open): Document the bug.
44331         * doc/posix-functions/utimes.texi (utimes): Likewise.
44332         * tests/test-open.h (test_open): Add parameters, and test symlink
44333         handling.
44334         * tests/test-open.c (main): Adjust caller.
44335         * tests/test-fcntl-safer.c (main): Likewise.
44336         * modules/open-tests (Depends-on): Add stdbool, symlink.
44337         * modules/fcntl-safer-tests (Depends-on): Likewise.
44338         * tests/test-openat.c (main): Add test-open tests.
44339
44340         stat: detect FreeBSD bug
44341         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44342         symlink.
44343         * doc/posix-functions/stat.texi (stat): Document the bug.
44344         * tests/test-stat.h (test_stat_func): Add argument.
44345         * tests/test-stat.c (main): Adjust caller.
44346         * tests/test-fstatat.c (main): Likewise.
44347         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44348         Reported by Jim Meyering.
44349
44350 2009-11-09  James Youngman  <jay@gnu.org>
44351
44352         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44353         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44354
44355 2009-11-08  Jim Meyering  <meyering@redhat.com>
44356
44357         utimens: remove invalid futimesat call
44358         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44359         It used the file descriptor of the target file as the DIR_FD
44360         parameter and NULL as the file name.  That caused failure with
44361         errno == EFAULT on FreeBSD-8.0-rc2
44362
44363 2009-11-07  Eric Blake  <ebb9@byu.net>
44364
44365         fflush, freadseek: use fseeko, not fseek
44366         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44367         (clear_ungetc_buffer): Avoid potential problems on large files.
44368         * lib/freadseek.c (freadseek): Likewise.
44369         * modules/freadseek (Depends-on): Add fseeko.
44370         * modules/fseek (configure.ac): Set a witness.
44371         * tests/test-fflush.c (main): Use fseeko.
44372         * tests/test-fpurge.c (fseek): Disable link warning.
44373         * tests/test-freadable.c (fseek): Likewise.
44374         * tests/test-freading.c (fseek): Likewise.
44375         * tests/test-fseeko.c (fseek): Likewise.
44376         * tests/test-ftell.c (fseek): Likewise.
44377         * tests/test-ftello.c (fseek): Likewise.
44378         * tests/test-fwritable.c (fseek): Likewise.
44379         * tests/test-fwriting.c (fseek): Likewise.
44380
44381 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44382
44383         * modules/memchr (Depends-on): Drop getpagesize dependency.
44384
44385 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44386
44387         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44388         Reported by Ludovic Courtès.
44389         * build-aux/pmccabe2html: Improve example usage.
44390         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44391
44392 2009-11-06  Jim Meyering  <meyering@redhat.com>
44393
44394         do-release-commit-and-tag: New module.
44395         Automate the release-commit and tag process.
44396         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44397         * modules/do-release-commit-and-tag: New file.
44398         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44399
44400 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44401
44402         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44403         because test-select.c uses inet_pton.
44404
44405 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44406
44407         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44408         GETADDRINFO_LIB.  Bump serial number.
44409         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44410         Suggested by Eric Blake <ebb9@byu.net>.
44411
44412 2009-11-05  Eric Blake  <ebb9@byu.net>
44413
44414         strtod: detect darwin bug
44415         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44416         Reported by Leo Davis.
44417
44418         freopen-safer: new module
44419         * modules/freopen-safer: New module.
44420         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44421         * lib/freopen-safer.c (freopen_safer): New file.
44422         * lib/stdio-safer.h (freopen_safer): New declaration.
44423         * lib/stdio--.h (freopen): New override.
44424         * MODULES.html.sh (File stream based Input/Output): Mention it.
44425         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44426         freopen-safer module.
44427         * doc/posix-functions/stderr.texi (stderr): Likewise.
44428         * doc/posix-functions/stdin.texi (stdin): Likewise.
44429         * doc/posix-functions/stdout.texi (stdout): Likewise.
44430         * modules/freopen-safer-tests: New test.
44431         * tests/test-reopen-safer.c: New file.
44432
44433 2009-11-05  Jim Meyering  <meyering@redhat.com>
44434
44435         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44436         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44437
44438 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44439
44440         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44441
44442 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44443
44444         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44445
44446 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44447
44448         Fix link error.
44449         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44450         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44451
44452 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44453
44454         * tests/test-func.c: Also test value of __func__.
44455
44456 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44457
44458         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44459         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44460
44461 2009-11-05  Bruno Haible  <bruno@clisp.org>
44462
44463         Fix link error.
44464         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44465         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44466         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44467
44468 2009-11-05  Bruno Haible  <bruno@clisp.org>
44469
44470         Tests for module 'inet_pton'.
44471         * modules/inet_pton-tests: New file.
44472         * tests/test-inet_pton.c: New file.
44473
44474 2009-11-05  Bruno Haible  <bruno@clisp.org>
44475
44476         Tests for module 'inet_ntop'.
44477         * modules/inet_ntop-tests: New file.
44478         * tests/test-inet_ntop.c: New file.
44479
44480 2009-11-04  Eric Blake  <ebb9@byu.net>
44481
44482         stdlib-safer: wrap all mkstemp variants
44483         * modules/mkostemp (configure.ac): Set witness.
44484         * modules/mkostemps (configure.ac): Likewise.
44485         * modules/mkstemps (configure.ac): Likewise.
44486         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44487         (mkstemps_safer): Wrap more functions.
44488         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44489         wrapping.
44490         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44491         (mkstemps_safer): Implement the wrappers.
44492
44493         mkstemps, mkostemps: new modules
44494         * modules/mkostemps: New module.
44495         * modules/mkstemps: Likewise.
44496         * lib/mkostemps.c (mkostemps): New file.
44497         * lib/mkstemps.c (mkstemps): Likewise.
44498         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44499         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44501         * modules/stdlib (Makefile.am): Substitute them.
44502         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44503         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44504         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44505         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44506         * MODULES.html.sh (File system functions): Mention them.
44507
44508         tempname: resync from glibc
44509         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44510         same values for __GT_FILE as glibc.  Abort even when assertions
44511         are disabled.
44512         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44513         match its value otherwise.  Allow idempotent inclusion.
44514         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44515         * lib/mkostemp.c (mkostemp): Likewise.
44516         * lib/mkstemp.c (mkstemp): Likewise.
44517         * lib/tmpfile.c (tmpfile): Likewise.
44518         * NEWS: Document this.
44519
44520         utimens: fix use of futimens on older Linux
44521         * lib/utimens.c (fdutimens): Use updated, rather than original,
44522         timespec to avoid bug in older Linux kernel.
44523         Reported by Simon Josefsson.
44524
44525 2009-11-04  Bruno Haible  <bruno@clisp.org>
44526
44527         Make num_processors more flexible and consistent.
44528         * lib/nproc.h (enum nproc_query): New type.
44529         (num_processors): Add a 'query' argument.
44530         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44531         (num_processors): Add a 'query' argument. Test the value of the
44532         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44533         mingw, count the number of CPUs available for the current process.
44534         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44535         Check for sched_getaffinity and sched_getaffinity_np.
44536         * modules/nproc (Depends-on): Add c-ctype, extensions.
44537         * NEWS: Mention the change.
44538
44539 2009-11-03  Bruno Haible  <bruno@clisp.org>
44540
44541         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44542
44543 2009-11-03  Jim Meyering  <meyering@redhat.com>
44544
44545         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44546         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44547         if it is defined.
44548
44549 2009-11-02  Eric Blake  <ebb9@byu.net>
44550
44551         mktime, timegm: share common declaration
44552         * lib/mktime-internal.h: New file.
44553         * lib/mktime.c: Use it rather than open-coding a declaration.
44554         * lib/timegm.c: Likewise.
44555         * modules/mktime (Files): Ship it.
44556         * modules/timegm (Files): Likewise.
44557         Suggested by Bruno Haible.
44558
44559         test-update-copyright: update test to match script changes
44560         * tests/test-update-copyright.sh: Avoid hard-coding perl
44561         location.  Don't update *.bak created by earlier runs.
44562
44563 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44564             Simon Josefsson  <simon@josefsson.org>
44565             Bruno Haible  <bruno@clisp.org>
44566
44567         Fix link error on Solaris 8.
44568         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44569         also in libnsl. Define also INET_PTON_LIB.
44570         * modules/inet_pton (Link): New section.
44571
44572 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44573             Bruno Haible  <bruno@clisp.org>
44574
44575         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44576         * modules/inet_ntop (Link): New section.
44577         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44578
44579 2009-11-02  Eric Blake  <ebb9@byu.net>
44580
44581         maint: avoid compiler warnings in m4 macros
44582         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44583         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44584
44585 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44586
44587         * m4/pmccabe2html.m4: Remove file.
44588         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44589         function.  Change maintainer.
44590         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44591         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44592         Courtès).
44593
44594 2009-10-31  Eric Blake  <ebb9@byu.net>
44595
44596         fseeko: fix m4 regression
44597         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44598         regression from 2009-10-27.
44599         Reported by Ralf Wildenhues.
44600
44601 2009-10-31  Jim Meyering  <meyering@redhat.com>
44602
44603         inttostr: aesthetics and improved (compile-time) safety
44604         Define inttype_is_signed rather than inttype_is_unsigned,
44605         since the sole use is via "#if inttype_is_signed".
44606         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44607         inttype_is_unsigned.
44608         * lib/offtostr.c (inttype_is_signed): Likewise.
44609         * lib/uinttostr.c (inttype_is_signed): Likewise.
44610         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44611         * lib/inttostr.c (inttostr): Use verify to cross-check the
44612         inttype_is_signed value and the signedness of the actual type.
44613         * modules/inttostr (Depends-on): Add verify.
44614
44615 2009-10-30  Eric Blake  <ebb9@byu.net>
44616
44617         build: avoid compiler warnings
44618         * lib/fchmodat.c (lchmod): Mark unused variables.
44619         * lib/getopt.c (_getopt_initialize): Likewise.
44620         * lib/mktime.c (__mktime_internal): Provide prototype.
44621         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44622         older gcc that do not understand #pragma GCC diagnostic.
44623         * lib/uinttostr.c (inttype_is_unsigned): Define.
44624         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44625
44626 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44627
44628         stat: fix compilation on AIX
44629         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44630         only see struct stat64.
44631
44632 2009-10-30  Eric Blake  <ebb9@byu.net>
44633
44634         exclude: make more robust
44635         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44636         rather than masking a coding bug.
44637         Suggested by Bruno Haible.
44638
44639 2009-10-30  Jim Meyering  <meyering@redhat.com>
44640
44641         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44642         Rather than putting #!/usr/bin/perl on the first line,
44643         start with a variant of what's recommended by "man perlrun" that
44644         invokes the first "perl" program from your shell's search path.
44645         * build-aux/gitlog-to-changelog: Replace #!... as above.
44646         Add a "Local Variables" perl mode setting.
44647         Prompted by a patch from Ludovic Courtès.
44648         Improved by Eric Blake.
44649         * build-aux/useless-if-before-free: Likewise.
44650         * build-aux/announce-gen: Likewise.
44651         * build-aux/update-copyright: Likewise.
44652
44653 2009-10-29  Eric Blake  <ebb9@byu.net>
44654
44655         filenamecat-lgpl: adjust clients
44656         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44657         filenamecat.
44658         * modules/renameat (Depends-on): Likewise.
44659
44660         filenamecat: split into filenamecat-lgpl
44661         * modules/filenamecat-lgpl: New module.
44662         * modules/filenamecat (Files): Move library-safe files into
44663         filenamecat-lgpl.
44664         (Depends-on): Add filenamecat-lgpl.
44665         (configure.ac): Declare witness.
44666         * lib/filenamecat.h (file_name_concat): Only declare when using
44667         GPL module.
44668         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44669         Move...
44670         * lib/filenamecat-lgpl.c: ...into new file.
44671         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44672         (gl_FILE_NAME_CONCAT): Use it.
44673         * MODULES.html.sh (File system functions): Mention new module.
44674
44675         argp: avoid memory leak
44676         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44677         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44678         base_name, since the latter malloc()s and can call exit().
44679         Leak introduced 2006-07-03.
44680
44681         dirname-lgpl: adjust clients that don't need full dirname
44682         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44683         * modules/filenamecat (Depends-on): Likewise.
44684         * modules/linkat (Depends-on): Likewise.
44685         * modules/mkancesdirs (Depends-on): Likewise.
44686         * modules/mkdir (Depends-on): Likewise.
44687         * modules/openat (Depends-on): Likewise.
44688         * modules/savewd (Depends-on): Likewise.
44689         * modules/rename (Depends-on): Likewise.
44690         (License): Relax license.
44691         * modules/mkdir-tests (Depends-on): Drop progname.
44692         (Makefile.am): Delete unneeded LDADD.
44693         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44694
44695         dirname: split into dirname-lgpl
44696         * modules/dirname-lgpl: New module.
44697         * modules/dirname (Files): Move library-safe files into
44698         dirname-lgpl.
44699         (Depends-on): Add dirname-lgpl.
44700         (configure.ac): Declare witness.
44701         * modules/double-slash-root (License): Relax license.
44702         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44703         module.
44704         * lib/dirname.c (dir_len, mdir_name): Move...
44705         * lib/dirname-lgpl.c: ...into new file.
44706         * lib/basename.c (last_component, base_len): Move...
44707         * lib/basename-lgpl.c: ...into new file.
44708         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44709         (gl_DIRNAME): Use it.
44710         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44711         Mention new module.
44712         * modules/dirname-tests (Depends-on): Add progname.
44713         * tests/test-dirname.c (program_name): Delete.
44714
44715         mkdir: make safe for libraries
44716         * modules/mkdir (Depends-on): Drop xalloc.
44717         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44718         exit.
44719
44720         tests: avoid some compiler warnings
44721         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44722         literals.
44723         * tests/test-memchr.c (main): Avoid type mismatch.
44724         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44725         * tests/test-base64.c (main): Likewise.
44726         * tests/test-getdelim.c (main): Likewise.
44727         * tests/test-gethostname.c (main): Likewise.
44728         * tests/test-getline.c (main): Likewise.
44729         * tests/test-netinet_in.c (main): Likewise.
44730         * tests/test-select.c (open_server_socket, main): Likewise.
44731         * tests/test-select-stdin.c (main): Likewise.
44732         * tests/test-sockets.c (main): Likewise.
44733         * tests/test-strsignal.c (main): Likewise.
44734         * tests/test-sys_select.c (main): Likewise.
44735         * tests/test-sys_socket.c (main): Likewise.
44736         * tests/test-u64.c (main): Likewise.
44737         * tests/test-xfprintf-posix.c (main): Likewise.
44738         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44739
44740         sockets: avoid compiler warning
44741         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44742
44743         maint: detect usage(1) and other suspicious exits
44744         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44745
44746 2009-10-29  Jim Meyering  <meyering@redhat.com>
44747
44748         timespec: long-to-int truncation could make timespec_cmp malfunction
44749         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44750         a multiple of 2^32 nanoseconds as no difference.
44751
44752 2009-10-28  Jim Meyering  <meyering@redhat.com>
44753
44754         fprintftime: wrap macro code argument in "do {...} while(0)"
44755         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44756         cpy macro must be a statement that can be followed by a semicolon.
44757         Now that the else clause contains a comment and is hence longer
44758         than one line, I require curly braces.  That in turn requires
44759         that we wrap this code block in the standard do...while(0).
44760
44761         fprintftime: remove stray semicolon from previous change
44762         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44763
44764         fprintftime: avoid a warning about ignored fwrite return value
44765         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44766         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44767         that is unsafe.
44768         * modules/fprintftime (Depends-on): Add ignore-value.
44769
44770         exclude: avoid an unwarranted warning
44771         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44772
44773 2009-10-27  Eric Blake  <ebb9@byu.net>
44774
44775         fseek: avoid compilation failure when fflush is replaced
44776         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44777         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44778         module is in use.
44779         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44780         module is not in use; since REPLACE_FSEEK worked otherwise.
44781         (GNULIB_FTELLO): Likewise for ftell.
44782         Reported by Ian Beckwith and others.
44783
44784 2009-10-27  Bruno Haible  <bruno@clisp.org>
44785
44786         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44787         Reported by Jim Meyering.
44788
44789 2009-10-27  Jim Meyering  <jim@meyering.net>
44790             Bruno Haible  <bruno@clisp.org>
44791
44792         Avoid warning despite dropping the return value of fwrite.
44793         * lib/unicodeio.c: Include ignore-value.h.
44794         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44795         * modules/unicodeio (Depends-on): Add ignore-value.
44796
44797 2009-10-26  Eric Blake  <ebb9@byu.net>
44798
44799         areadlinkat: fix fallback path
44800         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44801         pointer and zero.
44802
44803 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44804
44805         Use a better IO block size for modern systems
44806         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44807         * lib/md2.c: Likewise.
44808         * lib/md4.c: Likewise.
44809         * lib/md5.c: Likewise.
44810         * lib/sha1.c: Likewise.
44811         * lib/sha256.c: Likewise.
44812         * lib/sha512.c: Likewise.
44813
44814 2009-10-22  Eric Blake  <ebb9@byu.net>
44815
44816         tests: avoid several compiler warnings
44817         * tests/test-getcwd.c (main): Avoid buffer underflow.
44818         * tests/test-getdate.c (main): String literals are not safe with
44819         putenv, so use setenv.  Declare unused argument.
44820         * modules/getdate-tests (Depends-on): Add setenv.
44821         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44822         problems with string literals in char *.
44823         * tests/test-hash.c (main): Avoid shadowing declaration.
44824         (insert_new): Treat string literals as char const *.
44825         * tests/test-getopt.h (test_getopt): Likewise.
44826         (getopt_loop): Alter types to minimize casting elsewhere.
44827         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44828         (test_getopt_long_posix): Likewise.
44829         (do_getopt_long): Add wrapper to minimize casting.
44830         * tests/test-atexit.c (clear_temp_file): Use void.
44831         * tests/test-areadlink-with-size.c (main): Declare unused
44832         arguments.
44833         * tests/test-areadlink.c (main): Likewise.
44834         * tests/test-areadlinkat-with-size.c (main): Likewise.
44835         * tests/test-areadlinkat.c (main): Likewise.
44836         * tests/test-canonicalize-lgpl.c (main): Likewise.
44837         * tests/test-canonicalize.c (main): Likewise.
44838         * tests/test-dirent-safer.c (main): Likewise.
44839         * tests/test-dirname.c (main): Likewise.
44840         * tests/test-dup2.c (main): Likewise.
44841         * tests/test-fchdir.c (main): Likewise.
44842         * tests/test-fcntl-h.c (main): Likewise.
44843         * tests/test-fcntl-safer.c (main): Likewise.
44844         * tests/test-fdopendir.c (main): Likewise.
44845         * tests/test-fdutimensat.c (main): Likewise.
44846         * tests/test-fflush.c (main): Likewise.
44847         * tests/test-filenamecat.c (main): Likewise.
44848         * tests/test-filevercmp.c (main): Likewise.
44849         * tests/test-fopen-safer.c (main): Likewise.
44850         * tests/test-fopen.c (main): Likewise.
44851         * tests/test-fpending.c (main): Likewise.
44852         * tests/test-fpurge.c (main): Likewise.
44853         * tests/test-freading.c (main): Likewise.
44854         * tests/test-fstatat.c (main): Likewise.
44855         * tests/test-fsync.c (main): Likewise.
44856         * tests/test-futimens.c (main): Likewise.
44857         * tests/test-getndelim2.c (main): Likewise.
44858         * tests/test-gettimeofday.c (main): Likewise.
44859         * tests/test-getopt.c (main): Likewise.
44860         * tests/test-i-ring.c (main): Likewise.
44861         * tests/test-inttypes.c (main): Likewise.
44862         * tests/test-link.c (main): Likewise.
44863         * tests/test-lstat.c (main): Likewise.
44864         * tests/test-math.c (main): Likewise.
44865         * tests/test-md5.c (main): Likewise.
44866         * tests/test-memchr2.c (main): Likewise.
44867         * tests/test-memrchr.c (main): Likewise.
44868         * tests/test-mkdir.c (main): Likewise.
44869         * tests/test-mkdirat.c (main): Likewise.
44870         * tests/test-mkfifoat.c (main): Likewise.
44871         * tests/test-open.c (main): Likewise.
44872         * tests/test-openat-safer.c (main): Likewise.
44873         * tests/test-openat.c (main): Likewise.
44874         * tests/test-quotearg.c (main): Likewise.
44875         * tests/test-rawmemchr.c (main): Likewise.
44876         * tests/test-readlink.c (main): Likewise.
44877         * tests/test-remove.c (main): Likewise.
44878         * tests/test-rename.c (main): Likewise.
44879         * tests/test-renameat.c (main): Likewise.
44880         * tests/test-rmdir.c (main): Likewise.
44881         * tests/test-sha1.c (main): Likewise.
44882         * tests/test-signal.c (main): Likewise.
44883         * tests/test-sigaction.c (main): Likewise.
44884         * tests/test-stat.c (main): Likewise.
44885         * tests/test-stat-time.c (main): Likewise.
44886         * tests/test-stddef.c (main): Likewise.
44887         * tests/test-stdint.c (main): Likewise.
44888         * tests/test-stdio.c (main): Likewise.
44889         * tests/test-stdlib.c (main): Likewise.
44890         * tests/test-strchrnul.c (main): Likewise.
44891         * tests/test-strerror.c (main): Likewise.
44892         * tests/test-string.c (main): Likewise.
44893         * tests/test-strtod.c (main): Likewise.
44894         * tests/test-strverscmp.c (main): Likewise.
44895         * tests/test-symlink.c (main): Likewise.
44896         * tests/test-symlinkat.c (main): Likewise.
44897         * tests/test-sys_stat.c (main): Likewise.
44898         * tests/test-sys_time.c (main): Likewise.
44899         * tests/test-time.c (main): Likewise.
44900         * tests/test-unistd.c (main): Likewise.
44901         * tests/test-unlink.c (main): Likewise.
44902         * tests/test-unlinkat.c (main): Likewise.
44903         * tests/test-utimens.c (main): Likewise.
44904         * tests/test-utimensat.c (main): Likewise.
44905         * tests/test-version-etc.c (main): Likewise.
44906         * tests/test-wchar.c (main): Likewise.
44907         * tests/test-wctype.c (main): Likewise.
44908         * tests/test-xprintf-posix.c (main): Likewise.
44909         * tests/test-posixtm.c (main): Likewise.
44910         (STREQ): Delete unused macro.
44911         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44912         shadowed variables.
44913         * tests/test-memchr.c (main): Likewise.
44914
44915 2009-10-21  Eric Blake  <ebb9@byu.net>
44916
44917         areadlinkat: avoid failure on older glibc
44918         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44919         rather than mis-comparing 0 against FUNC_RESULT of char*.
44920
44921 2009-10-21  Bruno Haible  <bruno@clisp.org>
44922
44923         * modules/stpncpy (License): Relicense under LGPLv2+.
44924         Reported by David Lutterkort <lutter@redhat.com>.
44925
44926 2009-10-20  Eric Blake  <ebb9@byu.net>
44927
44928         utimensat: work around Solaris 9 bug
44929         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44930         has trailing slash bugs.
44931         * tests/test-lutimens.h (test_lutimens): Enhance test.
44932         * tests/test-utimens.h (test_utimens): Likewise.
44933         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44934         * doc/posix-functions/utimes.texi (utimes): Likewise.
44935         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44936         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44937         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44938         * doc/posix-functions/futimens.texi (futimens): Likewise.
44939
44940         fdutimensat: new module
44941         * modules/fdutimensat: New file.
44942         * lib/fdutimensat.c (fdutimensat): Likewise.
44943         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44944         * MODULES.html.sh (File system functions): Mention module.
44945         * modules/fdutimensat-tests: New test.
44946         * tests/test-fdutimensat.c: Likewise.
44947
44948         doc: regenerate INSTALL
44949         * doc/INSTALL: Reflect recent autoconf update.
44950         * doc/INSTALL.ISO: Likewise.
44951         * doc/INSTALL.UTF-8: Likewise.
44952
44953 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44954
44955         acl: warn if ACL support is not detected
44956         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44957
44958 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44959
44960         * lib/nproc.h: Add extern "C" block for C++.
44961
44962 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44963             Bruno Haible  <bruno@clisp.org>
44964
44965         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44966         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44967         * doc/posix-functions/isalpha.texi: Likewise.
44968         * doc/posix-functions/isblank.texi: Likewise.
44969         * doc/posix-functions/iscntrl.texi: Likewise.
44970         * doc/posix-functions/isdigit.texi: Likewise.
44971         * doc/posix-functions/isgraph.texi: Likewise.
44972         * doc/posix-functions/islower.texi: Likewise.
44973         * doc/posix-functions/isprint.texi: Likewise.
44974         * doc/posix-functions/ispunct.texi: Likewise.
44975         * doc/posix-functions/isspace.texi: Likewise.
44976         * doc/posix-functions/isupper.texi: Likewise.
44977         * doc/posix-functions/isxdigit.texi: Likewise.
44978
44979 2009-10-18  Bruno Haible  <bruno@clisp.org>
44980
44981         Tests for module 'isblank'.
44982         * modules/isblank-tests: New file.
44983         * tests/test-isblank.c: New file.
44984
44985         New module 'isblank'.
44986         * lib/isblank.c: New file.
44987         * m4/isblank.m4: New file.
44988         * modules/isblank: New file.
44989         * doc/posix-functions/isblank.texi: Mention the new module.
44990
44991 2009-10-18  Bruno Haible  <bruno@clisp.org>
44992
44993         New module 'ctype'.
44994         * lib/ctype.in.h: New file.
44995         * m4/ctype.m4: New file.
44996         * modules/ctype: New file.
44997         * doc/posix-headers/ctype.texi: Mention the new module.
44998
44999 2009-10-18  Jim Meyering  <meyering@redhat.com>
45000
45001         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
45002         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
45003         right after its initialization, rather than farther down.
45004         Keeping these in close proximity makes it easier to ensure
45005         that each such variable is initialized.  E.g.,
45006
45007             LIB_CLOCK_GETTIME=
45008             AC_SUBST([LIB_CLOCK_GETTIME])
45009
45010         This change also increments these serial numbers.
45011         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
45012         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45014
45015 2009-10-18  Bruno Haible  <bruno@clisp.org>
45016
45017         Don't let environment variables perturb build.
45018         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
45019         (gl_PREREQ_GETHRXTIME): ... not here.
45020
45021 2009-10-18  Bruno Haible  <bruno@clisp.org>
45022
45023         Avoid symlink attack in localcharset module.
45024         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
45025         (O_NOFOLLOW): Define fallback.
45026         (get_charset_aliases): Don't open the file if it is a symbolic link.
45027         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
45028         gl_FCNTL_H.
45029         (gl_FCNTL_H): Require it.
45030         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
45031         * modules/localcharset (Files): Add m4/fcntl_h.m4.
45032         Reported by Fergal Glynn <fglynn@veracode.com>.
45033
45034 2009-10-18  Bruno Haible  <bruno@clisp.org>
45035
45036         Implement nproc for mingw.
45037         * lib/nproc.c: Include <windows.h>
45038         (num_processors): On native Windows platforms, try GetSystemInfo.
45039
45040 2009-10-18  Bruno Haible  <bruno@clisp.org>
45041
45042         Implement nproc for IRIX.
45043         * lib/nproc.c: Include <sys/sysmp.h>.
45044         (num_processors): On IRIX systems, try sysmp.
45045         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
45046
45047 2009-10-18  Bruno Haible  <bruno@clisp.org>
45048
45049         Implement nproc for HP-UX.
45050         * lib/nproc.c: Include <sys/pstat.h>
45051         (num_processors): On HP-UX systems, try pstat_getdynamic.
45052         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
45053         pstat_getdynamic.
45054
45055 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
45056             Bruno Haible  <bruno@clisp.org>
45057
45058         Implement nproc for NetBSD, OpenBSD.
45059         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
45060         (ARRAY_SIZE): New macro.
45061         (num_processors): On BSD systems, try sysctl of HW_NCPU.
45062         * m4/nproc.m4: New file.
45063         * modules/nproc (Files): Add m4/nproc.m4.
45064         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
45065         (Makefile.am): Instead, augment lib_SOURCES.
45066
45067 2009-10-18  Bruno Haible  <bruno@clisp.org>
45068
45069         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
45070         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
45071         sys/param.h.
45072
45073 2009-10-16  Eric Blake  <ebb9@byu.net>
45074
45075         utimensat: new module
45076         * modules/utimensat: New file.
45077         * lib/utimensat.c (utimensat): Likewise.
45078         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45079         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45080         so we can work around Linux bugs.
45081         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45082         * modules/sys_stat (Makefile.am): Substitute them.
45083         * lib/sys_stat.in.h (utimensat): Declare it.
45084         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45085         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45086         * modules/utimensat-tests: New test.
45087         * tests/test-utimensat.c: Likewise.
45088
45089         utimens: let lutimens work on non-symlinks
45090         * lib/utimens.c (lutimens): Fall back to utimens rather than
45091         failing with ENOSYS, when file is not a symlink.
45092         (utimens): Reduce redirection.
45093         * tests/test-lutimens.h (test_lutimens): Update test to cover
45094         non-symlinks.
45095         * tests/test-utimens.h (test_utimens): Update test to cover
45096         symlinks.
45097         * tests/test-utimens.c (main): Update caller.
45098
45099         utimens: cache whether utimensat syscall works
45100         * lib/utimens.c (utimensat_works_really): New cache variable.
45101         (fdutimens, lutimens): Use it to avoid failing syscall.
45102
45103         test-stat-time, test-utimens: improve portability
45104         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45105         ext4 on alpha, and for cygwin.
45106         * tests/test-utimens-common.h: New file.
45107         (nap): Factor delays into single function.
45108         * tests/test-lutimens.h (test_lutimens): Use new header.
45109         * tests/test-futimens.h (test_futimens): Likewise.
45110         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45111         timestamps to occur from same machine, as was done previously for
45112         test_utimens.
45113         * modules/utimens-tests (Files): Ship new file.
45114         * modules/futimens-tests (Files): Likewise.
45115         Reported in part by Jim Meyering.
45116
45117         sys_stat: sort replacement declarations
45118         * lib/sys_stat.in.h: Sort declarations.
45119         * lib/futimens.c (futimens): Fix typo.
45120
45121 2009-10-15  Jim Meyering  <meyering@redhat.com>
45122
45123         don't let environment settings perturb build
45124         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45125         could cause a configure-time and/or build-time malfunction.
45126         Typically, a configure-time function-in-library test is performed
45127         via code like this:
45128
45129           LIB_VAR=
45130           AC_SUBST([LIB_VAR])
45131           prefix_saved_LIBS=$LIBS
45132             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45133                        [test "$ac_cv_search_FUNC" = "none required" ||
45134                         LIB_VAR=$ac_cv_search_FUNC])
45135           LIBS=$prefix_saved_LIBS
45136
45137         However, in each of the files affected by this change, the LIB_VAR=
45138         initialization was omitted.  Thus, when set in the environment, its
45139         value would propagate into generated Makefiles when FUNC is not found
45140         in LIB_NAME.
45141         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45142         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45144
45145 2009-10-14  Eric Blake  <ebb9@byu.net>
45146
45147         fchdir: avoid infinite recursion in mingw
45148         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45149         recursing.
45150
45151         test-stat-time: port to mingw
45152         * tests/test-stat-time.c (force_unlink): Return a value.
45153         (test_ctime) [W32]: Fix compilation error.
45154         (nap): Don't call usleep with too large an argument.  Use
45155         force_unlink.
45156         * doc/pastposix-functions/usleep.texi (usleep): Document the
45157         portability issue.
45158
45159 2009-10-13  Jim Meyering  <meyering@redhat.com>
45160
45161         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45162         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45163         * modules/pipe-filter-ii: Likewise.
45164         * modules/sys_socket-tests: Likewise.
45165         * modules/tsearch-tests: Likewise.
45166         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45167         (check): Depend on it.
45168
45169 2009-10-12  Eric Blake  <ebb9@byu.net>
45170
45171         utimens-tests: port to NFS file systems
45172         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45173         comparisons to avoid spurious failures from timestamp drift
45174         between NFS machines.
45175
45176 2009-10-12  Eric Blake  <ebb9@byu.net>
45177
45178         stat-time-tests: minor cleanups
45179         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45180         * tests/test-stat-time.c (nap): Separate assignment from call.
45181         Suggested by Paolo Bonzini and Bruno Haible.
45182
45183         sys_stat: guarantee struct timespec
45184         * lib/sys_stat.in.h (includes): Always include <time.h>
45185         * modules/sys_stat (Depends-on): Add time.
45186         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45187         mode_t permission values.
45188         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45189         get at subsecond timestamps.
45190
45191 2009-10-10  Eric Blake  <ebb9@byu.net>
45192
45193         futimens: new module
45194         * modules/futimens: New file.
45195         * lib/futimens.c (futimens): Likewise.
45196         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45197         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45198         we can work around Linux bugs.
45199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45200         * modules/sys_stat (Makefile.am): Substitute them.
45201         * lib/sys_stat.in.h (futimens): Declare it.
45202         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45203         * doc/posix-functions/futimens.texi (futimens): Likewise.
45204         * modules/futimens-tests: New test.
45205         * tests/test-futimens.c: Likewise.
45206
45207         utimens: introduce fdutimens
45208         * lib/utimens.h (fdutimens): New prototype.
45209         * lib/utimens.c (gl_futimens): Move guts...
45210         (fdutimens): ...to new interface.
45211         * tests/test-utimens.c (do_fdutimens): Use it.
45212
45213         utimens: add UTIME_NOW and UTIME_OMIT support
45214         * lib/utimens.c (validate_timespec, update_timespec): New helper
45215         functions.
45216         (gl_futimens, lutimens): Use them.
45217         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45218         stdbool, sys_stat.
45219         (Link): Mention resulting library dependency.
45220         * modules/utimecmp (Link): Likewise.
45221         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45222         (Makefile.am): Pick up library dependency.
45223         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45224         definition.
45225         * tests/test-sys_stat.c: Test the definitions.
45226         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45227         * NEWS: Document library dependency.
45228
45229         utimecmp: support symlink timestamps
45230         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45231         hashing when possible.  Use pathconf when available.
45232         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45233         * modules/utimecmp (Depends-on): Add lstat.
45234
45235         utimens: add lutimens interface
45236         * lib/utimens.c (lutimens): New function.
45237         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45238         * lib/utimens.h (lutimens): Declare new interface.
45239         * tests/test-utimens.c (main): Enhance test.
45240         * tests/test-lutimens.h (test_lutimens): New file.
45241         * modules/utimens-tests (Files): Distribute it.
45242         (Depends-on): Add symlink.
45243         (configure.ac): Check for usleep.
45244
45245         utimens: validate futimens usage
45246         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45247         fewer syscalls on failure later on.  Avoid compiler warning on
45248         mingw.
45249         * modules/utimens (Depends-on): Add dup2.
45250
45251         utimens: add test
45252         * modules/utimens-tests: New test.
45253         * tests/test-utimens.h: New file.
45254         * tests/test-futimens.h: Likewise.
45255         * tests/test-utimens.c: Likewise.
45256
45257         doc: mention timestamp portability issues
45258         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45259         instead.
45260         * doc/posix-functions/utime.texi (utime): Likewise.
45261         * doc/posix-functions/utimes.texi (utimes): Likewise.
45262         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45263         instead.
45264         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45265         module.
45266         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45267         Mention weakness with symlink timestamps.
45268         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45269         to utimensat/futimens instead.
45270         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45271
45272         test-dup2: enhance test
45273         * tests/test-dup2.c (main): Also check AT_FDCWD.
45274
45275         test-stat-time: avoid more spurious failures
45276         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45277         xfs; and avoid race if the two timestamps cross quantization edge.
45278
45279         relocatable: prefer 'file system' over 'filesystem'
45280         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45281         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45282         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45283         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45284         * lib/relocatable.c (compute_curr_prefix): Likewise.
45285
45286 2009-10-10  Jim Meyering  <meyering@redhat.com>
45287
45288         stat-time-tests: check for the usleep function
45289         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45290
45291 2009-10-10  Bruno Haible  <bruno@clisp.org>
45292
45293         * modules/xnanosleep: Put the Link section after the Include section.
45294
45295 2009-10-09  Eric Blake  <ebb9@byu.net>
45296
45297         dup2: work around FreeBSD 6.1 bug
45298         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45299         * doc/posix-functions/dup2.texi (dup2): Document it.
45300         Reported by Nelson H. F. Beebe and Jim Meyering.
45301
45302         test-stat-time: port to buggy NFS clients
45303         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45304         (test_ctime): Also skip test if mtime and ctime are skewed.
45305
45306         maint: prefer 'file system' over 'filesystem'
45307         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45308         * doc/posix-functions/lstat.texi (lstat): Likewise.
45309         * lib/file-has-acl.c (file_has_acl): Likewise.
45310         * lib/fwriteerror.c [TEST]: Likewise.
45311         * tests/test-areadlink.h (test_areadlink): Likewise.
45312         * tests/test-areadlinkat-with-size.c (main): Likewise.
45313         * tests/test-areadlinkat.c (main): Likewise.
45314         * tests/test-canonicalize-lgpl.c (main): Likewise.
45315         * tests/test-canonicalize.c (main): Likewise.
45316         * tests/test-fstatat.c (main): Likewise.
45317         * tests/test-linkat.c (main): Likewise.
45318         * tests/test-lstat.h (test_lstat_func): Likewise.
45319         * tests/test-mkdir.h (test_mkdir): Likewise.
45320         * tests/test-readlink.h (test_readlink): Likewise.
45321         * tests/test-remove.c (main): Likewise.
45322         * tests/test-rename.h (test_rename): Likewise.
45323         * tests/test-renameat.c (main): Likewise.
45324         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45325         * tests/test-symlink.h (test_symlink): Likewise.
45326         * tests/test-symlinkat.c (main): Likewise.
45327         * tests/test-unlink.h (test_unlink_func): Likewise.
45328         * tests/test-unlinkat.c (main): Likewise.
45329
45330         maint: make realtime library usage explicit
45331         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45332         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45333         * modules/settime (Link): Likewise.
45334         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45335
45336         test-stat-time: speed up execution
45337         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45338         warning on mingw.
45339         (nap): New helper function.
45340         (prepare_test): Use it to reduce sleep time.
45341         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45342         execution.
45343         * modules/stat-time-tests (configure.ac): Check for usleep.
45344
45345 2009-10-09  Jim Meyering  <meyering@redhat.com>
45346
45347         selinux-h: always use getfilecon wrappers
45348         * lib/getfilecon.c: New file.
45349         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45350         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45351         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45352         (fgetfilecon): Provide a stub.
45353         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45354         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45355         file unconditionally.
45356         When <selinux/selinux.h> is found, arrange to use wrappers.
45357         * modules/selinux-h (Files): Add getfilecon.c.
45358         (Makefile.am): Substitute include-next-related bits
45359         into the now-always-generated selinux/selinux.h file.
45360         * doc/glibc-functions/lgetfilecon.texi: New file.
45361         * doc/glibc-functions/fgetfilecon.texi: New file.
45362         * doc/glibc-functions/getfilecon.texi: New file.
45363         * doc/glibc-functions/getfilecon-desc.texi: New file.
45364         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45365         which to pull in the new files.
45366         * MODULES.html.sh (Misc): Add selinux-h.
45367
45368 2009-10-08  Jim Meyering  <meyering@redhat.com>
45369
45370         unistd: fix comment typo
45371         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45372
45373 2009-10-08  Eric Blake  <ebb9@byu.net>
45374
45375         areadlink: use SIZE_MAX consistently
45376         * modules/areadlink (Depends-on): Add stdint.
45377         * modules/areadlink-with-size (Depends-on): Likewise.
45378         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45379         gives NULL; drop sys/types, since unistd gives size_t; and add
45380         stdint for SIZE_MAX.
45381         (SIZE_MAX): Rely on headers.
45382         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45383         and add stdint.
45384         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45385         (SIZE_MAX): Likewise.
45386         (INITIAL_BUF_SIZE): Turn into enum.
45387         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45388
45389 2009-10-08  Jim Meyering  <meyering@redhat.com>
45390
45391         areadlinkat: avoid compilation failure
45392         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45393         Fix typo in comment.
45394
45395 2009-10-07  Eric Blake  <ebb9@byu.net>
45396
45397         areadlinkat-with-size: new module
45398         * modules/areadlinkat-with-size: New module.
45399         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45400         * lib/areadlink.h (areadlinkat): Declare it.
45401         * MODULES.html.sh (File system functions): Mention it.
45402         * modules/areadlinkat-with-size-tests: New test.
45403         * tests/test-areadlinkat-with-size.c: New file.
45404
45405         xreadlinkat: new module
45406         * modules/xreadlinkat: New module.
45407         * lib/xreadlinkat.c (xreadlinkat): New file.
45408         * lib/xreadlink.h (xreadlinkat): Declare it.
45409         * MODULES.html.sh (File system functions): Mention it.
45410
45411         areadlinkat: new module
45412         * lib/at-func.c (FUNC_FAIL): New define.
45413         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45414         * modules/areadlinkat: New module.
45415         * lib/linkat.c (areadlinkat): Move...
45416         * lib/areadlinkat.c (areadlinkat): ...to new file.
45417         * lib/areadlink.h (areadlinkat): Declare it.
45418         * modules/linkat (Depends-on): Add areadlinkat.
45419         * MODULES.html.sh (File system functions): Mention it.
45420         * modules/areadlinkat-tests: New test.
45421         * tests/test-areadlinkat.c: New file.
45422
45423         areadlink, areadlink-with-size: add tests
45424         * modules/areadlink-tests: New test.
45425         * modules/areadlink-with-size-tests: Likewise.
45426         * tests/test-areadlink.h: New file.
45427         * tests/test-areadlink.c: Likewise.
45428         * tests/test-areadlink-with-size.c: Likewise.
45429
45430         maint: minor cleanups
45431         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45432         _UNUSED_PARAMETER_ instead.
45433         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45434         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45435         * modules/linkat-tests (Files): Distribute test-link.h.
45436
45437         openat, utimens: whitespace cleanup
45438         * lib/openat.c: Prefer space throughout, rather than mix of 8
45439         spaces vs. tabs.
45440         * lib/at-func.c: Likewise.
45441         * lib/utimens.c: Likewise.
45442
45443         openat: avoid using wrong fd
45444         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45445         working directory chooses same fd.
45446         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45447
45448         mkdir, mkdirat: fix cygwin 1.5.x bug
45449         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45450         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45451         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45452         bug.
45453         (gl_PREREQ_MKDIR): Delete unused macro.
45454         * modules/mkdir (Files): Track file rename.
45455         (configure.ac): Update macro name.
45456         * modules/openat (Depends-on): Add mkdir.
45457         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45458
45459         mkdir, mkdirat: add tests
45460         * modules/mkdir-tests: New test.
45461         * tests/test-mkdir.h: New file.
45462         * tests/test-mkdir.c: Likewise.
45463         * tests/test-mkdirat.c: Likewise.
45464         * modules/openat-tests (Files): Add new files.
45465         (Makefile.am): Run new test.
45466
45467 2009-10-06  Eric Blake  <ebb9@byu.net>
45468
45469         doc: tweak *at function documentation
45470         * doc/posix-functions/faccessat.texi (faccessat): Mention
45471         known issue with replacement.
45472         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45473         * doc/posix-functions/linkat.texi (linkat): Likewise.
45474         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45475         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45476         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45477         * doc/posix-functions/renameat.texi (renameat): Likewise.
45478         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45479
45480         openat: fix GNU/Hurd bug in unlinkat
45481         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45482         broken.
45483         * doc/posix-functions/unlink.texi (unlink): Document this.
45484         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45485
45486         fdopendir: fix GNU/Hurd bug
45487         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45488         allowing non-directory fds.
45489         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45490         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45491         * modules/dirent (Makefile.am): Substitute it.
45492         * lib/dirent.in.h (fdopendir): Declare replacement.
45493         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45494         * tests/test-fdopendir.c (main): Test something other than
45495         /dev/null, since on Hurd that behaves like a directory.
45496
45497         test-symlink: port to GNU/Hurd
45498         * tests/test-symlink.h (test_symlink): Relax expected errno.
45499
45500         doc: tweak more cygwin information
45501         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45502         now compatible with glibc.
45503         * doc/posix-functions/getopt.texi (getopt): Likewise.
45504
45505         getopt-gnu: add another test
45506         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45507         guarantee behavior relied on by m4.
45508         * tests/test-getopt.c (main): Use it.
45509         * modules/getopt-posix-tests (Depends-on): Add setenv.
45510         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45511
45512         getopt: fix compilation on darwin
45513         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45514         include.
45515         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45516         Reported by Ludovic Courtès.
45517
45518 2009-10-06  Bruno Haible  <bruno@clisp.org>
45519
45520         * modules/size_max (Description): Discourage its use.
45521         Reported by Simon Josefsson.
45522
45523 2009-10-06  Jim Meyering  <meyering@redhat.com>
45524
45525         linkat: avoid compilation failure
45526         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45527
45528 2009-10-05  Eric Blake  <ebb9@byu.net>
45529
45530         linkat: support Linux 2.6.17
45531         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45532         linkat on Linux, but allow cache variable override.
45533         * lib/linkat.c (rpl_linkat): Define override.
45534         * modules/linkat (Depends-on): Add symlinkat.
45535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45536         * modules/unistd (Makefile.am): Substitute it.
45537         * lib/unistd.in.h (linkat): Declare replacement.
45538         Reported by Pádraig Brady.
45539
45540         quotearg: port test to systems with C.UTF-8 locale
45541         * tests/test-quotearg.c (struct result_strings): Add another
45542         member, differentiating between C.ASCII and C.UTF-8 handling.
45543         (compare_strings): Add parameter.
45544         (main): Adjust all callers.
45545
45546         getopt: avoid clash with FreeBSD _getopt_internal
45547         * lib/getopt.in.h (_getopt_internal): Override the name.
45548         * lib/getopt_int.h (includes): Pick up any overrides.
45549         Reported by Reuben Thomas.
45550
45551         hash: allow C89 compilation
45552         * lib/hash.c (check_tuning): Move declaration before statement.
45553         Reported by Reuben Thomas.
45554
45555 2009-10-05  Karl Berry  <karl@gnu.org>
45556
45557         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45558
45559 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45560             Bruno Haible  <bruno@clisp.org>
45561
45562         * lib/uname.c (uname): Use a table-driven algorithm to compute
45563         Windows NT versions.
45564
45565 2009-10-04  Bruno Haible  <bruno@clisp.org>
45566
45567         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45568         program_invocation_short_name.
45569         * modules/progname (configure.ac): Test for presence of
45570         program_invocation_short_name.
45571         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45572
45573 2009-10-04  Bruno Haible  <bruno@clisp.org>
45574
45575         * lib/progname.c (set_program_name): Fix comment.
45576         Reported by Jim Meyering.
45577
45578 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45579             Bruno Haible  <bruno@clisp.org>
45580
45581         * lib/uname.c: Include <string.h>.
45582         (uname): Do only one call to GetVersionEx in the common case.
45583
45584 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45585             Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45588         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45589         (uname): Add support for Windows CE and various non-x86 CPU types.
45590
45591 2009-10-03  Bruno Haible  <bruno@clisp.org>
45592
45593         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45594         invocation to tests/configure.ac.
45595         Reported by Ian Beckwith <ianb@erislabs.net>.
45596
45597 2009-10-02  Eric Blake  <ebb9@byu.net>
45598
45599         fchdir: avoid compiler warning
45600         * lib/fchdir.c (canonicalize_file_name)
45601         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45602
45603         test-open: support mingw errno values
45604         * tests/test-open.h (test_open): Relax test.
45605         * tests/test-fopen.h (test_fopen): Likewise.
45606         * tests/test-openat-safer.c (main): Likewise.
45607
45608         open: fix opening directory on mingw
45609         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45610
45611         test-open: on GNU/Hurd, /dev/null is a directory
45612         * tests/test-fopen.h (main): Rename...
45613         (test_fopen): ...to this.  Use a guaranteed non-directory when
45614         confirming open behavior on trailing slash.
45615         * tests/test-openat-safer.c (main): Likewise.
45616         * tests/test-open.h (main): Likewise....
45617         (test_open): ...to this.
45618         * tests/test-fopen.c (main): Adjust caller.
45619         * tests/test-fopen-safer.c (main): Likewise.
45620         * tests/test-open.c (main): Likewise.
45621         * tests/test-fcntl-safer.c (main): Likewise.
45622         Reported by Samuel Thibault.
45623
45624         rename, fchdir: don't ignore chdir failure
45625         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45626         * lib/rename.c (rpl_rename) [W32]: Likewise.
45627         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45628         an empty destination directory if source cannot be renamed,
45629         although there is still possibility for failure.
45630         * doc/posix-functions/rename.texi (rename): Document the race.
45631         Reported by Jim Meyering.
45632
45633         maint: cleanup whitespace in recent commits
45634         * lib/rename.c (rpl_rename): Remove tabs.
45635         * tests/test-link.h (test_link): Likewise.
45636         * lib/fchdir.c (get_name): Likewise.
45637         Reported by Jim Meyering.
45638
45639 2009-10-02  Ben Pfaff  <blp@gnu.org>
45640
45641         relocatable-prog-wrapper: Add missing dependency on
45642         double-slash-root.
45643         * modules/relocatable-prog-wrapper: Add dependency.
45644         Reported by Ian Beckwith <ianb@erislabs.net>.
45645
45646 2009-10-02  Eric Blake  <ebb9@byu.net>
45647
45648         renameat: fix Solaris bugs
45649         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45650         needed fixing.
45651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45652         * modules/stdio (Makefile.am): Substitute it.
45653         * lib/stdio.in.h (renameat): Declare replacement.
45654         * lib/renameat.c (rpl_renameat): Implement fix.
45655
45656         renameat: new module
45657         * modules/renameat: New file.
45658         * lib/renameat.c (renameat): Likewise.
45659         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45661         * modules/stdio (Makefile.am): Substitute them.
45662         * lib/stdio.in.h (renameat): Declare it.
45663         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45664         * doc/posix-functions/renameat.texi (renameat): Likewise.
45665         * modules/renameat-tests: New test.
45666         * tests/test-renameat.c: Likewise.
45667
45668         rename: fix mingw bugs
45669         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45670         directory overwrite bugs.
45671
45672         rename: fix another cygwin 1.5 bug
45673         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45674         checks.
45675         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45676         unnecessary cygwin workarounds.  Also work around bug with moving
45677         full directory onto an empty one.
45678         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45679
45680         rename-dest-slash: merge into rename module
45681         * modules/rename-dest-slash (Status): Mark obsolete.
45682         (Depends-on): Add rename.
45683         (Files): Let rename do it all.
45684         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45685         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45686         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45687         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45688         * lib/rename.c (rpl_rename): Update comments.
45689
45690         rename: fix cygwin 1.5.x bugs
45691         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45692         * lib/rename.c (rpl_rename): Work around them.
45693         * modules/rename (Depends-on): Add same-inode.
45694
45695         rename: fix Solaris 10 bug
45696         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45697         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45698         was the only bug.
45699
45700         rename: fix Solaris 9 bug
45701         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45702         on non-directory.  Avoid calling exit.
45703         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45704         strdup.
45705         * modules/rename-tests (Depends-on): Drop lstat.
45706         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45707         (gl_PREREQ_RENAME): Delete unused macro.
45708
45709         rename-dest-slash: fix NetBSD bug
45710         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45711         links.
45712         * modules/rename-dest-slash (Depends-on): Add same-inode.
45713
45714         rename-tests: new test, exposes several platform bugs
45715         * modules/rename-tests: New file.
45716         * tests/test-rename.h: Likewise.
45717         * tests/test-rename.c: Likewise.
45718         * doc/posix-functions/rename.texi (rename): Improve documentation,
45719         including bugs that will eventually be fixed in gnulib.
45720
45721 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45722
45723         * lib/uname.c: Include <stdlib.h>
45724         (uname): Assume version info is available.
45725
45726 2009-10-02  Jim Meyering  <meyering@redhat.com>
45727
45728         gnu-web-doc-update: correct --help output
45729         * build-aux/gnu-web-doc-update: Make --help output relevant.
45730
45731         gnu-web-doc-update: add standard options
45732         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45733
45734         gnu-web-doc-update: New module.
45735         Use this script to automatically update the on-line web documentation
45736         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45737         * modules/gnu-web-doc-update: New file, from coreutils.
45738         * build-aux/gnu-web-doc-update: New script.
45739
45740 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45741
45742         link: LoadLibrary is not needed.
45743         * lib/link.c: Use GetModuleHandle.
45744
45745 2009-10-01  Eric Blake  <ebb9@byu.net>
45746
45747         getopt: bump serial number
45748         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45749         change.
45750
45751         tests: tighten link, rmdir, and remove tests
45752         * tests/test-link.h (includes): No need to use <config.h> here.
45753         Clean up if directory hard link was created, otherwise test for
45754         trailing '.'.
45755         * tests/test-linkat.c (main): Simplify.
45756         * tests/test-remove.c (main): Enhance test for trailing '.'.
45757         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45758
45759 2009-10-01  Jim Meyering  <meyering@redhat.com>
45760
45761         maint.mk: requiring "make major" was annoying, for a "minor" release.
45762         What is intended is "stable", to contrast with alpha and beta,
45763         so require "make stable", not "make major".
45764         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45765         (get_tool_versions): Likewise.
45766         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45767
45768 2009-09-30  Ben Pfaff  <blp@gnu.org>
45769
45770         Fix broken build of replacement for Windows tmpfile().
45771         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45772         flags argument added along with the 'mkostemp' module.
45773
45774 2009-09-28  Bruno Haible  <bruno@clisp.org>
45775
45776         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45777         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45778         to 'remove_elt'.
45779         (gl_list_remove): Update.
45780         * lib/gl_list.c (gl_list_remove): Update.
45781         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45782         to 'remove_elt'.
45783         (gl_oset_remove): Update.
45784         * lib/gl_list.c (gl_oset_remove): Update.
45785         Reported by Eric Blake.
45786
45787 2009-09-28  Eric Blake  <ebb9@byu.net>
45788
45789         doc: mention yet more cygwin 1.7 status
45790         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45791         cygwin.
45792         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45793         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45794
45795         argp: fix test failure
45796         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45797         that are not upper-case.  Pass correct range to tolower.
45798
45799 2009-09-27  Jim Meyering  <meyering@redhat.com>
45800
45801         test-yesno: work around sparc-dash here-document infelicity
45802         Without this change, the literal \177 byte in a here document
45803         would make dash 0.5.5.1-3 access uninitialized memory.
45804         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45805         Instead, use a marker, "@", and filter through tr to create the desired
45806         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45807
45808 2009-09-27  Bruno Haible  <bruno@clisp.org>
45809
45810         Disable untested support for new flavours of ACLs on AIX.
45811         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45812         progress.
45813         * lib/set-mode-acl.c (qset_acl): Likewise.
45814
45815 2008-12-07  Bruno Haible  <bruno@clisp.org>
45816
45817         Add support for new flavours of ACLs on AIX. (Untested.)
45818         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45819         (file_has_acl): Add support for newer AIX.
45820         * lib/set-mode-acl.c (qset_acl): Likewise.
45821         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45822         Rainer Tammer <tammer@tammer.net>.
45823
45824 2009-09-26  Eric Blake  <ebb9@byu.net>
45825
45826         argp: fix compilation of getopt
45827         * lib/getopt.in.h (includes): Use different guard than glibc.
45828         Reported by Sergey Poznyakoff.
45829
45830         doc: mention more cygwin 1.7 status
45831         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45832         bug.
45833         * doc/posix-functions/execl.texi (execl): Likewise.
45834         * doc/posix-functions/execle.texi (execle): Likewise.
45835         * doc/posix-functions/execlp.texi (execlp): Likewise.
45836         * doc/posix-functions/execv.texi (execv): Likewise.
45837         * doc/posix-functions/execve.texi (execve): Likewise.
45838         * doc/posix-functions/execvp.texi (execvp): Likewise.
45839         * doc/glibc-functions/canonicalize_file_name.texi
45840         (canonicalize_file_name): Cygwin 1.7 now provides this.
45841         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45842         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45843         on AT_SYMLINK_NOFOLLOW.
45844
45845 2009-09-24  Eric Blake  <ebb9@byu.net>
45846
45847         test-linkat: make test more robust
45848         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45849
45850         getopt: fix inclusion guards for cygwin
45851         * modules/getopt-posix (Depends-on): Add include-next.
45852         (Makefile.am): Substitute more items in replacement header.
45853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45854         <getopt.h>.
45855         * lib/getopt.in.h (includes): Use split inclusion guard, and
45856         prefer <getopt.h> over include <unistd.h> when one is present.
45857         (option): Also override name of 'struct option'.
45858
45859         same-inode: revert prior change; it is not yet ready
45860         * NEWS: Undo mention of this change.
45861         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45862         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45863         * lib/cycle-check.c (cycle_check): Likewise.
45864         * lib/same.c (same_name): Likewise.
45865         * lib/at-func2.c (at_func2): Likewise.
45866
45867 2009-09-23  Eric Blake  <ebb9@byu.net>
45868
45869         linkat: new module
45870         * modules/linkat: New file.
45871         * lib/at-func2.c (at_func2): Likewise.
45872         * lib/linkat.c (linkat): Likewise.
45873         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45874         * lib/openat-priv.h (at_func2): Add declaration.
45875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45876         * modules/unistd (Makefile.am): Substitute them.
45877         * lib/unistd.in.h (linkat): Declare it.
45878         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45879         * doc/posix-functions/linkat.texi (linkat): Likewise.
45880         * doc/posix-functions/link.texi (link): Tweak wording.
45881         * tests/test-link.c (main): Move guts...
45882         * tests/test-link.h (test_link): ...into new file.
45883         * modules/linkat-tests: New test.
45884         * tests/test-linkat.c: Likewise.
45885         * modules/link-tests (Files): Ship new file.
45886         (Depends-on): Add stdbool.
45887
45888         dirname: add library-safe mdir_name
45889         * lib/dirname.h (mdir_name): New prototype.
45890         * lib/dirname.c (dir_name): Move guts...
45891         (mdir_name): ...to new function that avoids xalloc_die.
45892
45893         fchdir: another mingw fix
45894         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45895         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45896         on mingw (where it has not yet been ported), and make it optional
45897         elsewhere.
45898         (_gl_register_fd): Use it.
45899
45900         same-inode: make SAME_INODE tri-state, to port to mingw
45901         * NEWS: Mention this change.
45902         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45903         st_ino always being 0.
45904         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45905         * lib/cycle-check.c (cycle_check): Likewise.
45906         * lib/same.c (same_name): Likewise.
45907
45908         lstat: avoid mingw compilation error
45909         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45910         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45911         lstat ourselves.
45912         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45913         was adequate.
45914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45915         the checks for lstat.
45916         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45917
45918         link: fix test failure on Solaris 9
45919         * lib/link.c (rpl_link): Don't assume link will catch bogus
45920         trailing slash on source.
45921
45922         test-symlinkat: enhance test
45923         * tests/test-readlink.c (main): Move guts...
45924         * tests/test-readlink.h (test_readlink): ...into new file.
45925         * tests/test-symlink.c (main): Move guts...
45926         * tests/test-symlink.h (test_symlink): ...into new file.
45927         * tests/test-symlinkat.c (main): Use new files for further
45928         coverage.
45929         (do_symlink, do_readlink): New helper functions.
45930         * modules/symlink-tests (Files): Ship new file.
45931         (Depends-on): Add stdbool.
45932         * modules/readlink-tests (Files): Ship new file.
45933         (Depends-on): Add stdbool.
45934         * modules/symlinkat-tests (Files): Use new files.
45935
45936 2009-09-23  Eric Blake  <ebb9@byu.net>
45937
45938         readlink: document portability issue with symlink length
45939         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45940         systems have bogus st_size on symlinks, and mention the
45941         areadlink-with-size module.
45942         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45943         * doc/posix-functions/readlink.texi (readlink): Mention the
45944         areadlink module, and ERANGE failure.
45945         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45946         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45947
45948         readlink: fix Solaris 9 bug with trailing slash
45949         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45950         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45951         * doc/posix-functions/readlink.texi (readlink): Document this.
45952         * modules/readlink-tests: New test.
45953         * tests/test-readlink.c: Likewise.
45954
45955         readlink: fix cygwin 1.5.x bug with return type
45956         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45957         * lib/unistd.in.h (readlink): Use ssize_t.
45958         * lib/readlink.c (readlink): Likewise.
45959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45960         * modules/unistd (Makefile.am): Substitute it.
45961         * lib/unistd.in.h (readlink): Declare replacement.
45962         * doc/posix-functions/readlink.texi (readlink): Document this.
45963
45964         symlink: use throughout gnulib
45965         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45966         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45967         symlink is not used.
45968         * modules/symlinkat (Depends-on): Add symlink.
45969         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45970         * modules/canonicalize-tests (Depends-on): Likewise.
45971         * modules/lstat-tests (Depends-on): Likewise.
45972         * modules/openat-tests (Depends-on): Likewise.
45973         * modules/remove-tests (Depends-on): Likewise.
45974         * modules/rmdir-tests (Depends-on): Likewise.
45975         * modules/unlink-tests (Depends-on): Likewise.
45976         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45977         * tests/test-canonicalize.c (symlink): Likewise.
45978         * tests/test-fstatat.c (symlink): Likewise.
45979         * tests/test-lstat.c (symlink): Likewise.
45980         * tests/test-remove.c (symlink): Likewise.
45981         * tests/test-rmdir.c (symlink): Likewise.
45982         * tests/test-unlink.c (symlink): Likewise.
45983         * tests/test-unlinkat.c (symlink): Likewise.
45984
45985         symlink: new module, for Solaris 9 bug
45986         * modules/symlink: New file.
45987         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45988         * lib/symlink.c: Likewise.
45989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45990         * modules/unistd (Makefile.am): Substitute them.
45991         * lib/unistd.in.h (symlink): Declare replacement.
45992         * MODULES.html.sh (File system functions): Mention it.
45993         * doc/posix-functions/symlink.texi (symlink): Likewise.
45994         * modules/symlink-tests: New test.
45995         * tests/test-symlink.c: Likewise.
45996
45997 2009-09-23  Bruno Haible  <bruno@clisp.org>
45998
45999         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
46000         when needed.
46001         Test case: gnulib-tool --import --with-tests atexit inttypes.
46002         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
46003
46004 2009-09-23  Bruno Haible  <bruno@clisp.org>
46005
46006         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
46007         subcommand, not in a subshell.
46008
46009 2009-09-22  Eric Blake  <ebb9@byu.net>
46010
46011         unistd: sort replacement declarations
46012         * lib/unistd.in.h: Sort declarations.
46013
46014         open, openat: minor optimization
46015         * lib/open.c (open): If open succeeded, len is non-zero.
46016         * lib/openat.c (rpl_openat): Likewise.
46017
46018         link-follow: ensure correct result
46019         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
46020         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
46021         distinguish between possible failures.
46022
46023 2009-09-21  Eric Blake  <ebb9@byu.net>
46024
46025         fts: avoid compiler warning
46026         * lib/fts.c (dirent_inode_sort_may_be_useful)
46027         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
46028
46029 2009-09-19  Bruno Haible  <bruno@clisp.org>
46030
46031         * lib/progreloc.c (canonicalize_file_name): New declaration.
46032
46033 2009-09-19  Eric Blake  <ebb9@byu.net>
46034
46035         link: fix quoting
46036         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
46037
46038         openat: fix openat bugs on Solaris 9
46039         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
46040         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
46041         * modules/openat (Depends-on): Add open.
46042         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
46043         * modules/fcntl-h (Makefile.am): Substitute it.
46044         * lib/fcntl.in.h (openat): Declare replacement.
46045         * doc/posix-functions/openat.texi (openat): Document this.
46046
46047         openat: move fstatat and unlinkat into correct files
46048         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
46049         compiled.
46050         * lib/openat.c (fstatat, unlinkat): Move...
46051         * lib/fstatat.c (fstatat): ...into correct files.
46052         * lib/unlinkat.c (unlinkat): Likewise.
46053
46054         openat: fix unlinkat bugs on Solaris 9
46055         * lib/unlinkat.c (unlinkat): New file.
46056         * modules/openat (Depends-on): Add unlink.
46057         (Files): Distribute it.
46058         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
46059         trailing slash behavior is broken.
46060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46061         * modules/unistd (Makefile.am): Substitute it.
46062         * lib/unistd.in.h (unlinkat): Declare replacement.
46063         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
46064
46065         openat: fix fstatat bugs on Solaris 9
46066         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
46067         stat.
46068         * doc/posix-functions/fstatat.texi (fstatat): Document this.
46069
46070         test-unlinkat: enhance test, to expose Solaris 9 bug
46071         * tests/test-unlink.c (main): Factor guts...
46072         * tests/test-unlink.h (test_rmdir_func): ...into new file.
46073         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
46074         * tests/test-rmdir.c (main): Adjust caller.
46075         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46076         (unlinker): New helper function.
46077         (rmdirat): Enhance check.
46078         * modules/rmdir-tests (Depends-on): Add stdbool.
46079         * modules/unlink-tests (Depends-on): Likewise.
46080         (Files): Add test-unlink.h.
46081         * modules/openat-tests (Files): Likewise.
46082         (Depends-on): Add unlinkdir.
46083
46084         test-fstatat: new test, to expose Solaris 9 bugs
46085         * tests/test-stat.c (main): Factor guts...
46086         * tests/test-stat.h (test_stat_func): ...into new file.
46087         * tests/test-lstat.c (main): Factor guts...
46088         * tests/test-lstat.h (test_lstat_func): ...into new file.
46089         * tests/test-fstatat.c: New file.
46090         * modules/stat-tests (Files): Add test-stat.h.
46091         * modules/lstat-tests (Files): Add test-lstat.h.
46092         (Depends-on): Add stdbool.
46093         * modules/openat-tests (Depends-on): Add pathmax.
46094         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46095         (Makefile.am): Run new test.
46096
46097         remove: new module, for mingw and Solaris 9 bugs
46098         * modules/remove: New file.
46099         * lib/remove.c: Likewise.
46100         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46102         * modules/stdio (Makefile.am): Use them.
46103         * lib/stdio.in.h (remove): Declare replacement.
46104         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46105         * doc/posix-functions/remove.texi (remove): Likewise.
46106         * modules/remove-tests: New test.
46107         * tests/test-remove.c: Likewise.
46108
46109         unlink: new module, for Solaris 9 bug
46110         * modules/unlink: New file.
46111         * lib/unlink.c: Likewise.
46112         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46114         * modules/unistd (Makefile.am): Use them.
46115         * lib/unistd.in.h (stat): Declare replacement.
46116         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46117         * doc/posix-functions/unlink.texi (unlink): Likewise.
46118         * modules/unlink-tests: New test.
46119         * tests/test-unlink.c: Likewise.
46120
46121         lstat: fix Solaris 9 bug
46122         * lib/lstat.c (lstat): Also check for trailing slash on
46123         non-symlink, non-directories.  Use stat module to simplify logic.
46124         * doc/posix-functions/lstat.texi (lstat): Document it.
46125         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46126         (configure.ac): Check for symlink.
46127         * tests/test-lstat.c (main): Add more tests.
46128
46129         stat: add as dependency to other modules
46130         * modules/chown (Depends-on): Add stat.
46131         * modules/euidaccess (Depends-on): Likewise.
46132         * modules/fchdir (Depends-on): Likewise.
46133         * modules/isdir (Depends-on): Likewise.
46134         * modules/link (Depends-on): Likewise.
46135         * modules/lstat (Depends-on): Likewise.
46136         * modules/mkdir-p (Depends-on): Likewise.
46137         * modules/modechange (Depends-on): Likewise.
46138         * modules/open (Depends-on): Likewise.
46139         * modules/readlink (Depends-on): Likewise.
46140         * modules/same (Depends-on): Likewise.
46141
46142         stat: fix Solaris 9 bug
46143         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46144         slash.
46145         * lib/stat.c (rpl_stat): Work around it.
46146         * doc/posix-functions/stat.texi (stat): Update documentation.
46147
46148         stat: new module, for mingw bug
46149         * modules/stat: New file.
46150         * lib/stat.c: Likewise.
46151         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46152         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46153         * modules/sys_stat (Makefile.am): Use them.
46154         * lib/sys_stat.in.h (stat): Declare replacement.
46155         * lib/openat.c (fstatat): Deal with lstat and stat being function
46156         macros.
46157         * modules/openat (Depends-on): Add inline.
46158         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46159         * doc/posix-functions/stat.texi (stat): Likewise.
46160         * modules/stat-tests: New test.
46161         * tests/test-stat.c: Likewise.
46162
46163 2009-09-19  Jim Meyering  <meyering@redhat.com>
46164
46165         syntax-check: detect unnecessary inclusion of canonicalize.h
46166         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46167
46168 2009-09-19  Eric Blake  <ebb9@byu.net>
46169
46170         canonicalize-lgpl: adjust clients to use correct header
46171         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46172         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46173         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46174         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46175         * lib/progreloc.c (includes): Likewise.
46176
46177 2009-09-19  Jim Meyering  <meyering@redhat.com>
46178
46179         test-posixtm.c: correct a comment
46180         * tests/test-posixtm.c: Correct first-line comment.
46181         Spotted by Eric Blake.
46182
46183 2009-09-16  Jim Meyering  <meyering@redhat.com>
46184
46185         posixtm-tests: make T const-correct; add a test case
46186         * tests/test-posixtm.c (T): Declare const.
46187         Add a test for -(2^31+1).
46188         Remove useless can-succeed-only-in-2002 test.
46189
46190         posixtm-tests: adjust the sole failing test
46191         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46192         expected output matches what mktime now produces.  Cross-checked via
46193         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46194
46195         posixtm: move #ifdef'd tests into a new module
46196         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46197         * tests/test-posixtm.c: ... this new file.
46198         * modules/posixtm-tests: New module.
46199
46200 2009-09-19  Eric Blake  <ebb9@byu.net>
46201
46202         openat: simplify use of at-func.c
46203         * lib/at-func.c (includes): Include prerequisites here, to
46204         simplify requirements on client files.
46205         * lib/openat-priv.h: Add double-inclusion guard.
46206         * lib/faccessat.c (includes): Simplify.
46207         * lib/fchmodat.c (includes): Likewise.
46208         * lib/fchownat.c (includes): Likewise.
46209         * lib/mkdirat.c (includes): Likewise.
46210         * lib/mkfifoat.c (includes): Likewise.
46211         * lib/symlinkat.c (includes): Likewise.
46212
46213         openat: allow return of fd 0
46214         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46215         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46216         unistd-safer.
46217         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46218         <fcntl.h>; this module does not leak fds.
46219         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46220         must be allowed to return 0, leaving openat_safer to add the
46221         safety.
46222         (openat_permissive): Avoid writing to just-opened fd 2 if
46223         restoring the current directory fails.
46224         * lib/openat-die.c (openat_restore_fail): Add comment.
46225         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46226         (save_cwd): Guarantee safe fd, but without use of open_safer.
46227         * tests/test-openat.c: New test.
46228         * modules/openat-tests (Files, Makefile.am): Distribute and build
46229         new file.
46230
46231         relocatable-prog-wrapper: fix build
46232         * modules/relocatable-prog-wrapper (Files): Update name of
46233         canonicalize m4 file, broken on 2009-09-17.
46234         Reported by emad hajjar <aleppos@hotmail.com>.
46235
46236 2009-09-19  Bruno Haible  <bruno@clisp.org>
46237
46238         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46239         * lib/safe-alloc.c: Likewise.
46240         Reported by Ian Beckwith <ianb@erislabs.net>.
46241
46242 2009-09-18  Bruno Haible  <bruno@clisp.org>
46243
46244         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46245         Reported by <erobles@sensacd.com.mx>.
46246
46247 2009-09-17  Eric Blake  <ebb9@byu.net>
46248
46249         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46250         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46251         slashes when checking if last component is missing.
46252         * tests/test-canonicalize.c (main): Test this.
46253
46254         canonicalize, canonicalize-lgpl: honor // if distinct from /
46255         * modules/canonicalize (Files): Add double-slash-root.m4.
46256         * modules/canonicalize-lgpl (Files): Likewise.
46257         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46258         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46259         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46260         fallback definition.
46261         (canonicalize_filename_mode): Use it to protect //.
46262         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46263         (__realpath): Likewise.
46264         * tests/test-canonicalize.c (main): Test this.
46265         * tests/test-canonicalize-lgpl.c (main): Likewise.
46266         * modules/canonicalize-tests (Depends-on): Add same-inode.
46267         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46268
46269         canonicalize-lgpl: fix glibc bug with trailing slash
46270         * m4/canonicalize-lgpl.m4: Move contents...
46271         * m4/canonicalize.m4: ...here.
46272         (gl_CANONICALIZE_LGPL): Factor realpath check...
46273         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46274         glibc 2.3.5 bug, fixed 2005-04-27.
46275         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46276         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46277         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46278         * modules/canonicalize-lgpl (Files): Manage file rename.
46279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46280         * modules/stdlib (Makefile.am): Substitute witness.
46281         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46282         is needed.
46283         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46284         replacement is required.
46285         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46286         * doc/glibc-functions/canonicalize_file_name.texi
46287         (canonicalize_file_name): Document this.
46288         * doc/posix-functions/realpath.texi (realpath): Likewise.
46289
46290         canonicalize-lgpl: reject non-directory with trailing slash
46291         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46292         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46293         catches failures in glibc 2.3.5.
46294         * tests/test-canonicalize.c (main): Likewise.
46295
46296         canonicalize-lgpl: use native realpath if it works
46297         * lib/canonicalize-lgpl.c (realpath): Guard with
46298         FUNC_REALPATH_WORKS.
46299         * lib/stdlib.in.h (realpath): Make declaration optional based on
46300         HAVE_REALPATH.
46301         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46302         native realpath works.
46303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46304         * modules/stdlib (Makefile.am): Substitute witness.
46305
46306         canonicalize, canonicalize-lgpl: use <stdlib.h>
46307         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46308         (Include): Mention <stdlib.h>.
46309         (configure.ac): Mention functions we provide.
46310         * modules/canonicalize (configure.ac): Likewise.
46311         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46312         realpath if canonicalize_file_name is missing.
46313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46314         * modules/stdlib (Makefile.am): Substitute witnesses.
46315         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46316         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46317         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46318         * NEWS: Document this.
46319         * doc/glibc-functions/canonicalize_file_name.texi
46320         (canonicalize_file_name): Likewise.
46321         * doc/posix-functions/realpath.texi (realpath): Likewise.
46322         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46323
46324         test-canonicalize: consolidate into single C program
46325         * tests/test-canonicalize.sh: Delete; move setup into...
46326         * tests/test-canonicalize.c (main): ...the program, making it
46327         easier to run in debugger.  Add some tests.
46328         * modules/canonicalize-tests (Files): Remove unused file.
46329         (Depends-on): Add progname.
46330         (configure.ac, Makefile.am): Simplify.
46331
46332         test-canonicalize-lgpl: consolidate into single C program
46333         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46334         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46335         easier to run in debugger.  Add some tests.
46336         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46337         (configure.ac, Makefile.am): Simplify.
46338
46339         canonicalize: avoid resolvepath
46340         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46341         unnecessary checks.
46342         * lib/canonicalize.c (includes): Simplify.
46343         (canonicalize_file_name): Drop resolvepath implementation.
46344         * modules/canonicalize (Depends-on): Drop filenamecat.
46345
46346         canonicalize: don't lose errno
46347         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46348         over calls to free.
46349
46350         canonicalize: simplify errno handling
46351         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46352         assignment.
46353
46354         canonicalize, canonicalize-lgpl: update module dependencies
46355         * modules/canonicalize (Depends-on): Add extensions, lstat,
46356         pathmax, stdlib.
46357         (Files): Drop pathmax.h.
46358         (configure.ac): Adjust macro name.
46359         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46360         lstat, stdlib, sys_stat.
46361         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46362         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46363         extensions.
46364         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46365         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46366         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46367         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46368         declaration, if available.
46369         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46370         we can rely on the readlink module.
46371         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46372         (includes): Use <unistd.h> unconditionally.
46373
46374 2009-09-17  Eric Blake  <ebb9@byu.net>
46375
46376         maint: make Include sections of modules consistent
46377         * modules/alloca: Use only header name; no need to list #include.
46378         * modules/alloca-opt: Likewise.
46379         * modules/arpa_inet: Likewise.
46380         * modules/canon-host: Likewise.
46381         * modules/configmake: Likewise.
46382         * modules/dirent: Likewise.
46383         * modules/eealloc: Likewise.
46384         * modules/environ: Likewise.
46385         * modules/fchdir: Likewise.
46386         * modules/fcntl: Likewise.
46387         * modules/fcntl-h: Likewise.
46388         * modules/gethrxtime: Likewise.
46389         * modules/gettime: Likewise.
46390         * modules/ignore-value: Likewise.
46391         * modules/inet_ntop: Likewise.
46392         * modules/inet_pton: Likewise.
46393         * modules/inttypes: Likewise.
46394         * modules/isnand-nolibm: Likewise.
46395         * modules/isnanf-nolibm: Likewise.
46396         * modules/mbchar: Likewise.
46397         * modules/mbfile: Likewise.
46398         * modules/mbiter: Likewise.
46399         * modules/mbuiter: Likewise.
46400         * modules/netdb: Likewise.
46401         * modules/netinet_in: Likewise.
46402         * modules/nproc: Likewise.
46403         * modules/pagealign_alloc: Likewise.
46404         * modules/poll: Likewise.
46405         * modules/printf-frexp: Likewise.
46406         * modules/pthread: Likewise.
46407         * modules/putenv: Likewise.
46408         * modules/random_r: Likewise.
46409         * modules/relocatable-prog: Likewise.
46410         * modules/search: Likewise.
46411         * modules/select: Likewise.
46412         * modules/selinux-h: Likewise.
46413         * modules/settime: Likewise.
46414         * modules/signal: Likewise.
46415         * modules/size_max: Likewise.
46416         * modules/socklen: Likewise.
46417         * modules/ssize_t: Likewise.
46418         * modules/stdarg: Likewise.
46419         * modules/stdbool: Likewise.
46420         * modules/stddef: Likewise.
46421         * modules/stdint: Likewise.
46422         * modules/stdio: Likewise.
46423         * modules/stdlib: Likewise.
46424         * modules/string: Likewise.
46425         * modules/strings: Likewise.
46426         * modules/sys_file: Likewise.
46427         * modules/sys_ioctl: Likewise.
46428         * modules/sys_select: Likewise.
46429         * modules/sys_socket: Likewise.
46430         * modules/sys_stat: Likewise.
46431         * modules/sys_time: Likewise.
46432         * modules/sys_times: Likewise.
46433         * modules/sys_utsname: Likewise.
46434         * modules/sys_wait: Likewise.
46435         * modules/sysexits: Likewise.
46436         * modules/time: Likewise.
46437         * modules/times: Likewise.
46438         * modules/tmpfile: Likewise.
46439         * modules/trim: Likewise.
46440         * modules/unistd: Likewise.
46441         * modules/wchar: Likewise.
46442         * modules/wctype: Likewise.
46443
46444 2009-09-17  Bruno Haible  <bruno@clisp.org>
46445
46446         Make getdate.y compile on QNX and NetBSD 5 / i386.
46447         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46448         TIME_T_FITS_IN_LONG_INT.
46449         * lib/getdate.y (long_time_t): New type.
46450         (relative_time): Change type of 'seconds' field to long_time_t.
46451         (get_date): Update types of local variables. Check against overflow
46452         during conversion from long_time_t to time_t.
46453         Reported by Matt Kraai <kraai@ftbfs.org>
46454         and Hasso Tepper <hasso@netbsd.org>.
46455
46456 2009-09-17  Bruno Haible  <bruno@clisp.org>
46457
46458         * modules/COPYING: Update copyright years.
46459         * modules/README: Likeiwse.
46460         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46461         Reported by Ian Beckwith <ianb@erislabs.net>.
46462
46463 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46464
46465         * users.txt: Update references for gnuit package.
46466
46467 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46468
46469         * m4/getdelim.m4: Fix typo in copyright line.
46470
46471 2009-09-17  Bruno Haible  <bruno@clisp.org>
46472
46473         * lib/atoll.c: Use the standard header with GPL copyright.
46474         * lib/argz.in.h: Likewise.
46475         * lib/glob.c: Likewise.
46476         * lib/glob-libc.h: Likewise.
46477         * lib/random_r.c: Likewise.
46478         * lib/siglist.h: Likewise.
46479         * lib/strsignal.c: Likewise.
46480         Reported by Ian Beckwith <ianb@erislabs.net>.
46481
46482 2009-09-17  Eric Blake  <ebb9@byu.net>
46483
46484         rmdir: ensure correct dependency order
46485         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46486
46487 2009-09-17  Bruno Haible  <bruno@clisp.org>
46488
46489         Disable assertion that fails on NetBSD 5 / i386.
46490         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46491         Reported by Sam Steingold <sds@gnu.org>
46492         and Hasso Tepper <hasso@netbsd.org>.
46493
46494 2009-09-16  Eric Blake  <ebb9@byu.net>
46495
46496         unlinkdir: port to mingw
46497         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46498         on which no one can unlink a directory.
46499
46500         stdlib: sort witness names
46501         * modules/stdlib (Makefile.am): Sort replacements.
46502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46503         * lib/stdlib.in.h: Likewise.
46504
46505         parse-duration-tests: avoid link failure
46506         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46507         LIBINTL.
46508         Reported by Tom G. Christensen.
46509
46510         openat-tests: ensure unlinkat behaves like rmdir
46511         * tests/test-rmdir.c (main): Factor guts...
46512         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46513         * modules/rmdir-tests (Files): Ship new file.
46514         * modules/openat-tests: New test.
46515         * tests/test-unlinkat.c: Likewise.
46516
46517         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46518         * modules/rmdir-errno (Status, Notice): Now obsolete.
46519
46520         rmdir: work around cygwin 1.5.x and mingw bugs
46521         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46522         * lib/rmdir.c (rmdir): Work around it.
46523         * modules/rmdir (Status, Notice): No longer obsolete.
46524         (Files): Add dos.m4.
46525         (Depends-on): Add unistd.
46526         (configure.ac): Set witnesses.
46527         (License): Relax to LGPLv2+.
46528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46529         * modules/unistd (Makefile.am): Substitute witnesses.
46530         * lib/unistd.in.h (rmdir): Declare replacement.
46531         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46532         * modules/rmdir-tests: New tests.
46533         * tests/test-rmdir.c: Likewise.
46534
46535 2009-09-15  Eric Blake  <ebb9@byu.net>
46536
46537         fchdir: improve use of replacement functions
46538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46539         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46540         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46541         REPLACE_CLOSEDIR.
46542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46543         * modules/sys_stat (Makefile.am): Substitute correct witness.
46544         * modules/dirent (Makefile.am): Likewise.
46545         * modules/unistd (Makefile.am): Likewise.
46546         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46547         * lib/unistd.in.h (dup): Likewise.
46548         * lib/sys_stat.in.h (fstat): Likewise.
46549
46550         maint: ignore gnulib-tool temp files
46551         * .gitignore: Ignore files created during gnulib-tool --test.
46552
46553 2009-09-13  Jim Meyering  <meyering@redhat.com>
46554
46555         posixtm: don't reject a time that specify "60" as the number of seconds
46556         * lib/posixtm.c (posixtime): The code to reject invalid dates
46557         would also reject a time specified with the .60 suffix.
46558         But POSIX allows that, in order to accommodate leap seconds.
46559         So don't reject it.
46560         (main): Adjust tests accordingly.
46561         * modules/posixtm (Depends-on): Add stpcpy.
46562
46563 2009-09-11  Jim Meyering  <meyering@redhat.com>
46564
46565         announce-gen: include [$release_type] in emitted Subject:
46566         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46567         e.g., [stable] in the emitted Subject: line.
46568
46569 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46570
46571         Remove obsolete macros from several modules.
46572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46573         obsolete Autoconf macros with their modern counterparts.
46574         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46575         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46577         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46578         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46579         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46581         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46582         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46583         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46584         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46586         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46587         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46588         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46589         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46590         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46591         * m4/time_r.m4 (gl_TIME_R): Likewise.
46592         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46593         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46594         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46595
46596         Fix copyright header in build-aux scripts.
46597         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46598         recommendation.
46599         * build-aux/ncftpput-ftp: Likewise.
46600         * build-aux/update-copyright: Likewise.
46601
46602 2009-09-09  Eric Blake  <ebb9@byu.net>
46603
46604         test-link: allow Linux choice of errno
46605         * tests/test-link.c (main): Relax test for alternate error.
46606
46607         strndup: fix improper m4 caching
46608         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46609         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46610         (gl_PREREQ_STRNDUP): Delete.
46611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46612         * modules/string (Makefile.am): Substitute it.
46613         * lib/string.in.h (strndup): Modernize prototype.
46614
46615         getcwd: port to mingw
46616         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46617         different from the POSIX assumptions made throughout the getcwd
46618         module; fortunately, the mingw getcwd does not need replacement.
46619         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46620         * modules/getcwd-tests: New test.
46621         * tests/test-getcwd.c: Likewise.
46622
46623         link: fix platform bugs
46624         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46625         * lib/link.c (link): Work around them.  Fix related mingw bug.
46626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46627         * modules/unistd (Makefile.am): Substitute it.
46628         * lib/unistd.in.h (link): Declare replacement.
46629         * doc/posix-functions/link.texi (link): Document this.
46630         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46631
46632         test-link: consolidate into single C program, test more cases
46633         * tests/test-link.sh: Delete.
46634         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46635         at least Cygwin and Solaris.
46636         * modules/link-tests (Files): Remove unused file.
46637         (Depends-on): Add errno, sys_stat.
46638         (Makefile.am): Simplify.
46639
46640 2009-09-08  Bruno Haible  <bruno@clisp.org>
46641
46642         Work around towlower, towupper bug on mingw.
46643         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46644         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46645         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46646         * doc/posix-functions/towupper.texi: Likewise.
46647         Reported by Eric Blake.
46648
46649 2009-09-08  Jim Meyering  <meyering@redhat.com>
46650
46651         build: don't try to run autoheader if we don't use it
46652         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46653         is not used in configure.ac.
46654
46655 2009-09-08  Eric Blake  <ebb9@byu.net>
46656
46657         euidaccess: fix compilation error
46658         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46659
46660         rawmemchr: relax license
46661         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46662         okay.
46663         Reported by Jim Meyering.
46664
46665         mkfifoat: new module
46666         * modules/mkfifoat: New file.
46667         * lib/mkfifoat.c: Likewise.
46668         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46670         * modules/sys_stat (Makefile.am): Use them.
46671         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46672         * MODULES.html.sh (File system functions): Mention module.
46673         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46674         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46675         * modules/mkfifoat-tests: New test.
46676         * tests/test-mkfifoat.c: Likewise.
46677
46678         strchrnul: relax license
46679         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46680         okay.
46681         Reported by Jim Meyering.
46682
46683 2009-09-08  Eric Blake  <ebb9@byu.net>
46684
46685         fstatat: fix compilation on Solaris
46686         * lib/fstatat.c (includes): Add fcntl.h.
46687         Reported by Pádraig Brady.
46688
46689 2009-09-07  Eric Blake  <ebb9@byu.net>
46690
46691         rename: modernize replacement
46692         * modules/rename (Depends-on): Add stdio.
46693         (configure.ac): Declare witness.
46694         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46695         stdio take care of replacement.
46696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46697         * modules/stdio (Makefile.am): Substitute them.
46698         * lib/stdio.in.h (rename): Declare replacement.
46699         * lib/rename.c (includes): Allow cross-compilation to non-windows
46700         machines.
46701         * doc/posix-functions/rename.texi (rename): Improve
46702         documentation.
46703
46704         stdio: sort witness names
46705         * modules/stdio (Makefile.am): Sort replacements.
46706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46707         * lib/stdio.in.h: Likewise.
46708
46709         getcwd: minor cleanups
46710         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46711         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46712
46713         openat: provide more convenience names
46714         * modules/faccessat (configure.ac): Add C witness.
46715         * lib/unistd.in.h (readlinkat): Fix typo.
46716         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46717         convenience wrappers.
46718         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46719         wrappers in syntax checks.
46720
46721 2009-09-06  Eric Blake  <ebb9@byu.net>
46722
46723         doc: fix comments in recent patches
46724         * lib/faccessat.c: Mention correct function.
46725         * lib/fchmodat.c: Likewise.
46726         * lib/fchownat.c: Likewise.
46727         * lib/symlinkat.c: Likewise.
46728         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46729         constants.
46730
46731         faccessat, symlinkat: continue cleanup of previous patch
46732         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46733         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46734         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46736         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46737         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46738         set.
46739
46740 2009-09-06  Bruno Haible  <bruno@clisp.org>
46741
46742         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46743         (fstatat): Declare if GNULIB_FSTATAT is set.
46744         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46745         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46746         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46747         * modules/fcntl-h (Files): Remove m4/openat.m4.
46748         * modules/sys_stat (Files): Remove m4/openat.m4.
46749         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46750         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46751         * modules/unistd (Files): Remove m4/openat.m4.
46752         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46753         GNULIB_OPENAT.
46754         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46755         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46756         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46757         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46758         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46759         gl_OPENAT_DEFAULTS.
46760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46761         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46762         Don't require gl_OPENAT_DEFAULTS.
46763         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46764         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46765         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46766         (gl_OPENAT_DEFAULTS): Remove macro.
46767
46768 2009-09-06  Bruno Haible  <bruno@clisp.org>
46769
46770         * modules/openat (configure.ac): Remove unneeded witness.
46771
46772 2009-09-06  Bruno Haible  <bruno@clisp.org>
46773
46774         Set errno to ENOSYS when a function is entirely unsupported.
46775         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46776         EOPNOTSUPP.
46777         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46778         * modules/chown (Depends-on): Remove errno.
46779
46780 2009-09-06  Bruno Haible  <bruno@clisp.org>
46781
46782         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46783
46784 2009-09-06  Bruno Haible  <bruno@clisp.org>
46785
46786         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46787
46788 2009-09-06  Ben Pfaff  <blp@gnu.org>
46789             Bruno Haible  <bruno@clisp.org>
46790
46791         Work around a glibc bug in strtok_r.
46792         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46793         Undefine if UNDEFINE_STRTOK_R is set.
46794         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46796         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46797         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46798         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46799         UNDEFINE_STRTOK_R.
46800         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46801
46802 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46803
46804         exclude: minor fix
46805         * lib/exclude.c: Include wctype.h
46806
46807 2009-09-06  Akim Demaille  <demaille@gostai.com>
46808
46809         bootstrap: improve error message
46810         * build-aux/bootstrap (find_tool): Upon failure, report the list
46811         of candidates.
46812         Honor the initial value of the envvar.
46813
46814 2009-09-05  Eric Blake  <ebb9@byu.net>
46815
46816         symlinkat: new module
46817         * modules/symlinkat: New file.
46818         * lib/symlinkat.c: Likewise.
46819         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46821         * modules/unistd (Makefile.am): Use them.
46822         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46823         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46824         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46825         * MODULES.html.sh (File system functions): Mention module.
46826         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46827         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46828         * modules/symlinkat-tests: New test.
46829         * tests/test-symlinkat.c: Likewise.
46830
46831         test-openat-safer: add more checks
46832         * tests/test-openat-safer.c (main): Check more code paths.
46833
46834 2009-09-05  Jim Meyering  <meyering@redhat.com>
46835
46836         syntax-check: detect unnecessary inclusion of openat.h
46837         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46838
46839 2009-09-05  Bruno Haible  <bruno@clisp.org>
46840
46841         Support towlower, towupper.
46842         * doc/posix-functions/towlower.texi: Mention module wctype.
46843         * doc/posix-functions/towupper.texi: Likewise.
46844         * lib/wctype.in.h (towlower, towupper): New functions.
46845         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46846         (ASSERT): New macro.
46847         (e): New variable.
46848         (main): Test also towlower, towupper. Test WEOF argument.
46849         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46850
46851 2009-09-05  Bruno Haible  <bruno@clisp.org>
46852
46853         Fix conversion behaviour when the input is invalid.
46854         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46855         mark occurring in first pass of indirect conversion.
46856         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46857         input.
46858         Found by clang's static analyzer.
46859
46860 2009-09-05  Bruno Haible  <bruno@clisp.org>
46861
46862         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46863         where direct conversion is possible.
46864
46865 2009-09-04  Eric Blake  <ebb9@byu.net>
46866
46867         openat: fail with ENOENT on empty name
46868         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46869         buffer.
46870
46871         link-follow: fix logic bug in prior patch
46872         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46873         reversed sense of yes and no in prior patch.  Avoid confusing
46874         compilation failure with desired semantics.
46875
46876         link-follow: accommodate mingw and cross-compilation
46877         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46878         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46879         cross-compilation results to -1, to make linkat easier to
46880         implement when cross-compiling.  Trivially support mingw.
46881         * modules/link-follow (configure.ac): Call new name.
46882         * NEWS: Mention this.
46883
46884 2009-09-03  Eric Blake  <ebb9@byu.net>
46885
46886         faccessat: compile replacement
46887         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46888         needed.
46889
46890         fts: fix compilation error
46891         * lib/fts.c (includes): Re-add "openat.h", for
46892         openat_needs_fchdir.
46893
46894         faccessat: new module
46895         * modules/faccessat: New file.
46896         * lib/faccessat.c: Likewise.
46897         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46899         * modules/unistd (Makefile.am): Use it.
46900         * lib/unistd.in.h (faccessat): Declare it.
46901         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46902         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46903         * MODULES.html.sh (File system functions): Mention it.
46904         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46905         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46906
46907         euidaccess: prefer POSIX over non-standard implementation
46908         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46909         * lib/euidaccess.c (euidaccess): Use it if available.
46910
46911         openat: make template easier to use
46912         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46913         AT_FUNC_F2 to be undefined.
46914         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46915         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46916         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46917         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46918         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46919         Likewise.
46920         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46921         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46922         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46923         Likewise.
46924
46925         openat: declare in POSIX headers
46926         * NEWS: Mention this.
46927         * modules/openat (configure.ac): Declare witnesses.
46928         (Depends-on): Add fcntl-h, sys_stat, unistd.
46929         (Include): Mention correct headers.
46930         * modules/fcntl-h (Depends-on): Add link-warning.
46931         (Files): Add openat.m4.
46932         (Makefile.am): Substitute witnesses.
46933         * modules/sys_stat (Files, Makefile.am): Likewise.
46934         * modules/unistd (Files, Makefile.am): Likewise.
46935         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46936         (gl_OPENAT_DEFAULTS): New macro.
46937         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46939         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46940         (SYS_STAT_H): Remove unused variable.
46941         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46942         * lib/fcntl--.h (includes): Remove unneeded header.
46943         * lib/openat-safer.c (includes): Likewise.
46944         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46945         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46946         appropriate headers.
46947         (__OPENAT_PREFIX): Delete.
46948         * lib/fcntl.in.h (openat): Provide declaration.
46949         (AT_FDCWD): Fix Solaris bug.
46950         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46951         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46952         * lib/fchmodat.c (includes):  Adjust to find declaration.
46953         * lib/fchownat.c (includes): Likewise.
46954         * lib/mkdirat.c (includes): Likewise.
46955         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46956         still visible.
46957
46958 2009-09-02  Eric Blake  <ebb9@byu.net>
46959
46960         errno: use consistently
46961         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46962         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46963         * lib/canonicalize.c (ELOOP): Likewise.
46964         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46965         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46966         * lib/lchown.c (EOPNOTSUPP): Likewise.
46967         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46968         * lib/savewd.c (ESTALE): Likewise.
46969         * lib/settime.c (ENOSYS): Likewise.
46970         * lib/utimens.c (ENOSYS): Likewise.
46971         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46972         * lib/chdir-safer.c (ELOOP): Likewise.
46973         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46974         * modules/c-stack (Depends-on): Add errno.
46975         * modules/canonicalize (Depends-on): Likewise.
46976         * modules/chdir-safer (Depends-on): Likewise.
46977         * modules/fdopendir (Depends-on): Likewise.
46978         * modules/inet_ntop (Depends-on): Likewise.
46979         * modules/inet_pton (Depends-on): Likewise.
46980         * modules/lchown (Depends-on): Likewise.
46981         * modules/openat (Depends-on): Likewise.
46982         * modules/savewd (Depends-on): Likewise.
46983         * modules/settime (Depends-on): Likewise.
46984         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46985
46986         fts: avoid leaking fds
46987         * modules/fts (Depends-on): Add cloexec.
46988         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46989         flag.
46990
46991         fts: make directory fds more robust
46992         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46993         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46994
46995         backupfile, chdir-long, fts, savedir: make safer
46996         * lib/backupfile.c (includes): Use "dirent--.h", since
46997         numbered_backup can write to stderr during readdir.
46998         * lib/savedir.c (includes): Likewise.
46999         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
47000         emulation can write to stderr on failure.
47001         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
47002         * lib/getcwd.c: Document why opendir_safer is unused.
47003         * lib/glob.c: Likewise.
47004         * lib/scandir.c: Likewise.
47005         * lib/openat-proc.c: Likewise, for open_safer.
47006         * modules/backupfile (Depends-on): Add dirent-safer.
47007         * modules/savedir (Depends-on): Likewise.
47008         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
47009         * modules/chdir-long (Depends-on): Add openat-safer.
47010
47011         openat-safer: new module
47012         * modules/openat-safer: New file.
47013         * lib/openat-safer.c: Likewise.
47014         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
47015         * lib/fcntl-safer.h (openat_safer): Declare.
47016         * lib/fcntl--.h (openat): Override.
47017         * MODULES.html.sh (File descriptor based I/O): Mention it.
47018         * lib/openat.h: Add double-inclusion guards.
47019         * lib/openat.c (includes): Only include "fcntl-safer.h", not
47020         "fcntl--.h", so we can implement openat.
47021         * modules/openat-safer-tests: New test.
47022         * tests/test-openat-safer.c: New file.
47023
47024         dirent-safer: new module
47025         * modules/dirent-safer: New file.
47026         * lib/dirent--.h: Likewise.
47027         * lib/dirent-safer.h: Likewise.
47028         * lib/opendir-safer.c: Likewise.
47029         * m4/dirent-safer.m4: Likewise.
47030         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
47031         * modules/dirent-safer-tests: New test.
47032         * tests/test-dirent-safer.c: New file.
47033         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
47034
47035         fdopendir: optimize on mingw
47036         * lib/unistd.in.h (_gl_directory_name): New prototype.
47037         * lib/fchdir.c (_gl_directory_name): Implement it.
47038         (fchdir): Use it to simplify implementation.
47039         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
47040         fchdir, when available, to avoid calling [f]chdir().
47041
47042         fdopendir: split into its own module
47043         * lib/openat.c (fdopendir): Move...
47044         * lib/fdopendir.c: ...into new file.
47045         * modules/fdopendir: New module.
47046         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
47047         * modules/openat (Depends-on): Add fdopendir.
47048         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
47049         fdopendir here.
47050         * modules/savedir (Depends-on): Only need fdopendir, not full
47051         openat.
47052         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
47053         * lib/openat.h (fdopendir): Drop prototype.
47054         * lib/dirent.in.h (fdopendir): Provide prototype.
47055         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
47056         * modules/dirent (Makefile.am): Substitute them.
47057         * MODULES.html.sh (File system functions): Mention it.
47058         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
47059         * modules/fdopendir-tests: New file.
47060         * tests/test-fdopendir.c: Likewise.
47061
47062         fchdir: use more consistent macro convention
47063         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
47064         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
47065         REPLACE_FCHDIR, rather than relying on config.h macros.
47066         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
47067         inside a single make-time REPLACE_FCHDIR block, rather than using
47068         the config.h FCHDIR_REPLACEMENT.
47069         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
47070         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
47071         Manage fstat replacement.
47072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
47073         REPLACE_FCHDIR.
47074         * modules/sys_stat (Files): Add m4/unistd_h.m4.
47075         (Makefile.am): Substitute REPLACE_FCHDIR.
47076         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47077         FCHDIR_REPLACEMENT.
47078         * lib/dup-safer.c (dup_safer): Likewise.
47079         * lib/dup2.c (rpl_dup2): Likewise.
47080         * lib/dup3.c (rpl_dup3): Likewise.
47081         * lib/open.c (rpl_open): Likewise.
47082
47083         fchdir: simplify error handling, and support dup3
47084         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47085         stdbool, malloc-posix, realloc-posix.
47086         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47087         (ensure_dirs_slot): Return false on allocation failure.
47088         (rpl_dup2): Delete.
47089         (_gl_register_dup): New function.
47090         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47091         (_gl_register_fd): Close fd on allocation failure.
47092         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47093         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47094         prototype.
47095         (rpl_dup2_fchdir): Delete prototype.
47096         * lib/open.c (open): Update caller.
47097         * lib/dup2.c (dup2): Track fchdir metadata.
47098         * lib/dup3.c (dup3): Likewise.
47099         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47101
47102 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47103
47104         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47105         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47106         don't pass arguments to AC_OUTPUT.
47107
47108 2009-09-02  Bruno Haible  <bruno@clisp.org>
47109
47110         * modules/mkdtemp (License): Relicense under LGPLv2+.
47111         Reported by Paolo Bonzini.
47112
47113 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47114
47115         Replace uses of obsolete autoconf macros in Jim's modules.
47116         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47117         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47118         can evoke a warning from autoconf when run with -Wobsolete
47119         enabled.  They were declared obsolete for good reasons (see
47120         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47121         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47122         should not continue using the deprecated macros.
47123         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47124         obsolete Autoconf macros with modern counterparts.
47125         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47126         * m4/dos.m4 (gl_AC_DOS): Likewise.
47127         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47128         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47129         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47130         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47131         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47132         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47133         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47134         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47135         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47136         Likewise.
47137         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47138         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47139         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47140         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47141         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47142         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47143
47144 2009-09-01  Eric Blake  <ebb9@byu.net>
47145
47146         fchdir: fix off-by-one bug in previous patch
47147         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47148         (_gl_unregister_fd): Delete useless if.
47149
47150 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47151
47152         maint.mk: sort the list of syntax-check rules
47153         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47154         easier to get a sense of progress when the rules are run sequentially
47155         and take a long time.
47156
47157 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47158
47159         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47160         * modules/netinet_in: Likewise.
47161         * modules/sys_file: Likewise.
47162         * modules/sys_ioctl: Likewise.
47163         * modules/sys_select: Likewise.
47164         * modules/sys_socket: Likewise.
47165         * modules/sys_stat: Likewise.
47166         * modules/sys_time: Likewise.
47167         * modules/sys_times: Likewise.
47168         * modules/sys_utsname: Likewise.
47169         * modules/sys_wait: Likewise.
47170
47171 2009-09-01  Jim Meyering  <meyering@redhat.com>
47172
47173         fts: help ensure that return values are not ignored
47174         * lib/fts_.h (__GNUC_PREREQ): Define.
47175         (__attribute_warn_unused_result__): Define.
47176         (fts_children, fts_close, fts_open, fts_read): Declare with
47177         __attribute_warn_unused_result__.
47178
47179         fts: fts_close now fails also when closing a dir file descriptor fails
47180         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47181         and propagate to caller, along with errno.
47182
47183         announce-gen: correct formatting in --help output
47184         * build-aux/announce-gen (usage): Move the one-line description in
47185         --help output "up", to where it belongs, just after Usage:.
47186
47187 2009-08-31  Eric Blake  <ebb9@byu.net>
47188
47189         fchdir: port to mingw
47190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47191         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47192         opened, then use a substitute.
47193         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47194         replacement.
47195         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47196         (_gl_register_fd): No need to check stat if open already filters
47197         all directories.
47198         (fchdir): Fix error condition to match POSIX.
47199         * modules/fchdir (Depends-on): Add sys_stat.
47200         * doc/posix-functions/open.texi (open): Document the limitation.
47201         * modules/fchdir-tests: New file.
47202         * tests/test-fchdir.c: Likewise.
47203
47204         canonicalize: allow cross-testing from cygwin to mingw
47205         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47206         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47207         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47208         Likewise.
47209         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47210         target does not support symlinks.
47211         * tests/test-canonicalize-lgpl.sh: Likewise.
47212
47213         chown: avoid compilation warning on mingw
47214         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47215         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47216         mingw.
47217         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47218         * modules/chown (Depends-on): Add errno.
47219
47220 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47221
47222         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47223         command.
47224
47225 2009-08-31  Jim Meyering  <meyering@redhat.com>
47226
47227         canonicalize: remove useless initialization
47228         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47229         initialization of local, "end".
47230
47231 2009-08-30  Bruno Haible  <bruno@clisp.org>
47232
47233         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47234         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47235         ENOSYS.
47236
47237 2009-08-30  Bruno Haible  <bruno@clisp.org>
47238
47239         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47240         /usr/xpg4/bin/tr when it exists.
47241         * tests/test-pipe-filter-gi1.sh: Likewise.
47242
47243 2009-08-30  Bruno Haible  <bruno@clisp.org>
47244
47245         Work around deficient /usr/bin/id program on Solaris.
47246         * tests/test-file-has-acl.sh (ID): New variable.
47247         * tests/test-set-mode-acl.sh (ID): Likewise.
47248         * tests/test-copy-acl.sh (ID): Likewise.
47249         * tests/test-copy-file.sh (ID): Likewise.
47250
47251 2009-08-30  Bruno Haible  <bruno@clisp.org>
47252
47253         New module 'xstriconveh'.
47254         * lib/xstriconveh.h: New file.
47255         * lib/xstriconveh.c: New file.
47256         * modules/xstriconveh: New file.
47257
47258 2009-08-30  Bruno Haible  <bruno@clisp.org>
47259
47260         Make it easier to use mem_cd_iconveh.
47261         * lib/striconveh.h (iconveh_t): New type.
47262         (iconveh_open, iconveh_close): New declarations.
47263         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47264         with a single 'const iconveh_t *' argument.
47265         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47266         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47267         with a single 'const iconveh_t *' argument.
47268         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47269         * tests/test-striconveh.c (main): Update.
47270         * NEWS: Mention the change.
47271
47272 2009-08-30  Bruno Haible  <bruno@clisp.org>
47273
47274         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47275         problem.
47276
47277 2009-08-30  Bruno Haible  <bruno@clisp.org>
47278
47279         Work around iconv_open problem on Solaris.
47280         * lib/iconv_open-solaris.gperf: New file.
47281         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47282         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47283         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47284         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47285         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47286         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47287
47288 2009-08-29  Jim Meyering  <meyering@redhat.com>
47289
47290         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47291         * top/maint.mk (cvs-check): Remove target; it was just an alias
47292         to the better-named vc-diff-check.
47293         (maintainer-distcheck): Remove rule.  It was used only from
47294         the (alpha/beta/major) target, and all of its commands but one
47295         were coreutils-specific.
47296         (vc-dist): Remove rule.
47297         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47298         Run vc-diff-check, not vc-dist.
47299         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47300
47301 2009-08-27  Bruno Haible  <bruno@clisp.org>
47302
47303         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47304         of 0.
47305
47306 2009-08-27  Bruno Haible  <bruno@clisp.org>
47307
47308         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47309         compilers.
47310         * doc/func.texi: Document the SunPRO C bug.
47311
47312 2009-08-27  Bruno Haible  <bruno@clisp.org>
47313
47314         Fix link error on Solaris.
47315         * tests/test-parse-duration.c (xstrdup): Remove function.
47316
47317 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47318
47319         ignore-value: handle pointer types, too
47320         * lib/ignore-value.h (__attribute__): Remove definition.
47321         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47322         of a more concise and more-often effective "(void) i" statement.
47323         (ignore_ptr): New function to suppress warnings from functions that
47324         return pointers, and to make it explicit that one function doesn't
47325         handle all cases.
47326
47327 2009-08-25  Bruno Haible  <bruno@clisp.org>
47328
47329         dup2: work around a Linux bug.
47330         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47331         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47332         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47333         Reported by Simon Josefsson.
47334
47335 2009-08-25  Jim Meyering  <meyering@redhat.com>
47336
47337         libguestfs uses gnulib
47338         * users.txt: Add libguestfs.
47339
47340 2009-08-24  Eric Blake  <ebb9@byu.net>
47341
47342         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47343         * lib/pipe2.c (includes): Add binary-io.h.
47344         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47345
47346 2009-08-24  Bruno Haible  <bruno@clisp.org>
47347
47348         Tolerate declared but missing accept4 syscall.
47349         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47350         available.
47351         * lib/sys_socket.in.h (accept4): If the function is already present,
47352         override it.
47353         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47354         * modules/accept4 (Makefile.am): Compile accept4.c always.
47355         Reported by Paolo Bonzini and Eric Blake.
47356
47357 2009-08-23  Bruno Haible  <bruno@clisp.org>
47358
47359         New module 'accept4'.
47360         * lib/sys_socket.in.h (accept4): New declaration.
47361         * lib/accept4.c: New file.
47362         * m4/accept4.m4: New file.
47363         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47364         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47365         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47366         HAVE_ACCEPT4.
47367         * modules/accept4: New file.
47368         * doc/glibc-functions/accept4.texi: Mention the new module.
47369
47370 2009-08-24  Jim Meyering  <meyering@redhat.com>
47371
47372         progname: also set global program_invocation_name, when possible
47373         Before this change, a libtool-enabled program that calls glibc's
47374         error function would report the program name as
47375         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47376         * modules/progname (configure.ac): Check for a declaration of
47377         program_invocation_name.
47378         * lib/progname.c:  Include <errno.h>.
47379         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47380         Set program_invocation_name.
47381
47382 2009-08-23  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/dup3.c: Include <string.h>.
47385
47386 2009-08-23  Bruno Haible  <bruno@clisp.org>
47387
47388         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47389         * lib/pipe2.c (pipe2): Likewise.
47390         Suggested by Eric Blake.
47391
47392 2009-08-23  Bruno Haible  <bruno@clisp.org>
47393
47394         Tolerate declared but missing dup3 syscall.
47395         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47396         * lib/unistd.in.h (dup3): If the function is already present,
47397         override it.
47398         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47399         * modules/dup3 (Makefile.am): Compile dup3.c always.
47400         Reported by Paolo Bonzini.
47401
47402 2009-08-23  Bruno Haible  <bruno@clisp.org>
47403
47404         Tolerate declared but missing pipe2 syscall.
47405         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47406         available.
47407         * lib/unistd.in.h (pipe2): If the function is already present,
47408         override it.
47409         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47410         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47411         Reported by Paolo Bonzini.
47412
47413 2009-08-23  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/pipe2.c (pipe2): Move #ifs inside function.
47416
47417 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47418
47419         quotearg: document limitations of quote_these_too
47420         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47421         those limitations are created.
47422         * lib/quotearg.h (set_char_quoting): Document that digits and
47423         letters that are special after backslash are not permitted.
47424         (quotearg_char): Cross-reference set_char_quoting documentation.
47425
47426 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47427
47428         quotearg: implement custom_quoting_style
47429         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47430         right_quote fields.
47431         (set_custom_quoting): New public function.
47432         (quotearg_buffer_restyled): Add left_quote and right_quote
47433         arguments, handle them very much like locale quoting, and update
47434         all uses.
47435         (quotearg_n_custom): New public function.
47436         (quotearg_n_custom_mem): New public function.
47437         (quotearg_custom): New public function.
47438         (quotearg_custom_mem): New public function.
47439         * lib/quotearg.h: Prototype and document new public functions.
47440         (enum quoting_style): For escape_quoting_style and
47441         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47442         ignored even though they're otherwise like c_quoting_style.
47443         Add custom_quoting_style member and document with comparison to
47444         clocale_quoting_style.
47445         * tests/test-quotearg.c (custom_quotes): New array.
47446         (custom_results): New array.
47447         (main): Extend to test custom quoting.
47448
47449 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47450
47451         quotearg: fix right quote escaping when it's in quote_these_too
47452         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47453         quote, be sure to prepend only one backslash.
47454         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47455         (main): Test it.
47456
47457 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47458
47459         quotearg-tests: test escaping of embedded locale quotes
47460         * tests/test-quotearg.c (struct result_strings): Add member for
47461         new input.
47462         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47463         (inputs): Add new input.
47464         (results_g): Add expected results.
47465         (flag_results): Likewise.
47466         (locale_results): Likewise.
47467         (compare_strings): Check those.
47468
47469 2009-08-23  Bruno Haible  <bruno@clisp.org>
47470
47471         Tests for module 'dup3'.
47472         * modules/dup3-tests: New file.
47473         * tests/test-dup3.c: New file.
47474
47475         New module 'dup3'.
47476         * lib/unistd.in.h (dup3): New declaration.
47477         * lib/dup3.c: New file.
47478         * m4/dup3.m4: New file.
47479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47480         HAVE_DUP3.
47481         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47482         * modules/dup3: New file.
47483         * doc/glibc-functions/dup3.texi: Mention the new module.
47484
47485 2009-08-23  Bruno Haible  <bruno@clisp.org>
47486
47487         Tweak the dup2 test.
47488         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47489         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47490         the test file is still empty. Fix argument order of lseek.
47491
47492 2009-08-23  Bruno Haible  <bruno@clisp.org>
47493
47494         Avoid test link errors when the modules getopt-gnu, gettext are used.
47495         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47497
47498 2009-08-23  Bruno Haible  <bruno@clisp.org>
47499
47500         Fix getdtablesize() on mingw.
47501         * lib/getdtablesize.c (getdtablesize): Implement differently.
47502         * lib/unistd.in.h (getdtablesize): Improve comment.
47503
47504 2009-08-23  Bruno Haible  <bruno@clisp.org>
47505
47506         New module 'mkostemp'.
47507         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47508         * lib/stdlib.in.h (mksotemp): New declaration.
47509         * lib/mkostemp.c: New file, from glibc with modifications.
47510         * lib/tempname.h (GT_FILE): Remove outdated comment.
47511         (gen_tempname): Add flags argument.
47512         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47513         (__GT_FILE): Map to 1.
47514         (small_open, large_open): Remove macros.
47515         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47516         * lib/mkstemp.c (mkstemp): Update.
47517         * lib/mkdtemp.c (mkdtemp): Likewise.
47518         * m4/mkostemp.m4: New file.
47519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47520         HAVE_MKOSTEMP.
47521         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47522         HAVE_MKOSTEMP.
47523         * modules/mkostemp: New file, based on modules/mkstemp.
47524         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47525         * NEWS: Mention the change.
47526
47527 2009-08-23  Bruno Haible  <bruno@clisp.org>
47528
47529         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47530         Reported by Eric Blake.
47531
47532 2009-08-23  Bruno Haible  <bruno@clisp.org>
47533
47534         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47535         Reported by Eric Blake.
47536
47537 2009-08-23  Bruno Haible  <bruno@clisp.org>
47538
47539         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47540         * modules/pipe2 (Depends-on): Likewise.
47541
47542 2009-08-23  Eric Blake  <ebb9@byu.net>
47543
47544         fcntl-h: add O_TTY_INIT support
47545         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47546         * tests/test-fcntl-h.c (o): Test it.
47547         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47548
47549         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47550         * modules/fcntl: Move <fcntl.h> header replacement...
47551         * modules/fcntl-h: ...to new name, so as not to collide with
47552         like-named function.
47553         * tests/test-fcntl.c: Rename...
47554         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47555         * modules/fcntl-tests: Rename...
47556         * modules/fcntl-h-tests: ...to this.  Update test file name.
47557         * modules/chdir-long (Depends-on): Update clients.
47558         * modules/chdir-safer (Depends-on): Likewise.
47559         * modules/fcntl-safer (Depends-on): Likewise.
47560         * modules/fts (Depends-on): Likewise.
47561         * modules/mkancesdirs (Depends-on): Likewise.
47562         * modules/mkdir-p (Depends-on): Likewise.
47563         * modules/open (Depends-on): Likewise.
47564         * modules/savewd (Depends-on): Likewise.
47565         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47566         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47567
47568 2009-08-22  Bruno Haible  <bruno@clisp.org>
47569
47570         * modules/binary-io (License): Relicense under LGPL.
47571         * modules/pipe2 (License): Likewise.
47572
47573 2009-08-22  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47576         return value.
47577         * lib/pipe-filter-gi.c (filter_init): Likewise.
47578         Reported by Eric Blake.
47579
47580 2009-08-22  Bruno Haible  <bruno@clisp.org>
47581
47582         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47583         * modules/pipe (Depends-on): Add pipe2.
47584
47585 2009-08-22  Bruno Haible  <bruno@clisp.org>
47586
47587         Tests for module 'pipe2'.
47588         * modules/pipe2-tests: New file.
47589         * tests/test-pipe2.c: New file.
47590
47591         New module 'pipe2'.
47592         * lib/unistd.in.h (pipe2): New declaration.
47593         * lib/pipe2.c: New file.
47594         * m4/pipe2.m4: New file.
47595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47596         HAVE_PIPE2.
47597         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47598         * modules/pipe2: New file.
47599         * doc/glibc-functions/pipe2.texi: Mention the new module.
47600
47601 2009-08-22  Bruno Haible  <bruno@clisp.org>
47602
47603         Reference some new glibc functions.
47604         * doc/glibc-functions/accept4.texi: New file.
47605         * doc/glibc-functions/dup3.texi: New file.
47606         * doc/glibc-functions/mkostemp.texi: New file.
47607         * doc/glibc-functions/pipe2.texi: New file.
47608         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47609         (Glibc sys/socket.h): Refer to accept4.
47610         (Glibc unistd.h): Refer to dup3, pipe2.
47611         Reported by Eric Blake.
47612
47613 2009-08-22  Jim Meyering  <meyering@redhat.com>
47614             Bruno Haible  <bruno@clisp.org>
47615
47616         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47617         This makes it so packages using automake-1.11's silent-rules option
47618         can print e.g., a single "GEN    configmake.h" line, rather than
47619         the 30+ statements that perform the job.  If you want to see the
47620         actual commands, you can still run "make V=1".
47621         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47622         so that make output is abbreviated when those variables are defined
47623         appropriately.
47624         * modules/argz: Likewise.
47625         * modules/arpa_inet: Likewise.
47626         * modules/byteswap: Likewise.
47627         * modules/configmake: Likewise.
47628         * modules/dirent: Likewise.
47629         * modules/errno: Likewise.
47630         * modules/fcntl: Likewise.
47631         * modules/float: Likewise.
47632         * modules/fnmatch: Likewise.
47633         * modules/getopt-posix: Likewise.
47634         * modules/glob: Likewise.
47635         * modules/iconv_open: Likewise.
47636         * modules/inttypes: Likewise.
47637         * modules/localcharset: Likewise.
47638         * modules/locale: Likewise.
47639         * modules/math: Likewise.
47640         * modules/netdb: Likewise.
47641         * modules/netinet_in: Likewise.
47642         * modules/poll: Likewise.
47643         * modules/posix_spawnp-tests: Likewise.
47644         * modules/sched: Likewise.
47645         * modules/search: Likewise.
47646         * modules/selinux-h: Likewise.
47647         * modules/signal: Likewise.
47648         * modules/spawn: Likewise.
47649         * modules/stdarg: Likewise.
47650         * modules/stdbool: Likewise.
47651         * modules/stddef: Likewise.
47652         * modules/stdint: Likewise.
47653         * modules/stdio: Likewise.
47654         * modules/stdlib: Likewise.
47655         * modules/string: Likewise.
47656         * modules/strings: Likewise.
47657         * modules/sys_file: Likewise.
47658         * modules/sys_ioctl: Likewise.
47659         * modules/sys_select: Likewise.
47660         * modules/sys_socket: Likewise.
47661         * modules/sys_stat: Likewise.
47662         * modules/sys_time: Likewise.
47663         * modules/sys_times: Likewise.
47664         * modules/sys_utsname: Likewise.
47665         * modules/sys_wait: Likewise.
47666         * modules/sysexits: Likewise.
47667         * modules/time: Likewise.
47668         * modules/unistd: Likewise.
47669         * modules/wchar: Likewise.
47670         * modules/wctype: Likewise.
47671
47672 2009-08-22  Jim Meyering  <meyering@redhat.com>
47673
47674         announce-gen: detect write failure
47675         * build-aux/announce-gen: Add Coda at end.
47676         Remove equivalent-but-more-verbose block at top.
47677
47678 2009-08-19  Akim Demaille  <demaille@gostai.com>
47679
47680         bootstrap: --help to stdout.
47681         * bootstrap (usage): Don't send --help to stderr.
47682         Use a here doc instead of a long string.
47683
47684 2009-08-21  Eric Blake  <ebb9@byu.net>
47685
47686         test-popen-safer: split from test-popen
47687         * tests/test-popen.c (main): Move...
47688         * tests/test-popen.h: ...into new file.
47689         * tests/test-popen-safer2.c: New file.
47690         * modules/popen-tests (Files): Add test-popen.h.
47691         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47692         Suggested by Bruno Haible.
47693
47694         test-fcntl-safer: split from test-open
47695         * tests/test-open.c (main): Move...
47696         * tests/test-open.h: ...into new file.
47697         * tests/test-fcntl-safer.c: New file.
47698         * modules/open-tests (Files): Add test-open.h.
47699         * modules/fcntl-safer-tests: New file.
47700         Suggested by Bruno Haible.
47701
47702         test-fopen-safer: split from test-fopen
47703         * tests/test-fopen.c (main): Move...
47704         * tests/test-fopen.h: ...into new file.
47705         * tests/test-fopen-safer.c: New file.
47706         * modules/fopen-tests (Files): Add test-fopen.h.
47707         * modules/fopen-safer-tests: New file.
47708         Suggested by Bruno Haible.
47709
47710 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47711
47712         popen-safer: test O_CLOEXEC at run-time.
47713         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47714
47715 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47716
47717         fcntl: move more flags to the header
47718         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47719         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47720         * lib/fcntl.in.h: Do both things here.
47721
47722 2009-08-21  Jim Meyering  <meyering@redhat.com>
47723
47724         consistently remove $@-t before redirecting to it
47725         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47726         * modules/alloca-opt: Likewise.
47727         * modules/byteswap: Likewise.
47728         * modules/fnmatch: Likewise.
47729         * modules/getopt-posix: Likewise.
47730         * modules/glob: Likewise.
47731         * modules/poll: Likewise.
47732         * modules/posix_spawnp-tests: Likewise.
47733         * modules/sys_socket: Likewise.
47734         * modules/sysexits: Likewise.
47735
47736 2009-08-21  Eric Blake  <ebb9@byu.net>
47737
47738         popen: simplify access to original popen
47739         * lib/popen.c (rpl_popen): No need to worry about popen being a
47740         macro.
47741         Reported by Bruno Haible.
47742
47743 2009-08-20  Eric Blake  <ebb9@byu.net>
47744
47745         build: avoid some compiler warnings
47746         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47747         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47748         type.
47749         (new_exclude_segment, excluded_file_pattern_p)
47750         (excluded_file_name_p): Reduce scope.
47751         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47752         old-style declaration.
47753
47754 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47755
47756         * tests/test-exclude1.sh: Handle Windows EOL.
47757         * tests/test-exclude2.sh: Likewise.
47758         * tests/test-exclude3.sh: Likewise.
47759         * tests/test-exclude4.sh: Likewise.
47760         * tests/test-exclude5.sh: Likewise.
47761         * tests/test-exclude6.sh: Likewise.
47762         * tests/test-exclude7.sh: Likewise.
47763
47764 2009-08-19  Akim Demaille  <demaille@gostai.com>
47765
47766         bootstrap: find sha1sum when named gsha1sum.
47767         * bootstrap (find_tool): New.
47768         ($SHA1SUM): New.
47769         Use it.
47770
47771 2009-08-20  Jim Meyering  <meyering@redhat.com>
47772
47773         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47774         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47775         expression that converts "." in a file name to "\." in the resulting
47776         regexp.  Start with a dummy statement, so that prior shell variable
47777         definitions are expanded portably.  Reported by Simon Josefsson.
47778
47779 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47780
47781         Fix polling for writeability of a screen buffer.
47782         * lib/poll.c: Distinguish input and screen buffers for the
47783         Win32 implementation.
47784         * lib/select.c: Likewise.
47785
47786 2009-08-19  Eric Blake  <ebb9@byu.net>
47787
47788         popen-safer: prevent popen from clobbering std descriptors
47789         * modules/popen-safer: New file.
47790         * lib/popen-safer.c: Likewise.
47791         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47792         * lib/stdio--.h (popen): Provide override.
47793         * lib/stdio-safer.h (popen_safer): Provide declaration.
47794         * tests/test-popen.c (includes): Partially test this.
47795         * modules/popen-safer-tests: New file, for more tests.
47796         * tests/test-popen-safer.c: Likewise.
47797         * MODULES.html.sh (file stream based Input/Output): Mention it.
47798
47799         tests: test some of the *-safer modules
47800         * modules/fopen-safer (Depends-on): Add fopen.
47801         * modules/fcntl-safer (Depends-on): Add fcntl.
47802         * modules/stdlib-safer (Depends-on): Add stdlib.
47803         (configure.ac): Set indicator.
47804         * modules/unistd-safer (configure.ac): Likewise.
47805         * modules/tmpfile-safer (configure.ac): Likewise.
47806         (Depends-on): Add tmpfile.
47807         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47808         active.
47809         * tests/test-fopen.c (includes): Test safer versions when they are
47810         in use.
47811         * tests/test-open.c (includes): Likewise.
47812
47813         popen: fix cygwin 1.5 bug when stdin closed
47814         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47815         * modules/popen: New file.
47816         * modules/popen-tests: Likewise.
47817         * tests/test-popen.c: Likewise.
47818         * m4/popen.m4: Likewise.
47819         * lib/popen.c: Likewise.
47820         * lib/stdio.in.h (popen): New declaration.
47821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47822         * modules/stdio (Makefile.am): Likewise.
47823         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47824
47825 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47826
47827         maint.mk: give full control over update-copyright exclusions
47828         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47829         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47830         (update-copyright): Don't force inclusion of top-level
47831         ChangeLog.  Don't force exclusion of all COPYING files, but make
47832         them the default exclusion instead.
47833
47834 2009-08-16  Bruno Haible  <bruno@clisp.org>
47835
47836         Fix test failures on Solaris 10.
47837         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47838         tests when Solaris iconv() is used.
47839         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47840         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47841         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47842         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47843         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47844
47845 2009-08-16  Bruno Haible  <bruno@clisp.org>
47846
47847         Fix test failures on Solaris 10.
47848         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47849         'tr' program and pass it as first argument.
47850         * tests/test-pipe-filter-gi1.sh: Likewise.
47851         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47852         program as first argument.
47853         * tests/test-pipe-filter-gi1.c (main): Likewise.
47854
47855 2009-08-16  Eric Blake  <ebb9@byu.net>
47856
47857         fpurge: fix previous commits
47858         * modules/fpurge (Makefile.am): Make replacement conditional,
47859         partially reverting 2007-04-29 change; missed in previous
47860         attempt.
47861         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47862         is missing.
47863
47864 2009-08-16  Bruno Haible  <bruno@clisp.org>
47865
47866         Clarify fpurge's effect on the file position.
47867         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47868         * tests/test-fpurge.c (main): Make a second pass for checking the file
47869         position.
47870
47871 2009-08-16  Bruno Haible  <bruno@clisp.org>
47872
47873         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47874         declaration of fpurge is missing.
47875         * tests/test-fpurge.c (main): Check that the file has not more contents
47876         than expected. Close the file before removing it.
47877
47878 2009-08-15  Eric Blake  <ebb9@byu.net>
47879
47880         fpurge: don't wrap working cygwin implementation
47881         * lib/fpurge.c (fpurge): Fix comment typo.
47882         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47883         1.7 to avoid replacement.
47884         * tests/test-fpurge.c (main): Enhance test.
47885
47886 2009-08-15  Eric Blake  <ebb9@byu.net>
47887         and Jim Meyering  <meyering@redhat.com>
47888
47889         test-update-copyright: skip if perl is insufficient
47890         * tests/test-update-copyright.sh: Failure to run maintainer tool
47891         should not cause testsuite failure on cygwin 1.5.
47892
47893 2009-08-14  Eric Blake  <ebb9@byu.net>
47894
47895         doc: mention more functions added in cygwin 1.7.0
47896         * doc/posix-headers/limits.texi (limits.h): Update for recent
47897         cygwin additions.
47898         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47899         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47900         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47901         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47902         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47903
47904 2009-08-14  Eric Blake  <ebb9@byu.net>
47905
47906         maint.mk: simplify update-copyright rule
47907         * top/maint.mk (update-copyright-local): Delete, and document how
47908         to do it in cfg.mk instead.
47909         (update-copyright-exclude-regexp): Delete, and document how to do
47910         it in .x-update-copyright instead.
47911         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47912         exclude ChangeLog.
47913
47914 2009-08-14  Bruno Haible  <bruno@clisp.org>
47915
47916         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47917
47918 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47919
47920         maint.mk: support update-copyright-env
47921         * top/maint.mk (update-copyright-env): Define place-holder.
47922         (update-copyright): Expand $(update-copyright-env) before
47923         invoking update-copyright.
47924
47925 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47926
47927         update-copyright: implement forced reformatting
47928         * build-aux/update-copyright: Implement and document
47929         UPDATE_COPYRIGHT_FORCE.
47930         * tests/test-update-copyright.sh: Test it.
47931
47932 2009-08-14  Eric Blake  <ebb9@byu.net>
47933         and Bruno Haible  <bruno@clisp.org>
47934
47935         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47936         * tests/test-locale.c: Revert previous patch related to NULL.
47937         * tests/test-stdio.c: Likewise.
47938         * tests/test-stdlib.c: Likewise.
47939         * tests/test-string.c: Likewise.
47940         * tests/test-unistd.c: Likewise.
47941         * modules/time-tests (Depends-on): Add verify.
47942         * modules/wchar-tests (Depends-on): Likewise.
47943         * tests/test-time.c: Test for NULL compliance.
47944         * tests/test-wchar.c: Likewise.
47945         * modules/locale (Depends-on): Add stddef.
47946         * modules/stdio (Depends-on): Likewise.
47947         * modules/stdlib (Depends-on): Likewise.
47948         * modules/string (Depends-on): Likewise.
47949         * modules/time (Depends-on): Likewise.
47950         * modules/unistd (Depends-on): Likewise.
47951         * modules/wchar (Depends-on): Likewise.
47952         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47953         * lib/stdlib.in.h (includes): Likewise.
47954         * lib/string.in.h (includes): Likewise.
47955         * lib/time.in.h (includes): Likewise.
47956         * lib/unistd.in.h (includes): Likewise.
47957         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47958         replaced.
47959         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47960         * m4/stddef_h.m4: New file.
47961         * modules/stddef: Likewise.
47962         * lib/stddef.in.h: Likewise.
47963         * modules/stddef-tests: Likewise.
47964         * tests/test-stddef.c: Likewise.
47965         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47966         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47967         * doc/posix-headers/locale.texi (locale.h): Likewise.
47968         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47969         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47970         * doc/posix-headers/string.texi (string.h): Likewise.
47971         * doc/posix-headers/time.texi (time.h): Likewise.
47972         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47973         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47974
47975 2009-08-14  Eric Blake  <ebb9@byu.net>
47976
47977         doc: improve git diff of texinfo files
47978         * .gitattributes: Add rule for *.texi files, with hint on how to
47979         use it.
47980         Copied from m4, and based on a report by Bruno Haible.
47981
47982 2009-08-14  Bruno Haible  <bruno@clisp.org>
47983
47984         Disable multithread support by default on Cygwin 1.5.x for real.
47985         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47986
47987 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47988
47989         update-copyright: much ado about intervals
47990         * build-aux/update-copyright: Implement and document
47991         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47992         of copyright year intervals.
47993         Also, document UPDATE_COPYRIGHT_YEAR.
47994         * tests/test-update-copyright.sh: Test it.
47995
47996         update-copyright: convert 2-digit to 4-digit years
47997         * build-aux/update-copyright: Implement and document.
47998         * tests/test-update-copyright.sh: Update.
47999
48000 2009-08-14  Jim Meyering  <meyering@redhat.com>
48001
48002         test-exclude: avoid coreutils "make check" failure
48003         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
48004         just as in test-argmatch.c.
48005
48006 2009-08-13  Eric Blake  <ebb9@byu.net>
48007
48008         test-dup2: fix bad assumption
48009         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
48010         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
48011
48012         test-version-etc: fix CRLF portability issue
48013         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
48014         recognize \r.
48015         * tests/test-argp-version-etc-1.sh: Likewise.
48016
48017         getopt: update client modules
48018         * modules/argp (Depends-on): Use getopt-gnu.
48019         * modules/git-merge-changelog (Depends-on): Likewise.
48020         * modules/long-options (Depends-on): Likewise.
48021         * modules/xstrtol (Depends-on): Likewise.
48022
48023 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48024
48025         * tests/test-version-etc.sh: Don't fail on different
48026         project/version.  Don't fail on CRLF differences.  Rewrite to use
48027         multiple -e instead of multiple sed forks, suggested by Eric Blake
48028         <ebb9@byu.net>.
48029         * tests/test-argp-version-etc-1.sh: Likewise.
48030
48031 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48032
48033         * tests/test-version-etc.sh: Don't fail on different
48034         project/version.
48035
48036 2009-08-12  Bruno Haible  <bruno@clisp.org>
48037
48038         Tests for modules 'getopt-posix', 'getopt-gnu'.
48039         * modules/getopt-posix-tests: New file.
48040         * tests/test-getopt.c: New file.
48041         * tests/test-getopt.h: New file.
48042         * tests/test-getopt_long.h: New file.
48043
48044         New modules 'getopt-posix', 'getopt-gnu'.
48045         * modules/getopt-gnu: New file, renamed from modules/getopt.
48046         * modules/getopt-posix: New file.
48047         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
48048         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
48049         (gl_GETOPT): Remove macro.
48050         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
48051         Disable the test against BSD systems that declare optreset. Test
48052         against mingw bug. Test against lack of support of optional arguments
48053         on many platforms.
48054         * doc/glibc-headers/getopt.texi: Update module name and list of
48055         relevant platforms.
48056         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
48057         'getopt-gnu' and more portability problems.
48058         * NEWS: Mention the changes.
48059
48060 2009-08-12  Bruno Haible  <bruno@clisp.org>
48061
48062         Ensure that optarg etc. get declared by <unistd.h>.
48063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
48064         AC_USE_SYSTEM_EXTENSIONS.
48065         * modules/getopt (Depends-on): Add 'extensions'.
48066
48067 2009-08-12  Bruno Haible  <bruno@clisp.org>
48068
48069         Avoid test link errors.
48070         * modules/pipe-filter-ii-tests (Makefile.am): Define
48071         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
48072         * modules/pipe-filter-gi-tests (Makefile.am): Define
48073         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
48074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48075
48076 2009-08-12  Bruno Haible  <bruno@clisp.org>
48077
48078         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48079         gl_GETOPT_SUBSTITUTE before.
48080         (gl_GETOPT): Use it.
48081         * m4/argp.m4 (gl_ARGP): Update.
48082         Reported by Sergey Poznyakoff.
48083
48084         * m4/getopt.m4: Reorder macros.
48085         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48086         (gl_GETOPT_SUBSTITUTE): Remove macro.
48087
48088 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48089
48090         Minor improvement in gitlog-to-changelog
48091
48092         * build-aux/gitlog-to-changelog: New option `--format' makes
48093         output format string configurable.
48094
48095 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48096
48097         Optimize exclude: use hash tables for non-wildcard patterns.
48098
48099         * lib/exclude.c: Include hash.h and mbuiter.h
48100         (struct exclude_pattern, exclude_segment): New data types.
48101         (struct exclude): Rewrite.
48102         (fnmatch_pattern_has_wildcards): New function.
48103         (new_exclude_segment, free_exclude_segment): New functions.
48104         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48105         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48106         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48107         * modules/exclude: Depend on hash and mbuiter.
48108
48109         * modules/exclude-tests: New file.
48110         * tests/test-exclude.c: New file.
48111         * tests/test-exclude1.sh: New file.
48112         * tests/test-exclude2.sh: New file.
48113         * tests/test-exclude3.sh: New file.
48114         * tests/test-exclude4.sh: New file.
48115         * tests/test-exclude5.sh: New file.
48116         * tests/test-exclude6.sh: New file.
48117         * tests/test-exclude7.sh: New file.
48118
48119 2009-08-12  Bruno Haible  <bruno@clisp.org>
48120
48121         Ensure that getopt() gets declared by <unistd.h>.
48122         * lib/unistd.in.h: Conditionally include getopt.h.
48123         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48124         Set GNULIB_UNISTD_H_GETOPT.
48125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48126         GNULIB_UNISTD_H_GETOPT.
48127         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48128
48129 2009-08-12  Bruno Haible  <bruno@clisp.org>
48130
48131         Clarify logic.
48132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48133         gl_replace_getopt instead of GETOPT_H.
48134
48135 2009-08-12  Bruno Haible  <bruno@clisp.org>
48136
48137         * m4/getopt.m4: Add comments.
48138
48139 2009-08-12  Bruno Haible  <bruno@clisp.org>
48140
48141         Disable multithread support by default on Cygwin 1.5.x.
48142         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48143         set gl_use_threads=no if not specified otherwise.
48144
48145 2009-08-11  Bruno Haible  <bruno@clisp.org>
48146
48147         Avoid compilation error on NetBSD 5.0.
48148         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48149         * tests/test-stdio.c: Likewise.
48150         * tests/test-stdlib.c: Likewise.
48151         * tests/test-string.c: Likewise.
48152         * tests/test-unistd.c: Likewise.
48153         Reported by Greg Troxel <gdt@ir.bbn.com>
48154         at <https://savannah.gnu.org/support/?106973>.
48155
48156 2009-08-11  Bruno Haible  <bruno@clisp.org>
48157
48158         * modules/dup2-tests (Depends-on): Remove close.
48159
48160         Undo 2009-07-19 commit.
48161         * modules/acl-tests (Depends-on): Remove close.
48162         * modules/binary-io-tests (Depends-on): Likewise.
48163         * modules/closein-tests (Depends-on): Likewise.
48164         * modules/flock-tests (Depends-on): Likewise.
48165         * modules/fsync-tests (Depends-on): Likewise.
48166         * modules/lseek-tests (Depends-on): Likewise.
48167         * modules/pipe-tests (Depends-on): Likewise.
48168         * modules/posix_spawn-tests (Depends-on): Likewise.
48169         * modules/posix_spawnp-tests (Depends-on): Likewise.
48170         * modules/stat-time-tests (Depends-on): Likewise.
48171         * modules/yesno-tests (Depends-on): Likewise.
48172
48173 2009-08-10  Bruno Haible  <bruno@clisp.org>
48174
48175         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48176
48177 2009-08-10  Bruno Haible  <bruno@clisp.org>
48178
48179         Fix a gcc warning.
48180         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48181
48182 2009-08-10  Bruno Haible  <bruno@clisp.org>
48183
48184         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48185         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48186         not only the first time.
48187         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48188         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48189         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48190         is 1, not only the the first time.
48191
48192 2009-08-10  Bruno Haible  <bruno@clisp.org>
48193
48194         Make it possible to use module 'gethostname' without module 'close'.
48195         * lib/unistd.in.h (close): Evoke a link error only if
48196         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48198         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48199         * modules/unistd (Makefile.am): Substitute
48200         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48201         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48202         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48203         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48204         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48205         * modules/sys_ioctl (Makefile.am): Substitute
48206         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48207         * modules/socket (configure.ac): On native Windows, set
48208         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48209         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48210         Reported by Sam Steingold <sds@gnu.org>.
48211
48212 2009-08-10  Bruno Haible  <bruno@clisp.org>
48213
48214         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48215         * modules/ioctl (configure.ac): Likewise.
48216
48217 2009-08-10  Bruno Haible  <bruno@clisp.org>
48218
48219         Avoid collision between gnulib wrapper and libintl wrapper.
48220         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48221         already defined in intl/printf.c.
48222         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48223         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48224
48225 2009-08-09  Bruno Haible  <bruno@clisp.org>
48226
48227         Make <sys/select.h> really self-contained, also on Solaris 10.
48228         * lib/sys_select.in.h: Include <string.h>.
48229         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48230         Solaris 10 problem.
48231         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48232         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48233         Reported by Jim Meyering.
48234
48235 2009-08-09  Bruno Haible  <bruno@clisp.org>
48236
48237         Avoid warnings from 'aclocal' that are due to a use of macro name
48238         AM_XGETTEXT_OPTION that is not defined in automake.
48239         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48240         automake.
48241         * modules/error (configure.ac): Likewise.
48242         * modules/propername (configure.ac): Likewise.
48243         * modules/vasprintf (configure.ac): Likewise.
48244         * modules/verror (configure.ac): Likewise.
48245         * modules/xprintf (configure.ac): Likewise.
48246         * modules/xvasprintf (configure.ac): Likewise.
48247
48248 2009-08-08  Bruno Haible  <bruno@clisp.org>
48249
48250         Avoid compilation error in C++ mode.
48251         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48252         Reported by Sam Steingold <sds@gnu.org>.
48253
48254 2009-08-08  Bruno Haible  <bruno@clisp.org>
48255
48256         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48257         for the various Unix platforms.
48258         * doc/posix-headers/limits.texi: Update platforms list regarding
48259         HOST_NAME_MAX.
48260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48261
48262 2009-08-07  Jim Meyering  <meyering@redhat.com>
48263
48264         selinux-at: fix typo in a comment
48265         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48266         Spotted by Paolo Bonzini.
48267
48268         selinux-at: remove redundant m4 code, add documentation
48269         * modules/selinux-at (configure.ac): Remove redundant code.
48270         LIB_SELINUX is already set via the dependent module, selinux-h.
48271         (Include): Add quotes around selinux-at.h.
48272         * lib/selinux-at.h: Add documentation.
48273         Reported by Bruno Haible in
48274         http://marc.info/?l=gnulib-bug&m=124958988300749
48275
48276 2009-08-07  Bruno Haible  <bruno@clisp.org>
48277
48278         Avoid link error on MacOS X 10.3 and 10.4.
48279         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48280         on non-ELF systems.
48281         * lib/argp-pv.c (argp_program_version): Likewise.
48282         Reported by Simon Josefsson.
48283
48284 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48285
48286         * tests/test-version-etc.sh: Use $EXEEXT.
48287
48288 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48289
48290         update-copyright: update documentation to point to maint.mk
48291         * build-aux/update-copyright: Here.
48292
48293 2009-08-06  Jim Meyering  <meyering@redhat.com>
48294
48295         maint.mk: support update-copyright-local
48296         * top/maint.mk (update-copyright-local): Define place-holder.
48297         (update-copyright): Depend on $(update-copyright-local).
48298
48299 2009-08-06  Jim Meyering  <meyering@redhat.com>
48300
48301         selinux-at: new module
48302         Initially written for coreutils, this module will soon be
48303         used by findutils, too.
48304         * MODULES.html.sh [Misc]: Add selinux-at.
48305         * lib/selinux-at.h: New file, from coreutils.
48306         * lib/selinux-at.c: Likewise.
48307         * modules/selinux-at: Likewise.
48308         (License): Change from LGPL to GPL, since it depends
48309         on the GPL'd openat module.
48310
48311         doc: update README
48312         * README: Remove references to cogito.
48313         Remove cvs-repo-updating instructions from 2007.
48314         Don't imply that CVS is better if you have limited disk space.
48315
48316 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48317
48318         update-copyright: support C-style comments
48319         * build-aux/update-copyright: Implement and document.
48320         * tests/test-update-copyright.sh: Test.
48321
48322 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48323
48324         update-copyright: support omitted "(C)"
48325         * build-aux/update-copyright: Implement and document.  Also,
48326         allow variable whitespace before "(C)".
48327         * tests/test-update-copyright.sh: Test.
48328
48329 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48330
48331         update-copyright: don't trip on non-FSF copyright statements
48332         * build-aux/update-copyright: Fix so that the first correctly
48333         formatted FSF copyright statement is recognized no matter what
48334         appears before it.  Update documentation.
48335         * tests/test-update-copyright.sh: Test that.
48336
48337 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48338
48339         update-copyright: clean up code a little
48340         * build-aux/update-copyright: Append "_re" to the name of any
48341         variable holding a regular expression.
48342         Replace "old" and "new" with "stmt" in variable names.
48343         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48344         handled correctly.
48345         Format code more consistently.
48346
48347 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48348
48349         update-copyright-tests: improve portability
48350         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48351         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48352
48353 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48354
48355         update-copyright: support @copyright{} and &copy;
48356         * build-aux/update-copyright: Implement and document.
48357         * tests/test-update-copyright.sh: Test.
48358
48359 2009-08-04  Jim Meyering  <meyering@redhat.com>
48360
48361         update-copyright-tests: correctly test EOL=\r\n handling
48362         * tests/test-update-copyright.sh: Put \r at the end of some lines
48363         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48364
48365         maint.mk: make update-copyright exclusion list more configurable
48366         * top/maint.mk (update-copyright): Default to excluding COPYING,
48367         but allow an override, in case someone does want to update that file.
48368
48369         maint.mk: don't update copyright date in COPYING
48370         * top/maint.mk (update-copyright): Exclude COPYING.
48371
48372         maint.mk: add a copyright-updating rule
48373         * top/maint.mk (update-copyright): New rule.
48374         Derived from coreutils/Makefile.am.
48375
48376         update-copyright: rename some variables
48377         * build-aux/update-copyright: Rename a few variables for clarity.
48378         Tweak syntax.  List Joel E. Denny as coauthor.
48379
48380 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48381
48382         update-copyright: fix bug for 2-digit last year and add tests
48383         * build-aux/update-copyright: Fix bug.
48384         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48385         specified.
48386         * modules/update-copyright-tests: New
48387         * tests/test-update-copyright.sh: New.
48388
48389 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48390
48391         update-copyright: handle leading tabs in line prefix
48392         * build-aux/update-copyright: Count leading tabs as 8 spaces
48393         when computing margin.  This helps with the formatting of
48394         ChangeLogs, for example.
48395         Fix documentation a little.
48396
48397 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48398
48399         update-copyright: support EOL=\r\n
48400         * build-aux/update-copyright: Implement that.
48401
48402 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48403
48404         update-copyright: automatically format copyright statements
48405         * build-aux/update-copyright: Implement that.
48406         Also, be a little more predictable and safer by always failing
48407         when the full copyright format is not perfectly recognized as an
48408         unbroken whole.  Discussed at
48409         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48410         Rewrite documentation.
48411
48412 2009-08-03  Bruno Haible  <bruno@clisp.org>
48413
48414         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48415
48416 2009-08-02  Bruno Haible  <bruno@clisp.org>
48417
48418         Tests for module 'uname'.
48419         * modules/uname-tests: New file.
48420         * tests/test-uname.c: New file.
48421
48422         New module 'uname'.
48423         * lib/uname.c: New file.
48424         * m4/uname.m4: New file.
48425         * modules/uname: New file.
48426         * doc/posix-functions/uname.texi: Mention the new module.
48427
48428 2009-08-02  Bruno Haible  <bruno@clisp.org>
48429
48430         Tests for module 'sys_utsname'.
48431         * modules/sys_utsname-tests: New file.
48432         * tests/test-sys_utsname.c: New file.
48433
48434         New module 'sys_utsname'.
48435         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48436         * m4/sys_utsname_h.m4: New file.
48437         * modules/sys_utsname: New file.
48438         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48439
48440 2009-08-02  Bruno Haible  <bruno@clisp.org>
48441
48442         Implicitly initialize the sockets library.
48443         * lib/gethostname.c: Include sockets.h.
48444         (rpl_gethostname): Invoke gl_sockets_startup.
48445         * lib/socket.c: Include sockets.h.
48446         (rpl_socket): Invoke gl_sockets_startup.
48447         * modules/gethostname (Depends-on): Add sockets.
48448         * modules/socket (Depends-on): Likewise.
48449         * tests/test-poll.c: Don't include sockets.h.
48450         (main): Don't invoke gl_sockets_startup.
48451         * tests/test-select.c: Don't include sockets.h.
48452         (main): Don't invoke gl_sockets_startup.
48453
48454 2009-08-02  Bruno Haible  <bruno@clisp.org>
48455
48456         Allow multiple calls to gl_sockets_startup.
48457         * lib/sockets.c (initialized_sockets_version): New variable.
48458         (gl_sockets_startup): Do nothing if already called for this or a higher
48459         version.
48460         (gl_sockets_cleanup): Reset initialized_sockets_version.
48461
48462 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48463
48464         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48465         different project/version.
48466
48467 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48468             Bruno Haible  <bruno@clisp.org>
48469
48470         Tests for module 'pipe-filter-gi'.
48471         * modules/pipe-filter-gi-tests: New file.
48472         * tests/test-pipe-filter-gi1.sh: New file.
48473         * tests/test-pipe-filter-gi1.c: New file.
48474         * tests/test-pipe-filter-gi2.sh: New file.
48475         * tests/test-pipe-filter-gi2-main.c: New file.
48476         * tests/test-pipe-filter-gi2-child.c: New file.
48477
48478         New module 'pipe-filter-gi'.
48479         * lib/pipe-filter-gi.c: New file.
48480         * modules/pipe-filter-gi: New file.
48481
48482 2009-08-02  Bruno Haible  <bruno@clisp.org>
48483             Paolo Bonzini  <bonzini@gnu.org>
48484
48485         Tests for module 'pipe-filter-ii'.
48486         * modules/pipe-filter-ii-tests: New file.
48487         * tests/test-pipe-filter-ii1.sh: New file.
48488         * tests/test-pipe-filter-ii1.c: New file.
48489         * tests/test-pipe-filter-ii2.sh: New file.
48490         * tests/test-pipe-filter-ii2-main.c: New file.
48491         * tests/test-pipe-filter-ii2-child.c: New file.
48492
48493         New module 'pipe-filter-ii'.
48494         * lib/pipe-filter.h: New file.
48495         * lib/pipe-filter-ii.c: New file.
48496         * lib/pipe-filter-aux.h: New file.
48497         * modules/pipe-filter-ii: New file.
48498
48499 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48500
48501         * lib/gc-libgcrypt.c: Change copyright to FSF.
48502         * lib/gc-gnulib.c: Likewise.
48503
48504 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48505
48506         * lib/gethostname.c: Include limits.h.
48507
48508 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48509             Bruno Haible  <bruno@clisp.org>
48510
48511         Ensure HOST_NAME_MAX as part of the gethostname module.
48512         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48513         define also HOST_NAME_MAX.
48514         * tests/test-gethostname.c: Include <limits.h>.
48515         (main): Check also HOST_NAME_MAX.
48516         * doc/posix-headers/limits.texi: Document the mingw problem.
48517
48518 2009-08-02  Bruno Haible  <bruno@clisp.org>
48519
48520         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48521         Add comments.
48522
48523 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48524
48525         * lib/gethostname.c: Add Windows wrapper.
48526         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48527         * modules/gethostname: Depend on sys_socket & errno, for also
48528         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48529         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48530
48531 2009-07-31  Jim Meyering  <meyering@redhat.com>
48532
48533         getloadavg: fix symbol name in comment
48534         * lib/getloadavg.c: Correct a typo I introduced when adding
48535         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48536         Matt Kraai spotted the problem.
48537
48538 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48539
48540         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48541         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48542         code also if ! defined N_NAME_POINTER.
48543         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48544         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48545         but the n_name member is a 12-byte array.
48546
48547 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48548
48549         update-copyright: generalize comment handling
48550         * build-aux/update-copyright: Handle copyright statements
48551         within more comment styles.
48552         Document usage.
48553         Report any file with an external copyright holder or parse failure.
48554
48555 2009-07-29  Jim Meyering  <meyering@redhat.com>
48556
48557         mktime: correct setting of REPLACE_MKTIME
48558         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48559
48560         update-copyright: new module
48561         * modules/update-copyright: New file.
48562         * build-aux/update-copyright: New file.
48563         * MODULES.html.sh (maint+release support): Add update-copyright.
48564
48565 2009-07-27  Bruno Haible  <bruno@clisp.org>
48566
48567         Fix compilation error when <ctime> is used and mktime is replaced.
48568         * lib/time.in.h (mktime): New declaration.
48569         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48570         REPLACE_MKTIME instead of defining mktime in config.h.
48571         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48572         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48573         Reported by Ross McFarland <rwmcfa1@neces.com>.
48574
48575 2009-07-27  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48578         Reported by Matt Kraai <mkraai@beckman.com>.
48579
48580 2009-07-25  Jim Meyering  <meyering@redhat.com>
48581
48582         maint.mk: avoid warnings about missing files
48583         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48584         diagnostic when .prev-version does not exist.
48585         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48586         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48587         nonexistent cfg.mk.
48588         Suggestions from Simon Josefsson.
48589
48590 2009-07-25  Bruno Haible  <bruno@clisp.org>
48591
48592         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48593         defined as macros. Needed on QNX 6.4.1.
48594         Reported by Matt Kraai <mkraai@beckman.com>.
48595
48596 2009-07-23  Jim Meyering  <meyering@redhat.com>
48597
48598         maint.mk: invoke "make dist" with a working value of XZ_OPT
48599         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48600
48601 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48602
48603         Make fseeko.c compile on QNX.
48604         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48605
48606 2009-07-22  Peter Simons  <simons@cryp.to>
48607
48608         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48609         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48610         * lib/md4.h: Likewise.
48611         * lib/md5.h: Likewise.
48612         * lib/sha1.h: Likewise.
48613         * lib/sha256.h: Likewise.
48614         * lib/sha512.h: Likewise.
48615
48616         tests-sha1: don't assign literal string to 'char *' variable
48617         * tests/test-sha1.c (main): Declare locals with "const" to match
48618         attributes of the right hand side.
48619
48620 2009-07-21  Eric Blake  <ebb9@byu.net>
48621
48622         dup2: fix more mingw problems
48623         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48624         fd to itself.
48625         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48626         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48627         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48628         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48629         care of mingw bugs.
48630
48631 2009-07-21  Jim Meyering  <meyering@redhat.com>
48632
48633         vc-list-files: avoid failure when /bin/sh is dash
48634         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48635         On some Debian based systems, /bin/sh is a symlink to dash, and running
48636         this command would omit the "/" following each 'tests' prefix:
48637           dash -x build-aux/vc-list-files -C . tests
48638         That is because bash and dash work differently:
48639           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48640           bash ok
48641           dash odd
48642
48643 2009-07-21  Eric Blake  <ebb9@byu.net>
48644
48645         dup2-tests: test previous patch
48646         * modules/dup2-tests: New file.
48647         * tests/test-dup2.c: Likewise.
48648         * tests/test-open.c (main): Avoid unspecified behavior.
48649         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48650         test.
48651
48652         dup2: work around mingw and cygwin 1.5 bug
48653         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48655         * modules/unistd (Makefile.am): Substitute it.
48656         * lib/unistd.in.h (dup2): Declare the replacement.
48657         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48658         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48659         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48660         * modules/execute (Depends-on): Add dup2.
48661         * modules/fseterr (Depends-on): Likewise.
48662         * modules/pipe (Depends-on): Likewise.
48663         * modules/posix_spawn-internal (Depends-on): Likewise.
48664
48665 2009-07-21  Bruno Haible  <bruno@clisp.org>
48666
48667         * modules/.gitattributes: New file.
48668
48669 2009-07-20  Bruno Haible  <bruno@clisp.org>
48670
48671         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48672         (main): Use it.
48673
48674 2009-07-20  Eric Blake  <ebb9@byu.net>
48675
48676         test-pipe: make a bit more robust.
48677         * tests/test-pipe.c (myerr): Allow error messages regardless of
48678         what we do to stderr.
48679         (test_pipe): Rearrange to avoid deadlock.
48680         (child_main): Try a larger read, to ensure we avoided deadlock.
48681         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48682         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48683         if misused.
48684
48685 2009-07-19  Jim Meyering  <meyering@redhat.com>
48686
48687         fts: avoid false-positive cycle-detection
48688         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48689         for each new command line argument.
48690
48691 2009-07-19  Bruno Haible  <bruno@clisp.org>
48692
48693         Fix build error on mingw with the modules sys_select and unistd.
48694         * modules/acl-tests (Depends-on): Add close.
48695         * modules/binary-io-tests (Depends-on): Likewise.
48696         * modules/closein-tests (Depends-on): Likewise.
48697         * modules/flock-tests (Depends-on): Likewise.
48698         * modules/fsync-tests (Depends-on): Likewise.
48699         * modules/lseek-tests (Depends-on): Likewise.
48700         * modules/pipe-tests (Depends-on): Likewise.
48701         * modules/posix_spawn-tests (Depends-on): Likewise.
48702         * modules/posix_spawnp-tests (Depends-on): Likewise.
48703         * modules/stat-time-tests (Depends-on): Likewise.
48704         * modules/yesno-tests (Depends-on): Likewise.
48705
48706 2009-07-19  Bruno Haible  <bruno@clisp.org>
48707
48708         Unify conditionals.
48709         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48710         macros, not at the compiler macros.
48711         * lib/pipe.c: Likewise.
48712         * lib/execute.c: Likewise.
48713         * lib/spawni.c: Likewise.
48714
48715 2009-07-19  Bruno Haible  <bruno@clisp.org>
48716
48717         Fix handling of closed stdin/stdout/stderr on mingw.
48718         * lib/w32spawn.h: Include unistd.h.
48719         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48720         file descriptor with O_NOINHERIT flag.
48721         (fd_safer_noinherit): New function, based on fd-safer.c.
48722         (dup_safer_noinherit): New function, based on dup-safer.c.
48723         (undup_safer_noinherit): New function.
48724         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48725         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48726         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48727         instead of fd_safer.
48728         * tests/test-pipe.c: Include <windows.h>.
48729         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48730         result.
48731
48732         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48733         from main.
48734         (test_pipe): Pass an extra argument for disambiguation.
48735         (main): Invoke parent_main or child_main.
48736
48737         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48738         consistently.
48739
48740 2009-07-18  Eric Blake  <ebb9@byu.net>
48741
48742         test-pipe: fix mingw build
48743         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48744
48745 2009-07-18  Bruno Haible  <bruno@clisp.org>
48746
48747         * modules/pipe-tests (Makefile.am): Fix typo.
48748
48749 2009-07-18  Eric Blake  <ebb9@byu.net>
48750
48751         error: fix mingw build
48752         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48753         Reported by Bruno Haible.
48754
48755         error: avoid undefined use of stdout
48756         * lib/error.c (error, error_at_line): Check that fd 1 is open
48757         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48758         is handling faults and the close_stdout module wants to report the
48759         detection of closed stdout as an error.
48760
48761 2009-07-17  Eric Blake  <ebb9@byu.net>
48762
48763         pipe: be robust in face of closed fds
48764         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48765         should cause child to misbehave.
48766         * modules/pipe-tests: New module.
48767         * tests/test-pipe.c: New file.
48768         * tests/test-pipe.sh: New file.
48769         Reported by Akim Demaille.
48770
48771 2009-07-14  Bruno Haible  <bruno@clisp.org>
48772
48773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48774         Reported by anonymous kc.
48775
48776 2009-07-07  Jim Meyering  <meyering@redhat.com>
48777
48778         maint.mk: don't look for translatable strings in *.m4 or *.mk
48779         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48780         when searching for translatable strings.
48781
48782 2009-07-05  Jim Meyering  <meyering@redhat.com>
48783
48784         remove superfluous parentheses in STREQ definition
48785         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48786         * lib/getugroups.c (STREQ): Likewise.
48787         * lib/fnmatch.c (STREQ): Likewise.
48788         Spotted by Bruno Haible.
48789
48790 2009-07-04  Jim Meyering  <meyering@redhat.com>
48791
48792         argv-iter: new module
48793         * MODULES.html.sh: Add argv-iter.
48794         * lib/argv-iter.c, lib/argv-iter.h: New files.
48795         * modules/argv-iter: New file.
48796         * modules/argv-iter-tests: New file.
48797         * tests/test-argv-iter.c: Test it.
48798
48799 2009-07-04  Bruno Haible  <bruno@clisp.org>
48800
48801         Fix assertion.
48802         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48803         contains more exact copies of a given entry than file2, leave the extra
48804         copies unpaired rather than aborting.
48805         Reported by Eric Blake.
48806
48807 2009-07-02  Bruno Haible  <bruno@clisp.org>
48808
48809         Speedup git-merge-changelog for git cherry-pick.
48810         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48811         (entries_mapping_get): New function, extracted from compute_mapping.
48812         (entries_mapping_reverse_get): New function.
48813         (compute_mapping): Add a 'full' argument. Return the result in a
48814         'struct entries_mapping'.
48815         (main): Update. Access the mappings through entries_mapping_get.
48816         Reported by Eric Blake.
48817
48818 2009-07-02  Bruno Haible  <bruno@clisp.org>
48819
48820         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48821         best_i.
48822
48823 2009-07-02  Bruno Haible  <bruno@clisp.org>
48824
48825         Speed up approximate search for matching ChangeLog entries.
48826         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48827         argument. Call fstrcmp_bounded instead of fstrcmp.
48828         (compute_mapping, try_split_merged_entry, main): Update callers.
48829
48830 2009-07-02  Bruno Haible  <bruno@clisp.org>
48831
48832         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48833
48834 2009-06-30  Bruno Haible  <bruno@clisp.org>
48835
48836         Reduce the number of uc_is_cased calls.
48837         * lib/unicase.h (casing_suffix_context_t): Add
48838         'first_char_except_ignorable' field.
48839         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48840         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48841         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48842         Update initializer.
48843         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48844         case-ignorable characters.
48845         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48846         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48847         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48848         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48849         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48850
48851 2009-06-30  Bruno Haible  <bruno@clisp.org>
48852
48853         Tests for module 'unicase/ignorable'.
48854         * modules/unicase/ignorable-tests: New file.
48855         * tests/unicase/test-ignorable.c: New file, generated by
48856         gen-uni-tables.
48857
48858         Tests for module 'unicase/cased'.
48859         * modules/unicase/cased-tests: New file.
48860         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48861         * tests/unicase/test-predicate-part1.h: New file, derived from
48862         tests/unictype/test-predicate-part1.h.
48863         * tests/unicase/test-predicate-part2.h: New file, same as
48864         tests/unictype/test-predicate-part2.h.
48865
48866         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48867         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48868         (output_casing_properties): New function.
48869         (main): Call it.
48870         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48871         * lib/unicase/cased.c: Include unictype/bitmap.h.
48872         (uc_is_cased): Define through a bitmap lookup.
48873         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48874         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48875         (uc_is_case_ignorable): Define through a bitmap lookup.
48876         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48877         lib/unictype/bitmap.h.
48878         (Depends-on): Add inline. Clean up.
48879         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48880         lib/unictype/bitmap.h.
48881         (Depends-on): Add inline. Clean up.
48882         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48883         recognition.
48884         * tests/unicase/test-u16-tolower.c (main): Likewise.
48885         * tests/unicase/test-u32-tolower.c (main): Likewise.
48886
48887 2009-06-30  Bruno Haible  <bruno@clisp.org>
48888
48889         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48890         * lib/unicase/u16-casemap.c: Likewise.
48891         * lib/unicase/u32-casemap.c: Likewise.
48892
48893 2009-06-29  Bruno Haible  <bruno@clisp.org>
48894
48895         Define u32_casefold as a wrapper around u32_ct_casefold.
48896         * lib/unicase/u32-casefold.c: Update.
48897         * modules/unicase/u32-casefold (Depends-on): Add
48898         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48899         unicase/empty-suffix-context. Clean up.
48900
48901         Define u16_casefold as a wrapper around u16_ct_casefold.
48902         * lib/unicase/u16-casefold.c: Update.
48903         * modules/unicase/u16-casefold (Depends-on): Add
48904         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48905         unicase/empty-suffix-context. Clean up.
48906
48907         Define u8_casefold as a wrapper around u8_ct_casefold.
48908         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48909         * lib/unicase/u8-casefold.c: Update.
48910         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48911         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48912
48913         Define u32_totitle as a wrapper around u32_ct_totitle.
48914         * lib/unicase/u32-totitle.c: Update.
48915         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48916         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48917
48918         Define u16_totitle as a wrapper around u16_ct_totitle.
48919         * lib/unicase/u16-totitle.c: Update.
48920         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48921         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48922
48923         Define u8_totitle as a wrapper around u8_ct_totitle.
48924         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48925         functions.
48926         (FUNC): Delegate to U_CT_TOTITLE.
48927         * lib/unicase/u8-totitle.c: Update.
48928         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48929         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48930
48931         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48932         invocation.
48933         * modules/unicase/u32-tolower (Depends-on): Add
48934         unicase/empty-prefix-context, unicase/empty-suffix-context.
48935
48936         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48937         invocation.
48938         * modules/unicase/u16-tolower (Depends-on): Add
48939         unicase/empty-prefix-context, unicase/empty-suffix-context.
48940
48941         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48942         * modules/unicase/u8-tolower (Depends-on): Add
48943         unicase/empty-prefix-context, unicase/empty-suffix-context.
48944
48945         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48946         invocation.
48947         * modules/unicase/u32-toupper (Depends-on): Add
48948         unicase/empty-prefix-context, unicase/empty-suffix-context.
48949
48950         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48951         invocation.
48952         * modules/unicase/u16-toupper (Depends-on): Add
48953         unicase/empty-prefix-context, unicase/empty-suffix-context.
48954
48955         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48956         * modules/unicase/u8-toupper (Depends-on): Add
48957         unicase/empty-prefix-context, unicase/empty-suffix-context.
48958
48959         New module 'unicase/u32-ct-casefold'.
48960         * lib/unicase/u32-ct-casefold.c: New file.
48961         * modules/unicase/u32-ct-casefold: New file.
48962
48963         New module 'unicase/u16-ct-casefold'.
48964         * lib/unicase/u16-ct-casefold.c: New file.
48965         * modules/unicase/u16-ct-casefold: New file.
48966
48967         New module 'unicase/u8-ct-casefold'.
48968         * lib/unicase/u8-ct-casefold.c: New file.
48969         * lib/unicase/u-ct-casefold.h: New file, derived from
48970         lib/unicase/u-casefold.h.
48971         * modules/unicase/u8-ct-casefold: New file.
48972
48973         New module 'unicase/u32-ct-totitle'.
48974         * lib/unicase/u32-ct-totitle.c: New file.
48975         * modules/unicase/u32-ct-totitle: New file.
48976
48977         New module 'unicase/u16-ct-totitle'.
48978         * lib/unicase/u16-ct-totitle.c: New file.
48979         * modules/unicase/u16-ct-totitle: New file.
48980
48981         New module 'unicase/u8-ct-totitle'.
48982         * lib/unicase/u8-ct-totitle.c: New file.
48983         * lib/unicase/u-ct-totitle.h: New file, derived from
48984         lib/unicase/u-totitle.h.
48985         * modules/unicase/u8-ct-totitle: New file.
48986
48987         New module 'unicase/u32-ct-tolower'.
48988         * lib/unicase/u32-ct-tolower.c: New file.
48989         * modules/unicase/u32-ct-tolower: New file.
48990
48991         New module 'unicase/u16-ct-tolower'.
48992         * lib/unicase/u16-ct-tolower.c: New file.
48993         * modules/unicase/u16-ct-tolower: New file.
48994
48995         New module 'unicase/u8-ct-tolower'.
48996         * lib/unicase/u8-ct-tolower.c: New file.
48997         * modules/unicase/u8-ct-tolower: New file.
48998
48999         New module 'unicase/u32-ct-toupper'.
49000         * lib/unicase/u32-ct-toupper.c: New file.
49001         * modules/unicase/u32-ct-toupper: New file.
49002
49003         New module 'unicase/u16-ct-toupper'.
49004         * lib/unicase/u16-ct-toupper.c: New file.
49005         * modules/unicase/u16-ct-toupper: New file.
49006
49007         New module 'unicase/u8-ct-toupper'.
49008         * lib/unicase/u8-ct-toupper.c: New file.
49009         * modules/unicase/u8-ct-toupper: New file.
49010
49011         Add context arguments to u*_casemap functions.
49012         * lib/unicase/unicasemap.h: Include unicase.h.
49013         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
49014         suffix_context arguments.
49015         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
49016         functions.
49017         (FUNC): Add prefix_context and suffix_context arguments. Use
49018         uc_is_cased and uc_is_case_ignorable.
49019         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
49020         * lib/unicase/u16-casemap.c: Likewise.
49021         * lib/unicase/u32-casemap.c: Likewise.
49022         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
49023         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49024         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
49025         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49026         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
49027         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49028
49029         New module 'unicase/u32-suffix-context'.
49030         * lib/unicase/u32-suffix-context.c: New file.
49031         * modules/unicase/u32-suffix-context: New file.
49032
49033         New module 'unicase/u16-suffix-context'.
49034         * lib/unicase/u16-suffix-context.c: New file.
49035         * modules/unicase/u16-suffix-context: New file.
49036
49037         New module 'unicase/u8-suffix-context'.
49038         * lib/unicase/u8-suffix-context.c: New file.
49039         * lib/unicase/u-suffix-context.h: New file.
49040         * modules/unicase/u8-suffix-context: New file.
49041
49042         New module 'unicase/empty-suffix-context'.
49043         * lib/unicase/empty-suffix-context.c: New file.
49044         * modules/unicase/empty-suffix-context: New file.
49045
49046         New module 'unicase/u32-prefix-context'.
49047         * lib/unicase/u32-prefix-context.c: New file.
49048         * modules/unicase/u32-prefix-context: New file.
49049
49050         New module 'unicase/u16-prefix-context'.
49051         * lib/unicase/u16-prefix-context.c: New file.
49052         * modules/unicase/u16-prefix-context: New file.
49053
49054         New module 'unicase/u8-prefix-context'.
49055         * lib/unicase/u8-prefix-context.c: New file.
49056         * lib/unicase/u-prefix-context.h: New file.
49057         * lib/unicase/context.h: New file.
49058         * modules/unicase/u8-prefix-context: New file.
49059
49060         New module 'unicase/empty-prefix-context'.
49061         * lib/unicase/empty-prefix-context.c: New file.
49062         * modules/unicase/empty-prefix-context: New file.
49063
49064         New module 'unicase/ignorable'.
49065         * lib/unicase/ignorable.c: New file.
49066         * modules/unicase/ignorable: New file.
49067
49068         New module 'unicase/cased'.
49069         * lib/unicase/caseprop.h: New file.
49070         * lib/unicase/cased.c: New file.
49071         * modules/unicase/cased: New file.
49072
49073         New functions for case mapping of substrings.
49074         * lib/unicase.h (casing_prefix_context_t): New type.
49075         (unicase_empty_prefix_context): New variable.
49076         (u8_casing_prefix_context, u16_casing_prefix_context,
49077         u32_casing_prefix_context, u8_casing_prefixes_context,
49078         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49079         declarations.
49080         (casing_suffix_context_t): New type.
49081         (unicase_empty_suffix_context): New variable.
49082         (u8_casing_suffix_context, u16_casing_suffix_context,
49083         u32_casing_suffix_context, u8_casing_suffixes_context,
49084         u16_casing_suffixes_context, u32_casing_suffixes_context,
49085         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49086         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49087         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49088         declarations.
49089
49090 2009-06-28  Jim Meyering  <meyering@redhat.com>
49091
49092         boostrap: indent only with spaces
49093         * build-aux/bootstrap: Indent only with spaces, never TABs.
49094
49095         bootstrap: split long lines
49096         * build-aux/bootstrap: Keep line length < 80.
49097
49098         bootstrap: sync from coreutils
49099         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49100         just as autoreconf does.  Verify a list of prerequisite
49101         package-name,version-number pairs if defined in bootstrap.conf.
49102         Refer to README-prereq, if prerequisites are not satisfied.
49103
49104 2009-06-27  Eric Blake  <ebb9@byu.net>
49105
49106         tests: add test for bogus NULL definition
49107         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49108         * tests/test-stdlib.c: Likewise.
49109         * tests/test-string.c: Likewise.
49110         * tests/test-locale.c: Likewise.
49111         * tests/test-unistd.c: Likewise.
49112         * modules/stdio-tests (Depends-on): Add verify.
49113         * modules/stdlib-tests (Depends-on): Likewise.
49114         * modules/string-tests (Depends-on): Likewise.
49115         * modules/locale-tests (Depends-on): Likewise.
49116         * modules/unistd-tests (Depends-on): Likewise.
49117
49118 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49119
49120         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49121         self-explaining comment.
49122         * m4/selinux-selinux-h: Update serial.
49123         (gl_LIBSELINUX): New macro, adding a warning for missing development
49124         packages to code extracted from...
49125         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49126         Add warning for missing development packages here, too.
49127
49128 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49129
49130         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49131
49132 2009-06-25  Eric Blake  <ebb9@byu.net>
49133
49134         version-etc: fix regression
49135         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49136         gcc.
49137         (version_etc): Use it, to catch bugs with trailing NULL.
49138         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49139         (version_etc_va): Fix logic bug.
49140         * modules/version-etc-tests: Add test.
49141         * tests/test-version-etc.c: New file.
49142         * tests/test-version-etc.sh: Likewise.
49143
49144 2009-06-25  Sam Steingold  <sds@gnu.org>
49145
49146         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49147         mbtowc declaration.
49148
49149 2009-06-25  Eric Blake  <ebb9@byu.net>
49150
49151         fpurge: migrate into <stdio.h>
49152         * lib/fpurge.h: Delete...
49153         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49154         * lib/fpurge.c (fpurge): Change declaring header.
49155         * modules/fpurge (Files): Drop deleted file.
49156         (Depends-on): Add stdio.
49157         (configure.ac): Set witness.
49158         * modules/stdio (Makefile.am): Support fpurge macros.
49159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49160         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49161         * lib/fflush.c: Update client.
49162         * tests/test-fpurge.c: Likewise.
49163         * NEWS: Mention the change.
49164
49165 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49166
49167         * lib/argp-version-etc.c (program_authors): Add const
49168         qualifier.
49169         * lib/version-etc.c: Fix typos in the comments.
49170         * modules/argp-version-etc: Depends on version-etc.
49171
49172 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49173
49174         argp-version-etc: new module.
49175
49176         * lib/argp-version-etc.c: New file.
49177         * lib/argp-version-etc.h: New file.
49178         * modules/argp-version-etc: New file.
49179         * modules/argp-version-etc-tests: New file.
49180         * tests/test-argp-version-etc.c: New test.
49181         * tests/test-argp-version-etc-1.sh: New test.
49182
49183 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49184
49185         Provide additional interfaces and documentation for version-etc
49186         module.
49187
49188         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49189         interfaces.
49190         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49191         prototypes.
49192
49193 2009-06-24  Bruno Haible  <bruno@clisp.org>
49194
49195         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49196         HAVE_LIB${NAME} macro.
49197         Reported by Sam Steingold <sds@gnu.org>.
49198
49199 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49200
49201         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49202         needed.
49203
49204 2009-06-21  Bruno Haible  <bruno@clisp.org>
49205
49206         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49207         work.
49208         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49209         together with LIB${NAME}, LTLIB${NAME}.
49210         Reported by Sam Steingold <sds@gnu.org>.
49211
49212 2009-06-20  Jim Meyering  <meyering@redhat.com>
49213
49214         tests: make sc_require_test_exit_idiom more generic
49215         * top/maint.mk (Exit_witness_file): New overridable variable.
49216         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49217         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49218
49219 2009-06-19  Jim Meyering  <meyering@redhat.com>
49220
49221         hash: reverse order of src/dst parameters in an internal interface
49222         * lib/hash.c (transfer_entries): Reverse order of parameters to
49223         put DST before SRC.  Adjust callers.
49224
49225         tests: test-hash: avoid wholesale duplication
49226         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49227         Instead, use a loop and add a single conditional.
49228
49229         tests: test-hash: allow seed selection via a command line argument
49230         * tests/test-hash.c (get_seed): New function.
49231         (main): Use it.
49232
49233 2009-06-19  Eric Blake  <ebb9@byu.net>
49234
49235         hash: avoid memory leak on allocation failure
49236         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49237         failure.  Factor repeated algorithm...
49238         (transfer_entries): ...into new helper routine.
49239         (hash_delete): React to hash_rehash return value.
49240
49241         hash: reduce memory pressure in hash_rehash no-op case
49242         * lib/hash.c (next_prime): Avoid overflow.
49243         (hash_initialize): Factor bucket size computation...
49244         (compute_bucket_size): ...into new helper function.
49245         (hash_rehash): Use new function and open coding to reduce memory
49246         pressure, and avoid a memory leak in USE_OBSTACK code.
49247         Reported by Jim Meyering.
49248
49249 2009-06-18  Eric Blake  <ebb9@byu.net>
49250
49251         hash: make rotation more obvious
49252         * modules/hash (Depends-on): Add bitrotate and stdint.
49253         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49254         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49255         (SIZE_MAX): Rely on headers for definition.
49256         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49257         (raw_hasher): Use rotr_sz.
49258         Suggested by Jim Meyering.
49259
49260         hash: fix memory leak in last patch
49261         * lib/hash.c (hash_rehash): Avoid memory leak.
49262
49263         hash: avoid no-op rehashing
49264         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49265
49266         hash: provide default callback functions
49267         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49268         (hash_initialize): Use them as defaults.
49269         * tests/test-hash.c (main): Test this.
49270
49271         hash: minor optimization
49272         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49273         when possible.
49274         (hash_initialize): Document this promise.
49275         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49276         * tests/test-hash.c (hash_compare_strings): Test this.
49277
49278 2009-06-18  Bruno Haible  <bruno@clisp.org>
49279
49280         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49281         going to be replaced anyway.
49282
49283 2009-06-18  Bruno Haible  <bruno@clisp.org>
49284
49285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49286         in one place.
49287         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49288         be replaced anyway.
49289
49290 2009-06-18  Eric Blake  <ebb9@byu.net>
49291
49292         hash: check for resize before insertion
49293         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49294         threshold before insertion, so that a pathological hash_rehash
49295         that fills every bucket can still trigger another rehash.
49296
49297 2009-06-18  Jim Meyering  <meyering@redhat.com>
49298
49299         hash-tests: add a loop around the small tests
49300         * tests/test-hash.c (main): Repeat small tests with selected
49301         small initial table sizes.
49302
49303 2009-06-17  Eric Blake  <ebb9@byu.net>
49304
49305         hash: minor cleanups
49306         * lib/hash.h (hash_entry): Make opaque, by moving...
49307         * lib/hash.c (hash_entry): ...here.
49308         (hash_insert): Clarify restrictions on what can be inserted.
49309         (hash_get_next): Clarify when it is safe to remove an element
49310         during traversal.
49311         (check_tuning): Skip verification when tuning is known safe.
49312         (hash_initialize): Clarify restrictions on tuning.
49313
49314 2009-06-17  Jim Meyering  <jim@meyering.net>
49315         and Eric Blake  <ebb9@byu.net>
49316
49317         hash-tests: new module
49318         * modules/hash-tests: New file.
49319         * tests/test-hash.c: New file.
49320
49321 2009-06-17  Eric Blake  <ebb9@byu.net>
49322
49323         strstr-simple: document new module
49324         * MODULES.html.sh: Document new module.
49325
49326         strstr, strcasestr: replace on platforms with broken memchr
49327         * modules/strstr: Split into...
49328         * modules/strstr-simple: ...new module that does not care about
49329         performance, but does care about glibc bug.
49330         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49331         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49332         if platform memchr is broken, per Debian bug 521737.
49333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49334         memchr.
49335         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49336         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49337         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49338         * modules/mountlist (Depends-on): Add strstr-simple.
49339         * modules/gen-uni-tables (Depends-on): Likewise.
49340         * modules/argz (Depends-on): Add strstr.
49341
49342 2009-06-17  Bruno Haible  <bruno@clisp.org>
49343
49344         * modules/posix_spawn-internal (Depends-on): Add errno.
49345
49346 2009-06-17  Bruno Haible  <bruno@clisp.org>
49347
49348         Define missing ESTALE on Interix 3.5.
49349         * lib/errno.in.h (ESTALE): Assign a value if missing.
49350         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49351         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49352         missing.
49353         * doc/posix-headers/errno.texi: Mention the Interix bug.
49354         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49355
49356 2009-06-15  Eric Blake  <ebb9@byu.net>
49357
49358         memchr, memchr2: add valgrind exception
49359         * lib/memchr.valgrind: New file.
49360         * lib/memchr2.valgrind: New file.
49361         * modules/memchr (Files): Distribute valgrind file.
49362         * modules/memchr2 (Files): Likewise.
49363
49364         docs: memchr is no longer obsolete
49365         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49366         * lib/string.in.h (memchr): Simplify logic.
49367
49368 2009-06-14  Jim Meyering  <meyering@redhat.com>
49369
49370         link-follow: fix the "checking..." message to not mention trailing slash
49371         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49372         never considered trailing slashes.
49373
49374 2009-06-14  Bruno Haible  <bruno@clisp.org>
49375
49376         * m4/memchr.m4: Mention also the bug on IA-64.
49377         * doc/posix-functions/memchr.texi: Likewise.
49378
49379 2009-06-12  Eric Blake  <ebb9@byu.net>
49380
49381         memchr: detect broken x86_64 and alpha implementations
49382         * modules/memchr-tests (Depends-on): Move mmap detection...
49383         * modules/memchr (Depends-on): ...here.
49384         (configure.ac): Set indicator.
49385         * lib/string.in.h (memchr): Declare replacement.
49386         * modules/string (Makefile.am): Trigger replacement.
49387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49388         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49389         bugs.
49390         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49391         * modules/getpagesize (License): Relax license.
49392
49393 2009-06-11  Bruno Haible  <bruno@clisp.org>
49394
49395         * lib/idpriv.h: Add more references.
49396
49397 2009-06-08  Bruno Haible  <bruno@clisp.org>
49398
49399         Tests for module 'idpriv-droptemp'.
49400         * modules/idpriv-droptemp-tests: New file.
49401         * tests/test-idpriv-droptemp.sh: New file.
49402         * tests/test-idpriv-droptemp.su.sh: New file.
49403         * tests/test-idpriv-droptemp.c: New file.
49404
49405         New module 'idpriv-droptemp'.
49406         * lib/idpriv-droptemp.c: New file.
49407         * modules/idpriv-droptemp: New file.
49408
49409 2009-06-08  Bruno Haible  <bruno@clisp.org>
49410
49411         Tests for module 'idpriv-drop'.
49412         * modules/idpriv-drop-tests: New file.
49413         * tests/test-idpriv-drop.sh: New file.
49414         * tests/test-idpriv-drop.su.sh: New file.
49415         * tests/test-idpriv-drop.c: New file.
49416
49417         New module 'idpriv-drop'.
49418         * lib/idpriv.h: New file.
49419         * lib-idpriv-drop.c: New file.
49420         * m4/idpriv.m4: New file.
49421         * modules/idpriv-drop: New file.
49422
49423 2009-06-08  Bruno Haible  <bruno@clisp.org>
49424
49425         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49426         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49427         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49428         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49429         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49430         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49431         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49432
49433 2009-06-08  Eric Blake  <ebb9@byu.net>
49434
49435         test-strstr: use memory fence, when possible
49436         * tests/test-strstr.c (main): Use memory fence, in order to be
49437         more likely to trigger Debian bug 521737.
49438         * modules/strstr-tests (Files): Pull in additional files.
49439
49440         memchr: no longer obsolete, for wider field testing
49441         * modules/memchr (Status, Notice): Delete, this module is no
49442         longer obsolete.
49443         * modules/vasnprintf (Depends-on): Add memchr.
49444
49445 2009-06-07  Jim Meyering  <meyering@redhat.com>
49446
49447         hash: declare some functions with the warn_unused_result attribute
49448         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49449
49450 2009-06-07  Bruno Haible  <bruno@clisp.org>
49451
49452         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49453         Reported by Eric Blake.
49454
49455 2009-06-06  Eric Blake  <ebb9@byu.net>
49456
49457         test-alignof: fix typo with long double
49458         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49459         compiler error.
49460
49461 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49462
49463         Escape non-texinfo { and }s.
49464         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49465         markup error.
49466
49467 2009-06-04  Jim Meyering  <meyering@redhat.com>
49468
49469         gitlog-to-changelog: don't infloop on an empty commit log
49470         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49471         Reported by Boris Petersen <transacid@centerim.org>.
49472
49473 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49474
49475         version-etc: extend for packagers
49476         Add three new configure options, intended for packagers:
49477           --with-packager="packager name"
49478           --with-packager-version="packager-specific version"
49479           --with-packager-bug-reports="packager bug reporting"
49480         An example with coreutils:
49481           $ ./configure \
49482             --with-packager=Gentoo \
49483             --with-packager-bug-report=http://bugs.gentoo.org/ \
49484             --with-packager-version="patchset 1.6"
49485           $ ./src/ls --version | head -n2
49486           ls (GNU coreutils) 7.1-dirty
49487           Packaged by Gentoo (patchset 1.6)
49488         Note that the bug reporting info via --help doesn't show up because
49489         coreutils uses its own custom emit_bug_reporting_address() implementation
49490         in src/system.h.  If it didn't, it'd look like:
49491           $ ./src/ls --help | tail -n4
49492           Report bugs to <bug-coreutils@gnu.org>.
49493           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49494           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49495           General help using GNU software: <http://www.gnu.org/gethelp/>.
49496         * lib/version-etc.c: Print new information, if provided.
49497         * m4/version-etc.m4: New file.
49498         * modules/version-etc (Files): Add m4/version-etc.m4.
49499         (configure.ac): Add gl_VERSION_ETC.
49500
49501 2009-05-31  Bruno Haible  <bruno@clisp.org>
49502
49503         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49504         and 'int64_t'.
49505         * modules/alignof-tests (Dependencies): Add stdint.
49506         Reported by Eric Blake.
49507
49508 2009-05-31  Bruno Haible  <bruno@clisp.org>
49509
49510         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49511         restriction due to compiler bugs.
49512         Reported by Eric Blake.
49513
49514 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49515             Bruno Haible  <bruno@clisp.org>
49516
49517         Fix test-alignof failure.
49518         * lib/alignof.h (alignof_slot): New macro.
49519         (alignof_type): New macro, with the same semantics as the previous
49520         'alignof'.
49521         (alignof): Alias to alignof_slot.
49522         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49523         check that the results are usable as constant expressions.
49524
49525 2009-05-31  Bruno Haible  <bruno@clisp.org>
49526
49527         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49528         * tests/test-memchr.c (main): Check that memchr does not read past the
49529         first occurrence of the byte.
49530         * tests/test-strstr.c (main): Update comment.
49531         Suggested by Eric Blake.
49532
49533 2009-05-30  Bruno Haible  <bruno@clisp.org>
49534
49535         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49536         detail how to use dumpbin.
49537         Reported by David Byron <dbyron@dbyron.com>.
49538
49539 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49540
49541         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49542
49543 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49544
49545         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49546
49547 2009-05-28  Bruno Haible  <bruno@clisp.org>
49548
49549         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49550         build-aux/ files.
49551
49552 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49553
49554         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49555
49556 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49557
49558         * gnulib-tool (sed_transform_main_lib_file)
49559         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49560         regexps.
49561
49562 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49563
49564         * tests/test-strstr.c: Add another self-test.
49565         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49566         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49567
49568 2009-05-23  Bruno Haible  <bruno@clisp.org>
49569
49570         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49571         change.
49572
49573 2009-05-21  Bruno Haible  <bruno@clisp.org>
49574
49575         Simplify use of mode_t varargs.
49576         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49577         uses 'mode_t' or 'int'.
49578         * lib/openat.c (openat): Likewise.
49579         * lib/open-safer.c (open_safer): Likewise.
49580         * m4/mode_t.m4: New file.
49581         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49582         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49583         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49584         * modules/open (Files): Add m4/mode_t.m4.
49585         * modules/openat (Files): Likewise.
49586         * modules/fcntl-safer (Files): Likewise.
49587         Suggested by Eric Blake.
49588
49589 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49590
49591         * doc/glibc-functions/fallocate.texi: New file.
49592         * doc/gnulib.texi: Include it.
49593
49594 2009-05-21  Eric Blake  <ebb9@byu.net>
49595             Bruno Haible  <bruno@clisp.org>
49596
49597         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49598         invocations.
49599         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49600
49601 2009-05-21  Eric Blake  <ebb9@byu.net>
49602             Bruno Haible  <bruno@clisp.org>
49603
49604         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49605         include_next. Fix of 2008-11-20 commit.
49606         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49607         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49608         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49609         NEXT_MATH_H.
49610         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49611         instead of NEXT_MATH_H.
49612
49613 2009-05-21  Bruno Haible  <bruno@clisp.org>
49614
49615         Avoid redefinition warnings for SIZE_MAX.
49616         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49617         Reported by Simon Josefsson.
49618
49619 2009-05-21  Bruno Haible  <bruno@clisp.org>
49620
49621         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49622         AC_CACHE_VAL.
49623
49624 2009-05-20  Bruno Haible  <bruno@clisp.org>
49625
49626         Make zeroptr.h work on mingw.
49627         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49628         mprotect.
49629         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49630         * modules/memchr2-tests (configure.ac): Likewise.
49631         * modules/memcmp-tests (configure.ac): Likewise.
49632         * modules/memmem-tests (configure.ac): Likewise.
49633         * modules/memrchr-tests (configure.ac): Likewise.
49634         Reported by Simon Josefsson.
49635
49636 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49637
49638         * tests/test-glob.c: Include string.h for strcmp prototype.
49639
49640 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49641
49642         * modules/getdelim (Depends-on): Add explicit stdint, although it
49643         was implicitly already pulled in via realloc-posix.
49644         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49645
49646 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49647
49648         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49649         G. Christensen" <tgc@jupiterrise.com>.
49650         * m4/sys_socket_h.m4: Check for sa_family_t.
49651         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49652         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49653         * tests/test-sys_socket.c: Check that sa_family_t works.
49654
49655 2009-05-18  Eric Blake  <ebb9@byu.net>
49656
49657         maint.mk: allow gnulib_dir in VPATH build
49658         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49659
49660 2009-05-15  Jim Meyering  <meyering@redhat.com>
49661
49662         maint.mk: Give gnulib_dir a default definition.
49663         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49664         Thus, most packages no longer need to specify this variable in cfg.mk
49665
49666 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49667
49668         rename.m4: fix typos that would make non-mingw cross-configure fail
49669         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49670
49671 2009-05-13  Eric Blake  <ebb9@byu.net>
49672
49673         mmap-anon: avoid out-of-order autoconf expansion
49674         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49675         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49676         * modules/memchr-tests (Depends-on): Add extensions.
49677         * modules/memchr2-tests (Depends-on): Add extensions.
49678         * modules/memcmp-tests (Depends-on): Add extensions.
49679         * modules/memmem-tests (Depends-on): Add extensions.
49680         * modules/memrchr-tests (Depends-on): Add extensions.
49681
49682 2009-05-13  Bruno Haible  <bruno@clisp.org>
49683
49684         Make some tests ISO C 99 compliant.
49685         * tests/zerosize-ptr.h: New file.
49686         * tests/test-memchr.c: Include zerosize-ptr.h.
49687         (main): Use a zero-size object pointer instead of NULL.
49688         * tests/test-memchr2.c: Include zerosize-ptr.h.
49689         (main): Use a zero-size object pointer instead of NULL.
49690         * tests/test-memcmp.c: Include zerosize-ptr.h.
49691         (main): Use a zero-size object pointer instead of NULL.
49692         * tests/test-memmem.c: Include zerosize-ptr.h.
49693         (main): Use a zero-size object pointer instead of NULL.
49694         * tests/test-memrchr.c: Include zerosize-ptr.h.
49695         (main): Use a zero-size object pointer instead of NULL.
49696         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49697         m4/mmap-anon.m4.
49698         (Depends-on): Add getpagesize.
49699         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49700         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49701         m4/mmap-anon.m4.
49702         (Depends-on): Add getpagesize.
49703         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49704         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49705         m4/mmap-anon.m4.
49706         (Depends-on): Add getpagesize.
49707         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49708         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49709         m4/mmap-anon.m4.
49710         (Depends-on): Add getpagesize.
49711         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49712         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49713         m4/mmap-anon.m4.
49714         (Depends-on): Add getpagesize.
49715         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49716
49717 2009-05-12  Bruno Haible  <bruno@clisp.org>
49718
49719         Tests for module 'alignof'.
49720         * modules/alignof-tests: New file.
49721         * tests/test-alignof.c: New file.
49722
49723 2009-05-12  Bruno Haible  <bruno@clisp.org>
49724
49725         Fix alignof macro.
49726         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49727         vendor compilers that are always correct.
49728
49729 2009-05-12  Bruno Haible  <bruno@clisp.org>
49730
49731         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49732         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49733         not whether its fully works.
49734
49735 2009-05-12  Bruno Haible  <bruno@clisp.org>
49736
49737         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49738
49739 2009-05-12  Jim Meyering  <meyering@redhat.com>
49740
49741         * top/maint.mk: Adjust backslash alignment.
49742
49743 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49744
49745         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49746
49747 2009-05-11  Eric Blake  <ebb9@byu.net>
49748
49749         argp: avoid undefined behavior
49750         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49751         macros.
49752
49753 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49754
49755         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49756         user.name to prevent git commit from complaining.
49757
49758 2009-05-10  Bruno Haible  <bruno@clisp.org>
49759
49760         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49761         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49762         it rewrites every file name only once.
49763         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49764
49765 2009-05-08  Bruno Haible  <bruno@clisp.org>
49766
49767         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49768         instead of 'max'.
49769
49770 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49771
49772         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49773         sockaddr_storage test.
49774
49775 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49776
49777         * modules/sys_socket (Makefile.am): Substitute
49778         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49779         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49780         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49781         * tests/test-sys_socket.c: Check sockaddr_storage.
49782
49783 2009-05-08  Bruno Haible  <bruno@clisp.org>
49784
49785         New module 'alignof'.
49786         * lib/alignof.h: New file.
49787         * modules/alignof: New file.
49788
49789 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49790             Bruno Haible  <bruno@clisp.org>
49791
49792         Fix test-file-has-acl on FreeBSD.
49793         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49794         mask is implicitly added.
49795         * tests/test-file-has-acl.c: Include <signal.h>.
49796         (main): Terminate the test after 5 seconds.
49797         * modules/acl-tests (configure.ac): Check for alarm function.
49798
49799 2009-05-04  Bruno Haible  <bruno@clisp.org>
49800
49801         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49802         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49803         * modules/errno (configure.ac): Drop AC_REQUIRE.
49804         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49805         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49806
49807 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49808
49809         * modules/glob-tests: New module.
49810         * tests/test-glob.c: Add.
49811
49812 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49813
49814         * modules/fnmatch-tests: New module.
49815         * tests/test-fnmatch.c: Add.
49816
49817 2009-05-04  Eric Blake  <ebb9@byu.net>
49818
49819         maint: make the new no-submodule-changes rule VPATH-safe
49820         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49821
49822 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49823             Bruno Haible  <bruno@clisp.org>
49824
49825         acl: Fix infinite loop on FreeBSD.
49826         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49827         of return value from acl_get_entry.
49828         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49829         Likewise.
49830
49831 2009-05-03  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/acl-internal.h (acl_entries): Clarify return value.
49834         * lib/acl_entries.c (acl_entries): Likewise.
49835
49836 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49837
49838         Bug fix in acl module.
49839         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49840
49841 2009-05-03  Bruno Haible  <bruno@clisp.org>
49842
49843         Create gperf-generated file in the source dir, not in the build dir.
49844         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49845         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49846         * modules/unicase/locale-language (unicase/locale-languages.h):
49847         Likewise.
49848         * modules/unicase/special-casing (unicase/special-casing-table.h):
49849         Likewise.
49850         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49851         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49852         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49853         Reported by Ralf Wildenhues.
49854
49855 2009-05-03  Bruno Haible  <bruno@clisp.org>
49856
49857         * modules/fnmatch (Description, configure.ac): Taken from
49858         fnmatch-posix.
49859         * modules/fnmatch-posix: Turn into a symbolic reference to the
49860         'fnmatch' module, and deprecate.
49861         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49862
49863 2009-05-03  Bruno Haible  <bruno@clisp.org>
49864
49865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49866         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49867         Reported by Ralf Wildenhues.
49868
49869 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49870
49871         * m4/fnmatch.m4: Fix fnmatch re-define.
49872
49873 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49874
49875         priv-set: new module and tests; adapt write-any-file
49876         * lib/priv-set.c: New file.
49877         * lib/priv-set.h: New file.
49878         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49879         * lib/write-any-file.c: Simplify by using priv-set module.
49880         * m4/priv-set.m4: New file.
49881         * modules/priv-set: New file.
49882         * modules/unlinkdir: Add dependency on priv-set module.
49883         * modules/write-any-file: Likewise.
49884
49885         Tests for module 'priv-set'.
49886         * modules/priv-set-tests: New file.
49887         * tests/test-priv-set.c: New file.
49888
49889 2009-05-03  Jim Meyering  <meyering@redhat.com>
49890             Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49893         use the converted UTF-8 variant of the name instead.
49894
49895 2009-05-03  Jim Meyering  <meyering@redhat.com>
49896
49897         tests: tighten some getdate tests
49898         * tests/test-getdate.c (main): Tighten tests: require equality,
49899         not just greater than.  Set TZ envvar to UTC0.
49900
49901 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49902
49903         getdate: correctly interpret "next monday" when run on a Monday
49904         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49905         that e.g., "next tues" (when run on a tuesday) results in a date
49906         that is one week in the future, and not today's date.
49907         I.e., add a week when the wday is the same as the current one.
49908         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49909         and earlier by Martin Bernreuther and Jan Minář.
49910         * tests/test-getdate.c (main): Check that "next DAY" is always in
49911         the future and that "last DAY" is always in the past.
49912
49913 2009-05-02  Jim Meyering  <meyering@redhat.com>
49914
49915         build: ensure that a release build fails when a submodule is unclean
49916         * top/maint.mk (no-submodule-changes): New rule.
49917         (alpha beta major): Depend on it.
49918
49919 2009-05-02  Bruno Haible  <bruno@clisp.org>
49920
49921         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49922         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49923         shell variable gl_fnmatch_required to detect which variant is
49924         requested.
49925         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49926         gl_FUNC_FNMATCH_POSIX.
49927         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49928         exclude fnmatch-posix.
49929
49930 2009-05-02  Bruno Haible  <bruno@clisp.org>
49931
49932         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49933         * modules/mbsrtowcs (License): Change to LGPLv2+.
49934         * modules/strnlen1 (License): Likewise.
49935         Reported by Simon Josefsson.
49936
49937 2009-05-02  Bruno Haible  <bruno@clisp.org>
49938
49939         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49940         "cross".
49941         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49942         gnulib-tool was called with option --source-base=lib.
49943
49944 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49945
49946         Use automake *-local hooks without commands, for extensibility.
49947         * modules/localcharset (Makefile.am): Rename install-exec-local
49948         rule to install-exec-localcharset, and make it a prerequisite of
49949         install-exec-local.  Likewise, rename the uninstall-local rule to
49950         uninstall-localcharset, and make it a prerequisite of the former.
49951
49952 2009-05-01  Bruno Haible  <bruno@clisp.org>
49953
49954         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49955         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49956         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49958         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49959         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49960         m4/locale-zh.m4, m4/codeset.m4.
49961
49962         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49963         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49964         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49965         m4/locale-zh.m4.
49966
49967         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49968         REPLACE_WCRTOMB if mbstate_t must be replaced.
49969         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49970         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49971
49972 2009-05-01  Bruno Haible  <bruno@clisp.org>
49973
49974         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49975         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49976         dngettext, dcngettext, textdomain, bindtextdomain,
49977         bind_textdomain_codeset): Undefine before redefining.
49978
49979 2009-04-30  Bruno Haible  <bruno@clisp.org>
49980
49981         Fix bug introduced on 2009-04-25.
49982         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49983         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49984         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49985         is defined.
49986         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49987         is defined.
49988         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49989         is defined.
49990         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49991
49992 2009-04-28  Bruno Haible  <bruno@clisp.org>
49993
49994         Comment tweaks.
49995         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49996         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49997         * lib/unicase.h (u*_casexfrm): Likewise.
49998         Reported by Paolo Bonzini.
49999
50000 2009-04-28  Bruno Haible  <bruno@clisp.org>
50001
50002         Fix a compilation error.
50003         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
50004         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50005         Reported by Jim Meyering.
50006
50007 2009-04-27  Bruno Haible  <bruno@clisp.org>
50008
50009         New module 'libunistring'.
50010         * modules/libunistring: New file.
50011         * m4/libunistring.m4: New file.
50012         * MODULES.html.sh (Unicode string functions): Add it.
50013
50014 2009-04-27  Eric Blake  <ebb9@byu.net>
50015
50016         maint.mk: allow package-specific header to provide <config.h>
50017         * top/maint.mk (sc_require_config_h): New variable.
50018         (sc_require_config_h, sc_require_config_h_first): Use it.
50019
50020 2009-04-27  Simon Josefsson  <simon@josefsson.org>
50021
50022         * top/maint.mk (sc_avoid_if_before_free): Except
50023         useless-if-before-free script.
50024
50025 2009-04-27  Eric Blake  <ebb9@byu.net>
50026
50027         maintainer-makefile: depend on all required helper scripts
50028         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
50029         useless-if-before-free.
50030         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
50031         version, rather than assuming gnulib checkout is available.
50032         Reported by Simen Josefsson.
50033
50034 2009-04-26  Bruno Haible  <bruno@clisp.org>
50035
50036         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
50037         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
50038         "../" or "..".
50039
50040 2009-04-26  Bruno Haible  <bruno@clisp.org>
50041
50042         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
50043         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
50044         AC_LIB_HAVE_LINKFLAGS.
50045
50046 2009-04-26  Bruno Haible  <bruno@clisp.org>
50047
50048         Simplify calling convention of u*_conv_from_encoding.
50049         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
50050         u32_conv_from_encoding): Expect a resultbuf argument and return the
50051         result directly as a pointer.
50052         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
50053         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
50054         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
50055         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
50056         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
50057         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50058         Update.
50059         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
50060         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
50061         * lib/vasnprintf.c (VASNPRINTF): Update.
50062         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
50063         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
50064         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
50065         * NEWS: Mention the change.
50066
50067 2009-04-26  Bruno Haible  <bruno@clisp.org>
50068
50069         Simplify calling convention of u*_conv_to_encoding.
50070         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50071         u32_conv_to_encoding): Expect a resultbuf argument and return the
50072         result directly as a pointer.
50073         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50074         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
50075         freeing scaled_offsets if mem_iconveha failed.
50076         * lib/unicase/u-casexfrm.h (FUNC): Update.
50077         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50078         * lib/vasnprintf.c (VASNPRINTF): Update.
50079         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50080         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50081         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50082         * NEWS: Mention the change.
50083
50084 2009-04-26  Bruno Haible  <bruno@clisp.org>
50085
50086         Avoid test failures on AIX and OSF/1.
50087         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50088         malloc(0).
50089         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50090         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50091         Likewise.
50092         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50093         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50094         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50095         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50096         * doc/posix-functions/malloc.texi: Document the portability problem
50097         related to malloc(0).
50098
50099 2009-04-26  Bruno Haible  <bruno@clisp.org>
50100
50101         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50102         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50103         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50104
50105 2009-04-25  Bruno Haible  <bruno@clisp.org>
50106
50107         Avoid link error when creating a namespace clean library.
50108         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50109         as macro with arguments if already defined as an alias.
50110         * lib/signbitf.c (gl_signbitf): Don't undefine.
50111         * lib/signbitd.c (gl_signbitd): Don't undefine.
50112         * lib/signbitl.c (gl_signbitl): Don't undefine.
50113
50114 2009-04-25  Jim Meyering  <meyering@redhat.com>
50115
50116         vc-list-files: fix another quoting bug
50117         * build-aux/vc-list-files: Avoid sed backslash expansion
50118         of pathological directory names.
50119
50120 2009-04-25  Eric Blake  <ebb9@byu.net>
50121
50122         vc-list-files: fix shell quoting error
50123         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50124         timestamp.
50125
50126 2009-04-25  Jim Meyering  <meyering@redhat.com>
50127
50128         vc-list-files: restore lost functionality with subdir argument
50129         * build-aux/vc-list-files: When given a non-"." sub-directory
50130         argument, substitute the $dir/ prefix back onto each resulting name.
50131         Otherwise, coreutils' root_tests check would fail.
50132
50133 2009-04-24  Eric Blake  <ebb9@byu.net>
50134
50135         vc-list-files: ignore git symlinks
50136         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50137         than ls-files, to ignore git symlinks.
50138
50139         maint.mk: import improvements from m4
50140         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50141         (move_if_change): Delete unused macro.
50142         (news-date-check, vc-diff-check): Support VPATH builds.
50143         (announcement): Likewise.  Split --bootstrap-tools list...
50144         (boostrap-tools): ...into separate list, which can be overridden
50145         in cfg.mk.
50146         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50147         requiring dependency on useless-if-before-free module.
50148         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50149         Support VPATH builds.
50150
50151 2009-04-24  Jim Meyering  <meyering@redhat.com>
50152
50153         maint.mk: remove coreutils-specific rules and variables
50154         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50155         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50156         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50157
50158         maint.mk: remove obsolete rule
50159         * top/maint.mk (rel-check): Remove rule.
50160         (WGET, WGETFLAGS): Remove now-unused variables.
50161
50162 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50163
50164         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50165         consistency.
50166
50167         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50168         '$(PATH_SEPARATOR)' instead of ':'.
50169
50170 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50171
50172         * lib/getopt1.c (main): Use 'const' for static array.
50173
50174 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50175
50176         * top/maint.mk: Sync with coreutils.
50177         * NEWS: Explain incompatibilities.
50178
50179 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50180             Bruno Haible  <bruno@clisp.org>
50181
50182         Fix cross-compilation results.
50183         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50184         statement, as third argument of AC_TRY_RUN.
50185         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50186         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50187         Likewise.
50188         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50189         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50190         Likewise.
50191         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50192         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50193         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50194
50195 2009-04-20  Bruno Haible  <bruno@clisp.org>
50196
50197         Avoid test failure on mingw.
50198         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50199
50200 2009-04-20  Bruno Haible  <bruno@clisp.org>
50201
50202         Avoid compilation error on mingw.
50203         * modules/localename-tests (Depends-on): Add locale.
50204
50205 2009-04-19  Bruno Haible  <bruno@clisp.org>
50206
50207         Support for building a shared library on Windows platforms.
50208         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50209         (main): Test the presence of UNINORM_NFC here.
50210         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50211         (main): Test the presence of UNINORM_NFD here.
50212         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50213         (main): Test the presence of UNINORM_NFKC here.
50214         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50215         (main): Test the presence of UNINORM_NFKD here.
50216
50217 2009-04-19  Bruno Haible  <bruno@clisp.org>
50218
50219         Avoid a compiler warning.
50220         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50221         Change type of variable 'sequence'.
50222
50223 2009-04-19  Bruno Haible  <bruno@clisp.org>
50224
50225         * modules/configmake (Makefile.am): When the contents of configmake.h
50226         does not change, arrange to preserve its modification time.
50227
50228 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50229
50230         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50231         gettext domain.
50232
50233 2009-04-16  Jim Meyering  <meyering@redhat.com>
50234
50235         useless-if-before-free: improve conversion code
50236         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50237         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50238
50239 2009-04-14  Bruno Haible  <bruno@clisp.org>
50240
50241         * modules/fcntl (Depends-on): Add extensions.
50242         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50243
50244 2009-04-12  Ben Pfaff  <blp@gnu.org>
50245
50246         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50247         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50248
50249 2009-03-20  Ben Pfaff  <blp@gnu.org>
50250
50251         Make rename replace existing destinations on Windows.
50252         * m4/rename.m4: Add test for Mingw.
50253         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50254         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50255         * doc/posix-functions/rename.texi: Document.
50256
50257 2009-04-10  Bruno Haible  <bruno@clisp.org>
50258
50259         New include file "iconveh.h".
50260         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50261         * lib/striconveh.h: Include it.
50262         (enum iconv_ilseq_handler): Remove definition.
50263         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50264         striconveh.h.
50265         * lib/striconveha.c: Include striconveh.h.
50266         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50267         * modules/striconveh (Files): Add lib/iconveh.h.
50268         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50269         lib/striconveh.h.
50270
50271 2009-04-10  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/uniconv.h: Update comment.
50274
50275 2009-04-10  Bruno Haible  <bruno@clisp.org>
50276
50277         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50278         always.
50279         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50280         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50281         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50282         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50283         "unistring-notinline.h", so that the function gets defined always.
50284         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50285         * lib/unistr/u8-uctomb.c: Likewise.
50286         * lib/unistr/u16-mbtouc.c: Likewise.
50287         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50288         * lib/unistr/u16-uctomb.c: Likewise.
50289         * lib/unistr/u32-mbtouc.c: Likewise.
50290         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50291         * lib/unistr/u32-uctomb.c: Likewise.
50292
50293 2009-04-10  Bruno Haible  <bruno@clisp.org>
50294
50295         Mark 'utime' obsolete.
50296         * modules/utime (Status, Notice): New sections.
50297         Suggested by Jim Meyering.
50298
50299         Fix cross-compile guess for utime test.
50300         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50301         autoconf.
50302         * doc/posix-functions/utime.texi: Give more precisions.
50303         Reported by Jan <ipif@ymail.com>.
50304
50305 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50306
50307         filevercmp: correct today's change
50308         * lib/filevercmp.c: Also handle coreutils' test inputs.
50309         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50310
50311         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50312         for reporting it.
50313         * lib/filevercmp.c: Special handle for "", "." and "..".
50314         * tests/test-filevercmp.c: Enlarge the set suite.
50315
50316 2009-04-07  Jim Meyering  <meyering@redhat.com>
50317
50318         useless-if-before-free: show how to remove braced useless free, too
50319         * build-aux/useless-if-before-free: still only in a comment, though.
50320
50321 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50322
50323         maint.mk: import changes to syntax-check macros from coreutils
50324         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50325         Use them in the relevant macros.
50326
50327 2009-04-06  Bruno Haible  <bruno@clisp.org>
50328
50329         Fix unportable use of bit-fields.
50330         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50331         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50332         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50333
50334 2009-04-06  Bruno Haible  <bruno@clisp.org>
50335
50336         Avoid test failures on AIX and OSF/1.
50337         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50338         that malloc(0) = NULL.
50339         * tests/unicase/test-u8-tolower.c (check): Likewise.
50340         * tests/unicase/test-u8-totitle.c (check): Likewise.
50341         * tests/unicase/test-u8-toupper.c (check): Likewise.
50342         * tests/unicase/test-u16-casefold.c (check): Likewise.
50343         * tests/unicase/test-u16-tolower.c (check): Likewise.
50344         * tests/unicase/test-u16-totitle.c (check): Likewise.
50345         * tests/unicase/test-u16-toupper.c (check): Likewise.
50346         * tests/unicase/test-u32-casefold.c (check): Likewise.
50347         * tests/unicase/test-u32-tolower.c (check): Likewise.
50348         * tests/unicase/test-u32-totitle.c (check): Likewise.
50349         * tests/unicase/test-u32-toupper.c (check): Likewise.
50350         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50351         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50352         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50353         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50354         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50355         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50356         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50357         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50358         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50359         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50360         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50361         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50362
50363 2009-04-05  Bruno Haible  <bruno@clisp.org>
50364
50365         Work around an autoconf limitation.
50366         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50367         comment line if it would be longer than 3 KB.
50368
50369 2009-04-05  Bruno Haible  <bruno@clisp.org>
50370
50371         Avoid test failure with libiconv-1.13.
50372         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50373         of the expected test results.
50374
50375 2009-04-05  Bruno Haible  <bruno@clisp.org>
50376
50377         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50378         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50379         that it should be installed.
50380
50381 2009-04-05  Bruno Haible  <bruno@clisp.org>
50382
50383         * gnulib-tool: New option --copy-file.
50384         (func_usage): Document it.
50385         (func_dest_tmpfilename): Moved out of func_import.
50386         (func_add_file, func_update_file): New functions, extracted from
50387         func_import.
50388         (func_import): Update.
50389
50390 2009-04-05  Karl Berry  <karl@gnu.org>
50391
50392         * README: prominently mention gnulib-tool.
50393         Rearrange sections so getting the code is near the top.
50394
50395 2009-04-05  Bruno Haible  <bruno@clisp.org>
50396
50397         * lib/unicase.h: Mention u*_cmp2.
50398         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50399         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50400         * lib/unicase/ulc-casecmp.c: Likewise.
50401         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50402         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50403         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50404         unistr/u8-cmp.
50405         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50406         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50407         unistr/u16-cmp.
50408         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50409         unistr/u32-cmp.
50410
50411         * lib/uninorm.h: Mention u*_cmp2.
50412         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50413         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50414         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50415         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50416         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50417         unistr/u8-cmp.
50418         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50419         unistr/u16-cmp.
50420         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50421         unistr/u32-cmp.
50422
50423         New module 'unistr/u32-cmp2'.
50424         * lib/unistr/u32-cmp2.c: New file.
50425         * modules/unistr/u32-cmp2: New file.
50426
50427         New module 'unistr/u16-cmp2'.
50428         * lib/unistr/u16-cmp2.c: New file.
50429         * modules/unistr/u16-cmp2: New file.
50430
50431         New module 'unistr/u8-cmp2'.
50432         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50433         * lib/unistr/u8-cmp2.c: New file.
50434         * lib/unistr/u-cmp2.h: New file.
50435         * modules/unistr/u8-cmp2: New file.
50436
50437 2009-04-05  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/unictype.h (uc_property_is_valid): New macro.
50440         * tests/unictype/test-pr_byname.c (main): Use it.
50441
50442         * lib/unistr.h: Doc fixes.
50443         * lib/uniconv.h: Doc fixes.
50444         * lib/unictype.h: Doc fixes.
50445
50446 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50447
50448         Port coreutils 7.2 to Solaris 8.
50449
50450         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50451         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50452         for Solaris 8.  This is a bit of a hack, as it means it's the
50453         caller's responsibility to add -lnsl if needed, but most likely it
50454         won't be needed since only getaddrinfo uses this and getaddrinfo
50455         isn't needed on Solaris 8.
50456
50457         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50458         problem to Solaris 8 encountered with coreutils 7.2, which
50459         resulted in a message "fnmatch.c:292: warning: passing argument 4
50460         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50461         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50462
50463 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50464
50465         * m4/ld-version-script.m4: Add FIXME comment.
50466
50467 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50468
50469         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50470         SOVERSION variable.
50471
50472 2009-04-02  Bruno Haible  <bruno@clisp.org>
50473
50474         * Makefile (info, html, dvi, pdf): Combine the rules.
50475         Suggested by Jim Meyering.
50476
50477 2009-04-01  Bruno Haible  <bruno@clisp.org>
50478
50479         * Makefile (info, html, dvi, pdf): New targets.
50480         Reported by Reuben Thomas <rrt@sc3d.org>.
50481
50482 2009-04-01  Bruno Haible  <bruno@clisp.org>
50483
50484         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50485         can be put into PATH.
50486         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50487
50488 2009-04-01  Bruno Haible  <bruno@clisp.org>
50489
50490         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50491
50492 2009-04-01  Bruno Haible  <bruno@clisp.org>
50493
50494         Rename module 'visibility'.
50495         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50496         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50497         * doc/gnulib.texi: Update.
50498         * MODULES.html.sh (Misc): Update.
50499         * NEWS: Mention the change.
50500
50501 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50502
50503         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50504         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50505         Eric Blake <ebb9@byu.net> for review.
50506         * MODULES.html.sh: Add lib-msvc-compat.
50507         * doc/gnulib.texi: Link to new section.
50508         * m4/ld-output-def.m4: New file.
50509         * doc/ld-output-def.texi: New file.
50510
50511 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50512
50513         Rename ld-version-script to lib-symbol-versions.  Suggested by
50514         Bruno Haible <bruno@clisp.org>.
50515         * modules/ld-version-script: Renamed to lib-symbol-versions.
50516         * doc/ld-version-script.texi: Fix module name.
50517         * MODULES.html.sh: Add lib-symbol-versions.
50518
50519 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50520
50521         * modules/u64-tests: New file.
50522         * tests/test-u64.c: New file.
50523
50524 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50525
50526         * MODULES.html.sh: Mention u64.
50527         * modules/u64: New module.
50528         * modules/crypto/sha512: Depend on u64 module instead of providing
50529         u64.h.
50530
50531 2009-03-27  Eric Blake  <ebb9@byu.net>
50532
50533         test-strerror: make debugging EAI_SYSTEM easier
50534         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50535         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50536         failure was EAI_SYSTEM.
50537
50538 2009-03-25  Bruno Haible  <bruno@clisp.org>
50539
50540         Fix a problem with --enable-relocatable on Solaris 7.
50541         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50542         since 2008-02-24.
50543
50544 2009-03-25  Eric Blake  <ebb9@byu.net>
50545
50546         test-sockets: avoid gcc warning
50547         * tests/test-sockets.c (main): Silence compiler warning.
50548
50549 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50550
50551         New modules nproc, pthread, contributed by Glen Lenker.
50552
50553         * MODULES.html.sh: Add pthread, nproc.
50554         * lib/nproc.c: New file.
50555         * lib/nproc.h: New file.
50556         * lib/pthread.in.h: New file.
50557         * m4/pthread.m4: New file.
50558         * modules/nproc: New file.
50559         * modules/pthread: New file.
50560
50561 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50562
50563         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50564         New variable.
50565
50566 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50567
50568         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50569         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50570         * tests/test-filevercmp.c: Add tests for backup suffixes.
50571
50572 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50573
50574         * modules/stdlib (Depends-on): Add stdint, needed when defining
50575         struct random_data on, for example, HP-UX 10.20.  Reported by
50576         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50577
50578 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50579
50580         * lib/readline.c (readline): Call fflush on stdout after printing
50581         prompt.
50582
50583 2009-03-20  Bruno Haible  <bruno@clisp.org>
50584
50585         Remove dependency from 'close' module to -lws2_32 on native Windows.
50586         * lib/close-hook.h: New file.
50587         * lib/close-hook.c: New file.
50588         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50589         w32sock.h.
50590         (_gl_close_fd_maybe_socket): Remove function.
50591         (rpl_close): Invoke execute_all_close_hooks instead of
50592         _gl_close_fd_maybe_socket.
50593         * lib/sockets.c: Include close-hook.h, w32sock.h.
50594         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50595         (close_sockets_hook): New variable.
50596         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50597         (gl_sockets_cleanup): Unregister it.
50598         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50599         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50600         * modules/close-hook: New file.
50601         * modules/close (Files): Remove lib/w32sock.h.
50602         (Depends-on): Add close-hook.
50603         (Link): Remove section.
50604         * modules/sockets (Files): Add lib/w32sock.h.
50605         (Depends-on): Add close-hook.
50606         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50607         invocation.
50608         * NEWS: Mention that LIB_CLOSE is gone.
50609
50610 2009-03-23  Eric Blake  <ebb9@byu.net>
50611
50612         signal-tests: test previous patch
50613         * tests/test-signal.c: New file.
50614         * modules/signal-tests: Likewise.
50615
50616         signal.h: always support 'volatile sig_atomic_t'
50617         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50618         (gl_SIGNAL_H_DEFAULTS): Add a default.
50619         * modules/signal (Makefile.am): Substitute if needed.
50620         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50621         users can blindly add volatile.
50622         * doc/posix-headers/signal.texi (signal.h): Document it.
50623         Reported by Matthew Woehlke.
50624
50625 2009-03-23  Jim Meyering  <meyering@redhat.com>
50626
50627         pathmax: PATH_MAX: use pathconf only when available
50628         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50629         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50630         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50631         This avoids a link failure in a PSP cross-compilation environment
50632         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50633
50634         * lib/vasnprintf.c (divide): Fix typo in comment.
50635
50636 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50637
50638         * gnulib-tool (func_filter_filelist): Fix comment.
50639
50640 2009-03-20  Bruno Haible  <bruno@clisp.org>
50641
50642         Make sockets.h self-contained.
50643         * lib/sockets.c: Include sockets.h first.
50644         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50645
50646 2009-03-19  Eric Blake  <ebb9@byu.net>
50647
50648         doc: mention more functions added in cygwin 1.7.0
50649         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50650         addition.
50651         * doc/posix-functions/log2f.texi: Likewise.
50652
50653 2009-03-19  Jim Meyering  <meyering@redhat.com>
50654
50655         fsusage: avoid syntax error due to statement-before-declaration
50656         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50657         after all declarations.  Reported by Matthew Woehlke in
50658         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50659
50660 2009-03-18  Eric Blake  <ebb9@byu.net>
50661
50662         build-aux/compile: sync from automake
50663         * build-aux/compile: New file, from automake.
50664         * config/srclist.txt: Mention build-aux/compile.
50665
50666 2009-03-17  Bruno Haible  <bruno@clisp.org>
50667
50668         * lib/git-merge-changelog.c: Fix typo in comment.
50669         Reported by Reuben Thomas <rrt@sc3d.org>.
50670
50671 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50672
50673         * m4/regex.m4: update and improve help for
50674         --without-included-regex.
50675
50676 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50677
50678         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50679         failure on missing include files.
50680
50681 2009-03-17  Eric Blake  <ebb9@byu.net>
50682
50683         doc: mention more functions added in cygwin 1.7.0
50684         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50685         addition.
50686         * doc/posix-functions/fwscanf.texi: Likewise.
50687         * doc/posix-functions/swprintf.texi: Likewise.
50688         * doc/posix-functions/swscanf.texi: Likewise.
50689         * doc/posix-functions/vfwprintf.texi: Likewise.
50690         * doc/posix-functions/vfwscanf.texi: Likewise.
50691         * doc/posix-functions/vswprintf.texi: Likewise.
50692         * doc/posix-functions/vswscanf.texi: Likewise.
50693         * doc/posix-functions/vwprintf.texi: Likewise.
50694         * doc/posix-functions/vwscanf.texi: Likewise.
50695         * doc/posix-functions/wcscasecmp.texi: Likewise.
50696         * doc/posix-functions/wcsdup.texi: Likewise.
50697         * doc/posix-functions/wcsftime.texi: Likewise.
50698         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50699         * doc/posix-functions/wprintf.texi: Likewise.
50700         * doc/posix-functions/wscanf.texi: Likewise.
50701         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50702
50703 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50704
50705         maint.mk: really add $(AM_MAKEFLAGS)
50706         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50707         was inadvertently omitted in the last commit.
50708         Spotted by Bruno Haible.
50709
50710         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50711         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50712         $(AM_MAKEFLAGS)' rather than plain `make'.
50713
50714         gnulib-tool: execute $MAKE not make
50715         * gnulib-tool: Default $MAKE to 'make'.
50716         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50717         than make.  Initialize $MAKE in the do-autobuild script.
50718
50719         gnulib-tool: use $MAKE not make in generated files
50720         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50721         make, in generated files.  Initialize $MAKE in the do-autobuild
50722         script.
50723
50724         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50725
50726         GNUmakefile: disable parallelism only for multiple, recursive targets
50727         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50728         additions in the Makefile.
50729         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50730         by Automake.
50731         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50732         are listed on the command line and at least one of them is
50733         listed in $(ALL_RECURSIVE_TARGETS).
50734
50735 2009-03-14  Bruno Haible  <bruno@clisp.org>
50736
50737         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50738         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50739         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50740         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50741         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50742         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50743         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50744         unistr/u8-uctomb.
50745         * modules/unistr/u8-strchr (Depends-on): Likewise.
50746         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50747         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50748         unistr/u16-uctomb.
50749         * modules/unistr/u16-strchr (Depends-on): Likewise.
50750         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50751
50752 2009-03-12  Bruno Haible  <bruno@clisp.org>
50753
50754         Work around select() bug on Interix 3.5.
50755         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50756         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50757         * m4/select.m4: New file.
50758         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50759         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50760         * modules/select (Files): Add m4/select.m4.
50761         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50762         * modules/nanosleep (Depends-on): Add select.
50763         * modules/poll (Depends-on): Likewise.
50764         * doc/posix-functions/select.texi: Mention the Interix bug.
50765         Reported by Markus Duft <mduft@gentoo.org>.
50766
50767         * lib/select.c: Renamed from lib/winsock-select.c.
50768         * modules/select (Files): Add lib/select.c, remove
50769         lib/winsock-select.c.
50770         (configure.ac): Update.
50771
50772 2009-03-12  Jim Meyering  <meyering@redhat.com>
50773
50774         avoid gcc warnings about unused macro definitions
50775         * lib/readtokens.c (STREQ): Remove unused definition.
50776         * lib/xmalloc.c (SIZE_MAX): Likewise.
50777         * lib/openat-die.c (N_): Likewise.
50778         * lib/mountlist.c (SIZE_MAX): Remove definition.
50779         Instead, include <stdint.h>.
50780         * lib/readutmp.c: Likewise.
50781         * modules/readutmp (Depends-on): Add stdint.
50782         * modules/mountlist (Depends-on): Add stdint.
50783         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50784
50785 2009-03-10  Bruno Haible  <bruno@clisp.org>
50786
50787         Tests for module 'mbmemcasecoll'.
50788         * modules/mbmemcasecoll-tests: New file.
50789         * tests/test-mbmemcasecoll1.sh: New file.
50790         * tests/test-mbmemcasecoll2.sh: New file.
50791         * tests/test-mbmemcasecoll3.sh: New file.
50792         * tests/test-mbmemcasecoll.c: New file.
50793
50794         New module 'mbmemcasecoll'.
50795         * lib/mbmemcasecoll.h: New file.
50796         * lib/mbmemcasecoll.c: New file.
50797         * modules/mbmemcasecoll: New file.
50798
50799         * tests/test-mbmemcasecmp.h: New file, extracted from
50800         tests/test-mbmemcasecmp.c.
50801         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50802         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50803         (main): Update.
50804         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50805
50806 2009-03-09  Bruno Haible  <bruno@clisp.org>
50807
50808         Tests for module 'mbmemcasecmp'.
50809         * modules/mbmemcasecmp-tests: New file.
50810         * tests/test-mbmemcasecmp1.sh: New file.
50811         * tests/test-mbmemcasecmp2.sh: New file.
50812         * tests/test-mbmemcasecmp3.sh: New file.
50813         * tests/test-mbmemcasecmp.c: New file.
50814
50815         New module 'mbmemcasecmp'.
50816         * lib/mbmemcasecmp.h: New file.
50817         * lib/mbmemcasecmp.c: New file.
50818         * modules/mbmemcasecmp: New file.
50819
50820 2009-03-09  Bruno Haible  <bruno@clisp.org>
50821
50822         Tests for module 'unicase/ulc-casecoll'.
50823         * modules/unicase/ulc-casecoll-tests: New file.
50824         * tests/unicase/test-ulc-casecoll1.sh: New file.
50825         * tests/unicase/test-ulc-casecoll2.sh: New file.
50826         * tests/unicase/test-ulc-casecoll.c: New file.
50827
50828         New module 'unicase/ulc-casecoll'.
50829         * lib/unicase.h (ulc_casecoll): New declaration.
50830         * lib/unicase/ulc-casecoll.c: New file.
50831         * modules/unicase/ulc-casecoll: New file.
50832
50833         New module 'unicase/ulc-casexfrm'.
50834         * lib/unicase.h (ulc_casexfrm): New declaration.
50835         * lib/unicase/ulc-casexfrm.c: New file.
50836         * modules/unicase/ulc-casexfrm: New file.
50837
50838 2009-03-09  Bruno Haible  <bruno@clisp.org>
50839
50840         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50841         invocations.
50842
50843         * m4/mbscasecmp.m4: Remove file.
50844         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50845         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50846
50847         * m4/mbscasestr.m4: Remove file.
50848         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50849         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50850
50851         * m4/mbschr.m4: Remove file.
50852         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50853         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50854
50855         * m4/mbscspn.m4: Remove file.
50856         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50857         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50858
50859         * m4/mbslen.m4: Remove file.
50860         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50861         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50862
50863         * m4/mbsncasecmp.m4: Remove file.
50864         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50865         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50866
50867         * m4/mbsnlen.m4: Remove file.
50868         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50869         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50870
50871         * m4/mbspbrk.m4: Remove file.
50872         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50873         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50874
50875         * m4/mbspcasecmp.m4: Remove file.
50876         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50877         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50878
50879         * m4/mbsrchr.m4: Remove file.
50880         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50881         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50882
50883         * m4/mbssep.m4: Remove file.
50884         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50885         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50886
50887         * m4/mbsspn.m4: Remove file.
50888         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50889         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50890
50891         * m4/mbsstr.m4: Remove file.
50892         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50893         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50894
50895         * m4/mbstok_r.m4: Remove file.
50896         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50897         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50898
50899         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50900
50901         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50902         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50903
50904         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50905
50906 2009-03-08  Bruno Haible  <bruno@clisp.org>
50907
50908         Tests for module 'unicase/ulc-casecmp'.
50909         * modules/unicase/ulc-casecmp-tests: New file.
50910         * tests/unicase/test-ulc-casecmp1.sh: New file.
50911         * tests/unicase/test-ulc-casecmp2.sh: New file.
50912         * tests/unicase/test-ulc-casecmp.c: New file.
50913
50914         New module 'unicase/ulc-casecmp'.
50915         * lib/unicase.h (ulc_casecmp): New declaration.
50916         * lib/unicase/ulc-casecmp.c: New file.
50917         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50918         'const SRC_UNIT *'.
50919         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50920         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50921         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50922         * modules/unicase/ulc-casecmp: New file.
50923
50924         Tests for module 'unicase/u32-is-cased'.
50925         * modules/unicase/u32-is-cased-tests: New file.
50926         * tests/unicase/test-u32-is-cased.c: New file.
50927
50928         Tests for module 'unicase/u16-is-cased'.
50929         * modules/unicase/u16-is-cased-tests: New file.
50930         * tests/unicase/test-u16-is-cased.c: New file.
50931
50932         Tests for module 'unicase/u8-is-cased'.
50933         * modules/unicase/u8-is-cased-tests: New file.
50934         * tests/unicase/test-u8-is-cased.c: New file.
50935         * tests/unicase/test-is-cased.h: New file.
50936
50937         New module 'unicase/u32-is-cased'.
50938         * lib/unicase/u32-is-cased.c: New file.
50939         * modules/unicase/u32-is-cased: New file.
50940
50941         New module 'unicase/u16-is-cased'.
50942         * lib/unicase/u16-is-cased.c: New file.
50943         * modules/unicase/u16-is-cased: New file.
50944
50945         New module 'unicase/u8-is-cased'.
50946         * lib/unicase/u8-is-cased.c: New file.
50947         * lib/unicase/u-is-cased.h: New file.
50948         * modules/unicase/u8-is-cased: New file.
50949
50950         Tests for module 'unicase/u32-is-casefolded'.
50951         * modules/unicase/u32-is-casefolded-tests: New file.
50952         * tests/unicase/test-u32-is-casefolded.c: New file.
50953
50954         Tests for module 'unicase/u16-is-casefolded'.
50955         * modules/unicase/u16-is-casefolded-tests: New file.
50956         * tests/unicase/test-u16-is-casefolded.c: New file.
50957
50958         Tests for module 'unicase/u8-is-casefolded'.
50959         * modules/unicase/u8-is-casefolded-tests: New file.
50960         * tests/unicase/test-u8-is-casefolded.c: New file.
50961         * tests/unicase/test-is-casefolded.h: New file.
50962
50963         New module 'unicase/u32-is-casefolded'.
50964         * lib/unicase/u32-is-casefolded.c: New file.
50965         * modules/unicase/u32-is-casefolded: New file.
50966
50967         New module 'unicase/u16-is-casefolded'.
50968         * lib/unicase/u16-is-casefolded.c: New file.
50969         * modules/unicase/u16-is-casefolded: New file.
50970
50971         New module 'unicase/u8-is-casefolded'.
50972         * lib/unicase/u8-is-casefolded.c: New file.
50973         * modules/unicase/u8-is-casefolded: New file.
50974
50975         Tests for module 'unicase/u32-is-titlecase'.
50976         * modules/unicase/u32-is-titlecase-tests: New file.
50977         * tests/unicase/test-u32-is-titlecase.c: New file.
50978
50979         Tests for module 'unicase/u16-is-titlecase'.
50980         * modules/unicase/u16-is-titlecase-tests: New file.
50981         * tests/unicase/test-u16-is-titlecase.c: New file.
50982
50983         Tests for module 'unicase/u8-is-titlecase'.
50984         * modules/unicase/u8-is-titlecase-tests: New file.
50985         * tests/unicase/test-u8-is-titlecase.c: New file.
50986         * tests/unicase/test-is-titlecase.h: New file.
50987
50988         New module 'unicase/u32-is-titlecase'.
50989         * lib/unicase/u32-is-titlecase.c: New file.
50990         * modules/unicase/u32-is-titlecase: New file.
50991
50992         New module 'unicase/u16-is-titlecase'.
50993         * lib/unicase/u16-is-titlecase.c: New file.
50994         * modules/unicase/u16-is-titlecase: New file.
50995
50996         New module 'unicase/u8-is-titlecase'.
50997         * lib/unicase/u8-is-titlecase.c: New file.
50998         * modules/unicase/u8-is-titlecase: New file.
50999
51000         Tests for module 'unicase/u32-is-lowercase'.
51001         * modules/unicase/u32-is-lowercase-tests: New file.
51002         * tests/unicase/test-u32-is-lowercase.c: New file.
51003
51004         Tests for module 'unicase/u16-is-lowercase'.
51005         * modules/unicase/u16-is-lowercase-tests: New file.
51006         * tests/unicase/test-u16-is-lowercase.c: New file.
51007
51008         Tests for module 'unicase/u8-is-lowercase'.
51009         * modules/unicase/u8-is-lowercase-tests: New file.
51010         * tests/unicase/test-u8-is-lowercase.c: New file.
51011         * tests/unicase/test-is-lowercase.h: New file.
51012
51013         New module 'unicase/u32-is-lowercase'.
51014         * lib/unicase/u32-is-lowercase.c: New file.
51015         * modules/unicase/u32-is-lowercase: New file.
51016
51017         New module 'unicase/u16-is-lowercase'.
51018         * lib/unicase/u16-is-lowercase.c: New file.
51019         * modules/unicase/u16-is-lowercase: New file.
51020
51021         New module 'unicase/u8-is-lowercase'.
51022         * lib/unicase/u8-is-lowercase.c: New file.
51023         * modules/unicase/u8-is-lowercase: New file.
51024
51025         Tests for module 'unicase/u32-is-uppercase'.
51026         * modules/unicase/u32-is-uppercase-tests: New file.
51027         * tests/unicase/test-u32-is-uppercase.c: New file.
51028
51029         Tests for module 'unicase/u16-is-uppercase'.
51030         * modules/unicase/u16-is-uppercase-tests: New file.
51031         * tests/unicase/test-u16-is-uppercase.c: New file.
51032
51033         Tests for module 'unicase/u8-is-uppercase'.
51034         * modules/unicase/u8-is-uppercase-tests: New file.
51035         * tests/unicase/test-u8-is-uppercase.c: New file.
51036         * tests/unicase/test-is-uppercase.h: New file.
51037
51038         New module 'unicase/u32-is-uppercase'.
51039         * lib/unicase/u32-is-uppercase.c: New file.
51040         * modules/unicase/u32-is-uppercase: New file.
51041
51042         New module 'unicase/u16-is-uppercase'.
51043         * lib/unicase/u16-is-uppercase.c: New file.
51044         * modules/unicase/u16-is-uppercase: New file.
51045
51046         New module 'unicase/u8-is-uppercase'.
51047         * lib/unicase/u8-is-uppercase.c: New file.
51048         * modules/unicase/u8-is-uppercase: New file.
51049
51050         New module 'unicase/u32-is-invariant'.
51051         * lib/unicase/u32-is-invariant.c: New file.
51052         * modules/unicase/u32-is-invariant: New file.
51053
51054         New module 'unicase/u16-is-invariant'.
51055         * lib/unicase/u16-is-invariant.c: New file.
51056         * modules/unicase/u16-is-invariant: New file.
51057
51058         New module 'unicase/u8-is-invariant'.
51059         * lib/unicase/u8-is-invariant.c: New file.
51060         * lib/unicase/invariant.h: New file.
51061         * lib/unicase/u-is-invariant.h: New file.
51062         * modules/unicase/u8-is-invariant: New file.
51063
51064         Tests for module 'unicase/u32-casecoll'.
51065         * modules/unicase/u32-casecoll-tests: New file.
51066         * tests/unicase/test-u32-casecoll.c: New file.
51067
51068         Tests for module 'unicase/u16-casecoll'.
51069         * modules/unicase/u16-casecoll-tests: New file.
51070         * tests/unicase/test-u16-casecoll.c: New file.
51071
51072         Tests for module 'unicase/u8-casecoll'.
51073         * modules/unicase/u8-casecoll-tests: New file.
51074         * tests/unicase/test-u8-casecoll.c: New file.
51075
51076         New module 'unicase/u32-casecoll'.
51077         * lib/unicase/u32-casecoll.c: New file.
51078         * modules/unicase/u32-casecoll: New file.
51079
51080         New module 'unicase/u16-casecoll'.
51081         * lib/unicase/u16-casecoll.c: New file.
51082         * modules/unicase/u16-casecoll: New file.
51083
51084         New module 'unicase/u8-casecoll'.
51085         * lib/unicase/u8-casecoll.c: New file.
51086         * lib/unicase/u-casecoll.h: New file.
51087         * modules/unicase/u8-casecoll: New file.
51088
51089         New module 'unicase/u32-casexfrm'.
51090         * lib/unicase/u32-casexfrm.c: New file.
51091         * modules/unicase/u32-casexfrm: New file.
51092
51093         New module 'unicase/u16-casexfrm'.
51094         * lib/unicase/u16-casexfrm.c: New file.
51095         * modules/unicase/u16-casexfrm: New file.
51096
51097         New module 'unicase/u8-casexfrm'.
51098         * lib/unicase/u8-casexfrm.c: New file.
51099         * lib/unicase/u-casexfrm.h: New file.
51100         * modules/unicase/u8-casexfrm: New file.
51101
51102         Tests for module 'unicase/u32-casecmp'.
51103         * modules/unicase/u32-casecmp-tests: New file.
51104         * tests/unicase/test-u32-casecmp.c: New file.
51105
51106         Tests for module 'unicase/u16-casecmp'.
51107         * modules/unicase/u16-casecmp-tests: New file.
51108         * tests/unicase/test-u16-casecmp.c: New file.
51109
51110         Tests for module 'unicase/u8-casecmp'.
51111         * modules/unicase/u8-casecmp-tests: New file.
51112         * tests/unicase/test-u8-casecmp.c: New file.
51113         * tests/unicase/test-casecmp.h: New file.
51114
51115         New module 'unicase/u32-casecmp'.
51116         * lib/unicase/u32-casecmp.c: New file.
51117         * modules/unicase/u32-casecmp: New file.
51118
51119         New module 'unicase/u16-casecmp'.
51120         * lib/unicase/u16-casecmp.c: New file.
51121         * modules/unicase/u16-casecmp: New file.
51122
51123         New module 'unicase/u8-casecmp'.
51124         * lib/unicase/u8-casecmp.c: New file.
51125         * lib/unicase/u-casecmp.h: New file.
51126         * modules/unicase/u8-casecmp: New file.
51127
51128         Tests for module 'unicase/u32-casefold'.
51129         * modules/unicase/u32-casefold-tests: New file.
51130         * tests/unicase/test-u32-casefold.c: New file.
51131
51132         Tests for module 'unicase/u16-casefold'.
51133         * modules/unicase/u16-casefold-tests: New file.
51134         * tests/unicase/test-u16-casefold.c: New file.
51135
51136         Tests for module 'unicase/u8-casefold'.
51137         * modules/unicase/u8-casefold-tests: New file.
51138         * tests/unicase/test-u8-casefold.c: New file.
51139
51140         New module 'unicase/u32-casefold'.
51141         * lib/unicase/u32-casefold.c: New file.
51142         * modules/unicase/u32-casefold: New file.
51143
51144         New module 'unicase/u16-casefold'.
51145         * lib/unicase/u16-casefold.c: New file.
51146         * modules/unicase/u16-casefold: New file.
51147
51148         New module 'unicase/u8-casefold'.
51149         * lib/unicase/u8-casefold.c: New file.
51150         * lib/unicase/u-casefold.h: New file.
51151         * modules/unicase/u8-casefold: New file.
51152
51153         New module 'unicase/tocasefold'.
51154         * lib/unicase/casefold.h: New file.
51155         * lib/unicase/tocasefold.c: New file.
51156         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51157         * modules/unicase/tocasefold: New file.
51158
51159         Tests for module 'unicase/u32-totitle'.
51160         * modules/unicase/u32-totitle-tests: New file.
51161         * tests/unicase/test-u32-totitle.c: New file.
51162
51163         Tests for module 'unicase/u16-totitle'.
51164         * modules/unicase/u16-totitle-tests: New file.
51165         * tests/unicase/test-u16-totitle.c: New file.
51166
51167         Tests for module 'unicase/u8-totitle'.
51168         * modules/unicase/u8-totitle-tests: New file.
51169         * tests/unicase/test-u8-totitle.c: New file.
51170
51171         New module 'unicase/u32-totitle'.
51172         * lib/unicase/u32-totitle.c: New file.
51173         * modules/unicase/u32-totitle: New file.
51174
51175         New module 'unicase/u16-totitle'.
51176         * lib/unicase/u16-totitle.c: New file.
51177         * modules/unicase/u16-totitle: New file.
51178
51179         New module 'unicase/u8-totitle'.
51180         * lib/unicase/u8-totitle.c: New file.
51181         * lib/unicase/u-totitle.h: New file.
51182         * modules/unicase/u8-totitle: New file.
51183
51184         Tests for module 'unicase/u32-tolower'.
51185         * modules/unicase/u32-tolower-tests: New file.
51186         * tests/unicase/test-u32-tolower.c: New file.
51187
51188         Tests for module 'unicase/u16-tolower'.
51189         * modules/unicase/u16-tolower-tests: New file.
51190         * tests/unicase/test-u16-tolower.c: New file.
51191
51192         Tests for module 'unicase/u8-tolower'.
51193         * modules/unicase/u8-tolower-tests: New file.
51194         * tests/unicase/test-u8-tolower.c: New file.
51195
51196         New module 'unicase/u32-tolower'.
51197         * lib/unicase/u32-tolower.c: New file.
51198         * modules/unicase/u32-tolower: New file.
51199
51200         New module 'unicase/u16-tolower'.
51201         * lib/unicase/u16-tolower.c: New file.
51202         * modules/unicase/u16-tolower: New file.
51203
51204         New module 'unicase/u8-tolower'.
51205         * lib/unicase/u8-tolower.c: New file.
51206         * modules/unicase/u8-tolower: New file.
51207
51208         Tests for module 'unicase/u32-toupper'.
51209         * modules/unicase/u32-toupper-tests: New file.
51210         * tests/unicase/test-u32-toupper.c: New file.
51211
51212         Tests for module 'unicase/u16-toupper'.
51213         * modules/unicase/u16-toupper-tests: New file.
51214         * tests/unicase/test-u16-toupper.c: New file.
51215
51216         Tests for module 'unicase/u8-toupper'.
51217         * modules/unicase/u8-toupper-tests: New file.
51218         * tests/unicase/test-u8-toupper.c: New file.
51219
51220         New module 'unicase/u32-toupper'.
51221         * lib/unicase/u32-toupper.c: New file.
51222         * modules/unicase/u32-toupper: New file.
51223
51224         New module 'unicase/u16-toupper'.
51225         * lib/unicase/u16-toupper.c: New file.
51226         * modules/unicase/u16-toupper: New file.
51227
51228         New module 'unicase/u8-toupper'.
51229         * lib/unicase/u8-toupper.c: New file.
51230         * modules/unicase/u8-toupper: New file.
51231
51232         New module 'unicase/u32-casemap'.
51233         * lib/unicase/u32-casemap.c: New file.
51234         * modules/unicase/u32-casemap: New file.
51235
51236         New module 'unicase/u16-casemap'.
51237         * lib/unicase/u16-casemap.c: New file.
51238         * modules/unicase/u16-casemap: New file.
51239
51240         New module 'unicase/u8-casemap'.
51241         * lib/unicase/unicasemap.h: New file.
51242         * lib/unicase/u8-casemap.c: New file.
51243         * lib/unicase/u-casemap.h: New file.
51244         * modules/unicase/u8-casemap: New file.
51245
51246         New module 'unicase/special-casing'.
51247         * lib/unicase/special-casing.h: New file.
51248         * lib/unicase/special-casing.c: New file.
51249         * lib/unicase/special-casing-table.gperf: New file, generated by
51250         gen-uni-tables.c.
51251         * modules/unicase/special-casing: New file.
51252
51253         Tests for module 'unicase/locale-language'.
51254         * modules/unicase/locale-language-tests: New file.
51255         * tests/unicase/test-locale-language.sh: New file.
51256         * tests/unicase/test-locale-language.c: New file.
51257
51258         New module 'unicase/locale-language'.
51259         * lib/unicase/locale-language.c: New file.
51260         * lib/unicase/locale-languages.gperf: New file.
51261         * modules/unicase/locale-language: New file.
51262
51263         Generate more tables for case conversion and case folding.
51264         * lib/gen-uni-tables.c (SCC_*): New enum items.
51265         (struct special_casing_rule): New type.
51266         (casing_rules, num_casing_rules, allocated_casing_rules): New
51267         variables.
51268         (add_casing_rule, fill_casing_rules): New functions.
51269         (struct casefold_rule): New type.
51270         (casefolding_rules, num_casefolding_rules,
51271         allocated_casefolding_rules): New variables.
51272         (fill_casefolding_rules): New function.
51273         (unicode_casefold): New variable.
51274         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51275         sort_casing_rules, output_casing_rules): New functions.
51276         (main): Accept to more arguments: SpecialCasing.txt and
51277         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51278         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51279         Output mapping for casefolding.
51280
51281         * lib/unicase.h: Include stdbool.h, uninorm.h.
51282         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51283         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51284         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51285         arguments.
51286         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51287         resultp arguments.
51288         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51289         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51290         resultp arguments.
51291         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51292         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51293         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51294         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51295         declarations.
51296         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51297
51298 2009-03-08  Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51301         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51302         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51303         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51304
51305 2009-03-07  Bruno Haible  <bruno@clisp.org>
51306
51307         Adjust u*_normcmp, u*_normcoll API.
51308         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51309         u16_normcoll, u32_normcoll): Change failure conventions.
51310         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51311         errno and return -1.
51312         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51313
51314 2009-03-07  Bruno Haible  <bruno@clisp.org>
51315
51316         Tests for module 'uninorm/u32-normcoll'.
51317         * modules/uninorm/u32-normcoll-tests: New file.
51318         * tests/uninorm/test-u32-normcoll.c: New file.
51319
51320         Tests for module 'uninorm/u16-normcoll'.
51321         * modules/uninorm/u16-normcoll-tests: New file.
51322         * tests/uninorm/test-u16-normcoll.c: New file.
51323
51324         Tests for module 'uninorm/u8-normcoll'.
51325         * modules/uninorm/u8-normcoll-tests: New file.
51326         * tests/uninorm/test-u8-normcoll.c: New file.
51327
51328 2009-03-07  Bruno Haible  <bruno@clisp.org>
51329
51330         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51331         tests/uninorm/test-u32-normcmp.c.
51332         * tests/uninorm/test-u32-normcmp.c: Include it.
51333         (test_nonascii): New function, extracted from main. Add some more
51334         tests.
51335         (main): Invoke test_ascii and test_nonascii.
51336         * modules/uninorm/u32-normcmp-tests (Files): Add
51337         tests/uninorm/test-u32-normcmp.h.
51338         (Depends-on): Remove uninorm/u32-normcmp.
51339
51340         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51341         tests/uninorm/test-u16-normcmp.c.
51342         * tests/uninorm/test-u16-normcmp.c: Include it.
51343         (test_nonascii): New function, extracted from main. Add some more
51344         tests.
51345         (main): Invoke test_ascii and test_nonascii.
51346         * modules/uninorm/u16-normcmp-tests (Files): Add
51347         tests/uninorm/test-u16-normcmp.h.
51348         (Depends-on): Remove uninorm/u16-normcmp.
51349
51350         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51351         tests/uninorm/test-u8-normcmp.c.
51352         * tests/uninorm/test-u8-normcmp.c: Include it.
51353         (test_nonascii): New function, extracted from main. Add some more
51354         tests.
51355         (main): Invoke test_ascii and test_nonascii.
51356         * modules/uninorm/u8-normcmp-tests (Files): Add
51357         tests/uninorm/test-u8-normcmp.h.
51358         (Depends-on): Remove uninorm/u8-normcmp.
51359
51360 2009-03-07  Bruno Haible  <bruno@clisp.org>
51361
51362         New module 'uninorm/u32-normcoll'.
51363         * lib/uninorm/u32-normcoll.c: New file.
51364         * modules/uninorm/u32-normcoll: New file.
51365
51366         New module 'uninorm/u16-normcoll'.
51367         * lib/uninorm/u16-normcoll.c: New file.
51368         * modules/uninorm/u16-normcoll: New file.
51369
51370         New module 'uninorm/u8-normcoll'.
51371         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51372         declarations.
51373         * lib/uninorm/u8-normcoll.c: New file.
51374         * lib/uninorm/u-normcoll.h: New file.
51375         * modules/uninorm/u8-normcoll: New file.
51376
51377         New module 'uninorm/u32-normxfrm'.
51378         * lib/uninorm/u32-normxfrm.c: New file.
51379         * modules/uninorm/u32-normxfrm: New file.
51380
51381         New module 'uninorm/u16-normxfrm'.
51382         * lib/uninorm/u16-normxfrm.c: New file.
51383         * modules/uninorm/u16-normxfrm: New file.
51384
51385         New module 'uninorm/u8-normxfrm'.
51386         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51387         declarations.
51388         * lib/uninorm/u8-normxfrm.c: New file.
51389         * lib/uninorm/u-normxfrm.h: New file.
51390         * modules/uninorm/u8-normxfrm: New file.
51391
51392 2009-03-07  Bruno Haible  <bruno@clisp.org>
51393
51394         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51395         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51396         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51397
51398 2009-03-07  Bruno Haible  <bruno@clisp.org>
51399
51400         New module 'memxfrm'.
51401         * lib/memxfrm.h: New file.
51402         * lib/memxfrm.c: New file.
51403         * modules/memxfrm: New file.
51404
51405 2009-03-07  Bruno Haible  <bruno@clisp.org>
51406
51407         New module 'memcmp2'.
51408         * lib/memcmp2.h: New file.
51409         * lib/memcmp2.c: New file.
51410         * modules/memcmp2: New file.
51411
51412 2009-03-07  Bruno Haible  <bruno@clisp.org>
51413
51414         Tests for module 'uninorm/decomposing-form'.
51415         * modules/uninorm/decomposing-form-tests: New file.
51416         * tests/uninorm/test-decomposing-form.c: New file.
51417
51418         New module 'uninorm/decomposing-form'.
51419         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51420         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51421         Add 'decomposing_variant' field.
51422         * lib/uninorm/decomposing-form.c: New file.
51423         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51424         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51425         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51426         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51427         * modules/uninorm/decomposing-form: New file.
51428         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51429         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51430
51431 2009-03-07  Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51434         strings.
51435
51436 2009-03-06  Bruno Haible  <bruno@clisp.org>
51437
51438         Tests for module 'uninorm/u32-normcmp'.
51439         * tests/uninorm/test-u32-normcmp.c: New file.
51440         * modules/uninorm/u32-normcmp-tests: New file.
51441
51442         Tests for module 'uninorm/u16-normcmp'.
51443         * tests/uninorm/test-u16-normcmp.c: New file.
51444         * modules/uninorm/u16-normcmp-tests: New file.
51445
51446         Tests for module 'uninorm/u8-normcmp'.
51447         * tests/uninorm/test-u8-normcmp.c: New file.
51448         * modules/uninorm/u8-normcmp-tests: New file.
51449
51450         New module 'uninorm/u32-normcmp'.
51451         * lib/uninorm/u32-normcmp.c: New file.
51452         * modules/uninorm/u32-normcmp: New file.
51453
51454         New module 'uninorm/u16-normcmp'.
51455         * lib/uninorm/u16-normcmp.c: New file.
51456         * modules/uninorm/u16-normcmp: New file.
51457
51458         New module 'uninorm/u8-normcmp'.
51459         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51460         declarations.
51461         * lib/uninorm/u8-normcmp.c: New file.
51462         * lib/uninorm/u-normcmp.h: New file.
51463         * modules/uninorm/u8-normcmp: New file.
51464
51465 2009-03-06  Bruno Haible  <bruno@clisp.org>
51466
51467         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51468         Reported by Eric Blake.
51469
51470 2009-03-06  Eric Blake  <ebb9@byu.net>
51471             Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51474         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51475         condition.
51476         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51477         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51478         condition.
51479         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51480
51481 2009-03-06  Eric Blake  <ebb9@byu.net>
51482
51483         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51484         to avoid compiler warnings.
51485         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51486
51487 2009-03-05  Bruno Haible  <bruno@clisp.org>
51488
51489         * tests/test-ftell.c (main): Disable test beyond end of file on
51490         FreeMiNT.
51491         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51492
51493 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51494
51495         * lib/filevercmp.c: Move hidden files up in ordering.
51496         * tests/test-filevercmp.c: Add tests for hidden files.
51497
51498 2009-03-04  Bruno Haible  <bruno@clisp.org>
51499
51500         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51501         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51502         AM_CFLAGS.
51503         Reported by Simon Josefsson.
51504
51505 2009-03-03  Bruno Haible  <bruno@clisp.org>
51506
51507         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51508         Reported by Simon Josefsson.
51509
51510         * doc/ld-version-script.texi: Update node reference.
51511
51512 2009-03-03  Bruno Haible  <bruno@clisp.org>
51513
51514         * modules/visibility (License): Change to 'unlimited'.
51515         Suggested by Simon Josefsson.
51516
51517 2009-03-03  Jim Meyering  <meyering@redhat.com>
51518
51519         unlinkdir: cannot_unlink_dir may modify process state
51520         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51521         it's neither thread-safe nor appropriate for use in a library.
51522
51523 2009-03-03  Eric Blake  <ebb9@byu.net>
51524
51525         test-closein: silence test under Darwin
51526         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51527         care if it dies from EPIPE or EBADF.
51528
51529 2009-03-03  Bruno Haible  <bruno@clisp.org>
51530
51531         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51532         earlier.
51533         * doc/visibility.texi: Fix @node and @section.
51534
51535 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51536
51537         * doc/gnulib.texi: Link to sections for ld version script and
51538         visibility.
51539         * doc/visibility.texi: Add @node and @section.
51540         * modules/ld-version-script: New module.
51541         * m4/ld-version-script.m4: New file.
51542         * doc/ld-version-script.texi: New file.
51543
51544 2009-03-02  David Lutterkort  <lutter@redhat.com>
51545
51546         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51548
51549 2009-03-02  Bruno Haible  <bruno@clisp.org>
51550
51551         * doc/visibility.texi: Mention libtool's -export-symbols option.
51552
51553 2009-03-02  Jim Meyering  <meyering@redhat.com>
51554
51555         announce-gen: new option: --no-print-checksums
51556         * build-aux/announce-gen (usage): Describe it.
51557         (print_checksums): Print a newline here, not in the [*] footnote.
51558         (main): Honor it.
51559
51560 2009-03-01  Bruno Haible  <bruno@clisp.org>
51561
51562         Use socklen_t in the native Windows replacements prototypes.
51563         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51564         instead of 'int'.
51565         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51566         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51567         * modules/getsockopt (Depends-on): Add socklen.
51568         * modules/setsockopt (Depends-on): Add socklen.
51569
51570 2009-03-01  Bruno Haible  <bruno@clisp.org>
51571
51572         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51573         least 4.2.
51574
51575 2009-03-01  Eric Blake  <ebb9@byu.net>
51576             Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51579         error messages.
51580         * lib/wait-process.c (wait_subprocess): Omit error message about
51581         deadly signal sent to the child of termsigp != NULL.
51582
51583 2009-03-01  Eric Blake  <ebb9@byu.net>
51584
51585         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51586
51587 2009-03-01  Bruno Haible  <bruno@clisp.org>
51588
51589         Avoid a gcc warning.
51590         * tests/test-sched.c (b): Make global.
51591         Reported by Eric Blake.
51592
51593 2009-01-19  Martin Lambers  <marlam@marlam.de>
51594
51595         Provide POSIX semantics for socket timeout options on W32.
51596         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51597         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51598         * modules/setsockopt: Depend on sys_time module for struct timeval.
51599         * modules/getsockopt: Depend on sys_time module for struct timeval.
51600
51601 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51602
51603         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51604         __USE_GNU, for consistency with netdb.in.h.
51605         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51606
51607 2009-03-01  Bruno Haible  <bruno@clisp.org>
51608
51609         More support for FreeMiNT.
51610         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51611         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51612
51613 2009-03-01  Bruno Haible  <bruno@clisp.org>
51614
51615         More support for FreeMiNT.
51616         * lib/fpurge.c (fpurge): Correct last commit.
51617         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51618
51619 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51620
51621         Fix unportable awk script in vc-list-files.
51622         * build-aux/vc-list-files: In the replacement awk script, use
51623         substr with a second argument of 1, not zero.
51624         Report by Simon Josefsson.
51625
51626 2009-02-28  Bruno Haible  <bruno@clisp.org>
51627
51628         More support for FreeMiNT.
51629         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51630         to FreeMiNT today.
51631         * lib/fwriting.c (fwriting): Likewise.
51632         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51633
51634 2009-02-28  Bruno Haible  <bruno@clisp.org>
51635
51636         * tests/test-freadseek.c (main): Disable test beyond end of file on
51637         FreeMiNT.
51638         * tests/test-ftello.c (main): Likewise.
51639         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51640
51641 2009-02-28  Bruno Haible  <bruno@clisp.org>
51642
51643         Add tentative support for FreeMiNT.
51644         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51645         * lib/fpurge.c (fpurge): Likewise.
51646         * lib/freadable.c (freadable): Likewise.
51647         * lib/freading.c (freading): Likewise.
51648         * lib/freadptr.c (freadptr): Likewise.
51649         * lib/freadseek.c (freadptrinc): Likewise.
51650         * lib/fseeko.c (rpl_fseeko): Likewise.
51651         * lib/fseterr.c (fseterr): Likewise.
51652         * lib/fwritable.c (fwritable): Likewise.
51653         * lib/fwriting.c (fwriting): Likewise.
51654         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51655         Hourihane.
51656         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51657
51658 2009-02-28  Bruno Haible  <bruno@clisp.org>
51659
51660         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51661         SIGCHLD.
51662         Reported by Jim Meyering.
51663
51664 2009-02-28  Bruno Haible  <bruno@clisp.org>
51665
51666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51667         Mention the results of these tests on various platforms.
51668         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51669         order.
51670         * doc/posix-functions/printf.texi: Likewise.
51671         * doc/posix-functions/snprintf.texi: Likewise.
51672         * doc/posix-functions/sprintf.texi: Likewise.
51673         * doc/posix-functions/vfprintf.texi: Likewise.
51674         * doc/posix-functions/vprintf.texi: Likewise.
51675         * doc/posix-functions/vsnprintf.texi: Likewise.
51676         * doc/posix-functions/vsprintf.texi: Likewise.
51677         * doc/glibc-functions/obstack_printf.texi: Likewise.
51678         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51679
51680 2009-02-28  Bruno Haible  <bruno@clisp.org>
51681
51682         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51683         Reported by Loïc Minier <lool@dooz.org>.
51684
51685 2009-02-27  Bruno Haible  <bruno@clisp.org>
51686
51687         * gnulib-tool (func_import): Make the sed expression used to create the
51688         sed script for updating the .gitignore file POSIX compliant.
51689         Reported by Eric Blake.
51690
51691 2009-02-27  Bruno Haible  <bruno@clisp.org>
51692
51693         * gnulib-tool (sed): Don't alias as "sed --posix".
51694         Reported by Eric Blake.
51695
51696 2009-02-27  Bruno Haible  <bruno@clisp.org>
51697
51698         Avoid test link errors.
51699         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51700         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51701         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51702         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51704
51705 2009-02-27  Bruno Haible  <bruno@clisp.org>
51706
51707         Avoid spurious "(cached)" in configure output.
51708         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51709         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51710         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51711         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51712         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51713         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51714         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51715         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51716         Reported by Eric Blake.
51717
51718 2009-02-27  Eric Blake  <ebb9@byu.net>
51719
51720         printf: fix regression in previous patch
51721         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51722
51723 2009-02-27  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51726         value.
51727         * lib/stdint.in.h: Likewise.
51728         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51729
51730 2009-02-27  Eric Blake  <ebb9@byu.net>
51731
51732         doc: mention more functions added in cygwin 1.7.0
51733         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51734         addition.
51735         * doc/posix-functions/open_wmemstream.texi: Likewise.
51736         * doc/posix-functions/wcsnlen.texi: Likewise.
51737         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51738         * doc/posix-functions/wcstod.texi: Likewise.
51739         * doc/posix-functions/wcstof.texi: Likewise.
51740         * doc/posix-functions/wcstoimax.texi: Likewise.
51741         * doc/posix-functions/wcstok.texi: Likewise.
51742         * doc/posix-functions/wcstoumax.texi: Likewise.
51743
51744         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51745         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51746         * doc/posix-functions/fprintf.texi: Update.
51747         * doc/posix-functions/printf.texi: Update.
51748         * doc/posix-functions/snprintf.texi: Update.
51749         * doc/posix-functions/sprintf.texi: Update.
51750         * doc/posix-functions/vfprintf.texi: Update.
51751         * doc/posix-functions/vprintf.texi: Update.
51752         * doc/posix-functions/vsnprintf.texi: Update.
51753         * doc/posix-functions/vsprintf.texi: Update.
51754         * doc/glibc-functions/obstack_printf.texi: Update.
51755         * doc/glibc-functions/obstack_vprintf.texi: Update.
51756
51757 2009-02-26  Eric Blake  <ebb9@byu.net>
51758
51759         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51760         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51761         compilation bug by using runtime conversion.
51762         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51763         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51764         * modules/ceill-tests (Files): Use nan.h.
51765         * modules/floorl-tests (Files): Likewise.
51766         * modules/frexpl-tests (Files): Likewise.
51767         * modules/isnanl-tests (Files): Likewise.
51768         * modules/ldexpl-tests (Files): Likewise.
51769         * modules/roundl-tests (Files): Likewise.
51770         * modules/truncl-tests (Files): Likewise.
51771         * tests/test-ceill.c (main): Use a working NaN.
51772         * tests/test-floorl.c (main): Likewise.
51773         * tests/test-frexpl.c (main): Likewise.
51774         * tests/test-isnan.c (test_long_double): Likewise.
51775         * tests/test-isnanl.h (main): Likewise.
51776         * tests/test-ldexpl.h (main): Likewise.
51777         * tests/test-roundl.h (main): Likewise.
51778         * tests/test-truncl.h (main): Likewise.
51779         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51780
51781 2009-02-26  Eric Blake  <ebb9@byu.net>
51782             Bruno Haible  <bruno@clisp.org>
51783
51784         Work around a *printf bug with %ls on Solaris.
51785         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51786         precision is specified, sprintf stops converting the wide string
51787         argument when the number of bytes that have been produced by this
51788         conversion equals or exceeds the precision.
51789         * doc/posix-functions/fprintf.texi: Update.
51790         * doc/posix-functions/printf.texi: Update.
51791         * doc/posix-functions/snprintf.texi: Update.
51792         * doc/posix-functions/sprintf.texi: Update.
51793         * doc/posix-functions/vfprintf.texi: Update.
51794         * doc/posix-functions/vprintf.texi: Update.
51795         * doc/posix-functions/vsnprintf.texi: Update.
51796         * doc/posix-functions/vsprintf.texi: Update.
51797         * doc/glibc-functions/obstack_printf.texi: Update.
51798         * doc/glibc-functions/obstack_vprintf.texi: Update.
51799
51800 2009-02-26  Eric Blake  <ebb9@byu.net>
51801
51802         stdlib: favor compiler check of random.h
51803         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51804         to avoid an ObjC random.h installed by Swarm.
51805
51806 2009-02-26  Bruno Haible  <bruno@clisp.org>
51807
51808         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51809         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51810         Reported by Gary V. Vaughan <gary@gnu.org>.
51811
51812 2009-02-26  Bruno Haible  <bruno@clisp.org>
51813
51814         Fix *printf behaviour regarding the %ls directive.
51815         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51816         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51817         NEED_PRINTF_DIRECTIVE_LS.
51818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51819         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51820         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51821         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51822         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51823         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51824         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51825         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51827         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51828         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51829         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51833         * doc/posix-functions/fprintf.texi: Update.
51834         * doc/posix-functions/printf.texi: Update.
51835         * doc/posix-functions/snprintf.texi: Update.
51836         * doc/posix-functions/sprintf.texi: Update.
51837         * doc/posix-functions/vfprintf.texi: Update.
51838         * doc/posix-functions/vprintf.texi: Update.
51839         * doc/posix-functions/vsnprintf.texi: Update.
51840         * doc/posix-functions/vsprintf.texi: Update.
51841         * doc/glibc-functions/obstack_printf.texi: Update.
51842         * doc/glibc-functions/obstack_vprintf.texi: Update.
51843         Reported by Eric Blake.
51844
51845 2009-02-25  Bruno Haible  <bruno@clisp.org>
51846
51847         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51848         with known value.
51849         Reported by Gary V. Vaughan <gary@gnu.org>.
51850
51851 2009-02-25  Bruno Haible  <bruno@clisp.org>
51852
51853         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51854         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51855         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51856         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51857         Reported by Gary V. Vaughan <gary@gnu.org>.
51858
51859 2009-02-25  Bruno Haible  <bruno@clisp.org>
51860
51861         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51862         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51863         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51864         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51865         Reported by Gary V. Vaughan <gary@gnu.org>.
51866
51867 2009-02-25  Eric Blake  <ebb9@byu.net>
51868
51869         tests: skip fseek/ftell tests if ungetc is broken
51870         * m4/ungetc.m4: New file.
51871         * modules/fseek-tests: Split test, so ungetc dependency is
51872         separate from rest of test.
51873         * modules/fseeko-tests: Likewise.
51874         * modules/ftell-tests: Likewise.
51875         * modules/ftello-tests: Likewise.
51876         * tests/test-fseek.c (main): Isolate ungetc dependency.
51877         * tests/test-fseeko.c (main): Likewise.
51878         * tests/test-ftell.c (main): Likewise.
51879         * tests/test-ftello.c (main): Likewise.
51880         * tests/test-fseek2.sh: New file.
51881         * tests/test-fseeko2.sh: Likewise.
51882         * tests/test-ftell2.sh: Likewise.
51883         * tests/test-ftello2.sh: Likewise.
51884
51885 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51886
51887         test-getaddrinfo: fix usage of skip return code 77
51888         * tests/test-gettaddrinfo.c: Return skip code 77 only
51889         for first occurrence of skip (4x77 is not 77)
51890
51891 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51892
51893         strtod: avoid C99 decl-after-statement
51894         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51895
51896 2009-02-24  Eric Blake  <ebb9@byu.net>
51897
51898         strtod: detect HP-UX 11.31 bug
51899         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51900         Reported by Gary V. Vaughan.
51901
51902 2009-02-23  Bruno Haible  <bruno@clisp.org>
51903
51904         Fix invalid read past end of memory block.
51905         * lib/vasnprintf.c (DCHAR_SET): Define.
51906         (local_wcslen): Define only when needed.
51907         (local_strnlen, local_wcsnlen): New functions.
51908         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51909         directives that involve a conversion ourselves.
51910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51911         wcsnlen, mbrtowc, wcrtomb.
51912         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51913         * tests/test-vasprintf-posix.c (test_function): Likewise.
51914         * tests/test-snprintf-posix.h (test_function): Likewise.
51915         * tests/test-sprintf-posix.h (test_function): Likewise.
51916         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51917
51918 2009-02-22  Bruno Haible  <bruno@clisp.org>
51919
51920         Implement new clarified decomposition of Hangul syllables.
51921         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51922         of type LTV, return only a pairwise decomposition.
51923         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51924         Likewise.
51925         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51926         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51927         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51928
51929 2009-02-22  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51932         zero-length results and shrink excess allocated memory.
51933         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51934         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51935         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51936         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51937         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51938         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51939         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51940         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51941         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51942         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51943         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51944         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51945
51946 2009-02-21  Bruno Haible  <bruno@clisp.org>
51947
51948         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51949         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51950         spaces after a period. Put a space between a macro name and its
51951         argument list. Trivial rewordings.
51952         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51953         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51954         (main): Return 0 explicitly.
51955
51956 2009-02-21  Bruno Haible  <bruno@clisp.org>
51957
51958         Tests for module 'uninorm/filter'.
51959         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51960         * modules/uninorm/filter-tests: New file.
51961
51962         New module 'uninorm/filter'.
51963         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51964         uninorm_filter_flush, uninorm_filter_free): New declarations.
51965         * lib/uninorm/uninorm-filter.c: New file.
51966         * modules/uninorm/filter: New file.
51967
51968 2009-02-21  Bruno Haible  <bruno@clisp.org>
51969
51970         Tests for module 'uninorm/nfkc'.
51971         * tests/uninorm/test-nfkc.c: New file.
51972         * tests/uninorm/test-u8-nfkc.c: New file.
51973         * tests/uninorm/test-u16-nfkc.c: New file.
51974         * tests/uninorm/test-u32-nfkc.c: New file.
51975         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51976         * tests/uninorm/test-u32-nfkc-big.c: New file.
51977         * modules/uninorm/nfkc-tests: New file.
51978
51979         New module 'uninorm/nfkc'.
51980         * lib/uninorm/nfkc.c: New file.
51981         * modules/uninorm/nfkc: New file.
51982
51983         Tests for module 'uninorm/nfkd'.
51984         * tests/uninorm/test-nfkd.c: New file.
51985         * tests/uninorm/test-u8-nfkd.c: New file.
51986         * tests/uninorm/test-u16-nfkd.c: New file.
51987         * tests/uninorm/test-u32-nfkd.c: New file.
51988         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51989         * tests/uninorm/test-u32-nfkd-big.c: New file.
51990         * modules/uninorm/nfkd-tests: New file.
51991
51992         New module 'uninorm/nfkd'.
51993         * lib/uninorm/nfkd.c: New file.
51994         * modules/uninorm/nfkd: New file.
51995
51996         Tests for module 'uninorm/nfc'.
51997         * tests/uninorm/test-nfc.c: New file.
51998         * tests/uninorm/test-u8-nfc.c: New file.
51999         * tests/uninorm/test-u16-nfc.c: New file.
52000         * tests/uninorm/test-u32-nfc.c: New file.
52001         * tests/uninorm/test-u32-nfc-big.sh: New file.
52002         * tests/uninorm/test-u32-nfc-big.c: New file.
52003         * modules/uninorm/nfc-tests: New file.
52004
52005         New module 'uninorm/nfc'.
52006         * lib/uninorm/nfc.c: New file.
52007         * modules/uninorm/nfc: New file.
52008
52009         Tests for module 'uninorm/nfd'.
52010         * tests/uninorm/test-nfd.c: New file.
52011         * tests/uninorm/test-u8-nfd.c: New file.
52012         * tests/uninorm/test-u16-nfd.c: New file.
52013         * tests/uninorm/test-u32-nfd.c: New file.
52014         * tests/uninorm/test-u32-nfd-big.sh: New file.
52015         * tests/uninorm/test-u32-nfd-big.c: New file.
52016         * tests/uninorm/test-u32-normalize-big.h: New file.
52017         * tests/uninorm/test-u32-normalize-big.c: New file.
52018         * tests/uninorm/NormalizationTest.txt: New file, created from
52019         Unicode 5.1.0 NormalizationTest.txt.
52020         * modules/uninorm/nfd-tests: New file.
52021
52022         New module 'uninorm/nfd'.
52023         * lib/uninorm/nfd.c: New file.
52024         * modules/uninorm/nfd: New file.
52025
52026         New module 'uninorm/u32-normalize'.
52027         * lib/uninorm/u32-normalize.c: New file.
52028         * modules/uninorm/u32-normalize: New file.
52029
52030         New module 'uninorm/u16-normalize'.
52031         * lib/uninorm/u16-normalize.c: New file.
52032         * modules/uninorm/u16-normalize: New file.
52033
52034         New module 'uninorm/u8-normalize'.
52035         * lib/uninorm/u8-normalize.c: New file.
52036         * lib/uninorm/normalize-internal.h: New file.
52037         * lib/uninorm/u-normalize-internal.h: New file.
52038         * modules/uninorm/u8-normalize: New file.
52039
52040         New module 'uninorm/decompose-internal'.
52041         * lib/uninorm/decompose-internal.c: New file.
52042         * modules/uninorm/decompose-internal: New file.
52043
52044         Tests for module 'uninorm/composition'.
52045         * tests/uninorm/test-composition.c: New file.
52046         * modules/uninorm/composition-tests: New file.
52047
52048         New module 'uninorm/composition'.
52049         * lib/uninorm/composition.c: New file.
52050         * lib/uninorm/composition-table.gperf: New file, generated by
52051         gen-uni-tables.
52052         * modules/uninorm/composition: New file.
52053
52054         Tests for module 'uninorm/compat-decomposition'.
52055         * tests/uninorm/test-compat-decomposition.c: New file.
52056         * modules/uninorm/compat-decomposition-tests: New file.
52057
52058         New module 'uninorm/compat-decomposition'.
52059         * lib/uninorm/decompose-internal.h: New file.
52060         * lib/uninorm/compat-decomposition.c: New file.
52061         * modules/uninorm/compat-decomposition: New file.
52062
52063         Tests for module 'uninorm/canonical-decomposition'.
52064         * tests/uninorm/test-canonical-decomposition.c: New file.
52065         * modules/uninorm/canonical-decomposition-tests: New file.
52066
52067         New module 'uninorm/canonical-decomposition'.
52068         * lib/uninorm/canonical-decomposition.c: New file.
52069         * modules/uninorm/canonical-decomposition: New file.
52070
52071         Tests for module 'uninorm/decomposition'.
52072         * tests/uninorm/test-decomposition.c: New file.
52073         * modules/uninorm/decomposition-tests: New file.
52074
52075         New module 'uninorm/decomposition'.
52076         * lib/uninorm/decomposition.c: New file.
52077         * modules/uninorm/decomposition: New file.
52078
52079         New module 'uninorm/decomposition-table'.
52080         * lib/uninorm/decomposition-table.h: New file.
52081         * lib/uninorm/decomposition-table.c: New file.
52082         * lib/uninorm/decomposition-table1.h: New file, generated by
52083         gen-uni-tables.
52084         * lib/uninorm/decomposition-table2.h: New file, generated by
52085         gen-uni-tables.
52086         * modules/uninorm/decomposition-table: New file.
52087
52088         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52089         (UC_DECOMP_*): New enumeration items.
52090         (get_decomposition): New function.
52091         (struct decomp_table): New type.
52092         (output_decomposition, output_decomposition_tables): New functions.
52093         (unicode_composition_exclusions): New variable.
52094         (fill_composition_exclusions, debug_output_composition_tables): New
52095         functions.
52096         (main): Accept one more argument. Invoke fill_composition_exclusions.
52097         Output decomposition and composition tables.
52098
52099         New module 'uninorm/base'.
52100         * lib/uninorm.h: New file.
52101         * lib/unictype.h: Update comment.
52102         * modules/uninorm/base: New file.
52103
52104 2009-02-21  David Lutterkort  <lutter@redhat.com>
52105
52106         Tests for module 'safe-alloc'.
52107         * tests/test-safe-alloc.c: New file.
52108         * modules/safe-alloc-tests: New file.
52109
52110         New module 'safe-alloc'.
52111         * lib/safe-alloc.h: New file.
52112         * lib/safe-alloc.c: New file.
52113         * m4/safe-alloc.m4: New file.
52114         * modules/safe-alloc: New file.
52115         * doc/safe-alloc.texi: New file.
52116         * doc/gnulib.texi: Include it.
52117         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52118         safe-alloc.
52119
52120 2009-02-18  Bruno Haible  <bruno@clisp.org>
52121
52122         Fix link error on non-glibc systems.
52123         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52124         variable.
52125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52126
52127 2009-02-18  Jim Meyering  <meyering@redhat.com>
52128
52129         fts: avoid used-uninitialized error due to recent change
52130         * lib/fts.c (fts_read): Guard uses of the new member,
52131         parent->fts_n_dirs_remaining, since it's not relevant for
52132         the parent of a directory specified on the command-line.
52133
52134 2009-02-17  James Youngman  <jay@gnu.org>
52135             Bruno Haible  <bruno@clisp.org>
52136
52137         * m4/include_next.m4: Reformulate comment.
52138
52139 2009-02-16  Jim Meyering  <meyering@redhat.com>
52140
52141         fts: add #if guards so that the fts_lgpl module still builds
52142         * lib/fts.c: Guard just-added hash-table-using parts with
52143         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52144         Reported by Simon Josefsson.
52145
52146 2009-02-15  Bruno Haible  <bruno@clisp.org>
52147
52148         * modules/array-mergesort-tests: New file.
52149         * tests/test-array-mergesort.c: New file.
52150
52151         New module 'array-mergesort'.
52152         * modules/array-mergesort: New file.
52153         * lib/array-mergesort.h: New file.
52154
52155 2009-02-15  Bruno Haible  <bruno@clisp.org>
52156
52157         Fix 2009-02-07 commit.
52158         * lib/gen-uni-tables.c (output_predicate, output_category,
52159         output_combclass, output_bidi_category, output_decimal_digit,
52160         output_digit, output_numeric, output_mirror, output_scripts,
52161         output_ident_category, output_simple_mapping): Fix format directives.
52162         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52163
52164 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52165
52166         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52167         fixes are available from IBM.
52168
52169 2009-02-13  Jim Meyering  <meyering@redhat.com>
52170
52171         fts: arrange not to stat non-directories in more cases
52172         This makes GNU find (when it doesn't need to stat each file)
52173         *much* more efficient at traversing reiserfs file systems.
52174         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52175         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52176         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52177         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52178         (leaf_optimization_applies): New function.
52179         (LCO_hash, LCO_compare): New helper functions.
52180         (link_count_optimize_ok): New function.
52181         (fts_stat): Initialize new member (if dir).
52182         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52183         we've just stat'ed a directory.  Skip the stat call when possible.
52184         ---
52185         Note this AFS-related exchange:
52186         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52187         and note find's pioctl call in find/fstype.c.
52188         But that is necessary only if you want to enable the
52189         optimization for AFS, and for now, I don't.
52190
52191         fts: move a function definition "up" (no semantic change)
52192         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52193         "up" to precede upcoming use of a related function.
52194
52195 2009-02-11  Jim Meyering  <meyering@redhat.com>
52196
52197         fts: correct internal computation of nlinks (optimization-related)
52198         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52199         whether the current entry is a directory, so don't test it.
52200
52201 2009-02-10  Bruno Haible  <bruno@clisp.org>
52202
52203         Tests for module 'uniwbrk/ulc-wordbreaks'.
52204         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52205         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52206         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52207
52208         Tests for module 'uniwbrk/u32-wordbreaks'.
52209         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52210         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52211
52212         Tests for module 'uniwbrk/u16-wordbreaks'.
52213         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52214         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52215
52216         Tests for module 'uniwbrk/u8-wordbreaks'.
52217         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52218         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52219
52220 2009-02-10  Bruno Haible  <bruno@clisp.org>
52221
52222         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52223         property.
52224         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52225         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52226         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52227
52228 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52229
52230         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52231         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52232
52233 2009-02-10  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52236         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52237         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52238         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52239         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52240         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52241
52242 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52243
52244         * lib/sockets.h (gl_fd_to_handle): New function.
52245
52246         * tests/test-sockets.c: Call gl_fd_to_handle.
52247
52248 2009-02-09  Bruno Haible  <bruno@clisp.org>
52249
52250         * doc/havelib.texi: Document the conventions on bi-arch systems.
52251
52252 2009-02-08  Bruno Haible  <bruno@clisp.org>
52253
52254         Document the AC_LIB_LINKFLAGS macro.
52255         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52256         * doc/gnulib.texi: Include it.
52257
52258 2009-02-08  Bruno Haible  <bruno@clisp.org>
52259
52260         Fix wrong order of sections, compared to TOC.
52261         * doc/gnulib.texi: Include relocatable-maint.texi after the
52262         "Regular expressions" node, not before.
52263
52264 2009-02-08  Bruno Haible  <bruno@clisp.org>
52265
52266         Tests for module 'unicase/totitle'.
52267         * modules/unicase/totitle-tests: New file.
52268
52269         Tests for module 'unicase/tolower'.
52270         * modules/unicase/tolower-tests: New file.
52271
52272         Tests for module 'unicase/toupper'.
52273         * modules/unicase/toupper-tests: New file.
52274         * tests/unicase/test-mapping-part1.h: New file.
52275         * tests/unicase/test-mapping-part2.h: New file.
52276
52277         New module 'unicase/totitle'.
52278         * modules/unicase/totitle: New file.
52279         * lib/unicase/totitle.c: New file.
52280
52281         New module 'unicase/tolower'.
52282         * modules/unicase/tolower: New file.
52283         * lib/unicase/tolower.c: New file.
52284
52285         New module 'unicase/toupper'.
52286         * modules/unicase/toupper: New file.
52287         * lib/unicase/toupper.c: New file.
52288         * lib/unicase/simple-mapping.h: New file.
52289
52290         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52291         (mapping_table): New structure.
52292         (output_simple_mapping): New function.
52293         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52294         * modules/gen-uni-tables (Description): Update.
52295         * lib/unicase/toupper.h: New file, automatically generated by
52296         gen-uni-tables.
52297         * lib/unicase/tolower.h: New file, automatically generated by
52298         gen-uni-tables.
52299         * lib/unicase/totitle.h: New file, automatically generated by
52300         gen-uni-tables.
52301         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52302         gen-uni-tables.
52303         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52304         gen-uni-tables.
52305         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52306         gen-uni-tables.
52307
52308         New module 'unicase/base'.
52309         * modules/unicase/base: New file.
52310         * lib/unicase.h: New file.
52311
52312 2009-02-08  Bruno Haible  <bruno@clisp.org>
52313
52314         New module 'uniwbrk/ulc-wordbreaks'.
52315         * modules/uniwbrk/ulc-wordbreaks: New file.
52316         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52317
52318         New module 'uniwbrk/u32-wordbreaks'.
52319         * modules/uniwbrk/u32-wordbreaks: New file.
52320         * lib/uniwbrk/u32-wordbreaks.c: New file.
52321
52322         New module 'uniwbrk/u16-wordbreaks'.
52323         * modules/uniwbrk/u16-wordbreaks: New file.
52324         * lib/uniwbrk/u16-wordbreaks.c: New file.
52325
52326         New module 'uniwbrk/u8-wordbreaks'.
52327         * modules/uniwbrk/u8-wordbreaks: New file.
52328         * lib/uniwbrk/u8-wordbreaks.c: New file.
52329         * lib/uniwbrk/u-wordbreaks.h: New file.
52330
52331         New module 'uniwbrk/table'.
52332         * modules/uniwbrk/table: New file.
52333         * lib/uniwbrk/wbrktable.h: New file.
52334         * lib/uniwbrk/wbrktable.c: New file.
52335
52336         New module 'uniwbrk/wordbreak-property'.
52337         * modules/uniwbrk/wordbreak-property: New file.
52338         * lib/uniwbrk/wordbreak-property.c: New file.
52339
52340         * lib/gen-uni-tables.c (WBP_*): New enum items.
52341         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52342         (unicode_org_wbp): New variable.
52343         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52344         New functions.
52345         (wbp_table): New structure.
52346         (output_wbp, output_wbrk_tables): New functions.
52347         (main): Accept additional argument. Invoke fill_org_wbp,
52348         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52349         output_wbrk_tables.
52350         * modules/gen-uni-tables (Description): Update.
52351         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52352         gen-uni-tables.
52353
52354         New module 'uniwbrk/base'.
52355         * modules/uniwbrk/base: New file.
52356         * lib/uniwbrk.h: New file.
52357
52358 2009-02-08  Bruno Haible  <bruno@clisp.org>
52359
52360         Update to Unicode 5.1.0.
52361         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52362         U+2185..U+2188.
52363         (is_property_default_ignorable_code_point): Don't include characters
52364         of category Cc or Cs and not-a-characters.
52365         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52366         U+0D79, U+109E, U+109F, U+A60C.
52367         * lib/unictype/bidi_of.h: Regenerated.
52368         * lib/unictype/blocks.h: Regenerated.
52369         * lib/unictype/categ_C.h: Regenerated.
52370         * lib/unictype/categ_Cf.h: Regenerated.
52371         * lib/unictype/categ_Cn.h: Regenerated.
52372         * lib/unictype/categ_L.h: Regenerated.
52373         * lib/unictype/categ_Ll.h: Regenerated.
52374         * lib/unictype/categ_Lm.h: Regenerated.
52375         * lib/unictype/categ_Lo.h: Regenerated.
52376         * lib/unictype/categ_Lu.h: Regenerated.
52377         * lib/unictype/categ_M.h: Regenerated.
52378         * lib/unictype/categ_Mc.h: Regenerated.
52379         * lib/unictype/categ_Me.h: Regenerated.
52380         * lib/unictype/categ_Mn.h: Regenerated.
52381         * lib/unictype/categ_N.h: Regenerated.
52382         * lib/unictype/categ_Nd.h: Regenerated.
52383         * lib/unictype/categ_Nl.h: Regenerated.
52384         * lib/unictype/categ_No.h: Regenerated.
52385         * lib/unictype/categ_P.h: Regenerated.
52386         * lib/unictype/categ_Pd.h: Regenerated.
52387         * lib/unictype/categ_Pe.h: Regenerated.
52388         * lib/unictype/categ_Pf.h: Regenerated.
52389         * lib/unictype/categ_Pi.h: Regenerated.
52390         * lib/unictype/categ_Po.h: Regenerated.
52391         * lib/unictype/categ_Ps.h: Regenerated.
52392         * lib/unictype/categ_S.h: Regenerated.
52393         * lib/unictype/categ_Sk.h: Regenerated.
52394         * lib/unictype/categ_Sm.h: Regenerated.
52395         * lib/unictype/categ_So.h: Regenerated.
52396         * lib/unictype/categ_of.h: Regenerated.
52397         * lib/unictype/combining.h: Regenerated.
52398         * lib/unictype/ctype_alnum.h: Regenerated.
52399         * lib/unictype/ctype_alpha.h: Regenerated.
52400         * lib/unictype/ctype_graph.h: Regenerated.
52401         * lib/unictype/ctype_lower.h: Regenerated.
52402         * lib/unictype/ctype_print.h: Regenerated.
52403         * lib/unictype/ctype_punct.h: Regenerated.
52404         * lib/unictype/ctype_upper.h: Regenerated.
52405         * lib/unictype/decdigit.h: Regenerated.
52406         * lib/unictype/digit.h: Regenerated.
52407         * lib/unictype/mirror.h: Regenerated.
52408         * lib/unictype/numeric.h: Regenerated.
52409         * lib/unictype/pr_alphabetic.h: Regenerated.
52410         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52411         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52412         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52413         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52414         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52415         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52416         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52417         * lib/unictype/pr_combining.h: Regenerated.
52418         * lib/unictype/pr_dash.h: Regenerated.
52419         * lib/unictype/pr_decimal_digit.h: Regenerated.
52420         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52421         * lib/unictype/pr_deprecated.h: Regenerated.
52422         * lib/unictype/pr_diacritic.h: Regenerated.
52423         * lib/unictype/pr_extender.h: Regenerated.
52424         * lib/unictype/pr_format_control.h: Regenerated.
52425         * lib/unictype/pr_grapheme_base.h: Regenerated.
52426         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52427         * lib/unictype/pr_grapheme_link.h: Regenerated.
52428         * lib/unictype/pr_id_continue.h: Regenerated.
52429         * lib/unictype/pr_id_start.h: Regenerated.
52430         * lib/unictype/pr_ideographic.h: Regenerated.
52431         * lib/unictype/pr_ignorable_control.h: Regenerated.
52432         * lib/unictype/pr_lowercase.h: Regenerated.
52433         * lib/unictype/pr_math.h: Regenerated.
52434         * lib/unictype/pr_numeric.h: Regenerated.
52435         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52436         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52437         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52438         * lib/unictype/pr_other_id_continue.h: Regenerated.
52439         * lib/unictype/pr_other_lowercase.h: Regenerated.
52440         * lib/unictype/pr_other_math.h: Regenerated.
52441         * lib/unictype/pr_punctuation.h: Regenerated.
52442         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52443         * lib/unictype/pr_soft_dotted.h: Regenerated.
52444         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52445         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52446         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52447         * lib/unictype/pr_uppercase.h: Regenerated.
52448         * lib/unictype/pr_xid_continue.h: Regenerated.
52449         * lib/unictype/pr_xid_start.h: Regenerated.
52450         * lib/unictype/pr_zero_width.h: Regenerated.
52451         * lib/unictype/scripts.h: Regenerated.
52452         * lib/unictype/scripts_byname.gperf: Regenerated.
52453         * lib/unictype/sy_java_ident.h: Regenerated.
52454         * lib/unilbrk/lbrkprop1.h: Regenerated.
52455         * lib/unilbrk/lbrkprop2.h: Regenerated.
52456         * tests/unictype/test-categ_C.c: Regenerated.
52457         * tests/unictype/test-categ_Cf.c: Regenerated.
52458         * tests/unictype/test-categ_Cn.c: Regenerated.
52459         * tests/unictype/test-categ_L.c: Regenerated.
52460         * tests/unictype/test-categ_Ll.c: Regenerated.
52461         * tests/unictype/test-categ_Lm.c: Regenerated.
52462         * tests/unictype/test-categ_Lo.c: Regenerated.
52463         * tests/unictype/test-categ_Lu.c: Regenerated.
52464         * tests/unictype/test-categ_M.c: Regenerated.
52465         * tests/unictype/test-categ_Mc.c: Regenerated.
52466         * tests/unictype/test-categ_Me.c: Regenerated.
52467         * tests/unictype/test-categ_Mn.c: Regenerated.
52468         * tests/unictype/test-categ_N.c: Regenerated.
52469         * tests/unictype/test-categ_Nd.c: Regenerated.
52470         * tests/unictype/test-categ_Nl.c: Regenerated.
52471         * tests/unictype/test-categ_No.c: Regenerated.
52472         * tests/unictype/test-categ_P.c: Regenerated.
52473         * tests/unictype/test-categ_Pd.c: Regenerated.
52474         * tests/unictype/test-categ_Pe.c: Regenerated.
52475         * tests/unictype/test-categ_Pf.c: Regenerated.
52476         * tests/unictype/test-categ_Pi.c: Regenerated.
52477         * tests/unictype/test-categ_Po.c: Regenerated.
52478         * tests/unictype/test-categ_Ps.c: Regenerated.
52479         * tests/unictype/test-categ_S.c: Regenerated.
52480         * tests/unictype/test-categ_Sk.c: Regenerated.
52481         * tests/unictype/test-categ_Sm.c: Regenerated.
52482         * tests/unictype/test-categ_So.c: Regenerated.
52483         * tests/unictype/test-ctype_alnum.c: Regenerated.
52484         * tests/unictype/test-ctype_alpha.c: Regenerated.
52485         * tests/unictype/test-ctype_graph.c: Regenerated.
52486         * tests/unictype/test-ctype_lower.c: Regenerated.
52487         * tests/unictype/test-ctype_print.c: Regenerated.
52488         * tests/unictype/test-ctype_punct.c: Regenerated.
52489         * tests/unictype/test-ctype_upper.c: Regenerated.
52490         * tests/unictype/test-decdigit.h: Regenerated.
52491         * tests/unictype/test-digit.h: Regenerated.
52492         * tests/unictype/test-numeric.h: Regenerated.
52493         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52494         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52495         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52496         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52497         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52498         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52499         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52500         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52501         * tests/unictype/test-pr_combining.c: Regenerated.
52502         * tests/unictype/test-pr_dash.c: Regenerated.
52503         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52504         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52505         * tests/unictype/test-pr_deprecated.c: Regenerated.
52506         * tests/unictype/test-pr_diacritic.c: Regenerated.
52507         * tests/unictype/test-pr_extender.c: Regenerated.
52508         * tests/unictype/test-pr_format_control.c: Regenerated.
52509         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52510         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52511         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52512         * tests/unictype/test-pr_id_continue.c: Regenerated.
52513         * tests/unictype/test-pr_id_start.c: Regenerated.
52514         * tests/unictype/test-pr_ideographic.c: Regenerated.
52515         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52516         * tests/unictype/test-pr_lowercase.c: Regenerated.
52517         * tests/unictype/test-pr_math.c: Regenerated.
52518         * tests/unictype/test-pr_numeric.c: Regenerated.
52519         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52520         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52521         Regenerated.
52522         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52523         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52524         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52525         * tests/unictype/test-pr_other_math.c: Regenerated.
52526         * tests/unictype/test-pr_punctuation.c: Regenerated.
52527         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52528         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52529         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52530         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52531         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52532         * tests/unictype/test-pr_uppercase.c: Regenerated.
52533         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52534         * tests/unictype/test-pr_xid_start.c: Regenerated.
52535         * tests/unictype/test-pr_zero_width.c: Regenerated.
52536
52537         Update to Unicode 5.1.0.
52538         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52539         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52540         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52541         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52542         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52543         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52544         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52545         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52546         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52547         (nonspacing_table_ind): Update.
52548         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52549
52550         Update to Unicode 5.1.0.
52551         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52552         code transform.
52553         * lib/uniname/uniname.c (unicode_character_name,
52554         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52555         * lib/uniname/uninames.h: Regenerated.
52556         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52557
52558 2009-02-07  Bruno Haible  <bruno@clisp.org>
52559
52560         Merge gen-ctype and gen-lbrk into a single program.
52561         * lib/gen-uni-tables.c: New file, incorporating
52562         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52563         Add directory prefixes to the names of the generated files.
52564         * lib/unictype/gen-ctype.c: Remove file.
52565         * lib/unilbrk/gen-lbrk.c: Remove file.
52566         * modules/gen-uni-tables: New file.
52567         * modules/unictype/gen-ctype: Remove file.
52568         * modules/unilbrk/gen-lbrk: Remove file.
52569
52570 2009-02-07  Bruno Haible  <bruno@clisp.org>
52571
52572         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52573
52574         New module 'unistr/u32-strcoll'.
52575         * modules/unistr/u32-strcoll: New file.
52576         * lib/unistr/u32-strcoll.c: New file.
52577
52578         New module 'unistr/u16-strcoll'.
52579         * modules/unistr/u16-strcoll: New file.
52580         * lib/unistr/u16-strcoll.c: New file.
52581
52582         New module 'unistr/u8-strcoll'.
52583         * modules/unistr/u8-strcoll: New file.
52584         * lib/unistr/u8-strcoll.c: New file.
52585         * lib/unistr/u-strcoll.h: New file.
52586
52587 2009-02-07  Bruno Haible  <bruno@clisp.org>
52588
52589         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52590         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52591         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52592         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52593         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52594         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52595
52596 2009-02-07  Bruno Haible  <bruno@clisp.org>
52597
52598         Make 64-bit clean.
52599         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52600         output_combclass, output_bidi_category, output_decimal_digit,
52601         output_digit, output_numeric, output_mirror, output_scripts,
52602         output_ident_category): Use proper width specifier in format strings.
52603
52604 2009-02-07  Bruno Haible  <bruno@clisp.org>
52605
52606         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52607         failure behaviour.
52608
52609 2009-02-07  Jim Meyering  <meyering@redhat.com>
52610
52611         regex: avoid compilation failure with upcoming gcc-4.4
52612         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52613         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52614         "... error: integer overflow in preprocessor expression".
52615
52616 2009-02-05  Ben Pfaff  <blp@gnu.org>
52617
52618         Fix link errors on Windows when close module is used.
52619         * modules/close: Add $(LIB_CLOSE) to Link section.
52620         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52621         $(LIB_CLOSE) on Windows.
52622
52623 2009-02-05  Jim Meyering  <meyering@redhat.com>
52624
52625         still avoid unused-parameter warnings, but do it cleanly
52626         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52627         (get_fs_usage): Cast to void instead.
52628         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52629         (dev_from_mount_options, read_file_system_list): Cast to void.
52630         Prompted by Bruno Haible.
52631
52632 2009-02-04  Jim Meyering  <meyering@redhat.com>
52633
52634         fsusage.c: correct copyright year
52635         * lib/fsusage.c: Reflect year in which the change is pushed into
52636
52637         avoid misc. warnings
52638         * lib/fsusage.c (UNUSED_PARAM): Define.
52639         (get_fs_usage): Mark parameter "disk" as unused.
52640         * lib/getugroups.c (getgrent): Use "void" in prototype.
52641         * lib/mountlist.c: Mark unused parameters.
52642         (read_file_system_list): Declare a local with "const".
52643         * lib/nanosleep.c (getnow): Declare static.
52644         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52645
52646         dirfd: set errno upon failure
52647         * lib/dirfd.c: Include <errno.h>.
52648         Set errno to ENOTSUP when returning -1.
52649         * modules/dirfd (Depends-on): Add errno.
52650         Suggested by John Kodis <kodis@comcast.net>.
52651
52652 2009-02-01  Bruno Haible  <bruno@clisp.org>
52653
52654         Don't assume sizeof (long) >= sizeof (void *).
52655         * lib/memcmp.c: Include stdint.h.
52656         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52657         srcp2 to 'const byte *'.
52658         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52659         types to uintptr_t.
52660         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52661         * modules/memcmp (Depends-on): Add stdint.
52662         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52663
52664 2009-01-30  Eric Blake  <ebb9@byu.net>
52665
52666         fix more require-before-expand issues
52667         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52668         expand, AC_PROG_AWK.
52669         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52670
52671 2009-01-28  Eric Blake  <ebb9@byu.net>
52672
52673         version-etc: use consistent URL formatting
52674         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52675         Improve formatting.  Use fputs for string without %.
52676
52677 2009-01-28  Jim Meyering  <meyering@redhat.com>
52678
52679         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52680         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52681         "underquoted definition of NAME" from autoconf-2.59.
52682
52683 2009-01-28  Bruno Haible  <bruno@clisp.org>
52684
52685         * doc/gnulib.texi: Add "Obsolete modules" to index.
52686
52687 2009-01-28  Jim Meyering  <meyering@redhat.com>
52688
52689         useless-if-before-free: recognize more variants
52690         * build-aux/useless-if-before-free: Also recognize e.g.,
52691         if (NULL != p) free (p);
52692
52693 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52694
52695         test-getaddrinfo: skip (don't fail) this test when there's no network
52696         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52697         on the presumption that it means you lack network access.
52698
52699 2009-01-26  Jim Meyering  <meyering@redhat.com>
52700
52701         fflush: avoid warnings on modern systems
52702         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52703         pos and result, into scopes where they're used.
52704
52705 2009-01-26  Eric Blake  <ebb9@byu.net>
52706
52707         Silence warning reintroduced by recent extensions patch.
52708         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52709         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52710         autoconf.
52711
52712         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52713         * m4/00gnulib.m4: New file.
52714         * gnulib-tool (func_get_filelist): Always use it.
52715         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52716         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52717
52718 2009-01-25  Bruno Haible  <bruno@clisp.org>
52719
52720         Make test-quotearg work on MacOS X and AIX.
52721         * tests/test-quotearg.sh: New file.
52722         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52723         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52724         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52725         include <libintl.h>.
52726         (fake_locale): Remove variable.
52727         (gettext, dgettext, dcgettext): Remove functions.
52728         (main): Instead of setting a fake locale, set a real locale. Call
52729         textdomain and bindtextdomain.
52730         * modules/quotearg-tests (Files): Add the new files.
52731         (Depends-on): Add gettext, setenv, unsetenv.
52732         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52733         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52734         Augment TESTS_ENVIRONMENT.
52735
52736 2009-01-25  Bruno Haible  <bruno@clisp.org>
52737
52738         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52739         fr_FR.ISO8859-1 locale on MacOS X.
52740         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52741         ja_JP.eucJP locale on MacOS X.
52742         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52743         zh_CN.GB18030 locale on MacOS X.
52744
52745 2009-01-25  Bruno Haible  <bruno@clisp.org>
52746
52747         Avoid link errors on MacOS X 10.3.
52748         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52749         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52750
52751 2009-01-25  Bruno Haible  <bruno@clisp.org>
52752
52753         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52754         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52755         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52756         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52757         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52758         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52759         posix_spawnattr_init, posix_spawnattr_setsigmask,
52760         posix_spawnattr_setflags, posix_spawnattr_destroy.
52761
52762         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52763         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52764         * modules/execute (Files): Remove m4/posix_spawn.m4.
52765         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52766         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52767         posix_spawnattr_init, posix_spawnattr_setsigmask,
52768         posix_spawnattr_setflags, posix_spawnattr_destroy.
52769
52770 2009-01-25  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/glthread/threadlib.c: Include <stdlib.h>.
52773
52774 2009-01-25  Bruno Haible  <bruno@clisp.org>
52775
52776         * lib/glthread/threadlib.c (dummy): New declaration.
52777
52778 2009-01-25  Bruno Haible  <bruno@clisp.org>
52779
52780         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52781         multibyte characters also for the GB18030 encoding. Don't crash when
52782         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52783
52784 2009-01-25  Bruno Haible  <bruno@clisp.org>
52785
52786         Avoid redefining 'struct random_data' on OSF/1 5.1.
52787         * lib/stdlib.in.h: Include <random.h> if it exists.
52788         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52789         HAVE_RANDOM_H. Include <random.h> when testing whether
52790         'struct random_data' exists.
52791         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52792
52793 2009-01-25  Bruno Haible  <bruno@clisp.org>
52794
52795         Don't install charset.alias on MacOS X >= 10.3.
52796         * lib/localcharset.c (DARWIN7): New macro.
52797         (get_charset_aliases): Hardcode the result for Darwin7.
52798         * modules/localcharset (install-exec-local): Don't install
52799         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52800
52801 2009-01-25  Bruno Haible  <bruno@clisp.org>
52802
52803         Don't install charset.alias on mingw and Cygwin.
52804         * modules/localcharset (install-exec-local): Don't install
52805         charset.alias on mingw and Cygwin, if the file does not yet exist.
52806         The result for these platforms is hardcoded in localcharset.c.
52807
52808 2009-01-25  Bruno Haible  <bruno@clisp.org>
52809
52810         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52812         before requiring AC_USE_SYSTEM_EXTENSIONS.
52813
52814 2009-01-25  Jim Meyering  <meyering@redhat.com>
52815
52816         c-strtod: avoid warnings
52817         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52818         "assignment discards qualifiers from pointer target type" warnings.
52819
52820 2009-01-24  Bruno Haible  <bruno@clisp.org>
52821
52822         Add support for non-UTF-8 locales on MacOS X.
52823         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52824         canonical encodings. For Darwin 7 and newer, don't map traditional
52825         encodings to UTF-8.
52826         Reported by Vincent Lefevre <vincent@vinc17.org>
52827         at <http://savannah.gnu.org/bugs/?25235>.
52828
52829 2009-01-24  Bruno Haible  <bruno@clisp.org>
52830
52831         * doc/gnulib.texi (Obsolete modules): New section.
52832         Reported by Mike Frysinger <vapier@gentoo.org>.
52833
52834 2009-01-24  Bruno Haible  <bruno@clisp.org>
52835
52836         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52837         (%.dvi): New rule.
52838
52839 2009-01-24  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52842         Reported by Eric Blake.
52843
52844 2009-01-24  Bruno Haible  <bruno@clisp.org>
52845
52846         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52847         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52848         Reported by Gary V. Vaughan <gary@gnu.org>.
52849
52850 2009-01-24  Bruno Haible  <bruno@clisp.org>
52851
52852         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52853
52854 2009-01-23  Bruno Haible  <bruno@clisp.org>
52855
52856         Make c-strtod, c-strtold usable in libraries.
52857         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52858         (C_STRTOD): Call strdup instead of xstrdup.
52859         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52860         * modules/c-strtold (Depends-on): Likewise.
52861         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52862         * NEWS: Mention the change.
52863         Reported by Michael Gold <mgold@ncf.ca>.
52864
52865 2009-01-23  Jim Meyering  <meyering@redhat.com>
52866
52867         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52868         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52869         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52870
52871 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52872
52873         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52874         GNU CoreUtils.
52875         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52876         * modules/version-etc (Description): Update.
52877
52878 2009-01-22  Bruno Haible  <bruno@clisp.org>
52879
52880         Cache the C locale object.
52881         * lib/c-strtod.c (c_locale_cache): New variable.
52882         (c_locale): New function.
52883         (C_STRTOD): Use it, and don't call freelocale.
52884         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52885         Suggested by Paolo Bonzini.
52886
52887 2009-01-21  Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52890         conditions other than overflow.
52891
52892 2009-01-21  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/c-strtod.c: Include errno.h.
52895         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52896         value from STRTOD_L and STRTOD.
52897
52898 2009-01-21  Bruno Haible  <bruno@clisp.org>
52899         and Jim Meyering  <meyering@redhat.com>
52900
52901         nanosleep: skip configure test (fail it) for apple universal builds
52902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52903         universal builds, assume that nanosleep does not work.
52904         * modules/nanosleep (Depends-on): Add multiarch.
52905
52906         mktime: skip configure test (fail it) for apple universal builds
52907         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52908         universal builds, assume that mktime does not work.
52909         * modules/mktime (Depends-on): Add multiarch.
52910
52911 2009-01-21  Eric Blake  <ebb9@byu.net>
52912
52913         multiarch: avoid expand-before-require warning
52914         * modules/multiarch (configure.ac): Require, rather than expand,
52915         gl_MULTIARCH.
52916         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52917         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52918         enforce that all clients require it.  Partial reversion of
52919         2008-12-29 patch.
52920
52921         error: avoid expand-before-require warning
52922         * modules/errno (configure.ac): Require, rather than expand,
52923         gl_HEADER_ERRNO_H.
52924         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52925         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52926         enforce that all clients require it.
52927
52928         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52929         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52930         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52931         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52932
52933 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52934
52935         Revert:
52936         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52937
52938         regex: do not depend on obsolete modules.
52939         * modules/regex: Remove memcmp and memmove.
52940
52941 2009-01-20  Bruno Haible  <bruno@clisp.org>
52942
52943         Make the 'link' module link on Windows NT 4.
52944         * lib/link.c (_WIN32_WINNT): Don't define.
52945         (CreateHardLinkFuncType): New type.
52946         (CreateHardLinkFunc, initialized): New variables.
52947         (initialize): New function.
52948         (link): Invoke CreateHardLink indirectly through the function pointer.
52949
52950 2009-01-20  Bruno Haible  <bruno@clisp.org>
52951
52952         Fix compilation failure on mingw.
52953         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52954
52955 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52956
52957         * doc/c-strtod.texi: Mention a couple of restrictions.
52958
52959 2009-01-20  Jim Meyering  <meyering@redhat.com>
52960
52961         gettimeofday: move more declarations out of functions
52962         * lib/gettimeofday.c: Move extern declarations of tzset and
52963         gmtime out of containing functions.  Prompted by Bruno Haible.
52964
52965 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52966
52967         regex: do not depend on obsolete modules.
52968         * modules/regex: Remove memcmp and memmove.
52969
52970 2009-01-19  Bruno Haible  <bruno@clisp.org>
52971
52972         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52973         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52974         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52975         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52976         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52977
52978 2009-01-19  Bruno Haible  <bruno@clisp.org>
52979
52980         * tests/test-link.c: Include <errno.h>.
52981         (main): Exit with code 77 when a hard link cannot be created due to
52982         the file system.
52983         * tests/test-link.sh: Skip test when a hard link cannot be created due
52984         to the file system.
52985         Suggested by Eric Blake.
52986
52987 2009-01-19  Martin Lambers  <marlam@marlam.de>
52988
52989         * modules/link-tests: New file.
52990         * tests/test-link.sh: New file.
52991         * tests/test-link.c: New file.
52992
52993 2009-01-19  Eric Blake  <ebb9@byu.net>
52994
52995         doc: mention another function added in cygwin 1.7.0
52996         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52997         Another new function in cygwin 1.7.
52998
52999 2009-01-19  Bruno Haible  <bruno@clisp.org>
53000
53001         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53002         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
53003         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
53004         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53005         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53006         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
53007         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53008         * m4/md4.m4 (gl_MD4): Likewise.
53009         * m4/md5.m4 (gl_MD5): Likewise.
53010         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
53011         * m4/sha1.m4 (gl_SHA1): Likewise.
53012         * m4/sha256.m4 (gl_SHA256): Likewise.
53013         * m4/sha512.m4 (gl_SHA512): Likewise.
53014
53015 2009-01-19  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/uniname/uniname-tests (Depends-on): Add progname.
53018         * tests/uniname/test-uninames.c: Include progname.h.
53019         (main): Call set_program_name.
53020
53021         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
53022         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
53023         (main): Call set_program_name.
53024
53025         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
53026         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
53027         (main): Call set_program_name.
53028
53029         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
53030         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
53031         (main): Call set_program_name.
53032
53033         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
53034         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
53035         (main): Call set_program_name.
53036
53037         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
53038         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
53039         (main): Call set_program_name.
53040
53041         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
53042         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
53043         (main): Call set_program_name.
53044
53045         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
53046         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
53047         (main): Call set_program_name.
53048
53049         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
53050         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
53051         (main): Call set_program_name.
53052
53053 2009-01-19  Eric Blake  <ebb9@byu.net>
53054
53055         test-unistd: test previous patch
53056         * tests/test-unistd.c: Test *_FILENO macros.
53057
53058         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
53059         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53060         Guarantee a definition.
53061         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
53062         * modules/unistd-safer (Depends-on): Add dependency on unistd.
53063         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
53064         * lib/dup-safer.c (STDERR_FILENO): Likewise.
53065         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53066         Likewise.
53067         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
53068         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
53069         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53070         Likewise.
53071         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
53072         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
53073         (STDERR_FILENO): Likewise.
53074         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
53075         (STDERR_FILENO): Likewise.
53076         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53077         (STDERR_FILENO): Likewise.
53078         Reported by Elbert Pol.
53079
53080 2009-01-19  Eric Blake  <ebb9@byu.net>
53081
53082         doc: mention more functions added in cygwin 1.7.0
53083         * doc/posix-functions/abort.texi (abort): Update wording related
53084         to cygwin.
53085         * doc/posix-functions/daylight.texi (daylight): Likewise.
53086         * doc/posix-functions/optarg.texi (optarg): Likewise.
53087         * doc/posix-functions/optarg.texi (opterr): Likewise.
53088         * doc/posix-functions/optarg.texi (optind): Likewise.
53089         * doc/posix-functions/optarg.texi (optopt): Likewise.
53090         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53091         worked in 1.5.x, and was withdrawn in 1.7.
53092         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53093         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53094         cygwin versions.
53095         * doc/posix-functions/perror.texi (perror): Likewise.
53096         * doc/posix-functions/printf.texi (printf): Likewise.
53097         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53098         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53099         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53100         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53101         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53102         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53103         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53104         Likewise.
53105         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53106         Likewise.
53107         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53108         this function.
53109         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53110         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53111         Likewise.
53112         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53113         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53114         * doc/posix-functions/confstr.texi (confstr): Likewise.
53115         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53116         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53117         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53118         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53119         * doc/posix-functions/fputws.texi (fputws): Likewise.
53120         * doc/posix-functions/fwide.texi (fwide): Likewise.
53121         * doc/posix-functions/getwc.texi (getwc): Likewise.
53122         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53123         * doc/posix-functions/putwc.texi (putwc): Likewise.
53124         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53125         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53126         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53127         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53128         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53129         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53130         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53131         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53132         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53133         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53134         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53135
53136 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53137
53138         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53139         * lib/ioctl.c: Include <sys/ioctl.h>.
53140
53141 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53142
53143         * modules/getdate-tests (Depends-on): Add progname.
53144         * tests/test-getdate.c: Use progname module, to avoid link errors
53145         on non-glibc systems.
53146
53147 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53148
53149         * modules/filenamecat-tests (Depends-on): Add progname.
53150         * modules/fstrcmp-tests (Depends-on): Likewise.
53151
53152         * tests/test-filenamecat.c: Use progname module, to avoid link
53153         errors on non-glibc systems.
53154         * tests/test-fstrcmp.c: Likewise.
53155
53156 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53157
53158         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53159         * lib/gettimeofday.c: Move extern declaration out of function.
53160
53161 2009-01-18  Bruno Haible  <bruno@clisp.org>
53162
53163         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53164         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53165         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53166
53167 2009-01-18  Bruno Haible  <bruno@clisp.org>
53168
53169         * lib/strftime.c (MEMPCPY): Remove unused macro.
53170         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53171
53172 2009-01-18  Martin Lambers  <marlam@marlam.de>
53173
53174         New module 'link'.
53175         * lib/unistd.in.h (link): New declaration.
53176         * lib/link.c: New file.
53177         * m4/link.m4: New file.
53178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53179         HAVE_LINK.
53180         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53181         * modules/link: New file.
53182         * doc/posix-functions/link.texi: Mention the new module.
53183
53184 2009-01-18  Bruno Haible  <bruno@clisp.org>
53185
53186         * tests/test-avltree_list.c (main): Call set_program_name.
53187         * tests/test-avltree_oset.c (main): Likewise.
53188         * tests/test-obstack-printf.c: Include progname.h.
53189         (main): Call set_program_name.
53190         * tests/test-quotearg.c: Include progname.h.
53191         (main): Call set_program_name.
53192         * tests/test-xmemdup0.c: Include progname.h.
53193         (main): Call set_program_name.
53194
53195 2009-01-18  Bruno Haible  <bruno@clisp.org>
53196
53197         New module 'alphasort'.
53198         * lib/dirent.in.h (alphasort): New declaration.
53199         * lib/alphasort.c: New file, from glibc with modifications.
53200         * m4/alphasort.m4: New file.
53201         * modules/alphasort: New file.
53202         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53203         HAVE_ALPHASORT.
53204         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53205         HAVE_ALPHASORT.
53206         * doc/posix-functions/alphasort.texi: Mention the new module and the
53207         portability problems.
53208
53209 2009-01-18  Bruno Haible  <bruno@clisp.org>
53210
53211         New module 'scandir'.
53212         * lib/dirent.in.h (scandir): New declaration.
53213         * lib/scandir.c: New file, from glibc with modifications.
53214         * m4/scandir.m4: New file.
53215         * modules/scandir: New file.
53216         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53217         HAVE_SCANDIR.
53218         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53219         HAVE_SCANDIR.
53220         * doc/posix-functions/scandir.texi: Mention the new module and the
53221         portability problems.
53222
53223 2009-01-17  Bruno Haible  <bruno@clisp.org>
53224
53225         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53226         Update documentation.
53227         (func_remove_suffix): Escape all dots in the suffix. Update
53228         documentation.
53229         (func_filter_filelist): Update documentation.
53230         Reported by Ralf Wildenhues.
53231
53232 2009-01-17  Bruno Haible  <bruno@clisp.org>
53233
53234         * modules/dprintf-posix-tests: New file.
53235         * tests/test-dprintf-posix.sh: New file.
53236         * tests/test-dprintf-posix.c: New file.
53237
53238         New modules 'dprintf', 'dprintf-posix'.
53239         * lib/stdio.in.h (dprintf): New declaration.
53240         * lib/dprintf.c: New file.
53241         * m4/dprintf.m4: New file.
53242         * m4/dprintf-posix.m4: New file.
53243         * modules/dprintf: New file.
53244         * modules/dprintf-posix: New file.
53245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53246         HAVE_DPRINTF, REPLACE_DPRINTF.
53247         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53248         HAVE_DPRINTF, REPLACE_DPRINTF.
53249         * doc/posix-functions/dprintf.texi: Mention the new modules.
53250
53251 2009-01-17  Bruno Haible  <bruno@clisp.org>
53252
53253         * modules/vdprintf-posix-tests: New file.
53254         * tests/test-vdprintf-posix.sh: New file.
53255         * tests/test-vdprintf-posix.c: New file.
53256
53257         New modules 'vdprintf', 'vdprintf-posix'.
53258         * lib/stdio.in.h (vdprintf): New declaration.
53259         * lib/vdprintf.c: New file.
53260         * m4/vdprintf.m4: New file.
53261         * m4/vdprintf-posix.m4: New file.
53262         * modules/vdprintf: New file.
53263         * modules/vdprintf-posix: New file.
53264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53265         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53266         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53267         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53268         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53269
53270 2009-01-17  Bruno Haible  <bruno@clisp.org>
53271
53272         Fix replacement of fopen on mingw.
53273         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53274         mingw.
53275
53276 2009-01-17  Bruno Haible  <bruno@clisp.org>
53277
53278         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53279         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53280
53281 2009-01-17  Bruno Haible  <bruno@clisp.org>
53282
53283         Avoid test-fflush2.sh failure on mingw.
53284         * tests/test-fflush2.c: Include binary-io.h.
53285         (main): Put standard input into binary mode.
53286         * modules/fflush-tests (Depends-on): Add binary-io.
53287
53288 2009-01-17  Bruno Haible  <bruno@clisp.org>
53289
53290         * lib/wchar.in.h: In another particular situation, include only the
53291         system's <wchar.h> file.
53292         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53293         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53294         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53295
53296 2009-01-17  Bruno Haible  <bruno@clisp.org>
53297
53298         Support for stripping executables in --enable-relocatable.
53299         * build-aux/install-reloc: Expect one more argument, or an environment
53300         variable RELOC_STRIP_PROG. If set, strip the destination program and
53301         its wrapper.
53302         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53303         RELOC_STRIP_PROG.
53304         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53305         to set RELOCATABLE_STRIP.
53306         * NEWS: Mention the new Makefile requirement.
53307
53308 2009-01-17  Bruno Haible  <bruno@clisp.org>
53309
53310         * build-aux/install-reloc: Remove debugging information left over by
53311         C compiler on MacOS X.
53312
53313 2009-01-17  Bruno Haible  <bruno@clisp.org>
53314
53315         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53316         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53317         _NSGetExecutablePath.
53318
53319 2009-01-16  Jim Meyering  <meyering@redhat.com>
53320
53321         strerror: avoid warnings about discarding "const"
53322         * lib/strerror.c (rpl_strerror): Instead of returning a const
53323         string from each and every "case", use a variable, and add a single
53324         cast after the switch.
53325
53326 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53327
53328         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53329
53330 2009-01-16  Bruno Haible  <bruno@clisp.org>
53331
53332         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53333         array initializer syntax that also works in C++ mode.
53334         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53335
53336 2009-01-16  Jim Meyering  <meyering@redhat.com>
53337
53338         poll: suppress a warning
53339         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53340         to ignore "...unsigned expression < 0 is always false" warnings.
53341
53342 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53343
53344         poll: remove declarations of unused variables
53345         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53346         sockbuf and optlen.
53347
53348 2009-01-15  Bruno Haible  <bruno@clisp.org>
53349
53350         Make fflush-after-ungetc POSIX compliant on BSD systems.
53351         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53352         (clear_ungetc_buffer): Implement also for other systems.
53353         (rpl_fflush): On glibc systems, invoke
53354         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53355         clear_ungetc_buffer after fetching the stream's position, not before.
53356
53357 2009-01-15  Bruno Haible  <bruno@clisp.org>
53358
53359         Make fflush-after-ungetc POSIX compliant on glibc systems.
53360         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53361         after ungetc.
53362         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53363         (rpl_fflush): On glibc systems, simply call the system's fflush
53364         function after clearing the ungetc buffer.
53365         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53366         Instead, lseek only to the end of file, then use the system's fseeko
53367         for the rest. On glibc systems, reset the EOF indicator bit.
53368
53369 2009-01-15  Jim Meyering  <meyering@redhat.com>
53370
53371         openmp.m4: revert quote-adding change, for portability to older autoconf
53372         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53373         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53374         Simon Josefsson noticed the problem when using autoconf-2.61.
53375
53376 2009-01-15  Bruno Haible  <bruno@clisp.org>
53377
53378         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53379         * tests/test-fflush2.c (ASSERT): Always fail.
53380         (main): Add two tests for fflush() after ungetc(), taking into account
53381         the Austin Group's clarification.
53382         Suggested by Eric Blake.
53383
53384 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53385
53386         mktime.m4: remove K&R-style function prototypes
53387         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53388         for the Sun C++ compiler.
53389
53390 2009-01-14  Bruno Haible  <bruno@clisp.org>
53391
53392         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53393         while including <wchar.h>.
53394         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53395         the system's <wchar.h> file.
53396         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53397
53398 2009-01-14  Bruno Haible  <bruno@clisp.org>
53399
53400         * m4/csharp.m4: Don't mention gettext on the serial number line.
53401         * m4/csharpexec.m4: Likewise.
53402         * m4/eaccess.m4: Likewise.
53403         * m4/javaexec.m4: Likewise.
53404         * m4/sig_atomic_t.m4: Likewise.
53405         * m4/tmpdir.m4: Likewise.
53406         * m4/intldir.m4: Bump gettext version.
53407         * m4/lib-ld.m4: Likewise.
53408
53409 2009-01-14  Bruno Haible  <bruno@clisp.org>
53410
53411         * lib/progname.c (set_program_name): Add more comments.
53412         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53413
53414 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53415
53416         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53417         were sys/stat.h does not define it.
53418
53419 2009-01-14  Jim Meyering  <meyering@redhat.com>
53420
53421         many *.m4 files: improve m4 quoting
53422         99% of this change was performed by running the following commands:
53423         git ls-files | grep '\.m4$' | xargs perl -pi \
53424           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53425           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53426           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53427           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53428         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53429         The remainder were to add Copyright dates, increment serial numbers,
53430         undo some changes in comments, exclude m4/intl.m4, and add quotes
53431         around the "1" in ",1" where the unusual spacing prohibited the
53432         above regexps from doing the job.  For more details, see
53433         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53434         * m4/acl.m4: Modified.
53435         * m4/afs.m4: Likewise.
53436         * m4/alloca.m4: Likewise.
53437         * m4/argp.m4: Likewise.
53438         * m4/argz.m4: Likewise.
53439         * m4/atexit.m4: Likewise.
53440         * m4/bison-i18n.m4: Likewise.
53441         * m4/bison.m4: Likewise.
53442         * m4/byteswap.m4: Likewise.
53443         * m4/c-stack.m4: Likewise.
53444         * m4/c-strtod.m4: Likewise.
53445         * m4/calloc.m4: Likewise.
53446         * m4/canonicalize-lgpl.m4: Likewise.
53447         * m4/chown.m4: Likewise.
53448         * m4/clock_time.m4: Likewise.
53449         * m4/codeset.m4: Likewise.
53450         * m4/copy-file.m4: Likewise.
53451         * m4/csharp.m4: Likewise.
53452         * m4/csharpcomp.m4: Likewise.
53453         * m4/csharpexec.m4: Likewise.
53454         * m4/d-ino.m4: Likewise.
53455         * m4/d-type.m4: Likewise.
53456         * m4/dirfd.m4: Likewise.
53457         * m4/double-slash-root.m4: Likewise.
53458         * m4/eaccess.m4: Likewise.
53459         * m4/eealloc.m4: Likewise.
53460         * m4/environ.m4: Likewise.
53461         * m4/errno_h.m4: Likewise.
53462         * m4/euidaccess.m4: Likewise.
53463         * m4/execute.m4: Likewise.
53464         * m4/fatal-signal.m4: Likewise.
53465         * m4/fchdir.m4: Likewise.
53466         * m4/fcntl_h.m4: Likewise.
53467         * m4/fileblocks.m4: Likewise.
53468         * m4/filenamecat.m4: Likewise.
53469         * m4/findprog.m4: Likewise.
53470         * m4/flexmember.m4: Likewise.
53471         * m4/fnmatch.m4: Likewise.
53472         * m4/fopen.m4: Likewise.
53473         * m4/fpending.m4: Likewise.
53474         * m4/fprintf-posix.m4: Likewise.
53475         * m4/free.m4: Likewise.
53476         * m4/frexp.m4: Likewise.
53477         * m4/frexpl.m4: Likewise.
53478         * m4/fsusage.m4: Likewise.
53479         * m4/ftruncate.m4: Likewise.
53480         * m4/gc-camellia.m4: Likewise.
53481         * m4/gc-random.m4: Likewise.
53482         * m4/gc.m4: Likewise.
53483         * m4/getaddrinfo.m4: Likewise.
53484         * m4/getcwd-abort-bug.m4: Likewise.
53485         * m4/getcwd-path-max.m4: Likewise.
53486         * m4/getdate.m4: Likewise.
53487         * m4/getdomainname.m4: Likewise.
53488         * m4/getgroups.m4: Likewise.
53489         * m4/gethostname.m4: Likewise.
53490         * m4/gethrxtime.m4: Likewise.
53491         * m4/getline.m4: Likewise.
53492         * m4/getloadavg.m4: Likewise.
53493         * m4/getndelim2.m4: Likewise.
53494         * m4/getpass.m4: Likewise.
53495         * m4/gettext.m4: Likewise.
53496         * m4/gettime.m4: Likewise.
53497         * m4/gettimeofday.m4: Likewise.
53498         * m4/gnulib-common.m4: Likewise.
53499         * m4/group-member.m4: Likewise.
53500         * m4/host-os.m4: Likewise.
53501         * m4/iconv.m4: Likewise.
53502         * m4/iconv_open.m4: Likewise.
53503         * m4/inet_ntop.m4: Likewise.
53504         * m4/inet_pton.m4: Likewise.
53505         * m4/inline.m4: Likewise.
53506         * m4/intldir.m4: Likewise.
53507         * m4/intlmacosx.m4: Likewise.
53508         * m4/intmax.m4: Likewise.
53509         * m4/intmax_t.m4: Likewise.
53510         * m4/inttypes.m4: Likewise.
53511         * m4/inttypes_h.m4: Likewise.
53512         * m4/inttypes-pri.m4: Likewise.
53513         * m4/isapipe.m4: Likewise.
53514         * m4/isnand.m4: Likewise.
53515         * m4/isnanf.m4: Likewise.
53516         * m4/isnanl.m4: Likewise.
53517         * m4/javacomp.m4: Likewise.
53518         * m4/javaexec.m4: Likewise.
53519         * m4/jm-winsz1.m4: Likewise.
53520         * m4/jm-winsz2.m4: Likewise.
53521         * m4/lchown.m4: Likewise.
53522         * m4/lcmessage.m4: Likewise.
53523         * m4/ldexpl.m4: Likewise.
53524         * m4/lib-ld.m4: Likewise.
53525         * m4/lib-link.m4: Likewise.
53526         * m4/libsigsegv.m4: Likewise.
53527         * m4/link-follow.m4: Likewise.
53528         * m4/localcharset.m4: Likewise.
53529         * m4/locale-fr.m4: Likewise.
53530         * m4/locale-ja.m4: Likewise.
53531         * m4/locale-tr.m4: Likewise.
53532         * m4/locale-zh.m4: Likewise.
53533         * m4/lock.m4: Likewise.
53534         * m4/longlong.m4: Likewise.
53535         * m4/ls-mntd-fs.m4: Likewise.
53536         * m4/lstat.m4: Likewise.
53537         * m4/malloc.m4: Likewise.
53538         * m4/mathl.m4: Likewise.
53539         * m4/mbrtowc.m4: Likewise.
53540         * m4/mbstate_t.m4: Likewise.
53541         * m4/mbswidth.m4: Likewise.
53542         * m4/memchr.m4: Likewise.
53543         * m4/memcmp.m4: Likewise.
53544         * m4/memcpy.m4: Likewise.
53545         * m4/memmem.m4: Likewise.
53546         * m4/memmove.m4: Likewise.
53547         * m4/mempcpy.m4: Likewise.
53548         * m4/memrchr.m4: Likewise.
53549         * m4/memset.m4: Likewise.
53550         * m4/minmax.m4: Likewise.
53551         * m4/mkdir-slash.m4: Likewise.
53552         * m4/mkdtemp.m4: Likewise.
53553         * m4/mktime.m4: Likewise.
53554         * m4/mmap-anon.m4: Likewise.
53555         * m4/mountlist.m4: Likewise.
53556         * m4/nanosleep.m4: Likewise.
53557         * m4/nls.m4: Likewise.
53558         * m4/nocrash.m4: Likewise.
53559         * m4/open.m4: Likewise.
53560         * m4/openat.m4: Likewise.
53561         * m4/openmp.m4: Likewise.
53562         * m4/pathmax.m4: Likewise.
53563         * m4/perl.m4: Likewise.
53564         * m4/physmem.m4: Likewise.
53565         * m4/pipe.m4: Likewise.
53566         * m4/po.m4: Likewise.
53567         * m4/poll.m4: Likewise.
53568         * m4/posixtm.m4: Likewise.
53569         * m4/posixver.m4: Likewise.
53570         * m4/printf-frexp.m4: Likewise.
53571         * m4/printf-frexpl.m4: Likewise.
53572         * m4/printf-posix.m4: Likewise.
53573         * m4/printf-posix-rpl.m4: Likewise.
53574         * m4/printf.m4: Likewise.
53575         * m4/progtest.m4: Likewise.
53576         * m4/putenv.m4: Likewise.
53577         * m4/readline.m4: Likewise.
53578         * m4/readlink.m4: Likewise.
53579         * m4/readutmp.m4: Likewise.
53580         * m4/realloc.m4: Likewise.
53581         * m4/regex.m4: Likewise.
53582         * m4/relocatable.m4: Likewise.
53583         * m4/relocatable-lib.m4: Likewise.
53584         * m4/rename-dest-slash.m4: Likewise.
53585         * m4/rename.m4: Likewise.
53586         * m4/rmdir-errno.m4: Likewise.
53587         * m4/rmdir.m4: Likewise.
53588         * m4/roundf.m4: Likewise.
53589         * m4/roundl.m4: Likewise.
53590         * m4/rpmatch.m4: Likewise.
53591         * m4/save-cwd.m4: Likewise.
53592         * m4/selinux-selinux-h.m4: Likewise.
53593         * m4/setenv.m4: Likewise.
53594         * m4/settime.m4: Likewise.
53595         * m4/sig2str.m4: Likewise.
53596         * m4/sig_atomic_t.m4: Likewise.
53597         * m4/signalblocking.m4: Likewise.
53598         * m4/signbit.m4: Likewise.
53599         * m4/sigpipe.m4: Likewise.
53600         * m4/sockets.m4: Likewise.
53601         * m4/sockpfaf.m4: Likewise.
53602         * m4/st_dm_mode.m4: Likewise.
53603         * m4/stat-time.m4: Likewise.
53604         * m4/stdbool.m4: Likewise.
53605         * m4/stdint.m4: Likewise.
53606         * m4/stdint_h.m4: Likewise.
53607         * m4/stpcpy.m4: Likewise.
53608         * m4/stpncpy.m4: Likewise.
53609         * m4/strcase.m4: Likewise.
53610         * m4/strchrnul.m4: Likewise.
53611         * m4/strcspn.m4: Likewise.
53612         * m4/strdup.m4: Likewise.
53613         * m4/strftime.m4: Likewise.
53614         * m4/strndup.m4: Likewise.
53615         * m4/strnlen.m4: Likewise.
53616         * m4/strpbrk.m4: Likewise.
53617         * m4/strptime.m4: Likewise.
53618         * m4/strsep.m4: Likewise.
53619         * m4/strtod.m4: Likewise.
53620         * m4/strtoimax.m4: Likewise.
53621         * m4/strtok_r.m4: Likewise.
53622         * m4/strtol.m4: Likewise.
53623         * m4/strtoll.m4: Likewise.
53624         * m4/strtoul.m4: Likewise.
53625         * m4/strtoull.m4: Likewise.
53626         * m4/strtoumax.m4: Likewise.
53627         * m4/strverscmp.m4: Likewise.
53628         * m4/threadlib.m4: Likewise.
53629         * m4/timegm.m4: Likewise.
53630         * m4/tm_gmtoff.m4: Likewise.
53631         * m4/tmpdir.m4: Likewise.
53632         * m4/tmpfile.m4: Likewise.
53633         * m4/tzset.m4: Likewise.
53634         * m4/uintmax_t.m4: Likewise.
53635         * m4/unlinkdir.m4: Likewise.
53636         * m4/unlocked-io.m4: Likewise.
53637         * m4/uptime.m4: Likewise.
53638         * m4/userspec.m4: Likewise.
53639         * m4/utimbuf.m4: Likewise.
53640         * m4/utime.m4: Likewise.
53641         * m4/utimes-null.m4: Likewise.
53642         * m4/utimes.m4: Likewise.
53643         * m4/vararrays.m4: Likewise.
53644         * m4/vasnprintf.m4: Likewise.
53645         * m4/vfprintf-posix.m4: Likewise.
53646         * m4/vprintf-posix.m4: Likewise.
53647         * m4/wait-process.m4: Likewise.
53648         * m4/wchar_t.m4: Likewise.
53649         * m4/wint_t.m4: Likewise.
53650         * m4/write-any-file.m4: Likewise.
53651         * m4/yield.m4: Likewise.
53652
53653 2009-01-13  Bruno Haible  <bruno@clisp.org>
53654
53655         Avoid test-copy-file.sh failures when ACL support insufficient.
53656         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53657         TESTS_ENVIRONMENT.
53658         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53659         Reported by Jim Meyering.
53660
53661 2009-01-13  Bruno Haible  <bruno@clisp.org>
53662
53663         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53664         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53665         * modules/unistdio/u8-printf-parse (Files): Likewise.
53666         * modules/unistdio/u32-printf-parse (Files): Likewise.
53667         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53668
53669 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53670
53671         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53672         and m4/inttypes_h.m4 too.
53673
53674 2009-01-12  Eric Blake  <ebb9@byu.net>
53675
53676         tests: IRIX 6.2 cc can't compile -0.0 into .data
53677         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53678         rather than at compile-time.
53679         * tests/test-floorl.c (minus_zero): Likewise.
53680         * tests/test-frexpl.c (minus_zero): Likewise.
53681         * tests/test-isnan.c (minus_zerol): Likewise.
53682         * tests/test-isnanl.h (minus_zero): Likewise.
53683         * tests/test-ldexpl.c (minus_zero): Likewise.
53684         * tests/test-roundl.c (minus_zero): Likewise.
53685         * tests/test-signbit.c (minus_zerol): Likewise.
53686         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53687         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53688         * tests/test-truncl.c (minus_zero): Likewise.
53689         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53690         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53691         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53692
53693 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53694
53695         regex: fix glibc bug 9697
53696         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53697         handling.
53698
53699 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53700
53701         regex: fix glibc bug 697
53702         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53703         being NULL also if there are no backreferences.
53704
53705 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53706
53707         regex: merge glibc changes
53708         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53709         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53710         re_string_skip_chars, re_string_reconstruct): Likewise.
53711         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53712
53713 2009-01-07  Jim Meyering  <meyering@redhat.com>
53714
53715         poll: filter through cppi
53716         * lib/poll.c: Indent cpp directives to reflect nesting.
53717
53718 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53719
53720         poll: don't return uninitialized
53721         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53722
53723 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53724
53725         avoid compile failure on AIX 6.1
53726         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53727         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53728
53729 2009-01-04  Jim Meyering  <meyering@redhat.com>
53730
53731         remove duplicate inclusion of <stdio.h>
53732         * tests/test-fprintf-posix.c: Likewise.
53733         * tests/test-printf-posix.c: Likewise.
53734         * tests/test-snprintf-posix.c: Likewise.
53735         * tests/test-sprintf-posix.c: Likewise.
53736         * tests/test-vasprintf-posix.c: Likewise.
53737         * tests/test-vfprintf-posix.c: Likewise.
53738         * tests/test-vprintf-posix.c: Likewise.
53739         * tests/test-vsnprintf-posix.c: Likewise.
53740         * tests/test-vsprintf-posix.c: Likewise.
53741
53742 2009-01-03  Jim Meyering  <meyering@redhat.com>
53743
53744         gnulib-tool: fix sed-based filtering
53745         * gnulib-tool (func_filter_filelist): Remove extra backslash
53746         in sed_fff_filter definition.
53747
53748 2009-01-02  Jim Meyering  <meyering@redhat.com>
53749
53750         strftime: avoid compilation failure on Solaris 2.6
53751         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53752         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53753         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53754         be available.  Reported by Tom G. Christensen.  Details in
53755         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53756
53757 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53758             Bruno Haible  <bruno@clisp.org>
53759
53760         Speed up gnulib-tool by doing more string processing through shell
53761         built-ins.
53762         * gnulib-tool (fast_func_append): New variable.
53763         (func_remove_prefix, func_remove_suffix): New functions.
53764         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53765         (func_filter_filelist): New function.
53766         (func_get_dependencies): Use func_remove_suffix instead of sed.
53767         (func_get_automake_snippet): Use func_filter_filelist instead of a
53768         subshell and sed invocation.
53769
53770 2009-01-01  Bruno Haible  <bruno@clisp.org>
53771
53772         Fix a security bug.
53773         * gnulib-tool (func_import, import, update): Don't allow the characters
53774         '"', '$', '`', '\' in macro arguments that become part of commands that
53775         are evaluated.
53776
53777 2009-01-01  Bruno Haible  <bruno@clisp.org>
53778
53779         * gnulib-tool (func_reset_sigpipe): Add more comments.
53780
53781 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53782
53783         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53784         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53785         already know the answer.
53786
53787 2009-01-01  Jim Meyering  <meyering@redhat.com>
53788
53789         * lib/version-etc.c (version_etc_va): Update copyright year.
53790
53791 2008-12-30  Bruno Haible  <bruno@clisp.org>
53792
53793         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53794         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53795         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53796
53797 2008-12-29  Eric Blake  <ebb9@byu.net>
53798
53799         multiarch: avoid autoconf AC_REQUIRE bug
53800         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53801         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53802         2.63 and older.
53803         Reported by Bruno Haible, and analyzed in
53804         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53805
53806 2008-12-29  Bruno Haible  <bruno@clisp.org>
53807
53808         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53809         files in subdirectories correctly.
53810         Reported by Ralf Wildenhues.
53811
53812 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53813
53814         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53815         rather than 'join FILE -', for Solaris join.
53816
53817 2008-12-29  Bruno Haible  <bruno@clisp.org>
53818
53819         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53820         quoting.
53821         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53822         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53823         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53824         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53825         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53826         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53827         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53828         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53829         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53830         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53831         * m4/nls.m4 (AM_NLS): Likewise.
53832         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53833         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53834         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53835         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53836         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53837         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53838         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53839         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53840         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53841         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53842         * m4/xsize.m4 (gl_XSIZE): Likewise.
53843         Suggested by Jim Meyering.
53844
53845 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53846
53847         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53848         * lib/parse-duration.c: use a switch instead of cascading if's.
53849
53850 2008-12-29  Eric Blake  <ebb9@byu.net>
53851
53852         wchar.h: supply WEOF on Irix 5.3
53853         * lib/wchar.in.h (wint_t): Also supply WEOF.
53854         * lib/wctype.in.h (wint_t): Likewise.
53855         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53856         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53857         Reported by Tom G. Christensen.
53858
53859 2008-12-26  Bruno Haible  <bruno@clisp.org>
53860
53861         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53862         i486, i586, i686.
53863
53864 2008-12-26  Bruno Haible  <bruno@clisp.org>
53865
53866         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53867
53868 2008-12-26  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53871         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53872         not __STDC_CONSTANT_MACROS.
53873         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53874
53875 2008-12-25  Bruno Haible  <bruno@clisp.org>
53876
53877         Add support for universal builds to vasnprintf.
53878         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53879         universal builds, guess no.
53880         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53881         * modules/vasprintf-posix (Depends-on): Likewise.
53882         * modules/fprintf-posix (Depends-on): Likewise.
53883         * modules/vfprintf-posix (Depends-on): Likewise.
53884         * modules/snprintf-posix (Depends-on): Likewise.
53885         * modules/vsnprintf-posix (Depends-on): Likewise.
53886         * modules/sprintf-posix (Depends-on): Likewise.
53887         * modules/vsprintf-posix (Depends-on): Likewise.
53888         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53889         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53890         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53891         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53892         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53893         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53894         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53895
53896         Add support for universal builds to <inttypes.h>.
53897         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53898         _SCNu64_PREFIX): In Apple
53899         universal builds, define directly, using _LP64.
53900         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53901         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53902         * modules/inttypes (Depends-on): Add multiarch.
53903         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53904
53905         Add support for universal builds to <stdint.h>.
53906         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53907         universal builds, define directly, using _LP64.
53908         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53909         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53910         and size_t.
53911         * modules/stdint (Depends-on): Add multiarch.
53912         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53913
53914         New module 'multiarch'.
53915         * modules/multiarch: New file.
53916         * m4/multiarch.m4: New file.
53917
53918 2008-12-25  Bruno Haible  <bruno@clisp.org>
53919
53920         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53921
53922 2008-12-25  Bruno Haible  <bruno@clisp.org>
53923
53924         * modules/btowc (License): Relicense under LGPLv2+.
53925         * modules/mbsinit (License): Likewise.
53926         * modules/mbrtowc (License): Likewise.
53927         * modules/wcrtomb (License): Likewise.
53928         * modules/streq (License): Likewise.
53929         Reported by David Lutterkort <lutter@redhat.com>.
53930
53931 2008-12-23  Bruno Haible  <bruno@clisp.org>
53932
53933         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53934
53935 2008-12-23  Bruno Haible  <bruno@clisp.org>
53936
53937         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53938         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53939         GETADDRINFO_LIB, not in LIBS.
53940         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53941         * modules/canon-host (Link): Likewise.
53942         * NEWS: Mention the change.
53943         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53944         GETADDRINFO_LIB.
53945
53946 2008-12-22  Bruno Haible  <bruno@clisp.org>
53947
53948         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53949         * doc/posix-functions/iswalpha_l.texi: Likewise.
53950         * doc/posix-functions/iswblank_l.texi: Likewise.
53951         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53952         * doc/posix-functions/iswctype_l.texi: Likewise.
53953         * doc/posix-functions/iswdigit_l.texi: Likewise.
53954         * doc/posix-functions/iswgraph_l.texi: Likewise.
53955         * doc/posix-functions/iswlower_l.texi: Likewise.
53956         * doc/posix-functions/iswprint_l.texi: Likewise.
53957         * doc/posix-functions/iswpunct_l.texi: Likewise.
53958         * doc/posix-functions/iswspace_l.texi: Likewise.
53959         * doc/posix-functions/iswupper_l.texi: Likewise.
53960         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53961         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53962         * doc/posix-functions/open_wmemstream.texi: Likewise.
53963         * doc/posix-functions/swscanf.texi: Likewise.
53964         * doc/posix-functions/towctrans_l.texi: Likewise.
53965         * doc/posix-functions/towlower.texi: Likewise.
53966         * doc/posix-functions/towlower_l.texi: Likewise.
53967         * doc/posix-functions/towupper.texi: Likewise.
53968         * doc/posix-functions/towupper_l.texi: Likewise.
53969         * doc/posix-functions/vfwprintf.texi: Likewise.
53970         * doc/posix-functions/vfwscanf.texi: Likewise.
53971         * doc/posix-functions/vswscanf.texi: Likewise.
53972         * doc/posix-functions/vwprintf.texi: Likewise.
53973         * doc/posix-functions/vwscanf.texi: Likewise.
53974         * doc/posix-functions/wcpcpy.texi: Likewise.
53975         * doc/posix-functions/wcpncpy.texi: Likewise.
53976         * doc/posix-functions/wcscasecmp.texi: Likewise.
53977         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53978         * doc/posix-functions/wcscoll_l.texi: Likewise.
53979         * doc/posix-functions/wcsdup.texi: Likewise.
53980         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53981         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53982         * doc/posix-functions/wcsnlen.texi: Likewise.
53983         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53984         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53985         * doc/posix-functions/wctrans_l.texi: Likewise.
53986         * doc/posix-functions/wctype_l.texi: Likewise.
53987         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53988         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53989         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53990         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53991         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53992         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53993         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53994         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53995         * doc/glibc-functions/wcschrnul.texi: Likewise.
53996         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53997         * doc/glibc-functions/wcstod_l.texi: Likewise.
53998         * doc/glibc-functions/wcstof_l.texi: Likewise.
53999         * doc/glibc-functions/wcstol_l.texi: Likewise.
54000         * doc/glibc-functions/wcstold_l.texi: Likewise.
54001         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54002         * doc/glibc-functions/wcstoq.texi: Likewise.
54003         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54004         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54005         * doc/glibc-functions/wcstouq.texi: Likewise.
54006         * doc/glibc-functions/wmempcpy.texi: Likewise.
54007
54008 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
54009             Eric Blake  <ebb9@byu.net>
54010             Paolo Bonzini  <bonzini@gnu.org>
54011             Bruno Haible  <bruno@clisp.org>
54012
54013         Make c-stack work on Haiku.
54014         * lib/c-stack.c (SA_ONSTACK): Define fallback.
54015         (c_stack_action): Use SA_ONSTACK flag.
54016
54017 2008-12-22  Bruno Haible  <bruno@clisp.org>
54018
54019         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
54020
54021 2008-12-22  Bruno Haible  <bruno@clisp.org>
54022
54023         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
54024         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
54025         being overridden.
54026         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
54027         New macros.
54028         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
54029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
54030         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
54031         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
54032
54033 2008-12-22  Bruno Haible  <bruno@clisp.org>
54034
54035         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
54036         from test code.
54037
54038 2008-12-22  Eric Blake  <ebb9@byu.net>
54039
54040         Avoid gcc warnings on cygwin.
54041         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
54042         Avoid unused variable.
54043         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
54044         Likewise.
54045
54046 2008-12-22  Bruno Haible  <bruno@clisp.org>
54047
54048         Remove HAVE_MBRTOWC conditionals.
54049         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
54050         (mbscasecmp): Assume mbrtowc function.
54051         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
54052         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
54053         * lib/mbschr.c: Include mbuiter.h unconditionally.
54054         (mbschr): Assume mbrtowc function.
54055         * lib/mbscspn.c: Include mbuiter.h unconditionally.
54056         (mbscspn): Assume mbrtowc function.
54057         * lib/mbslen.c: Include mbuiter.h unconditionally.
54058         (mbslen): Assume mbrtowc function.
54059         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
54060         (mbsncasecmp): Assume mbrtowc function.
54061         * lib/mbsnlen.c: Include mbiter.h unconditionally.
54062         (mbsnlen): Assume mbrtowc function.
54063         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
54064         (mbspbrk): Assume mbrtowc function.
54065         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
54066         (mbspcasecmp): Assume mbrtowc function.
54067         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
54068         (mbsrchr): Assume mbrtowc function.
54069         * lib/mbssep.c: Include mbuiter.h unconditionally.
54070         (mbssep): Assume mbrtowc function.
54071         * lib/mbsspn.c: Include mbuiter.h unconditionally.
54072         (mbsspn): Assume mbrtowc function.
54073         * lib/mbsstr.c: Include mbuiter.h unconditionally.
54074         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
54075         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54076         (mbstok_r): Assume mbrtowc function.
54077         * lib/propername.c: Include mbuiter.h unconditionally.
54078         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54079         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54080         (trim2): Assume mbrtowc function.
54081         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54082         (mbsnwidth): Assume mbrtowc function.
54083         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54084         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54085         fallback definitions.
54086         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54087
54088 2008-12-22  Bruno Haible  <bruno@clisp.org>
54089
54090         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54091
54092 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54093
54094         * modules/regex: Request emulations for the mb*/wc* functions we need.
54095         * m4/regex.m4: Don't look for those functions here.
54096         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54097
54098 2008-12-22  Bruno Haible  <bruno@clisp.org>
54099
54100         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54101
54102 2008-12-21  Bruno Haible  <bruno@clisp.org>
54103
54104         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54105         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54106         (Include): Remove conditionalization.
54107         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54108         (Include): Remove conditionalization.
54109         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54110         (Include): Remove conditionalization.
54111         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54112         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54113         * NEWS: Mention the change.
54114         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54115         via Sergey Poznyakoff <gray@gnu.org.ua>.
54116
54117 2008-12-21  Bruno Haible  <bruno@clisp.org>
54118
54119         * MODULES.html.sh (Extended multibyte and wide character utilities
54120         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54121         wcrtomb, wcsrtombs.
54122         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54123         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54124         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54125         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54126
54127 2008-12-21  Bruno Haible  <bruno@clisp.org>
54128
54129         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54130
54131 2008-12-21  Bruno Haible  <bruno@clisp.org>
54132
54133         * modules/wcsnrtombs-tests: New file.
54134         * tests/test-wcsnrtombs1.sh: New file.
54135         * tests/test-wcsnrtombs2.sh: New file.
54136         * tests/test-wcsnrtombs3.sh: New file.
54137         * tests/test-wcsnrtombs4.sh: New file.
54138         * tests/test-wcsnrtombs.c: New file.
54139
54140         New module 'wcsnrtombs'.
54141         * lib/wchar.in.h (wcsnrtombs): New declaration.
54142         * lib/wcsnrtombs.c: New file.
54143         * lib/wcsrtombs-state.c: New file.
54144         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54145         (internal_state): Remove variable.
54146         * m4/wcsnrtombs.m4: New file.
54147         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54148         compilation units.
54149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54150         HAVE_WCSNRTOMBS.
54151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54152         HAVE_WCSNRTOMBS.
54153         * modules/wcsnrtombs: New file.
54154         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54155         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54156
54157 2008-12-21  Bruno Haible  <bruno@clisp.org>
54158
54159         * modules/wcsrtombs-tests: New file.
54160         * tests/test-wcsrtombs1.sh: New file.
54161         * tests/test-wcsrtombs2.sh: New file.
54162         * tests/test-wcsrtombs3.sh: New file.
54163         * tests/test-wcsrtombs4.sh: New file.
54164         * tests/test-wcsrtombs.c: New file.
54165
54166         New module 'wcsrtombs'.
54167         * lib/wchar.in.h (wcsrtombs): New declaration.
54168         * lib/wcsrtombs.c: New file.
54169         * m4/wcsrtombs.m4: New file.
54170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54171         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54173         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54174         * modules/wcsrtombs: New file.
54175         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54176         bugs.
54177
54178 2008-12-21  Bruno Haible  <bruno@clisp.org>
54179
54180         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54181         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54182         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54183         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54184         if not correct.
54185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54186         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54187         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54188         m4/locale-zh.m4, m4/codeset.m4.
54189         * doc/posix-functions/wcrtomb.texi: Document the bug.
54190
54191 2008-12-21  Bruno Haible  <bruno@clisp.org>
54192
54193         Work around a btowc() bug on IRIX 6.5.
54194         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54195         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54196         REPLACE_WTOBC if not.
54197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54198         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54199         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54200
54201 2008-12-21  Bruno Haible  <bruno@clisp.org>
54202
54203         * modules/wcrtomb-tests: New file.
54204         * tests/test-wcrtomb.sh: New file.
54205         * tests/test-wcrtomb.c: New file.
54206
54207         New module 'wcrtomb'.
54208         * lib/wchar.in.h (wcrtomb): New declaration.
54209         * lib/wcrtomb.c: New file.
54210         * m4/wcrtomb.m4: New file.
54211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54212         HAVE_WCRTOMB.
54213         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54214         HAVE_WCRTOMB.
54215         * modules/wcrtomb: New file.
54216         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54217
54218 2008-12-21  Bruno Haible  <bruno@clisp.org>
54219
54220         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54221         * modules/mbsrtowcs (Files): Likewise.
54222         * modules/wctob (Files): Likewise.
54223         * modules/c-strcase-tests (Files): Likewise.
54224         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54225         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54226         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54227         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54228         * modules/vasnprintf-posix-tests (Files): Likewise.
54229
54230 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54231
54232         gitlog-to-changelog: pass all command-line arguments to git-log
54233         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54234         it is sometimes convenient to filter the commits in various ways.
54235         gitlog-to-changelog only allows --since to specify a start date,
54236         but git-log itself supports many other filtering mechanisms.
54237         At the moment, I want to filter by branch name.  Rather than
54238         adding a --branch option to gitlog-to-changelog, it seems more
54239         flexible to simply pass all options directly to git-log and let
54240         git do the work.  Notice that this effectively makes --since a
54241         redundant option for gitlog-to-changelog, but removing it would
54242         require current usage to change since calls would then require
54243         an additional '--'.
54244
54245 2008-12-21  Bruno Haible  <bruno@clisp.org>
54246
54247         * modules/mbsnrtowcs-tests: New file.
54248         * tests/test-mbsnrtowcs1.sh: New file.
54249         * tests/test-mbsnrtowcs2.sh: New file.
54250         * tests/test-mbsnrtowcs3.sh: New file.
54251         * tests/test-mbsnrtowcs4.sh: New file.
54252         * tests/test-mbsnrtowcs.c: New file.
54253
54254         New module 'mbsnrtowcs'.
54255         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54256         * lib/mbsnrtowcs.c: New file.
54257         * lib/mbsrtowcs-state.c: New file.
54258         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54259         (internal_state): Remove variable.
54260         * m4/mbsnrtowcs.m4: New file.
54261         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54262         compilation units.
54263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54264         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54265         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54266         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54267         * modules/mbsnrtowcs: New file.
54268         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54269         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54270         portability problem.
54271
54272 2008-12-21  Bruno Haible  <bruno@clisp.org>
54273
54274         Work around mbsrtowcs bug.
54275         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54276         (gl_FUNC_MBSRTOWCS): Invoke it.
54277         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54278         m4/locale-zh.m4.
54279         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54280
54281 2008-12-21  Bruno Haible  <bruno@clisp.org>
54282
54283         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54284
54285 2008-12-21  Bruno Haible  <bruno@clisp.org>
54286
54287         Update doc for AIX.
54288         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54289         16-bit wchar_t type.
54290         * doc/posix-functions/btowc.texi: Likewise.
54291         * doc/posix-functions/fgetwc.texi: Likewise.
54292         * doc/posix-functions/fgetws.texi: Likewise.
54293         * doc/posix-functions/fputwc.texi: Likewise.
54294         * doc/posix-functions/fputws.texi: Likewise.
54295         * doc/posix-functions/fwide.texi: Likewise.
54296         * doc/posix-functions/fwprintf.texi: Likewise.
54297         * doc/posix-functions/fwscanf.texi: Likewise.
54298         * doc/posix-functions/getwchar.texi: Likewise.
54299         * doc/posix-functions/getwc.texi: Likewise.
54300         * doc/posix-functions/iswalnum.texi: Likewise.
54301         * doc/posix-functions/iswalpha.texi: Likewise.
54302         * doc/posix-functions/iswblank.texi: Likewise.
54303         * doc/posix-functions/iswcntrl.texi: Likewise.
54304         * doc/posix-functions/iswctype.texi: Likewise.
54305         * doc/posix-functions/iswdigit.texi: Likewise.
54306         * doc/posix-functions/iswgraph.texi: Likewise.
54307         * doc/posix-functions/iswlower.texi: Likewise.
54308         * doc/posix-functions/iswprint.texi: Likewise.
54309         * doc/posix-functions/iswpunct.texi: Likewise.
54310         * doc/posix-functions/iswspace.texi: Likewise.
54311         * doc/posix-functions/iswupper.texi: Likewise.
54312         * doc/posix-functions/iswxdigit.texi: Likewise.
54313         * doc/posix-functions/mbrtowc.texi: Likewise.
54314         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54315         * doc/posix-functions/mbstowcs.texi: Likewise.
54316         * doc/posix-functions/mbtowc.texi: Likewise.
54317         * doc/posix-functions/putwchar.texi: Likewise.
54318         * doc/posix-functions/putwc.texi: Likewise.
54319         * doc/posix-functions/swprintf.texi: Likewise.
54320         * doc/posix-functions/tolower.texi: Likewise.
54321         * doc/posix-functions/toupper.texi: Likewise.
54322         * doc/posix-functions/towctrans.texi: Likewise.
54323         * doc/posix-functions/ungetwc.texi: Likewise.
54324         * doc/posix-functions/vswprintf.texi: Likewise.
54325         * doc/posix-functions/wcrtomb.texi: Likewise.
54326         * doc/posix-functions/wcscat.texi: Likewise.
54327         * doc/posix-functions/wcschr.texi: Likewise.
54328         * doc/posix-functions/wcscmp.texi: Likewise.
54329         * doc/posix-functions/wcscoll.texi: Likewise.
54330         * doc/posix-functions/wcscpy.texi: Likewise.
54331         * doc/posix-functions/wcscspn.texi: Likewise.
54332         * doc/posix-functions/wcsftime.texi: Likewise.
54333         * doc/posix-functions/wcslen.texi: Likewise.
54334         * doc/posix-functions/wcsncat.texi: Likewise.
54335         * doc/posix-functions/wcsncmp.texi: Likewise.
54336         * doc/posix-functions/wcsncpy.texi: Likewise.
54337         * doc/posix-functions/wcspbrk.texi: Likewise.
54338         * doc/posix-functions/wcsrchr.texi: Likewise.
54339         * doc/posix-functions/wcsrtombs.texi: Likewise.
54340         * doc/posix-functions/wcsspn.texi: Likewise.
54341         * doc/posix-functions/wcsstr.texi: Likewise.
54342         * doc/posix-functions/wcstod.texi: Likewise.
54343         * doc/posix-functions/wcstof.texi: Likewise.
54344         * doc/posix-functions/wcstoimax.texi: Likewise.
54345         * doc/posix-functions/wcstok.texi: Likewise.
54346         * doc/posix-functions/wcstold.texi: Likewise.
54347         * doc/posix-functions/wcstoll.texi: Likewise.
54348         * doc/posix-functions/wcstol.texi: Likewise.
54349         * doc/posix-functions/wcstombs.texi: Likewise.
54350         * doc/posix-functions/wcstoull.texi: Likewise.
54351         * doc/posix-functions/wcstoul.texi: Likewise.
54352         * doc/posix-functions/wcstoumax.texi: Likewise.
54353         * doc/posix-functions/wcswidth.texi: Likewise.
54354         * doc/posix-functions/wcsxfrm.texi: Likewise.
54355         * doc/posix-functions/wctob.texi: Likewise.
54356         * doc/posix-functions/wctomb.texi: Likewise.
54357         * doc/posix-functions/wctrans.texi: Likewise.
54358         * doc/posix-functions/wctype.texi: Likewise.
54359         * doc/posix-functions/wcwidth.texi: Likewise.
54360         * doc/posix-functions/wmemchr.texi: Likewise.
54361         * doc/posix-functions/wmemcmp.texi: Likewise.
54362         * doc/posix-functions/wmemcpy.texi: Likewise.
54363         * doc/posix-functions/wmemmove.texi: Likewise.
54364         * doc/posix-functions/wmemset.texi: Likewise.
54365         * doc/posix-functions/wprintf.texi: Likewise.
54366         * doc/posix-functions/wscanf.texi: Likewise.
54367
54368 2008-12-21  Bruno Haible  <bruno@clisp.org>
54369
54370         Update doc for HP-UX 11.11.
54371         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54372         in HP-UX version 11.00, not in all versions of HP-UX 11.
54373         * doc/posix-functions/fwide.texi: Likewise.
54374         * doc/posix-functions/fwprintf.texi: Likewise.
54375         * doc/posix-functions/fwscanf.texi: Likewise.
54376         * doc/posix-functions/inet_ntop.texi: Likewise.
54377         * doc/posix-functions/inet_pton.texi: Likewise.
54378         * doc/posix-functions/mbrlen.texi: Likewise.
54379         * doc/posix-functions/mbrtowc.texi: Likewise.
54380         * doc/posix-functions/mbsinit.texi: Likewise.
54381         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54382         * doc/posix-functions/swprintf.texi: Likewise.
54383         * doc/posix-functions/swscanf.texi: Likewise.
54384         * doc/posix-functions/towctrans.texi: Likewise.
54385         * doc/posix-functions/vfwprintf.texi: Likewise.
54386         * doc/posix-functions/vswprintf.texi: Likewise.
54387         * doc/posix-functions/vwprintf.texi: Likewise.
54388         * doc/posix-functions/wcrtomb.texi: Likewise.
54389         * doc/posix-functions/wcsrtombs.texi: Likewise.
54390         * doc/posix-functions/wcsstr.texi: Likewise.
54391         * doc/posix-functions/wctob.texi: Likewise.
54392         * doc/posix-functions/wctrans.texi: Likewise.
54393         * doc/posix-functions/wmemchr.texi: Likewise.
54394         * doc/posix-functions/wmemcmp.texi: Likewise.
54395         * doc/posix-functions/wmemcpy.texi: Likewise.
54396         * doc/posix-functions/wmemmove.texi: Likewise.
54397         * doc/posix-functions/wmemset.texi: Likewise.
54398         * doc/posix-functions/wprintf.texi: Likewise.
54399         * doc/posix-functions/wscanf.texi: Likewise.
54400
54401 2008-12-21  Bruno Haible  <bruno@clisp.org>
54402
54403         Work around a portability problem.
54404         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54405         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54406
54407 2008-12-20  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54410         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54411         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54413         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54414
54415         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54416         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54417         set.
54418         (GNULIB_defined_mbstate_t): New macro.
54419         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54420         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54421         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54422         reuses the system's mbrtowc function but works around the bugs.
54423         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54424         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54425         macros.
54426         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54427         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54428         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54429         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54430         REPLACE_MBSINIT if mbsinit needs to be overridden.
54431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54432         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54433         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54434         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54435         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54436         m4/locale-zh.m4.
54437         (Depends): Add mbsinit.
54438         * modules/mbsinit (Depends): Add mbrtowc.
54439         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54440
54441 2008-12-20  Bruno Haible  <bruno@clisp.org>
54442
54443         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54444         so that there are no conversion errors on AIX.
54445         * tests/test-mbsrtowcs.c (main): LIkewise.
54446
54447 2008-12-20  Bruno Haible  <bruno@clisp.org>
54448
54449         Work around wctob bug on Solaris <= 9.
54450         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54451         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54453         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54454         * modules/wctob (Files): Add m4/locale-fr.m4.
54455         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54456
54457 2008-12-20  Bruno Haible  <bruno@clisp.org>
54458
54459         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54460         /dev/null.
54461         * tests/test-select-in.sh: Likewise.
54462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54463
54464 2008-12-20  Bruno Haible  <bruno@clisp.org>
54465
54466         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54467         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54468         Cygwin 1.5.x.
54469
54470 2008-12-20  Bruno Haible  <bruno@clisp.org>
54471
54472         Ensure mbstate_t is defined on HP-UX 11.11.
54473         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54474         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54475         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54476         AC_USE_SYSTEM_EXTENSIONS.
54477         * modules/fnmatch (Depends-on): Add extensions.
54478         * modules/mbrlen (Depends-on): Likewise.
54479         * modules/mbrtowc (Depends-on): Likewise.
54480         * modules/mbsinit (Depends-on): Likewise.
54481         * modules/mbsrtowcs (Depends-on): Likewise.
54482         * modules/mbswidth (Depends-on): Likewise.
54483         * modules/quotearg (Depends-on): Likewise.
54484         * modules/strftime (Depends-on): Likewise.
54485
54486 2008-12-20  Bruno Haible  <bruno@clisp.org>
54487
54488         Ensure wctob is declared on IRIX 6.5.
54489         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54490         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54491         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54492         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54493         of HAVE_WCTOB.
54494         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54495         HAVE_WCTOB.
54496         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54497
54498 2008-12-19  Bruno Haible  <bruno@clisp.org>
54499
54500         * modules/mbsrtowcs-tests: New file.
54501         * tests/test-mbsrtowcs1.sh: New file.
54502         * tests/test-mbsrtowcs2.sh: New file.
54503         * tests/test-mbsrtowcs3.sh: New file.
54504         * tests/test-mbsrtowcs4.sh: New file.
54505         * tests/test-mbsrtowcs.c: New file.
54506
54507         New module 'mbsrtowcs'.
54508         * lib/wchar.in.h (mbsrtowcs): New declaration.
54509         * lib/mbsrtowcs.c: New file.
54510         * m4/mbsrtowcs.m4: New file.
54511         * modules/mbsrtowcs: New file.
54512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54513         HAVE_MBSRTOWCS.
54514         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54515         HAVE_MBSRTOWCS.
54516         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54517
54518 2008-12-19  Bruno Haible  <bruno@clisp.org>
54519
54520         New module 'mbrlen'.
54521         * lib/wchar.in.h (mbrlen): New declaration.
54522         * lib/mbrlen.c: New file.
54523         * m4/mbrlen.m4: New file.
54524         * modules/mbrlen: New file.
54525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54526         HAVE_MBRLEN.
54527         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54528         HAVE_MBRLEN.
54529         * doc/posix-functions/mbrlen.texi: Document the new module.
54530
54531 2008-12-19  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54534         * modules/mbrtowc (Depends-on): Add verify.
54535         Suggested by Paul Eggert.
54536
54537 2008-12-18  Bruno Haible  <bruno@clisp.org>
54538
54539         * modules/mbsinit-tests: New file.
54540         * tests/test-mbsinit.sh: New file.
54541         * tests/test-mbsinit.c: New file.
54542
54543 2008-12-18  Bruno Haible  <bruno@clisp.org>
54544
54545         * modules/mbrtowc-tests: New file.
54546         * tests/test-mbrtowc1.sh: New file.
54547         * tests/test-mbrtowc2.sh: New file.
54548         * tests/test-mbrtowc3.sh: New file.
54549         * tests/test-mbrtowc4.sh: New file.
54550         * tests/test-mbrtowc.c: New file.
54551
54552         New module 'mbrtowc'.
54553         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54554         mbsinit and mbrtowc.
54555         (mbrtowc): New declaration.
54556         * lib/mbrtowc.c: New file.
54557         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54558         * modules/mbrtowc: New file.
54559         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54560         HAVE_MBRTOWC.
54561         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54562         HAVE_MBRTOWC.
54563         * doc/posix-functions/mbrtowc.texi: Document the new module.
54564
54565 2008-12-18  Bruno Haible  <bruno@clisp.org>
54566
54567         New module 'wctob'.
54568         * lib/wchar.in.h (wctob): New declaration.
54569         * lib/wctob.c: New file.
54570         * m4/wctob.m4: New file.
54571         * modules/wctob: New file.
54572         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54573         HAVE_WCTOB.
54574         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54575         * doc/posix-functions/wctob.texi: Document the new module.
54576
54577 2008-12-18  Bruno Haible  <bruno@clisp.org>
54578
54579         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54580         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54581
54582 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54583
54584         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54585         G. Christensen" <tgc@jupiterrise.com>.
54586
54587         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54588         G. Christensen" <tgc@jupiterrise.com>.
54589
54590         * lib/flock.c: Need to include string.h.  Reported by "Tom
54591         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54592         <ebb9@byu.net>.
54593
54594 2008-12-18  Bruno Haible  <bruno@clisp.org>
54595
54596         * m4/locale-ja.m4: New file, from GNU gettext.
54597
54598 2008-12-17  Bruno Haible  <bruno@clisp.org>
54599
54600         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54601         Suggested by Eric Blake.
54602
54603 2008-12-17  Bruno Haible  <bruno@clisp.org>
54604
54605         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54606
54607 2008-12-17  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54610         * modules/mbsinit (Depends-on): Add verify.
54611         Suggested by Paul Eggert.
54612
54613 2008-12-17  Bruno Haible  <bruno@clisp.org>
54614
54615         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54616         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54617         gl_FUNC_MBRTOWC.
54618         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54619         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54620         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54621         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54622         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54623         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54624         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54625         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54626         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54627         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54628         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54629         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54630         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54631         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54632         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54633         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54634         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54635         * modules/trim (configure.ac): Likewise.
54636
54637 2008-12-17  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/btowc-tests: New file.
54640         * tests/test-btowc1.sh: New file.
54641         * tests/test-btowc2.sh: New file.
54642         * tests/test-btowc.c: New file.
54643
54644         New module 'btowc'.
54645         * lib/wchar.in.h (btowc): New declaration.
54646         * lib/btowc.c: New file.
54647         * m4/btowc.m4: New file.
54648         * modules/btowc: New file.
54649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54650         HAVE_BTOWC.
54651         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54652         * doc/posix-functions/btowc.texi: Document the new module.
54653
54654 2008-12-17  Bruno Haible  <bruno@clisp.org>
54655
54656         New module 'mbsinit'.
54657         * lib/wchar.in.h (mbsinit): New declaration.
54658         * lib/mbsinit.c: New file.
54659         * m4/mbsinit.m4: New file.
54660         * modules/mbsinit: New file.
54661         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54662         HAVE_MBSINIT.
54663         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54664         HAVE_MBSINIT.
54665         * doc/posix-functions/mbsinit.texi: Document the new module.
54666
54667 2008-12-16  Bruno Haible  <bruno@clisp.org>
54668
54669         * lib/unistd.in.h: Add comment.
54670         * tests/test-environ.c: Don't include <stdlib.h>.
54671
54672 2008-12-16  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/parse-duration.h (parse_duration): Document return value
54675         convention.
54676         * lib/parse-duration.c: Include specification header first. Add
54677         comments.
54678         (_): Remove macro.
54679         (parse_year_month_day, parse_hour_minute_second): Move side effects
54680         outside of strchr call.
54681         (parse_non_iso8601): Move side effects outside of isspace call.
54682         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54683         call.
54684
54685 2008-12-16  Bruno Haible  <bruno@clisp.org>
54686
54687         * tests/test-parse-duration.sh: Produce no output when the test
54688         succeeds.
54689
54690 2008-12-16  Bruno Haible  <bruno@clisp.org>
54691
54692         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54693         expressions.
54694
54695 2008-12-15  Bruno Haible  <bruno@clisp.org>
54696
54697         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54698         * doc/glibc-functions/flistxattr.texi: Likewise.
54699         * doc/glibc-functions/fopencookie.texi: Likewise.
54700         * doc/glibc-functions/fremovexattr.texi: Likewise.
54701         * doc/glibc-functions/fsetxattr.texi: Likewise.
54702         * doc/glibc-functions/getxattr.texi: Likewise.
54703         * doc/glibc-functions/lgetxattr.texi: Likewise.
54704         * doc/glibc-functions/listxattr.texi: Likewise.
54705         * doc/glibc-functions/llistxattr.texi: Likewise.
54706         * doc/glibc-functions/lremovexattr.texi: Likewise.
54707         * doc/glibc-functions/lsetxattr.texi: Likewise.
54708         * doc/glibc-functions/removexattr.texi: Likewise.
54709         * doc/glibc-functions/setxattr.texi: Likewise.
54710         * doc/posix-functions/open_memstream.texi: Likewise.
54711
54712 2008-12-15  Eric Blake  <ebb9@byu.net>
54713
54714         Update doc for cygwin 1.7.
54715         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54716         functions.
54717         * doc/posix-functions/fchmodat.texi: Likewise.
54718         * doc/posix-functions/fchownat.texi: Likewise.
54719         * doc/posix-functions/fdopendir.texi: Likewise.
54720         * doc/posix-functions/fmemopen.texi: Likewise.
54721         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54722         * doc/posix-functions/fstatat.texi: Likewise.
54723         * doc/posix-functions/futimens.texi: Likewise.
54724         * doc/posix-functions/gai_strerror.texi: Likewise.
54725         * doc/posix-functions/getaddrinfo.texi: Likewise.
54726         * doc/posix-functions/getnameinfo.texi: Likewise.
54727         * doc/posix-functions/if_freenameindex.texi: Likewise.
54728         * doc/posix-functions/if_indextoname.texi: Likewise.
54729         * doc/posix-functions/if_nameindex.texi: Likewise.
54730         * doc/posix-functions/if_nametoindex.texi: Likewise.
54731         * doc/posix-functions/insque.texi: Likewise.
54732         * doc/posix-functions/linkat.texi: Likewise.
54733         * doc/posix-functions/llrint.texi: Likewise.
54734         * doc/posix-functions/llrintf.texi: Likewise.
54735         * doc/posix-functions/llrintl.texi: Likewise.
54736         * doc/posix-functions/lockf.texi: Likewise.
54737         * doc/posix-functions/lrintl.texi: Likewise.
54738         * doc/posix-functions/mkdirat.texi: Likewise.
54739         * doc/posix-functions/mkfifoat.texi: Likewise.
54740         * doc/posix-functions/mknodat.texi: Likewise.
54741         * doc/posix-functions/mq_close.texi: Likewise.
54742         * doc/posix-functions/mq_getattr.texi: Likewise.
54743         * doc/posix-functions/mq_notify.texi: Likewise.
54744         * doc/posix-functions/mq_open.texi: Likewise.
54745         * doc/posix-functions/mq_receive.texi: Likewise.
54746         * doc/posix-functions/mq_send.texi: Likewise.
54747         * doc/posix-functions/mq_setattr.texi: Likewise.
54748         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54749         * doc/posix-functions/mq_timedsend.texi: Likewise.
54750         * doc/posix-functions/mq_unlink.texi: Likewise.
54751         * doc/posix-functions/open_memstream.texi: Likewise.
54752         * doc/posix-functions/openat.texi: Likewise.
54753         * doc/posix-functions/posix_fadvise.texi: Likewise.
54754         * doc/posix-functions/posix_fallocate.texi: Likewise.
54755         * doc/posix-functions/posix_madvise.texi: Likewise.
54756         * doc/posix-functions/posix_memalign.texi: Likewise.
54757         * doc/posix-functions/posix_openpt.texi: Likewise.
54758         * doc/posix-functions/readlinkat.texi: Likewise.
54759         * doc/posix-functions/remque.texi: Likewise.
54760         * doc/posix-functions/renameat.texi: Likewise.
54761         * doc/posix-functions/rintl.texi: Likewise.
54762         * doc/posix-functions/sem_unlink.texi: Likewise.
54763         * doc/posix-functions/shm_open.texi: Likewise.
54764         * doc/posix-functions/shm_unlink.texi: Likewise.
54765         * doc/posix-functions/signgam.texi: Likewise.
54766         * doc/posix-functions/sigset.texi: Likewise.
54767         * doc/posix-functions/stpcpy.texi: Likewise.
54768         * doc/posix-functions/stpncpy.texi: Likewise.
54769         * doc/posix-functions/strerror.texi: Likewise.
54770         * doc/posix-functions/strtod.texi: Likewise.
54771         * doc/posix-functions/symlinkat.texi: Likewise.
54772         * doc/posix-functions/unlinkat.texi: Likewise.
54773         * doc/posix-functions/utimensat.texi: Likewise.
54774         * doc/glibc-functions/bindresvport.texi: Likewise.
54775         * doc/glibc-functions/dn_expand.texi: Likewise.
54776         * doc/glibc-functions/exp10.texi: Likewise.
54777         * doc/glibc-functions/exp10f.texi: Likewise.
54778         * doc/glibc-functions/fgetxattr.texi: Likewise.
54779         * doc/glibc-functions/flistxattr.texi: Likewise.
54780         * doc/glibc-functions/fopencookie.texi: Likewise.
54781         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54782         * doc/glibc-functions/fremovexattr.texi: Likewise.
54783         * doc/glibc-functions/fsetxattr.texi: Likewise.
54784         * doc/glibc-functions/getifaddrs.texi: Likewise.
54785         * doc/glibc-functions/getxattr.texi: Likewise.
54786         * doc/glibc-functions/lgetxattr.texi: Likewise.
54787         * doc/glibc-functions/listxattr.texi: Likewise.
54788         * doc/glibc-functions/llistxattr.texi: Likewise.
54789         * doc/glibc-functions/lremovexattr.texi: Likewise.
54790         * doc/glibc-functions/lsetxattr.texi: Likewise.
54791         * doc/glibc-functions/pow10.texi: Likewise.
54792         * doc/glibc-functions/pow10f.texi: Likewise.
54793         * doc/glibc-functions/rcmd_af.texi: Likewise.
54794         * doc/glibc-functions/removexattr.texi: Likewise.
54795         * doc/glibc-functions/res_init.texi: Likewise.
54796         * doc/glibc-functions/res_mkquery.texi: Likewise.
54797         * doc/glibc-functions/res_query.texi: Likewise.
54798         * doc/glibc-functions/res_querydomain.texi: Likewise.
54799         * doc/glibc-functions/res_send.texi: Likewise.
54800         * doc/glibc-functions/rresvport_af.texi: Likewise.
54801         * doc/glibc-functions/setxattr.texi: Likewise.
54802         * doc/glibc-functions/strcasestr.texi: Likewise.
54803
54804 2008-12-15  Bruno Haible  <bruno@clisp.org>
54805
54806         Fix compilation error on OSF/1 4.0.
54807         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54808         <sys/time.h>, simply delegate to the system header.
54809         Reported by Daniel Richard G. <oss@teragram.com>.
54810
54811 2008-12-15  Bruno Haible  <bruno@clisp.org>
54812
54813         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54814         * doc/posix-functions/fchmodat.texi: Likewise.
54815         * doc/posix-functions/fchownat.texi: Likewise.
54816         * doc/posix-functions/fdopendir.texi: Likewise.
54817         * doc/posix-functions/fstatat.texi: Likewise.
54818         * doc/posix-functions/mkdirat.texi: Likewise.
54819         * doc/posix-functions/unlinkat.texi: Likewise.
54820
54821 2008-12-14  Bruno Haible  <bruno@clisp.org>
54822
54823         Update doc for POSIX:2008.
54824         * doc/posix-functions/faccessat.texi: New file.
54825         * doc/posix-functions/fchmodat.texi: New file.
54826         * doc/posix-functions/fchownat.texi: New file.
54827         * doc/posix-functions/fdopendir.texi: New file.
54828         * doc/posix-functions/fstatat.texi: New file.
54829         * doc/posix-functions/futimens.texi: New file.
54830         * doc/posix-functions/linkat.texi: New file.
54831         * doc/posix-functions/mkdirat.texi: New file.
54832         * doc/posix-functions/mkfifoat.texi: New file.
54833         * doc/posix-functions/mknodat.texi: New file.
54834         * doc/posix-functions/open_wmemstream.texi: New file.
54835         * doc/posix-functions/openat.texi: New file.
54836         * doc/posix-functions/psiginfo.texi: New file.
54837         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54838         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54839         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54840         * doc/posix-functions/readlinkat.texi: New file.
54841         * doc/posix-functions/renameat.texi: New file.
54842         * doc/posix-functions/strerror_l.texi: New file.
54843         * doc/posix-functions/symlinkat.texi: New file.
54844         * doc/posix-functions/unlinkat.texi: New file.
54845         * doc/posix-functions/utimensat.texi: New file.
54846         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54847
54848 2008-12-14  Bruno Haible  <bruno@clisp.org>
54849
54850         Update doc for POSIX:2008.
54851         * doc/posix-functions/alphasort.texi: Renamed from
54852         doc/glibc-functions/alphasort.texi.
54853         * doc/posix-functions/dirfd.texi: Renamed from
54854         doc/glibc-functions/dirfd.texi.
54855         * doc/posix-functions/dprintf.texi: Renamed from
54856         doc/glibc-functions/dprintf.texi.
54857         * doc/posix-functions/duplocale.texi: Renamed from
54858         doc/glibc-functions/duplocale.texi.
54859         * doc/posix-functions/fexecve.texi: Renamed from
54860         doc/glibc-functions/fexecve.texi.
54861         * doc/posix-functions/fmemopen.texi: Renamed from
54862         doc/glibc-functions/fmemopen.texi.
54863         * doc/posix-functions/freelocale.texi: Renamed from
54864         doc/glibc-functions/freelocale.texi.
54865         * doc/posix-functions/getdate_err.texi: Renamed from
54866         doc/glibc-functions/getdate_err.texi.
54867         * doc/posix-functions/isalnum_l.texi: Renamed from
54868         doc/glibc-functions/isalnum_l.texi.
54869         * doc/posix-functions/isalpha_l.texi: Renamed from
54870         doc/glibc-functions/isalpha_l.texi.
54871         * doc/posix-functions/isblank_l.texi: Renamed from
54872         doc/glibc-functions/isblank_l.texi.
54873         * doc/posix-functions/iscntrl_l.texi: Renamed from
54874         doc/glibc-functions/iscntrl_l.texi.
54875         * doc/posix-functions/isdigit_l.texi: Renamed from
54876         doc/glibc-functions/isdigit_l.texi.
54877         * doc/posix-functions/isgraph_l.texi: Renamed from
54878         doc/glibc-functions/isgraph_l.texi.
54879         * doc/posix-functions/islower_l.texi: Renamed from
54880         doc/glibc-functions/islower_l.texi.
54881         * doc/posix-functions/isprint_l.texi: Renamed from
54882         doc/glibc-functions/isprint_l.texi.
54883         * doc/posix-functions/ispunct_l.texi: Renamed from
54884         doc/glibc-functions/ispunct_l.texi.
54885         * doc/posix-functions/isspace_l.texi: Renamed from
54886         doc/glibc-functions/isspace_l.texi.
54887         * doc/posix-functions/isupper_l.texi: Renamed from
54888         doc/glibc-functions/isupper_l.texi.
54889         * doc/posix-functions/iswalnum_l.texi: Renamed from
54890         doc/glibc-functions/iswalnum_l.texi.
54891         * doc/posix-functions/iswalpha_l.texi: Renamed from
54892         doc/glibc-functions/iswalpha_l.texi.
54893         * doc/posix-functions/iswblank_l.texi: Renamed from
54894         doc/glibc-functions/iswblank_l.texi.
54895         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54896         doc/glibc-functions/iswcntrl_l.texi.
54897         * doc/posix-functions/iswctype_l.texi: Renamed from
54898         doc/glibc-functions/iswctype_l.texi.
54899         * doc/posix-functions/iswdigit_l.texi: Renamed from
54900         doc/glibc-functions/iswdigit_l.texi.
54901         * doc/posix-functions/iswgraph_l.texi: Renamed from
54902         doc/glibc-functions/iswgraph_l.texi.
54903         * doc/posix-functions/iswlower_l.texi: Renamed from
54904         doc/glibc-functions/iswlower_l.texi.
54905         * doc/posix-functions/iswprint_l.texi: Renamed from
54906         doc/glibc-functions/iswprint_l.texi.
54907         * doc/posix-functions/iswpunct_l.texi: Renamed from
54908         doc/glibc-functions/iswpunct_l.texi.
54909         * doc/posix-functions/iswspace_l.texi: Renamed from
54910         doc/glibc-functions/iswspace_l.texi.
54911         * doc/posix-functions/iswupper_l.texi: Renamed from
54912         doc/glibc-functions/iswupper_l.texi.
54913         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54914         doc/glibc-functions/iswxdigit_l.texi.
54915         * doc/posix-functions/isxdigit_l.texi: Renamed from
54916         doc/glibc-functions/isxdigit_l.texi.
54917         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54918         doc/glibc-functions/mbsnrtowcs.texi.
54919         * doc/posix-functions/mkdtemp.texi: Renamed from
54920         doc/glibc-functions/mkdtemp.texi.
54921         * doc/posix-functions/newlocale.texi: Renamed from
54922         doc/glibc-functions/newlocale.texi.
54923         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54924         doc/glibc-functions/nl_langinfo_l.texi.
54925         * doc/posix-functions/open_memstream.texi: Renamed from
54926         doc/glibc-functions/open_memstream.texi.
54927         * doc/posix-functions/opterr.texi: Renamed from
54928         doc/glibc-functions/opterr.texi.
54929         * doc/posix-functions/optind.texi: Renamed from
54930         doc/glibc-functions/optind.texi.
54931         * doc/posix-functions/optopt.texi: Renamed from
54932         doc/glibc-functions/optopt.texi.
54933         * doc/posix-functions/psignal.texi: Renamed from
54934         doc/glibc-functions/psignal.texi.
54935         * doc/posix-functions/scandir.texi: Renamed from
54936         doc/glibc-functions/scandir.texi.
54937         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54938         doc/glibc-functions/sched_get_priority_min.texi.
54939         * doc/posix-functions/signgam.texi: Renamed from
54940         doc/glibc-functions/signgam.texi.
54941         * doc/posix-functions/stpcpy.texi: Renamed from
54942         doc/glibc-functions/stpcpy.texi.
54943         * doc/posix-functions/stpncpy.texi: Renamed from
54944         doc/glibc-functions/stpncpy.texi.
54945         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54946         doc/glibc-functions/strcasecmp_l.texi.
54947         * doc/posix-functions/strcoll_l.texi: Renamed from
54948         doc/glibc-functions/strcoll_l.texi.
54949         * doc/posix-functions/strfmon_l.texi: Renamed from
54950         doc/glibc-functions/strfmon_l.texi.
54951         * doc/posix-functions/strftime_l.texi: Renamed from
54952         doc/glibc-functions/strftime_l.texi.
54953         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54954         doc/glibc-functions/strncasecmp_l.texi.
54955         * doc/posix-functions/strndup.texi: Renamed from
54956         doc/glibc-functions/strndup.texi.
54957         * doc/posix-functions/strnlen.texi: Renamed from
54958         doc/glibc-functions/strnlen.texi.
54959         * doc/posix-functions/strsignal.texi: Renamed from
54960         doc/glibc-functions/strsignal.texi.
54961         * doc/posix-functions/strxfrm_l.texi: Renamed from
54962         doc/glibc-functions/strxfrm_l.texi.
54963         * doc/posix-functions/timer_gettime.texi: Renamed from
54964         doc/glibc-functions/timer_gettime.texi.
54965         * doc/posix-functions/tolower_l.texi: Renamed from
54966         doc/glibc-functions/tolower_l.texi.
54967         * doc/posix-functions/toupper_l.texi: Renamed from
54968         doc/glibc-functions/toupper_l.texi.
54969         * doc/posix-functions/towctrans_l.texi: Renamed from
54970         doc/glibc-functions/towctrans_l.texi.
54971         * doc/posix-functions/towlower_l.texi: Renamed from
54972         doc/glibc-functions/towlower_l.texi.
54973         * doc/posix-functions/towupper_l.texi: Renamed from
54974         doc/glibc-functions/towupper_l.texi.
54975         * doc/posix-functions/uselocale.texi: Renamed from
54976         doc/glibc-functions/uselocale.texi.
54977         * doc/posix-functions/vdprintf.texi: Renamed from
54978         doc/glibc-functions/vdprintf.texi.
54979         * doc/posix-functions/wcpcpy.texi:
54980         Renamed from doc/glibc-functions/wcpcpy.texi.
54981         * doc/posix-functions/wcpncpy.texi: Renamed from
54982         doc/glibc-functions/wcpncpy.texi.
54983         * doc/posix-functions/wcscasecmp.texi: Renamed from
54984         doc/glibc-functions/wcscasecmp.texi.
54985         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54986         doc/glibc-functions/wcscasecmp_l.texi.
54987         * doc/posix-functions/wcscoll_l.texi: Renamed from
54988         doc/glibc-functions/wcscoll_l.texi.
54989         * doc/posix-functions/wcsdup.texi: Renamed from
54990         doc/glibc-functions/wcsdup.texi.
54991         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54992         doc/glibc-functions/wcsncasecmp.texi.
54993         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54994         doc/glibc-functions/wcsncasecmp_l.texi.
54995         * doc/posix-functions/wcsnlen.texi: Renamed from
54996         doc/glibc-functions/wcsnlen.texi.
54997         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54998         doc/glibc-functions/wcsnrtombs.texi.
54999         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
55000         doc/glibc-functions/wcsxfrm_l.texi.
55001         * doc/posix-functions/wctrans_l.texi: Renamed from
55002         doc/glibc-functions/wctrans_l.texi.
55003         * doc/posix-functions/wctype_l.texi: Renamed from
55004         doc/glibc-functions/wctype_l.texi.
55005         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55006         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
55007         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
55008         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
55009         these subsections.
55010         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
55011         Remove sections.
55012
55013 2008-12-14  Bruno Haible  <bruno@clisp.org>
55014
55015         Update doc for POSIX:2008.
55016         * doc/posix-functions/*.texi: Update URL of POSIX specification.
55017
55018 2008-12-14  Bruno Haible  <bruno@clisp.org>
55019
55020         Update doc for POSIX:2008.
55021         * doc/pastposix-functions/bcmp.texi: Renamed from
55022         doc/posix-functions/bcmp.texi.
55023         * doc/pastposix-functions/bcopy.texi: Renamed from
55024         doc/posix-functions/bcopy.texi.
55025         * doc/pastposix-functions/bsd_signal.texi: Renamed from
55026         doc/posix-functions/bsd_signal.texi.
55027         * doc/pastposix-functions/bzero.texi: Renamed from
55028         doc/posix-functions/bzero.texi.
55029         * doc/pastposix-functions/ecvt.texi: Renamed from
55030         doc/posix-functions/ecvt.texi.
55031         * doc/pastposix-functions/fcvt.texi: Renamed from
55032         doc/posix-functions/fcvt.texi.
55033         * doc/pastposix-functions/ftime.texi: Renamed from
55034         doc/posix-functions/ftime.texi.
55035         * doc/pastposix-functions/gcvt.texi: Renamed from
55036         doc/posix-functions/gcvt.texi.
55037         * doc/pastposix-functions/getcontext.texi: Renamed from
55038         doc/posix-functions/getcontext.texi.
55039         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
55040         doc/posix-functions/gethostbyaddr.texi.
55041         * doc/pastposix-functions/gethostbyname.texi: Renamed from
55042         doc/posix-functions/gethostbyname.texi.
55043         * doc/pastposix-functions/getwd.texi: Renamed from
55044         doc/posix-functions/getwd.texi.
55045         * doc/pastposix-functions/h_errno.texi: Renamed from
55046         doc/posix-functions/h_errno.texi.
55047         * doc/pastposix-functions/index.texi: Renamed from
55048         doc/posix-functions/index.texi.
55049         * doc/pastposix-functions/makecontext.texi: Renamed from
55050         doc/posix-functions/makecontext.texi.
55051         * doc/pastposix-functions/mktemp.texi: Renamed from
55052         doc/posix-functions/mktemp.texi.
55053         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
55054         doc/posix-functions/pthread_attr_getstackaddr.texi.
55055         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
55056         doc/posix-functions/pthread_attr_setstackaddr.texi.
55057         * doc/pastposix-functions/rindex.texi: Renamed from
55058         doc/posix-functions/rindex.texi.
55059         * doc/pastposix-functions/scalb.texi: Renamed from
55060         doc/posix-functions/scalb.texi.
55061         * doc/pastposix-functions/setcontext.texi: Renamed from
55062         doc/posix-functions/setcontext.texi.
55063         * doc/pastposix-functions/swapcontext.texi: Renamed from
55064         doc/posix-functions/swapcontext.texi.
55065         * doc/pastposix-functions/ualarm.texi: Renamed from
55066         doc/posix-functions/ualarm.texi.
55067         * doc/pastposix-functions/usleep.texi: Renamed from
55068         doc/posix-functions/usleep.texi.
55069         * doc/pastposix-functions/vfork.texi: Renamed from
55070         doc/posix-functions/vfork.texi.
55071         * doc/pastposix-functions/wcswcs.texi: Renamed from
55072         doc/posix-functions/wcswcs.texi.
55073         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
55074         (Function Substitutes): Update.
55075
55076 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55077
55078         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55079         m4/strerror.m4.
55080
55081 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55082             Bruno Haible  <bruno@clisp.org>
55083
55084         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55085
55086 2008-12-13  Bruno Haible  <bruno@clisp.org>
55087
55088         * modules/strtoull (Depends-on): Remove unistd.
55089
55090 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55091
55092         * modules/strtoull (Depends-on): Add stdlib.
55093
55094 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55095
55096         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55097
55098 2008-12-10  Jim Meyering  <meyering@redhat.com>
55099
55100         gl_ASSERT: don't say assertions are disabled when they're not
55101         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55102         "checking whether to enable assertions... no", when they are in
55103         fact enabled.  This is solely a bug in the output of configure.
55104         In spite of saying "no", NDEBUG was not defined in that case.
55105         Also, as noted by Eric Blake, leave assertions enabled upon
55106         --enable-assert=INVALID.
55107
55108 2008-12-10  Bruno Haible  <bruno@clisp.org>
55109
55110         Change MODULES.html to refer to POSIX:2008 where possible.
55111         * MODULES.html.sh (POSIX2008_URL): New variable.
55112         (posix_headers): Remove sys/timeb, ucontext.
55113         (posix2001_headers): New variable.
55114         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55115         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55116         index, makecontext, mktemp, pthread_attr_getstackaddr,
55117         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55118         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55119         (posix2001_functions): New variable.
55120         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55121         otherwise.
55122
55123 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55124
55125         add missing include to parse-duration.c
55126         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55127         * modules/parse-duration (Depends-on): Add xalloc.
55128
55129         fix sed script reading maint.mk
55130         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55131         (syntax-check-rules): Use it.
55132
55133 2008-12-09  Bruno Haible  <bruno@clisp.org>
55134
55135         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55136         MacOS X 10.4/PowerPC.
55137         Reported by Simon Josefsson.
55138
55139 2008-12-08  Jim Meyering  <meyering@redhat.com>
55140
55141         work around mingw's lack of some S_IF definitions
55142         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55143         Reported by Simon Josefsson.
55144
55145 2008-12-08  Bruno Haible  <bruno@clisp.org>
55146
55147         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55148         applied to variables. Needed on MacOS X 10.4/PowerPC.
55149         Reported by Simon Josefsson.
55150
55151 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55152         and Eric Blake  <ebb9@byu.net>
55153
55154         assert: honor --enable-assert
55155         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55156         order to honor --enable-assert, rather than treating it as a
55157         synonym for --disable-assert.
55158
55159 2008-12-08  Jim Meyering  <meyering@redhat.com>
55160
55161         * lib/posixtm.c: Remove now-useless declaration of mktime.
55162
55163         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55164
55165 2008-12-07  Bruno Haible  <bruno@clisp.org>
55166
55167         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55168         test_once): Mark functions as static.
55169         * tests/test-tls.c (test_tls): Likewise.
55170
55171 2008-12-07  Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55174         iconv_register_autodetect.
55175
55176 2008-12-07  Jim Meyering  <meyering@redhat.com>
55177
55178         posixtm.c: avoid a warning
55179         * lib/posixtm.c (posixtime): Don't initialize tm0.
55180         It's no longer needed to placate gcc4's -Wuninitialized,
55181         and the attempt to placate would elicit a new warning.
55182
55183         unicodeio.c: mark unused parameters
55184         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55185         (fallback_failure_callback): Likewise.
55186
55187 2008-12-07  Bruno Haible  <bruno@clisp.org>
55188
55189         * gnulib-tool (func_create_testdir): When building the tests
55190         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55191         Reported by Simon Josefsson.
55192
55193 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55194
55195         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55196
55197 2008-12-06  Bruno Haible  <bruno@clisp.org>
55198
55199         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55200         Suggested by Eric Blake.
55201
55202 2008-12-06  Bruno Haible  <bruno@clisp.org>
55203
55204         Fix a c-stack test failure on MacOS X.
55205         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55206         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55207         handler for SIGBUS as well.
55208         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55209         install a signal handler for SIGBUS as well.
55210         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55211
55212 2008-12-06  Bruno Haible  <bruno@clisp.org>
55213
55214         Advocacy documentation.
55215         * doc/gnulib-intro.texi (Benefits): New section.
55216         * doc/gnulib.texi: Update.
55217
55218 2008-12-06  Bruno Haible  <bruno@clisp.org>
55219
55220         Document the 'manywarnings' module.
55221         * doc/manywarnings.texi: New file.
55222         * doc/gnulib.texi: Include it.
55223
55224 2008-12-05  Eric Blake  <ebb9@byu.net>
55225
55226         tests: silence some gcc warnings
55227         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55228         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55229         type mismatches.
55230
55231 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55232             Bruno Haible  <bruno@clisp.org>
55233
55234         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55235
55236 2008-11-29  Jim Meyering  <meyering@redhat.com>
55237
55238         unicodeio.c: mark unused parameters
55239         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55240         (fallback_failure_callback): Likewise.
55241
55242         fts: fix a thinko
55243         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55244         (set_stat_type): Return S_IF*-valued "type" directly.
55245         Prompted by James Youngman's spotting a related bug.
55246         Confirmed by further testing through find.
55247
55248         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55249         * lib/fts.c (D_TYPE): Define.
55250         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55251         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55252         (s_ifmt_shift_bits): New function.
55253         (set_stat_type): New function.
55254         (fts_build): When not calling fts_stat, call set_stat_type
55255         to propagate dirent.d_type info to fts_read caller.
55256         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55257         fts_statp->st_mode type information may be valid.
55258
55259 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55260
55261         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55262         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55263         <sds@gnu.org>.
55264
55265 2008-11-20  Bruno Haible  <bruno@clisp.org>
55266
55267         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55268         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55269         INCLUDE_NEXT.
55270         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55271         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55272         * modules/math (Makefile.am): Substitute
55273         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55274         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55275
55276 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55277             Bruno Haible  <bruno@clisp.org>
55278
55279         * lib/stdint.in.h: Define all type macros so that their expansion is
55280         a single typedef'ed token. Fixes a compilation failure in Boost which
55281         does "using ::int8_t;".
55282
55283 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55284
55285         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55286         gl_MANYWARN_ALL_GCC.
55287         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55288         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55289         * modules/manywarnings: New file.
55290         * MODULES.html.sh: Mention manywarnings module.
55291
55292 2008-11-18  Bruno Haible  <bruno@clisp.org>
55293
55294         * doc/gnulib-tool.texi (Unit tests): New section.
55295
55296 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55297
55298         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55299         paths like 'lib/po/foo.po'.
55300
55301 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55302
55303         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55304         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55305
55306 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55307
55308         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55309         parameter works.
55310
55311 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55312
55313         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55314
55315 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55316
55317         * modules/parse-duration-tests: New file.
55318         * tests/test-parse-duration.sh: New file.
55319         * tests/test-parse-duration.c: New file.
55320
55321         New module 'parse-duration'.
55322         * lib/parse-duration.h: New file.
55323         * lib/parse-duration.c: New file.
55324         * modules/parse-duration: New file.
55325
55326 2008-11-17  Bruno Haible  <bruno@clisp.org>
55327
55328         * tests/test-select-out.sh: Comment out the first pipe test.
55329         Reported by Simon Josefsson.
55330
55331 2008-11-17  Bruno Haible  <bruno@clisp.org>
55332
55333         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55334         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55335         gl_HOSTENT.
55336
55337 2008-11-17  Bruno Haible  <bruno@clisp.org>
55338
55339         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55340         -lnetwork and -lnet. Needed for Haiku and BeOS.
55341
55342 2008-11-16  Bruno Haible  <bruno@clisp.org>
55343
55344         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55345
55346 2008-11-16  Bruno Haible  <bruno@clisp.org>
55347
55348         Avoid test failure on Haiku.
55349         * tests/test-fsync.c: Include <errno.h>.
55350         (main): Don't require that fsync (0) fails.
55351
55352 2008-11-15  Bruno Haible  <bruno@clisp.org>
55353
55354         New module 'hostent'.
55355         * modules/hostent: New file.
55356         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55357
55358 2008-11-15  Bruno Haible  <bruno@clisp.org>
55359
55360         New module 'servent'.
55361         * modules/servent: New file.
55362         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55363
55364 2008-11-15  Bruno Haible  <bruno@clisp.org>
55365
55366         Avoid generating same test program with two different rules.
55367         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55368         test-frexp to test-frexp-nolibm.
55369         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55370         test-frexpl to test-frexpl-nolibm.
55371
55372 2008-11-15  Bruno Haible  <bruno@clisp.org>
55373
55374         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55375         $(FREXPL_LIBM).
55376
55377 2008-11-15  Bruno Haible  <bruno@clisp.org>
55378
55379         * lib/netdb.in.h: Activate the definitions also when the system's
55380         <netdb.h> has 'struct addrinfo'.
55381         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55382         EAI_OVERFLOW or AI_NUMERICSERV.
55383         * doc/posix-headers/netdb.texi: Document the problem.
55384
55385 2008-11-15  Bruno Haible  <bruno@clisp.org>
55386
55387         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55388
55389         Make the 'sched' module work on platforms where <sched.h> exists but
55390         is incomplete (such as Haiku).
55391         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55392         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55393         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55394         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55395         HAVE_STRUCT_SCHED_PARAM.
55396         * modules/sched (Depends-on): Add include_next.
55397         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55398         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55399         * doc/posix-headers/sched.texi: Document the issue.
55400
55401 2008-11-13  Jim Meyering  <meyering@redhat.com>
55402
55403         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55404         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55405         test would fail due to the difference in the Report bugs to ...
55406         line.  The expected address is empty, "<>", while the actual
55407         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55408
55409 2008-11-12  Bruno Haible  <bruno@clisp.org>
55410
55411         lstat: don't compile lstat.c on systems lacking lstat
55412         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55413         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55414         Reported by Daniel P. Berrange via Jim Meyering.
55415
55416 2008-11-12  Jim Meyering  <meyering@redhat.com>
55417
55418         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55419
55420 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55421
55422         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55423         instead.
55424
55425 2008-11-12  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/unicodeio.c: Include unistr.h.
55428         (utf8_wctomb): Remove function.
55429         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55430
55431 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55432
55433         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55434         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55435         <bruno@clisp.org>.
55436         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55437
55438 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55439
55440         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55441         * doc/gnulib.texi: Add section for warnings.
55442
55443 2008-11-11  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/sockets.h: Add a comment.
55446
55447 2008-11-11  Karl Berry  <karl@gnu.org>
55448
55449         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55450
55451 2008-11-11  Eric Blake  <ebb9@byu.net>
55452
55453         fdl.texi: avoid git symlinks
55454         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55455
55456 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55457
55458         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55459
55460 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55461
55462         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55463         (gl_WARN_ADD): Substitute $2 if literal.
55464
55465 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55466
55467         * m4/warning.m4: Remove.
55468
55469 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55470
55471         * m4/warnings.m4: Almost complete rewrite. :-)
55472
55473 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55474
55475         * modules/warnings: New module.
55476         * m4/warnings.m4: New file.
55477         * MODULES.html.sh: Mention warnings module.
55478         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55479         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55480
55481 2008-11-10  Eric Blake  <ebb9@byu.net>
55482
55483         fdl.texi: make a symlink to the latest version
55484         * doc/standards.texi: Revert today's earlier change.
55485         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55486         * doc/fdl.texi: ...and replace this with a symlink to the newer
55487         fdl-1.3.texi.
55488
55489 2008-11-10  Bruno Haible  <bruno@clisp.org>
55490
55491         * tests/test-select-fd.c (main): Accept the result file name as fourth
55492         argument.
55493         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55494         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55495
55496 2008-11-10  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55499         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55500         as autoconf-substituted macros.
55501         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55502         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55503         gl_NETDB_H_DEFAULTS. Set these variables.
55504         * modules/netdb (Makefile.am): Substitute these variables.
55505
55506 2008-11-10  Eric Blake  <ebb9@byu.net>
55507
55508         standards.texi: include correct file for FDL 1.3
55509         * doc/standards.texi (GNU Free Documentation License): Change
55510         include file to pull in FDL 1.3, not 1.2.
55511
55512         fdl.texi: revert accidental change to license
55513         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55514
55515 2008-11-10  Bruno Haible  <bruno@clisp.org>
55516
55517         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55518         cross-compiling guesses also when the native compile gives no result.
55519
55520 2008-11-10  Bruno Haible  <bruno@clisp.org>
55521
55522         * lib/spawni.c (__spawni): Force variable into the stack.
55523
55524 2008-11-10  Bruno Haible  <bruno@clisp.org>
55525
55526         Add support for Haiku.
55527         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55528         glibc and BeOS, but also on Haiku.
55529         * lib/fpurge.c (fpurge): Likewise.
55530         * lib/freadable.c (freadable): Likewise.
55531         * lib/freadahead.c (freadahead): Likewise.
55532         * lib/freading.c (freading): Likewise.
55533         * lib/freadptr.c (freadptr): Likewise.
55534         * lib/freadseek.c (freadptrinc): Likewise.
55535         * lib/fseeko.c (rpl_fseeko): Likewise.
55536         * lib/fseterr.c (fseterr): Likewise.
55537         * lib/fwritable.c (fwritable): Likewise.
55538         * lib/fwriting.c (fwriting): Likewise.
55539         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55540
55541 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55542
55543         * lib/config.charset: Treat Haiku like BeOS.
55544
55545 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55546
55547         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55548         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55549
55550 2008-11-08  Bruno Haible  <bruno@clisp.org>
55551
55552         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55553         AC_CACHE_CHECK.
55554
55555 2008-11-08  Bruno Haible  <bruno@clisp.org>
55556
55557         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55558
55559 2008-11-08  Bruno Haible  <bruno@clisp.org>
55560
55561         * tests/test-select-fd.c: New file.
55562         * tests/test-select-in.sh: New file.
55563         * tests/test-select-out.sh: New file.
55564         * tests/test-select-stdin.c: New file.
55565         * modules/select-tests (Files): Add the new files.
55566         (Depends-on): Add gettimeofday.
55567         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55568         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55569         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55570
55571 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55572             Bruno Haible  <bruno@clisp.org>
55573
55574         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55575
55576 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55577
55578         * build-aux/pmccabe2html: Added support for C++ source files.
55579
55580 2008-11-05  Ben Pfaff  <blp@gnu.org>
55581
55582         Fix lib/close.c build on Windows.
55583         * modules/close (Files): Add lib/w32sock.h.
55584
55585 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55586
55587         Accept Bison's NEWS format.
55588         * build-aux/announce-gen (print_news_deltas): Tweak
55589         $re_prefix.
55590
55591 2008-11-04  Bruno Haible  <bruno@clisp.org>
55592
55593         * modules/random_r (Maintainer): Add glibc.
55594
55595 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55596
55597         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55598         by karl@freefriends.org (Karl Berry).
55599         * doc/alloca.texi: Likewise.
55600         * doc/c-ctype.texi: Likewise.
55601         * doc/c-strcase.texi: Likewise.
55602         * doc/c-strcaseeq.texi: Likewise.
55603         * doc/c-strcasestr.texi: Likewise.
55604         * doc/c-strstr.texi: Likewise.
55605         * doc/c-strtod.texi: Likewise.
55606         * doc/c-strtold.texi: Likewise.
55607         * doc/ctime.texi: Likewise.
55608         * doc/error.texi: Likewise.
55609         * doc/fdl.texi: Likewise.
55610         * doc/gcd.texi: Likewise.
55611         * doc/getdate.texi: Likewise.
55612         * doc/gnulib-intro.texi: Likewise.
55613         * doc/gnulib-tool.texi: Likewise.
55614         * doc/gnulib.texi: Likewise.
55615         * doc/inet_ntoa.texi: Likewise.
55616         * doc/maintain.texi: Likewise.
55617         * doc/make-stds.texi: Likewise.
55618         * doc/quote.texi: Likewise.
55619         * doc/regexprops-generic.texi: Likewise.
55620         * doc/standards.texi: Likewise.
55621         * doc/verify.texi: Likewise.
55622         * doc/visibility.texi: Likewise.
55623         * doc/gnulib.texi (GNU Free Documentation License): Include
55624         fdl-1.3.texi instead of fdl.texi.
55625
55626 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55627
55628         * doc/fdl-1.3.texi: New file, from
55629         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55630         * modules/fdl-1.3: Add.
55631         * MODULES.html.sh: Add fdl-1.3.
55632
55633 2008-11-03  Bruno Haible  <bruno@clisp.org>
55634
55635         Make determination of absolute name of header file work with AIX xlc.
55636         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55637         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55638         preprocessing.
55639         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55640         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55641
55642 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55643
55644         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55645         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55646         <ludo@gnu.org>.
55647
55648 2008-11-02  Bruno Haible  <bruno@clisp.org>
55649
55650         Mark 'strpbrk' obsolete.
55651         * modules/strpbrk (Status, Notice): New sections.
55652         * modules/strtok_r (Depends-on): Add strpbrk.
55653
55654 2008-11-02  Bruno Haible  <bruno@clisp.org>
55655
55656         Mark 'strdup' obsolete.
55657         * modules/strdup (Status, Notice): New sections.
55658         * modules/findprog (Depends-on): Add strdup.
55659         * modules/getaddrinfo (Depends-on): Likewise.
55660         * modules/localename (Depends-on): Likewise.
55661         * modules/relocatable-lib (Depends-on): Likewise.
55662         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55663         * modules/relocatable-prog (Depends-on): Likewise.
55664         * modules/trim (Depends-on): Likewise.
55665         * modules/unictype/gen-ctype (Depends-on): Likewise.
55666         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55667
55668 2008-11-02  Bruno Haible  <bruno@clisp.org>
55669
55670         Mark 'strcspn' obsolete.
55671         * modules/strcspn (Status, Notice): New sections.
55672
55673 2008-11-02  Bruno Haible  <bruno@clisp.org>
55674
55675         Mark 'rmdir' obsolete.
55676         * modules/rmdir (Status, Notice): New sections.
55677         * modules/clean-temp (Depends-on): Add rmdir.
55678         * modules/openat (Depends-on): Likewise.
55679
55680 2008-11-02  Bruno Haible  <bruno@clisp.org>
55681
55682         Mark 'raise' obsolete.
55683         * modules/raise (Status, Notice): New sections.
55684         (Include): Specify <signal.h>.
55685         * modules/stdio (Depends-on): Add raise.
55686         * modules/write (Depends-on): Likewise.
55687
55688 2008-11-02  Bruno Haible  <bruno@clisp.org>
55689
55690         Mark 'memset' obsolete.
55691         * modules/memset (Status, Notice): New sections.
55692
55693 2008-11-02  Bruno Haible  <bruno@clisp.org>
55694
55695         Mark 'memmove' obsolete.
55696         * modules/memmove (Status, Notice): New sections.
55697         * modules/argp (Depends-on): Add memmove.
55698         * modules/argz (Depends-on): Likewise.
55699         * modules/canonicalize (Depends-on): Likewise.
55700         * modules/canonicalize-lgpl (Depends-on): Likewise.
55701         * modules/fts (Depends-on): Likewise.
55702         * modules/getcwd (Depends-on): Likewise.
55703         * modules/human (Depends-on): Likewise.
55704         * modules/regex (Depends-on): Likewise.
55705         * modules/striconveh (Depends-on): Likewise.
55706         * modules/trim (Depends-on): Likewise.
55707         * modules/unistr/u8-move (Depends-on): Likewise.
55708         * modules/unistr/u16-move (Depends-on): Likewise.
55709         * modules/unistr/u32-move (Depends-on): Likewise.
55710
55711 2008-11-02  Bruno Haible  <bruno@clisp.org>
55712
55713         Mark 'memcpy' obsolete.
55714         * modules/memcpy (Status, Notice): New sections.
55715
55716 2008-11-02  Bruno Haible  <bruno@clisp.org>
55717
55718         Mark 'memcmp' obsolete.
55719         * modules/memcmp (Status, Notice): New sections.
55720         * modules/argmatch (Depends-on): Add memchr.
55721         * modules/backupfile (Depends-on): Likewise.
55722         * modules/c-strcasestr (Depends-on): Likewise.
55723         * modules/crypto/des (Depends-on): Likewise.
55724         * modules/csharpcomp (Depends-on): Likewise.
55725         * modules/fnmatch (Depends-on): Likewise.
55726         * modules/git-merge-changelog (Depends-on): Likewise.
55727         * modules/isnand (Depends-on): Likewise.
55728         * modules/isnand-nolibm (Depends-on): Likewise.
55729         * modules/isnanf (Depends-on): Likewise.
55730         * modules/isnanf-nolibm (Depends-on): Likewise.
55731         * modules/isnanl (Depends-on): Likewise.
55732         * modules/isnanl-nolibm (Depends-on): Likewise.
55733         * modules/mbchar (Depends-on): Likewise.
55734         * modules/memcoll (Depends-on): Likewise.
55735         * modules/quotearg (Depends-on): Likewise.
55736         * modules/regex (Depends-on): Likewise.
55737         * modules/relocatable-prog (Depends-on): Likewise.
55738         * modules/same (Depends-on): Likewise.
55739         * modules/signbit (Depends-on): Likewise.
55740         * modules/strcasestr-simple (Depends-on): Likewise.
55741         * modules/unictype/gen-ctype (Depends-on): Likewise.
55742         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55743         * modules/uniname/uniname (Depends-on): Likewise.
55744         * modules/unistr/u8-cmp (Depends-on): Likewise.
55745
55746 2008-11-02  Bruno Haible  <bruno@clisp.org>
55747
55748         Mark 'memchr' obsolete.
55749         * modules/memchr (Status, Notice): New sections.
55750         * modules/argp (Depends-on): Add memchr.
55751         * modules/base64 (Depends-on): Likewise.
55752         * modules/c-strcasestr (Depends-on): Likewise.
55753         * modules/chdir-long (Depends-on): Likewise.
55754         * modules/fnmatch (Depends-on): Likewise.
55755         * modules/getsubopt (Depends-on): Likewise.
55756         * modules/git-merge-changelog (Depends-on): Likewise.
55757         * modules/glob (Depends-on): Likewise.
55758         * modules/strcasestr-simple (Depends-on): Likewise.
55759         * modules/strnlen (Depends-on): Likewise.
55760
55761 2008-11-02  Bruno Haible  <bruno@clisp.org>
55762
55763         Mark 'atexit' obsolete.
55764         * modules/atexit (Status, Notice): New sections.
55765         * modules/chdir-long (Depends-on): Add atexit.
55766         * modules/wait-process (Depends-on): Likewise.
55767
55768 2008-11-02  Bruno Haible  <bruno@clisp.org>
55769
55770         * gnulib-tool: New option --with-obsolete.
55771         (func_usage): Document it.
55772         (func_modules_transitive_closure): Drop obsolete dependencies if
55773         incobsolete is not true.
55774         (func_import): Read and save the incobsolete variable to the cache.
55775
55776 2008-11-02  Bruno Haible  <bruno@clisp.org>
55777
55778         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55779         * gnulib-tool: New option --extract-status.
55780         (func_usage): Document it.
55781         (sed_extract_prog): Recognize it.
55782         (func_get_status): New function.
55783
55784 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55785
55786         * modules/sockets (License): Change from LGPL to LGPLv2+.
55787
55788 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55789
55790         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55791
55792 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55793
55794         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55795         Mention times and sys_times.
55796         * modules/sys_times, modules/sys_times-tests: New modules.
55797         * modules/times, modules/times-tests: Likewise
55798         * m4/sys_times_h.m4: New file.
55799         * lib/sys_times.in.h: Likewise
55800         * lib/times.c: Likewise.
55801         * tests/test-sys_times.c: Likewise.
55802         * tests/test-times.c: Likewise.
55803         * doc/posix-headers/sys_times.texi: Update.
55804         * doc/posix-functions/times.texi: Update.
55805
55806 2008-10-28  Jim Meyering  <meyering@redhat.com>
55807
55808         * modules/tempname (Depends-on): Add lstat.
55809
55810         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55811
55812 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55813
55814         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55815         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55816         using idiom used elsewhere in gnulib.
55817
55818 2008-10-27  Jim Meyering  <meyering@redhat.com>
55819
55820         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55821
55822 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55823
55824         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55825         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55826         programs.
55827         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55828
55829 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55830
55831         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55832
55833 2008-10-27  Bruno Haible  <bruno@clisp.org>
55834
55835         * tests/test-lstat.c: Include <stdio.h>.
55836
55837 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55838
55839         * modules/lstat-tests: New module.
55840         * tests/test-lstat.c: New file.
55841
55842 2008-10-26  Jim Meyering  <meyering@redhat.com>
55843
55844         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55845
55846 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55847             Bruno Haible  <bruno@clisp.org>
55848
55849         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55850         * modules/configmake (Include): Add a note that the include must come
55851         after all system headers.
55852         * lib/javaversion.c: Include configmake.h after all other includes.
55853
55854 2008-10-26  Bruno Haible  <bruno@clisp.org>
55855
55856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55857         HAVE_STRUCT_RANDOM_DATA to 1.
55858         (gl_STDLIB_H): Simplify.
55859
55860 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55861
55862         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55863         substitute HAVE_STRUCT_RANDOM_DATA.
55864         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55865         random_data.
55866         * modules/stdlib (Makefile.am): Substitute
55867         HAVE_STRUCT_RANDOM_DATA.
55868
55869 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55870
55871         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55872         * doc/gnulib-intro.texi (Copyright): Likewise.
55873
55874 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55875
55876         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55877         findings.
55878
55879 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55880             Bruno Haible  <bruno@clisp.org>
55881
55882         * lib/unistd.in.h: Include <winsock2.h>.
55883         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55884         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55885         Provide dummy declarations.
55886         (gethostname): Override.
55887         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55888         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55889         gl_PREREQ_SYS_H_WINSOCK2.
55890         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55891         * doc/posix-functions/gethostname.texi: More details.
55892
55893 2008-10-25  Bruno Haible  <bruno@clisp.org>
55894
55895         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55896         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55897         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55898
55899         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55900         here ...
55901         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55902         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55903         gl_UNISTD_H_DEFAULTS.
55904
55905 2008-10-25  Eric Blake  <ebb9@byu.net>
55906
55907         signbit: avoid spurious compiler failure
55908         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55909         declarations inside function.
55910
55911 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55912             Bruno Haible  <bruno@clisp.org>
55913
55914         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55915         * modules/random_r (Depends-on): Add stdint.
55916
55917 2008-10-24  Bruno Haible  <bruno@clisp.org>
55918
55919         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55920         Eggert.
55921         * modules/strerror (License): Likewise.
55922
55923 2008-10-24  Jim Meyering  <meyering@redhat.com>
55924
55925         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55926         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55927
55928 2008-10-24  Eric Blake  <ebb9@byu.net>
55929
55930         getgroups: fix compilation when getgroups is available
55931         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55932         but with <config.h> override of getgroups disabled.
55933
55934 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55935
55936         * doc/gnulib.texi (Header files): Add note about C++ problems.
55937         Explained by Bruno Haible <bruno@clisp.org>.
55938
55939 2008-10-23  Bruno Haible  <bruno@clisp.org>
55940
55941         Define a dummy SA_NODEFER macro on Interix.
55942         * lib/signal.in.h (SA_NODEFER): Define fallback.
55943         Reported by Aleksey Cheusov <cheusov@tut.by> via
55944         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55945
55946 2008-10-23  Bruno Haible  <bruno@clisp.org>
55947
55948         * modules/freadahead (License): Change to LGPLv2+.
55949         Suggested by Simon Josefsson.
55950
55951 2008-10-23  Jim Meyering  <meyering@redhat.com>
55952
55953         random_r: new module
55954         * modules/random_r: New file.
55955         * m4/random_r.m4: New file.
55956         * lib/random_r.c: New file, from glibc.
55957         * modules/random_r-tests: New file.
55958         * tests/test-random_r.c: New file.
55959         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55960          Declare.
55961         (RAND_MAX): Define.
55962         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55963         * modules/stdlib: Substitute them, too.
55964         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55965         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55966         * doc/glibc-functions/random_r.texi: Likewise.
55967         * doc/glibc-functions/setstate_r.texi: Likewise.
55968         * doc/glibc-functions/srandom_r.texi: Likewise.
55969         * config/srclist.txt: Mention it.
55970
55971 2008-10-23  David Lutterkort  <lutter@redhat.com>
55972
55973         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55974         link requirement
55975
55976 2008-10-23  Jim Meyering  <meyering@redhat.com>
55977
55978         selinux-h: mark parameters of stub functions as intentionally unused
55979         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55980         * lib/se-context.in.h: Likewise.
55981
55982 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55983
55984         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55985
55986 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55987
55988         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55989
55990 2008-10-22  Eric Blake  <ebb9@byu.net>
55991
55992         glthread/thread: avoid compiler warning
55993         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55994         Add unreachable abort to silence compiler.
55995
55996 2008-10-22  Eric Blake  <ebb9@byu.net>
55997
55998         netdb: also supply struct addrinfo for cygwin 1.5.x
55999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
56000         older cygwin.
56001         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
56002         cygwin.
56003         * doc/posix-headers/netdb.texi (netdb.h): Document this.
56004
56005 2008-10-22  Bruno Haible  <bruno@clisp.org>
56006
56007         * users.txt: Update entry about pspp.
56008
56009 2008-10-21  Bruno Haible  <bruno@clisp.org>
56010
56011         Simplification.
56012         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
56013         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
56014
56015         Simplification.
56016         * lib/ioctl.c (ioctl): Don't undefine.
56017         * lib/socket.c (socket): Don't undefine.
56018
56019         Remove unused module indicator macros.
56020         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
56021         GNULIB_$1 as a C macro.
56022
56023         * doc/posix-functions/close.texi: Undo last change.
56024         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
56025         Windows platforms.
56026
56027 2008-10-21  Bruno Haible  <bruno@clisp.org>
56028
56029         Add gethostname() declaration to <unistd.h>.
56030         * lib/unistd.in.h (gethostname): New declaration.
56031         * lib/gethostname.c: Include <unistd.h>.
56032         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
56033         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
56034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
56035         and HAVE_GETHOSTNAME.
56036         * modules/gethostname (Depends-on): Add unistd.
56037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56038         (Include): Specify <unistd.h>.
56039         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
56040         HAVE_GETHOSTNAME.
56041         * tests/test-gethostname.c: Include <unistd.h> first.
56042
56043 2008-10-21  Bruno Haible  <bruno@clisp.org>
56044
56045         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
56046         * modules/select-tests (Depends-on): Likewise.
56047         Reported by Simon Josefsson.
56048
56049 2008-10-21  Simon Josefsson  <simon@josefsson.org>
56050
56051         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
56052         * lib/accept.c: New file, based on winsock.c.
56053         * lib/bind.c: New file, based on winsock.c.
56054         * lib/connect.c: New file, based on winsock.c.
56055         * lib/getpeername.c: New file, based on winsock.c.
56056         * lib/getsockname.c: New file, based on winsock.c.
56057         * lib/getsockopt.c: New file, based on winsock.c.
56058         * lib/ioctl.c: New file, based on winsock.c.
56059         * lib/listen.c: New file, based on winsock.c.
56060         * lib/recv.c: New file, based on winsock.c.
56061         * lib/recvfrom.c: New file, based on winsock.c.
56062         * lib/send.c: New file, based on winsock.c.
56063         * lib/sendto.c: New file, based on winsock.c.
56064         * lib/setsockopt.c: New file, based on winsock.c.
56065         * lib/shutdown.c: New file, based on winsock.c.
56066         * lib/socket.c: New file, based on winsock.c.
56067         * lib/w32sock.h: New file, based on winsock.c.
56068         * lib/winsock.c: Remove file.
56069         * modules/accept: Likewise.
56070         * modules/bind: Likewise.
56071         * modules/connect: Likewise.
56072         * modules/getpeername: Likewise.
56073         * modules/getsockname: Likewise.
56074         * modules/getsockopt: Likewise.
56075         * modules/ioctl: Likewise.
56076         * modules/listen: Likewise.
56077         * modules/recv: Likewise.
56078         * modules/recvfrom: Likewise.
56079         * modules/send: Likewise.
56080         * modules/sendto: Likewise.
56081         * modules/setsockopt: Likewise.
56082         * modules/shutdown: Likewise.
56083         * modules/socket: Use socket.c instead of winsock.c.
56084         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56085         * doc/posix-functions/accept.texi: Doc fix.
56086         * doc/posix-functions/bind.texi: Doc fix.
56087         * doc/posix-functions/close.texi: Doc fix.
56088         * doc/posix-functions/connect.texi: Doc fix.
56089         * doc/posix-functions/getpeername.texi: Doc fix.
56090         * doc/posix-functions/getsockname.texi: Doc fix.
56091         * doc/posix-functions/getsockopt.texi: Doc fix.
56092         * doc/posix-functions/ioctl.texi: Doc fix.
56093         * doc/posix-functions/listen.texi: Doc fix.
56094         * doc/posix-functions/recv.texi: Doc fix.
56095         * doc/posix-functions/recvfrom.texi: Doc fix.
56096         * doc/posix-functions/send.texi: Doc fix.
56097         * doc/posix-functions/sendto.texi: Doc fix.
56098         * doc/posix-functions/setsockopt.texi: Doc fix.
56099         * doc/posix-functions/shutdown.texi: Doc fix.
56100         * doc/posix-functions/socket.texi: Doc fix.
56101
56102 2008-10-20  Bruno Haible  <bruno@clisp.org>
56103
56104         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56105         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56106         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56107         as an alias for SIGABRT.
56108         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56109         (sigaction): Map it to SIGABRT.
56110         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56111
56112 2008-10-20  Bruno Haible  <bruno@clisp.org>
56113
56114         * lib/fts.c: Don't include lstat.h.
56115         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56116
56117         Move the lstat() declaration to <sys/stat.h>.
56118         * lib/lstat.h: Remove file.
56119         * lib/sys_stat.in.h: Add special invocation convention.
56120         (lstat): New declaration.
56121         * lib/lstat.c (orig_lstat): New function.
56122         (rpl_lstat): Use orig_lstat instead of lstat.
56123         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56124         AC_C_INLINE. Set REPLACE_LSTAT.
56125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56126         and REPLACE_LSTAT.
56127         * modules/lstat (Files): Remove lib/lstat.h.
56128         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56129         (Include): Specify <sys/stat.h> instead of lstat.h.
56130         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56131         REPLACE_LSTAT.
56132         * NEWS: Mention the change.
56133
56134 2008-10-20  Bruno Haible  <bruno@clisp.org>
56135
56136         * modules/posix_spawn-tests: New file.
56137         * tests/test-posix_spawn3.c: New file.
56138
56139 2008-10-20  Bruno Haible  <bruno@clisp.org>
56140
56141         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56142         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56143         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56144         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56145         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56146
56147 2008-10-20  Bruno Haible  <bruno@clisp.org>
56148
56149         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56150         of posix_spawn on AIX 5.3.
56151
56152 2008-10-20  Bruno Haible  <bruno@clisp.org>
56153
56154         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56155
56156 2008-10-20  Bruno Haible  <bruno@clisp.org>
56157
56158         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56159         of AC_LANG_PROGRAM.
56160
56161 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56162
56163         * lib/netdb.in.h: Don't define GNU specific constants until they
56164         are supported or needed.  Reported by Bruno Haible
56165         <bruno@clisp.org>.
56166
56167 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56168
56169         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56170
56171 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56172
56173         * lib/getaddrinfo.h: Remove file.
56174         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56175         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56176         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56177         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56178         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56179         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56180         * tests/test-getaddrinfo.c: Likewise.
56181         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56182         * NEWS: Mention change.
56183
56184 2008-10-19  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56187
56188 2008-10-19  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/wait-process.c: Include simply <sys/wait.h>.
56191         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56192         WIFSTOPPED): Remove fallback definitions.
56193         * modules/wait-process (Depends-on): Add sys_wait.
56194
56195         New module 'sys_wait'.
56196         * modules/sys_wait: New file.
56197         * lib/sys_wait.in.h: New file, partially copied from
56198         lib/wait-process.c.
56199         * m4/sys_wait_h.m4: New file.
56200         * doc/posix-headers/sys_wait.texi: Mention the new module.
56201
56202 2008-10-19  Bruno Haible  <bruno@clisp.org>
56203
56204         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56205
56206 2008-10-19  Bruno Haible  <bruno@clisp.org>
56207
56208         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56209         * lib/wait-process.c (WAIT_T): Remove type.
56210         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56211         (wait_subprocess): Update.
56212
56213 2008-10-19  Bruno Haible  <bruno@clisp.org>
56214
56215         New module 'atoll'.
56216         * modules/atoll: New file.
56217         * lib/stdlib.in.h (atoll): New declaration.
56218         * lib/atoll.c: New file, from glibc with modifications.
56219         * m4/atoll.m4: New file.
56220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56221         HAVE_ATOLL.
56222         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56223         * doc/posix-functions/atoll.texi: Mention the new module.
56224
56225 2008-10-19  Bruno Haible  <bruno@clisp.org>
56226
56227         Add strtoull() declaration to <stdlib.h>.
56228         * lib/stdlib.in.h (strtoull): New declaration.
56229         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56230         Set HAVE_STRTOULL.
56231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56232         HAVE_STRTOULL.
56233         * modules/strtoull (Depends-on): Add stdlib.
56234         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56235         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56236         HAVE_STRTOULL.
56237
56238 2008-10-19  Bruno Haible  <bruno@clisp.org>
56239
56240         Add strtoll() declaration to <stdlib.h>.
56241         * lib/stdlib.in.h (strtoll): New declaration.
56242         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56243         Set HAVE_STRTOLL.
56244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56245         HAVE_STRTOLL.
56246         * modules/strtoll (Depends-on): Add stdlib.
56247         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56248         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56249
56250 2008-10-19  Bruno Haible  <bruno@clisp.org>
56251
56252         * modules/bcopy (Depends-on): Add strings.
56253         (Include): Specify <strings.h>.
56254
56255 2008-10-19  Bruno Haible  <bruno@clisp.org>
56256
56257         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56258
56259 2008-10-19  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56262         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56263         mingw.
56264
56265 2008-10-19  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/atanl.c: Don't include isnanl.h.
56268         * lib/cosl.c: Likewise.
56269         * lib/ldexpl.c: Likewise.
56270         * lib/logl.c: Likewise.
56271         * lib/sinl.c: Likewise.
56272         * lib/sqrtl.c: Likewise.
56273         * lib/tanl.c: Likewise.
56274
56275         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56276         * lib/isnanf.h: Remove file.
56277         * lib/isnand.h: Remove file.
56278         * lib/isnanl.h: Remove file.
56279         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56280         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56281         macros.
56282         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56283         HAVE_ISNANF, don't define it as a C macro.
56284         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56285         HAVE_ISNAND, don't define it as a C macro.
56286         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56287         HAVE_ISNANL, don't define it as a C macro.
56288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56289         HAVE_ISNAN[FDL].
56290         * modules/isnanf (Files): Remove lib/isnanf.h.
56291         (Depends-on): Add math.
56292         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56293         (Include): Specify <math.h> instead of isnanf.h.
56294         * modules/isnand (Files): Remove lib/isnand.h.
56295         (Depends-on): Add math.
56296         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56297         (Include): Specify <math.h> instead of isnand.h.
56298         * modules/isnanl (Files): Remove lib/isnanl.h.
56299         (Depends-on): Add math.
56300         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56301         (Include): Specify <math.h> instead of isnanl.h.
56302         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56303         HAVE_ISNAN[FDL].
56304         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56305         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56306         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56307         * NEWS: Mention the change.
56308
56309 2008-10-18  Bruno Haible  <bruno@clisp.org>
56310
56311         Add getusershell(), setusershell(), endusershell() declarations to
56312         <unistd.h>.
56313         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56314         declarations.
56315         * lib/getusershell.c: Include unistd.h.
56316         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56317         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56318         HAVE_GETUSERSHELL.
56319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56320         and HAVE_GETUSERSHELL.
56321         * modules/getusershell (Depends-on): Add unistd, extensions.
56322         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56323         (Include): Specify <unistd.h>.
56324         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56325         HAVE_GETUSERSHELL.
56326
56327 2008-10-18  Bruno Haible  <bruno@clisp.org>
56328
56329         Add a getloadavg() declaration to <stdlib.h>.
56330         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56331         getloadavg declaration.
56332         (getloadavg): New declaration.
56333         * lib/getloadavg.c: Include <stdlib.h> first.
56334         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56335         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56336         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56338         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56339         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56340         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56341         (Include): Specify <stdlib.h>.
56342         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56343         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56344
56345 2008-10-18  Bruno Haible  <bruno@clisp.org>
56346
56347         * lib/dirchownmod.c: Don't include lchmod.h.
56348
56349         Move the lchmod() declaration to <sys/stat.h>.
56350         * lib/lchmod.h: Remove file.
56351         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56352         (lchmod): New declaration, moved here from lib/lchown.h.
56353         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56354         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56355         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56356         and HAVE_LCHMOD.
56357         * modules/lchmod (Files): Remove lib/lchmod.h.
56358         (Depends-on): Add sys_stat, extensions.
56359         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56360         (Include): Specify <sys/stat.h> instead of lchmod.h.
56361         * modules/sys_stat (Depends-on): Add link-warning.
56362         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56363         definition of GL_LINK_WARNING.
56364         * NEWS: Mention the change.
56365
56366 2008-10-18  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/fchdir.c: Don't include dirfd.h.
56369         * lib/fts.c: Likewise.
56370         * lib/getcwd.c: Likewise.
56371         * lib/glob.c: Likewise.
56372
56373         Move the dirfd() declaration to <dirent.h>.
56374         * lib/dirfd.h: Remove file.
56375         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56376         (dirfd): New declaration.
56377         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56378         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56379         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56380         HAVE_DECL_DIRFD.
56381         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56382         HAVE_DECL_DIRFD.
56383         * modules/dirfd (Files): Remove lib/dirfd.h.
56384         (Depends-on): Add dirent, extensions.
56385         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56386         (Include): Specify <dirent.h> instead of dirfd.h.
56387         * modules/dirent (Depends-on): Add link-warning.
56388         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56389         definition of GL_LINK_WARNING.
56390         * NEWS: Mention the change.
56391
56392 2008-10-18  Bruno Haible  <bruno@clisp.org>
56393
56394         Move the euidaccess() declaration to <unistd.h>.
56395         * lib/euidaccess.h: Remove file.
56396         * lib/unistd.in.h (euidaccess): New declaration.
56397         * lib/euidaccess.c: Don't include euidaccess.h.
56398         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56399         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56401         and HAVE_EUIDACCESS.
56402         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56403         (Depends-on): Add unistd.
56404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56405         (Include): Specify <unistd.h> instead of euidaccess.h.
56406         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56407         HAVE_EUIDACCESS.
56408         * NEWS: Mention the change.
56409
56410 2008-10-18  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56413
56414         Move the getdomainname() declaration to <unistd.h>.
56415         * lib/getdomainname.h: Remove file.
56416         * lib/unistd.in.h (getdomainname): New declaration.
56417         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56418         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56419         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56420         HAVE_GETDOMAINNAME.
56421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56422         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56423         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56424         (Depends-on): Add unistd, extensions.
56425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56426         (Includes): Specify <unistd.h> instead of getdomainname.h.
56427         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56428         HAVE_GETDOMAINNAME.
56429         * NEWS: Mention the change.
56430
56431 2008-10-18  Bruno Haible  <bruno@clisp.org>
56432
56433         * modules/dirent: New file.
56434         * m4/dirent_h.m4: New file.
56435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56436         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56437         * modules/fchdir (Files): Remove lib/dirent.in.h.
56438         (Depends-on): Add dirent.
56439         (Makefile.am): Move rules to modules/dirent.
56440         * doc/posix-headers/dirent.texi: Mention the new module.
56441
56442 2008-10-18  Bruno Haible  <bruno@clisp.org>
56443
56444         Avoid -Wunused-parameter warnings in public gnulib header files.
56445         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56446         macro.
56447         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56448
56449 2008-10-18  Bruno Haible  <bruno@clisp.org>
56450
56451         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56452         * doc/glibc-functions/error.texi: Mention the module 'error'.
56453         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56454         * doc/glibc-functions/getdomainname.texi: Mention the module
56455         'getdomainname'.
56456         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56457         * doc/glibc-functions/getpagesize.texi: Mention the module
56458         'getpagesize'.
56459         * doc/glibc-functions/getusershell.texi: Mention the module
56460         'getusershell'.
56461         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56462         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56463         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56464         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56465         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56466         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56467         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56468         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56469         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56470         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56471         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56472         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56473         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56474         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56475
56476 2008-10-17  Bruno Haible  <bruno@clisp.org>
56477
56478         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56479         HP-UX and IRIX, use -0.0L.
56480         * tests/test-ceill.c (minus_zero): Likewise.
56481         * tests/test-floorl.c (minus_zero): Likewise.
56482         * tests/test-frexpl.c (minus_zero): Likewise.
56483         * tests/test-isnan.c (minus_zerol): Likewise.
56484         * tests/test-isnanl.h (minus_zero): Likewise.
56485         * tests/test-ldexpl.c (minus_zero): Likewise.
56486         * tests/test-roundl.c (minus_zero): Likewise.
56487         * tests/test-signbit.c (minus_zerol): Likewise.
56488         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56489         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56490         * tests/test-truncl.c (minus_zero): Likewise.
56491         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56492         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56493         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56494         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56495
56496 2008-10-17  Bruno Haible  <bruno@clisp.org>
56497
56498         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56499         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56500         that it gets activated only for gcc >= 3.0.
56501         * lib/dirent.in.h: Likewise.
56502         * lib/errno.in.h: Likewise.
56503         * lib/fcntl.in.h: Likewise.
56504         * lib/float.in.h: Likewise.
56505         * lib/iconv.in.h: Likewise.
56506         * lib/inttypes.in.h: Likewise.
56507         * lib/locale.in.h: Likewise.
56508         * lib/math.in.h: Likewise.
56509         * lib/netdb.in.h: Likewise.
56510         * lib/netinet_in.in.h: Likewise.
56511         * lib/search.in.h: Likewise.
56512         * lib/signal.in.h: Likewise.
56513         * lib/spawn.in.h: Likewise.
56514         * lib/stdarg.in.h: Likewise.
56515         * lib/stdint.in.h: Likewise.
56516         * lib/stdio.in.h: Likewise.
56517         * lib/stdlib.in.h: Likewise.
56518         * lib/string.in.h: Likewise.
56519         * lib/strings.in.h: Likewise.
56520         * lib/sys_file.in.h: Likewise.
56521         * lib/sys_ioctl.in.h: Likewise.
56522         * lib/sys_select.in.h: Likewise.
56523         * lib/sys_socket.in.h: Likewise.
56524         * lib/sys_stat.in.h: Likewise.
56525         * lib/sys_time.in.h: Likewise.
56526         * lib/sysexits.in.h: Likewise.
56527         * lib/time.in.h: Likewise.
56528         * lib/unistd.in.h: Likewise.
56529         * lib/wchar.in.h: Likewise.
56530         * lib/wctype.in.h: Likewise.
56531         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56532
56533 2008-10-17  Jim Meyering  <meyering@redhat.com>
56534
56535         ignore-value: don't depend on inline module
56536         * modules/ignore-value (Depends-on): Remove 'inline'.
56537         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56538         Suggestion from Bruno Haible.
56539
56540 2008-10-17  Bruno Haible  <bruno@clisp.org>
56541
56542         New implementation of condition variables for Win32.
56543         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56544         (gl_linked_waitqueue_t): New type.
56545         (gl_cond_t): Use it.
56546         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56547         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56548         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56549         (glthread_cond_init_func, glthread_cond_wait_func,
56550         glthread_cond_timedwait_func, glthread_cond_signal_func,
56551         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56552         Reimplemented on the basis of gl_linked_waitqueue_t.
56553         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56554         gl_waitqueue_t.
56555         (gl_rwlock_t): Update.
56556         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56557
56558 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56559
56560         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56561         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56562
56563 2008-10-17  Jim Meyering  <meyering@redhat.com>
56564
56565         ignore-value: new module
56566         * modules/ignore-value: New file.
56567         * lib/ignore-value.h: New file.
56568         * MODULES.html.sh (Compiler warning management): New section,
56569         just for this module.  More to come.
56570
56571 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56572
56573         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56574         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56575         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56576
56577 2008-10-16  Jim Meyering  <meyering@redhat.com>
56578
56579         openat-die.c: avoid 'no previous prototype' warning
56580         * lib/openat-die.c: Include "openat.h".
56581         Reported by Reuben Thomas <rrt@sc3d.org>.
56582
56583 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56584
56585         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56586         * lib/netdb.in.h: Fix typo.
56587         Reported by Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/netdb.in.h: Include sys/socket.h for platforms without
56590         netdb.h, to get structures like hostent on MinGW.
56591         * modules/netdb (Depends-on): Add sys_socket.
56592
56593 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56594
56595         * modules/netdb, modules/netdb-tests: New file.
56596         * m4/netdb_h.m4: New file.
56597         * lib/netdb.in.h: Add, currently just an empty file pending
56598         definitions.
56599         * tests/test-netdb.c: New file.
56600         * doc/posix-headers/netdb.texi: Mention that we replace it if
56601         needed.
56602         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56603         netdb.
56604
56605 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56606
56607         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56608         with code.
56609
56610 2008-10-13  Bruno Haible  <bruno@clisp.org>
56611
56612         * lib/glthread/cond.c (glthread_cond_wait_func,
56613         glthread_cond_timedwait_func): Add a comment.
56614
56615 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56616
56617         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56618         * tests/test-select.c: Likewise,
56619
56620 2008-10-13  Bruno Haible  <bruno@clisp.org>
56621
56622         * lib/glthread/cond.c (glthread_cond_wait_func,
56623         glthread_cond_timedwait_func): Fix variable name.
56624         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56625
56626 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56627
56628         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56629         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56630         struct sockaddr.sa_len.
56631         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56632
56633 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56634
56635         * build-aux/pmccabe2html: Add css and css_url parameters.
56636
56637 2008-10-12  Bruno Haible  <bruno@clisp.org>
56638
56639         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56640         calling aclx_get.
56641         Reported by Rainer Tammer <tammer@tammer.net>.
56642
56643 2008-10-12  Bruno Haible  <bruno@clisp.org>
56644
56645         Use msvcrt aware primitives for creation/termination of Win32 threads.
56646         * lib/glthread/thread.c: Include <process.h>.
56647         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56648         (wrapper_func): Update signature.
56649         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56650
56651 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56652             Bruno Haible  <bruno@clisp.org>
56653
56654         Provide a Win32 implementation of the 'cond' module.
56655         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56656         * lib/glthread/cond.c (glthread_cond_init_func,
56657         glthread_cond_wait_func, glthread_cond_timedwait_func,
56658         glthread_cond_signal_func, glthread_cond_broadcast_func,
56659         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56660         * modules/cond (Dependencies): Add gettimeofday.
56661
56662 2008-10-11  Bruno Haible  <bruno@clisp.org>
56663
56664         Make sleep work on older versions of mingw.
56665         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56666         only whether it exists.
56667         * doc/posix-functions/sleep.texi: Mention the problem with older
56668         versions of mingw.
56669
56670 2008-10-11  Bruno Haible  <bruno@clisp.org>
56671
56672         New module 'shutdown'.
56673         * modules/shutdown: New file.
56674         * lib/sys_socket.in.h (shutdown): New declaration.
56675         * lib/winsock.c (shutdown): New function.
56676         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56677         GNULIB_SHUTDOWN.
56678         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56679         * doc/posix-functions/shutdown.texi: Document the new module.
56680
56681 2008-10-11  Jim Meyering  <meyering@redhat.com>
56682
56683         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56684
56685 2008-10-11  Bruno Haible  <bruno@clisp.org>
56686
56687         New module 'fclose'.
56688         * modules/fclose: New file.
56689         * lib/stdio.in.h (fclose): New declaration.
56690         * lib/fclose.c: New file.
56691         * m4/fclose.m4: New file.
56692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56693         REPLACE_FCLOSE.
56694         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56695         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56696         REPLACE_FCLOSE.
56697         * modules/close (Depends-on): fclose.
56698         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56699
56700 2008-10-11  Bruno Haible  <bruno@clisp.org>
56701
56702         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56703         set errno and don't call _close.
56704
56705 2008-10-10  Bruno Haible  <bruno@clisp.org>
56706
56707         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56708         ACL, not afterwards. Fixes test failure on Cygwin.
56709
56710 2008-10-09  Ben Pfaff  <blp@gnu.org>
56711
56712         * build-aux/announce-gen: Fix gnulib version related part of usage
56713         message.  Die with a useful error message if no tarballs are
56714         found.
56715
56716 2008-10-10  Jim Meyering  <meyering@redhat.com>
56717
56718         bootstrap: use git's --depth=N option only if it's supported
56719         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56720         recognize the --depth option.  Reported by Pádraig Brady.
56721
56722 2008-10-09  Bruno Haible  <bruno@clisp.org>
56723
56724         New module 'ioctl'.
56725         * modules/ioctl: New file.
56726         * lib/sys_socket.in.h (ioctl): Remove declaration.
56727         * lib/winsock.c: Include <sys/ioctl.h>.
56728         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56729         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56730         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56731         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56732         * doc/posix-functions/ioctl.texi: Mention the new module.
56733
56734 2008-10-09  Bruno Haible  <bruno@clisp.org>
56735
56736         New module 'sys_ioctl'.
56737         * lib/sys_ioctl.in.h: New file.
56738         * m4/sys_ioctl_h.m4: New file.
56739         * modules/sys_ioctl: New file.
56740         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56741
56742 2008-10-09  Bruno Haible  <bruno@clisp.org>
56743
56744         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56745         * lib/winsock.c: Include <stdarg.h>.
56746         (rpl_ioctl): Change to second argument 'int' and then varargs.
56747
56748 2008-10-09  Bruno Haible  <bruno@clisp.org>
56749
56750         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56751         when the sys_socket module is present and the system has <winsock2.h>.
56752
56753 2008-10-09  Bruno Haible  <bruno@clisp.org>
56754
56755         * doc/posix-functions/close.texi: Mention module 'close' instead of
56756         module 'sys_socket'.
56757
56758 2008-10-09  Bruno Haible  <bruno@clisp.org>
56759
56760         * doc/glibc-headers/sys_ioctl.texi: New file.
56761         * doc/gnulib.texi: Include it.
56762
56763 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56764             Bruno Haible  <bruno@clisp.org>
56765
56766         Combine the two replacements of 'close'.
56767         * lib/sys_socket.in.h (close): Define to a reminder to include
56768         <unistd.h>.
56769         (_gl_close_fd_maybe_socket): New declaration.
56770         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56771         * lib/winsock.c (close): Remove undefinition.
56772         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56773         needed for the gnulib module 'close'.
56774         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56775         define to an error symbol or to a warning, if suitable.
56776         * lib/close.c: Include <sys/socket.h>.
56777         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56778         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56779         UNISTD_H_HAVE_WINSOCK2_H.
56780         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56782         UNISTD_H_HAVE_WINSOCK2_H.
56783         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56784         (configure.ac): Set a module indicator.
56785         (Makefile.am): Substitute GNULIB_CLOSE.
56786         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56787         * modules/poll-tests (Depends-on): Add close.
56788         * modules/select-tests (Depends-on): Likewise.
56789
56790 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56791             Bruno Haible  <bruno@clisp.org>
56792
56793         New module 'close'.
56794         * modules/close: New file.
56795         * lib/unistd.in.h (close): Move declaration out of the
56796         FCHDIR_REPLACEMENT scope.
56797         (_gl_unregister_fd): New declaration.
56798         * lib/close.c: New file.
56799         * lib/fchdir.c (rpl_close): Remove function.
56800         * m4/close.m4: New file.
56801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56802         close.
56803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56804         REPLACE_CLOSE.
56805         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56806         REPLACE_CLOSE.
56807         * modules/fchdir (Depends-on): Add close.
56808
56809 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56810             Bruno Haible  <bruno@clisp.org>
56811
56812         * lib/fcntl.in.h (open): Simplify conditionals.
56813         (_gl_register_fd): New declaration.
56814         * lib/fchdir.c (rpl_open): Remove function.
56815         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56816         also.
56817         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56819         open.
56820
56821 2008-10-09  Jim Meyering  <meyering@redhat.com>
56822
56823         GNUmakefile: use the more name-space-friendly "_version"
56824         * top/GNUmakefile (_dummy): Update.
56825         (_version): Rename from "version".
56826
56827 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56828             Bruno Haible  <bruno@clisp.org>
56829
56830         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56831         rpl_close.
56832         (_gl_register_fd): New function, extracted from rpl_open.
56833         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56834         (rpl_open, rpl_opendir): Use _gl_register_fd.
56835
56836 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56837
56838         Fix organization of 'open' replacement.
56839         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56840         (gl_FUNC_OPEN): Use it.
56841         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56842
56843 2008-10-08  Bruno Haible  <bruno@clisp.org>
56844
56845         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56846
56847 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56848
56849         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56850         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56851         listen).
56852
56853 2008-10-08  Eric Blake  <ebb9@byu.net>
56854
56855         GNUmakefile: add 'make version' target
56856         * top/GNUmakefile (_curr-ver): Split version update rules...
56857         (version): ...into a target.
56858
56859 2008-10-07  Bruno Haible  <bruno@clisp.org>
56860
56861         Use a more portable replacement expression for -0.0L.
56862         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56863         instead of -0.0L. Fix m4 quotation.
56864
56865         * tests/test-signbit.c: Include <float.h>.
56866         (minus_zero): New variable.
56867         (test_signbitl): Use minus_zero instead of -zero.
56868         * modules/signbit-tests (Depends-on): Add float.
56869
56870         * tests/test-ceill.c: Include <float.h>.
56871         (zero): Remove variable.
56872         (minus_zero): New variable.
56873         (main): Use minus_zero instead of -zero.
56874         * modules/ceill-tests (Depends-on): Add float.
56875
56876         * tests/test-floorl.c: Include <float.h>.
56877         (zero): Remove variable.
56878         (minus_zero): New variable.
56879         (main): Use minus_zero instead of -zero.
56880         * modules/floorl-tests (Depends-on): Add float.
56881
56882         * tests/test-roundl.c: Include <float.h>.
56883         (zero): Remove variable.
56884         (minus_zero): New variable.
56885         (main): Use minus_zero instead of -zero.
56886         * modules/roundl-tests (Depends-on): Add float.
56887
56888         * tests/test-truncl.c: Include <float.h>.
56889         (zero): Remove variable.
56890         (minus_zero): New variable.
56891         (main): Use minus_zero instead of -zero.
56892         * modules/truncl-tests (Depends-on): Add float.
56893
56894         * tests/test-frexpl.c (zero): Remove variable.
56895         (minus_zero): New variable.
56896         (main): Use minus_zero instead of -zero.
56897         * modules/frexpl-tests (Depends-on): Add float.
56898
56899         * tests/test-isnan.c (zerol): Remove variable.
56900         (minus_zerol): New variable.
56901         (test_long_double): Use minus_zerol instead of -zerol.
56902         * modules/isnan-tests (Depends-on): Add float.
56903
56904         * tests/test-isnanl.h (zero): Remove variable.
56905         (minus_zero): New variable.
56906         (main): Use minus_zero instead of -zero.
56907         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56908         * modules/isnanl-tests (Depends-on): Add float.
56909
56910         * tests/test-ldexpl.c (zero): Remove variable.
56911         (minus_zero): New variable.
56912         (main): Use minus_zero instead of -zero.
56913         * modules/ldexpl-tests (Depends-on): Add float.
56914
56915         * tests/test-snprintf-posix.h (zerol): Remove variable.
56916         (minus_zerol): New variable.
56917         (test_function): Use minus_zerol instead of -zerol.
56918         * modules/snprintf-posix-tests (Depends-on): Add float.
56919         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56920
56921         * tests/test-sprintf-posix.h (zerol): Remove variable.
56922         (minus_zerol): New variable.
56923         (test_function): Use minus_zerol instead of -zerol.
56924         * modules/sprintf-posix-tests (Depends-on): Add float.
56925         * modules/vsprintf-posix-tests (Depends-on): Add float.
56926
56927         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56928         (minus_zerol): New variable.
56929         (test_function): Use minus_zerol instead of -zerol.
56930         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56931
56932         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56933         (minus_zerol): New variable.
56934         (test_function): Use minus_zerol instead of -zerol.
56935         * modules/vasprintf-posix-tests (Depends-on): Add float.
56936
56937 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56938
56939         * MODULES.html.sh (Support for building documentation): Mention
56940         pmccabe2html.  Sort entries.
56941
56942         Add pmccabe2html module, from gnupdf.
56943         * build-aux/pmccabe.css: New file.
56944         * build-aux/pmccabe2html: New file.
56945         * m4/pmccabe2html.m4: New file.
56946         * modules/pmccabe2html: New file.
56947
56948 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56949
56950         flock: new module
56951         * MODULES.html.sh: Add to list of modules.
56952         * lib/flock.c: flock implementation for Windows and Unix systems
56953         which have fcntl.
56954         * doc/glibc-functions/flock.texi: Update documentation.
56955         * lib/sys_file.in.h: <sys/file.h> header file.
56956         * m4/flock.m4: M4 macros.
56957         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56958         * modules/flock: flock module.
56959         * modules/flock-tests: flock tests module.
56960         * modules/sys_file: sys/file.h module.
56961         * tests/test-flock.c: test suite for flock.
56962
56963 2008-10-06  Jim Meyering  <meyering@redhat.com>
56964
56965         bootstrap: check for LT_INIT more portably still ;-)
56966         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56967         Spotted by Bruno Haible.
56968
56969 2008-10-06  Eric Blake  <ebb9@byu.net>
56970
56971         test-signbit: avoid tripping Irix cc bug on -0.0L
56972         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56973         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56974         entire testsuite consistent and avoids an Irix 6.2 bug.
56975
56976 2008-10-05  Bruno Haible  <bruno@clisp.org>
56977             Jim Meyering  <jim@meyering.net>
56978
56979         Add an option for ignoring EPIPE during close_stdout.
56980         * lib/closeout.h: Include <stdbool.h>.
56981         (close_stdout_set_ignore_EPIPE): New declaration.
56982         * lib/closeout.c: Include <stdbool.h>.
56983         (ignore_EPIPE): New variable.
56984         (close_stdout_set_ignore_EPIPE): New function.
56985         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56986         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56987         failure.
56988         * modules/closeout (Depends-on): Add stdbool.
56989
56990 2008-10-05  Bruno Haible  <bruno@clisp.org>
56991
56992         * modules/accept: New file.
56993         * modules/bind: New file.
56994         * modules/connect: New file.
56995         * modules/getpeername: New file.
56996         * modules/getsockname: New file.
56997         * modules/getsockopt: New file.
56998         * modules/listen: New file.
56999         * modules/recv: New file.
57000         * modules/recvfrom: New file.
57001         * modules/send: New file.
57002         * modules/sendto: New file.
57003         * modules/setsockopt: New file.
57004         * modules/socket: New file.
57005         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
57006         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
57007         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
57008         the particular module is requested. Add a link warning when the
57009         particular module is not requested.
57010         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
57011         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
57012         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
57013         the particular module is requested.
57014         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
57015         gl_SYS_SOCKET_H_DEFAULTS): New macros.
57016         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
57017         * modules/sys_socket (Depends-on): Add link-warning.
57018         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
57019         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
57020         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
57021         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
57022         GL_LINK_WARNING.
57023         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
57024         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
57025         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
57026         * doc/posix-functions/getpeername.texi: Mention the new module
57027         'getpeername'.
57028         * doc/posix-functions/getsockname.texi: Mention the new module
57029         'getsockname'.
57030         * doc/posix-functions/getsockopt.texi: Mention the new module
57031         'getsockopt'.
57032         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
57033         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
57034         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
57035         * doc/posix-functions/send.texi: Mention the new module 'send'.
57036         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
57037         * doc/posix-functions/setsockopt.texi: Mention the new module
57038         'setsockopt'.
57039         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
57040         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
57041         listen, connect, accept.
57042         * modules/select-tests (Depends-on): Likewise.
57043
57044 2008-10-05  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/winsock.c (strerror): Remove unused #undef.
57047         (rpl_close): Remove unused local variable.
57048
57049         * modules/sys_socket (Depends-on); Add errno.
57050
57051 2008-10-05  Bruno Haible  <bruno@clisp.org>
57052
57053         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
57054         (select): Add a link warning when the 'select' module is not used.
57055         * modules/sys_select (Depends-on): Add link-warning.
57056         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
57057         Suggested by Paolo Bonzini.
57058
57059 2008-10-05  Jim Meyering  <meyering@redhat.com>
57060
57061         bootstrap: check for LT_INIT more portably
57062         * build-aux/bootstrap: Avoid using grep -E, since it's not
57063         portable enough.  Suggestion from Bruno Haible.
57064
57065 2008-10-05  Bruno Haible  <bruno@clisp.org>
57066
57067         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
57068         as being fixed by gnulib.
57069
57070 2008-10-05  Bruno Haible  <bruno@clisp.org>
57071
57072         * modules/select-tests: New file, mostly copied from
57073         modules/sys_select-tests.
57074         * tests/test-select.c: New file, mostly copied from
57075         tests/test-sys_select.c.
57076         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57077         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57078         (Makefile.am): Remove test_sys_select_LDADD.
57079
57080         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57081         to an undefined symbol, for an error message.
57082         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57083         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57084         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57085         winsock-select.c here.
57086         * modules/sys_select (Files): Remove lib/winsock-select.c.
57087         (Depends-on): Remove alloca.
57088         (Makefile.am): Substitute GNULIB_SELECT.
57089         * modules/select: New file.
57090         * doc/posix-functions/select.texi: Update.
57091
57092 2008-10-05  Bruno Haible  <bruno@clisp.org>
57093
57094         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57095         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57096         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57097         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57098         getdtablesize.
57099         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57100         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57101
57102 2008-10-05  Bruno Haible  <bruno@clisp.org>
57103
57104         * modules/getdtablesize-tests: New file.
57105         * tests/test-getdtablesize.c: New file.
57106
57107         New module 'getdtablesize'.
57108         * lib/unistd.in.h (getdtablesize): New declaration.
57109         * lib/getdtablesize.c: New file.
57110         * m4/getdtablesize.m4: New file.
57111         * modules/getdtablesize: New file.
57112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57113         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57114         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57115         HAVE_GETDTABLESIZE.
57116         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57117
57118 2008-10-05  Bruno Haible  <bruno@clisp.org>
57119
57120         * modules/sched (Makefile.am): Fix typo.
57121         Reported by Simon Josefsson.
57122
57123 2008-10-05  Jim Meyering  <meyering@redhat.com>
57124
57125         bootstrap: check for LT_INIT, too
57126         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57127         are deprecated.  Suggestion from Ralf Wildenhues.
57128
57129 2008-10-05  Bruno Haible  <bruno@clisp.org>
57130
57131         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57132         overriding them by ours.
57133         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57134
57135 2008-10-05  Jim Meyering  <meyering@redhat.com>
57136
57137         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57138         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57139         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57140
57141 2008-10-04  Bruno Haible  <bruno@clisp.org>
57142
57143         * modules/dup2 (License): Change to LGPLv2+.
57144         * modules/sleep (License): Likewise.
57145         * modules/perror (License): Likewise.
57146         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57147         Blake.
57148         * modules/signal (License): Likewise.
57149         * modules/sigprocmask (License): Likewise.
57150         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57151         Meyering.
57152
57153 2008-10-04  Bruno Haible  <bruno@clisp.org>
57154
57155         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57156         Reported by Rainer Tammer <tammer@tammer.net>.
57157
57158 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57159             Bruno Haible  <bruno@clisp.org>
57160
57161         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57162         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57163         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57164
57165 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57166
57167         filevercmp: new module
57168         * lib/filevercmp.h: New function filevercmp comparing version strings.
57169         * lib/filevercmp.c: Implementation of filevercmp function.
57170         * modules/filevercmp: Module metadata.
57171         * tests/test-filevercmp.c: Unit test for new module.
57172         * modules/filevercmp-tests: Unit test metadata.
57173         * MODULES.html.sh: Add filevercmp module.
57174
57175 2008-10-03  Bruno Haible  <bruno@clisp.org>
57176
57177         * lib/c-ctype.h: Add comment.
57178         Reported by Jim Meyering.
57179
57180 2008-10-02  Bruno Haible  <bruno@clisp.org>
57181
57182         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57183
57184 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57185
57186         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57187         name of bootstrap.conf accordingly.
57188
57189 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57190
57191         * build-aux/bootstrap: Install git-merge-changelog configuration
57192         items into .gitconfig if needed.
57193
57194 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57195
57196         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57197         git repository, and initialize/update it accordingly.
57198
57199 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57200
57201         * modules/fsync-tests: New file.
57202         * tests/test-fsync.c: New file.
57203
57204         New module 'fsync'.
57205         * lib/fsync.c: New file.
57206         * m4/fsync.m4: New file.
57207         * modules/fsync: New file.
57208         * lib/unistd.in.h (fsync): New declaration.
57209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57210         GNULIB_FSYNC and HAVE_FSYNC.
57211         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57212         * MODULES.html.sh (posix_functions): Add fsync.
57213         * doc/posix-functions/fsync.texi: Mention the new module.
57214
57215 2008-10-02  Jim Meyering  <meyering@redhat.com>
57216
57217         fts.c: sync with similar code from coreutils' remove.c
57218         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57219         Guard also with "#if defined __linux__", since for now at least,
57220         this code is Linux-kernel-specific.
57221
57222 2008-10-02  Jim Meyering  <meyering@redhat.com>
57223
57224         fts: bug fixes
57225         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57226         Include <sys/vfs.h>, not <sys/statfs.h>.
57227
57228         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57229         Include <sys/vfs.h>, not <sys/statfs.h>.
57230
57231 2008-10-01  Bruno Haible  <bruno@clisp.org>
57232
57233         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57234         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57235         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57236         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57237         * doc/posix-functions/posix_spawnp.texi: Likewise.
57238         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57239         whether posix_spawn actually works.
57240         * m4/pipe.m4 (gl_PIPE): Likewise.
57241         * modules/execute (Files): Add m4/posix_spawn.m4.
57242         * modules/pipe (Files): Add m4/posix_spawn.m4.
57243         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57244
57245 2008-10-01  Jim Meyering  <meyering@redhat.com>
57246
57247         remove trailing spaces
57248         * NEWS: Likewise.
57249         * lib/poll.c (poll): Likewise.
57250         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57251         * lib/winsock.c (rpl_close): Likewise.
57252         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57253         * modules/yield: Likewise.
57254         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57255         * tests/test-sys_select.c (connect_to_socket): Likewise.
57256
57257         fts.c: adjust a new interface to be more generally useful
57258         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57259         (fts_build): Adjust caller.
57260
57261 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57262
57263         * modules/cond-tests: New file.
57264         * tests/test-cond.c: New file.
57265
57266 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57267             Bruno Haible  <bruno@clisp.org>
57268
57269         * modules/cond (Dependencies): Add errno, time.
57270         * lib/glthread/cond.h: Include <time.h>.
57271         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57272         across platforms.
57273
57274 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57275             Bruno Haible  <bruno@clisp.org>
57276
57277         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57278
57279 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57280             Bruno Haible  <bruno@clisp.org>
57281
57282         * modules/tls-tests (Depends-on): Add thread, yield.
57283         (configure.ac): Remove all checks.
57284         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57285         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57286         gl_thread_self): Remove definitions. Include glthread/thread.h and
57287         glthread/yield.h instead.
57288         (test_tls): Pass an additional NULL argument to gl_thread_join.
57289
57290 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57291             Bruno Haible  <bruno@clisp.org>
57292
57293         * modules/lock-tests (Depends-on): Add thread, yield.
57294         (configure.ac): Remove all checks.
57295         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57296         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57297         gl_thread_self): Remove definitions. Include glthread/thread.h and
57298         glthread/yield.h instead.
57299         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57300         additional NULL argument to gl_thread_join.
57301
57302 2008-09-30  Bruno Haible  <bruno@clisp.org>
57303
57304         Fix the Win32 implementation of the 'thread' module.
57305         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57306         pointer type.
57307         (gl_thread_self): Invoke gl_thread_self_func.
57308         (gl_thread_self_func): New declaration.
57309         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57310         (do_init_self_key, init_self_key): New functions.
57311         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57312         Remove some fields.
57313         (running_threads, running_lock): Remove variables.
57314         (get_current_thread_handle): New function.
57315         (gl_thread_self_func, wrapper_func, glthread_create_func,
57316         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57317         simplified.
57318
57319 2008-09-30  Bruno Haible  <bruno@clisp.org>
57320
57321         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57322         files.
57323
57324 2008-09-30  Jim Meyering  <meyering@redhat.com>
57325
57326         fts.m4: correct the test for statfs.f_type
57327         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57328         when checking for statfs.f_type.
57329
57330 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57331
57332         tests: avoid some compiler warnings
57333         * tests/test-memchr.c (main): Pass NULL indirectly.
57334         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57335
57336 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57337
57338         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57339         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57340         exactly specified dayshifts.
57341         (dayshift): New rule.
57342         (rel): Add dayshift.
57343         (relative_time_table) [tomorrow, yesterday, today, now]:
57344         Use tDAY_SHIFT in place of tDAY_UNIT.
57345         * tests/test-getdate.c: Add tests for now-disallowed countable
57346         dayshifts, e.g., "4 yesterday ago".
57347
57348 2008-09-29  Bruno Haible  <bruno@clisp.org>
57349
57350         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57351         * tests/test-posix_spawn1.in.sh: Renamed from
57352         tests/test-posix_spawn.in.sh.
57353         * tests/test-posix_spawn2.c: New file.
57354         * tests/test-posix_spawn2.in.sh: New file.
57355         * modules/posix_spawnp-tests (Files): Update.
57356         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57357
57358 2008-09-29  Bruno Haible  <bruno@clisp.org>
57359
57360         Propagate effects of putenv/setenv/unsetenv to child processes.
57361         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57362         * lib/pipe.c (create_pipe): Likewise.
57363
57364 2008-09-29  Bruno Haible  <bruno@clisp.org>
57365
57366         Enable use of shell scripts as executables in mingw.
57367         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57368         run the program as a shell script.
57369         * lib/pipe.c (create_pipe): Likewise.
57370         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57371         resulting array.
57372
57373 2008-09-29  Eric Blake  <ebb9@byu.net>
57374
57375         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57376
57377 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57378
57379         * doc/posix-functions/accept.texi: Update mingw problems.
57380         * doc/posix-functions/bind.texi: Update mingw problems.
57381         * doc/posix-functions/close.texi: Update mingw problems.
57382         * doc/posix-functions/connect.texi: Update mingw problems.
57383         * doc/posix-functions/getpeername.texi: Update mingw problems.
57384         * doc/posix-functions/getsockname.texi: Update mingw problems.
57385         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57386         * doc/posix-functions/ioctl.texi: Update mingw problems.
57387         * doc/posix-functions/listen.texi: Update mingw problems.
57388         * doc/posix-functions/recv.texi: Update mingw problems.
57389         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57390         * doc/posix-functions/select.texi: Update mingw problems.
57391         * doc/posix-functions/send.texi: Update mingw problems.
57392         * doc/posix-functions/sendto.texi: Update mingw problems.
57393         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57394         * doc/posix-functions/socket.texi: Update mingw problems.
57395
57396 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57397             Bruno Haible  <bruno@clisp.org>
57398
57399         * lib/sys_select.in.h: Include sys/time.h.
57400         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57401         * modules/sys_select: Depend on sys_time.
57402         * tests/test-sys_select.c: Test that sys/select.h defines struct
57403         timeval fully.
57404
57405 2008-09-29  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57408         * lib/sys_select.in.h: Likewise.
57409
57410 2008-09-29  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57413
57414 2008-09-29  Bruno Haible  <bruno@clisp.org>
57415
57416         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57417         Set LIBSOCKET instead of augmenting LIBS.
57418         * modules/sockets (Link): New section.
57419         * modules/sockets-tests (test_sockets_LDADD): New variable.
57420         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57421         * modules/poll-tests (test_poll_LDADD): New variable.
57422         * NEWS: Document the change.
57423
57424 2008-09-29  Bruno Haible  <bruno@clisp.org>
57425
57426         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57427         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57428         ARPA_INET_H directly.
57429         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57430
57431 2008-09-28  Bruno Haible  <bruno@clisp.org>
57432
57433         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57434         from gl_HEADER_SYS_SOCKET.
57435         (gl_HEADER_SYS_SOCKET): Invoke it.
57436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57437
57438 2008-09-28  Bruno Haible  <bruno@clisp.org>
57439
57440         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57441         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57442         Needed on OSF/1 4.0.
57443
57444 2008-09-28  Bruno Haible  <bruno@clisp.org>
57445
57446         Override open more carefully.
57447         * lib/open.c (orig_open): New function.
57448         (rpl_open): Use orig_open instead of open.
57449         * lib/fcntl.in.h: Add special invocation convention.
57450         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57451         (gl_FUNC_OPEN): Invoke it.
57452
57453         Override freopen more carefully.
57454         * lib/freopen.c (orig_freopen): New function.
57455         (rpl_freopen): Use orig_freopen instead of freopen.
57456         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57457         (gl_FUNC_FREOPEN): Invoke it.
57458
57459         Override fopen more carefully.
57460         * lib/fopen.c (orig_fopen): New function.
57461         (rpl_fopen): Use orig_fopen instead of fopen.
57462         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57463         (gl_FUNC_FOPEN): Invoke it.
57464         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57465
57466 2008-09-28  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57469         SIGPIPE.
57470
57471 2008-09-28  Bruno Haible  <bruno@clisp.org>
57472
57473         * tests/test-sigaction.c (handler, main): Disable the check whether
57474         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57475         glibc systems with LinuxThreads.
57476
57477 2008-09-28  Bruno Haible  <bruno@clisp.org>
57478
57479         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57480
57481         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57482         with AIX xlc.
57483         * lib/fcntl.in.h (open): Likewise.
57484         Reported by Rainer Tammer <tammer@tammer.net>.
57485
57486 2008-09-28  Bruno Haible  <bruno@clisp.org>
57487
57488         * modules/posix_spawnp-tests: New file.
57489         * tests/test-posix_spawn.c: New file.
57490         * tests/test-posix_spawn.in.sh: New file.
57491
57492         New module 'posix_spawnp'.
57493         * modules/posix_spawnp: New file.
57494         * lib/spawnp.c: New file, from GNU libc with modifications.
57495         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57496
57497         New module 'posix_spawn'.
57498         * modules/posix_spawn: New file.
57499         * lib/spawn.c: New file, from GNU libc with modifications.
57500         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57501
57502         New module 'posix_spawnattr_destroy'.
57503         * modules/posix_spawnattr_destroy: New file.
57504         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57505         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57506         module.
57507
57508         New module 'posix_spawnattr_setsigmask'.
57509         * modules/posix_spawnattr_setsigmask: New file.
57510         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57511         modifications.
57512         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57513         new module.
57514
57515         New module 'posix_spawnattr_getsigmask'.
57516         * modules/posix_spawnattr_getsigmask: New file.
57517         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57518         modifications.
57519         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57520         new module.
57521
57522         New module 'posix_spawnattr_setsigdefault'.
57523         * modules/posix_spawnattr_setsigdefault: New file.
57524         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57525         modifications.
57526         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57527         new module.
57528
57529         New module 'posix_spawnattr_getsigdefault'.
57530         * modules/posix_spawnattr_getsigdefault: New file.
57531         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57532         modifications.
57533         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57534         new module.
57535
57536         New module 'posix_spawnattr_setschedpolicy'.
57537         * modules/posix_spawnattr_setschedpolicy: New file.
57538         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57539         modifications.
57540         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57541         new module.
57542
57543         New module 'posix_spawnattr_getschedpolicy'.
57544         * modules/posix_spawnattr_getschedpolicy: New file.
57545         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57546         modifications.
57547         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57548         new module.
57549
57550         New module 'posix_spawnattr_setschedparam'.
57551         * modules/posix_spawnattr_setschedparam: New file.
57552         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57553         modifications.
57554         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57555         new module.
57556
57557         New module 'posix_spawnattr_getschedparam'.
57558         * modules/posix_spawnattr_getschedparam: New file.
57559         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57560         modifications.
57561         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57562         new module.
57563
57564         New module 'posix_spawnattr_setpgroup'.
57565         * modules/posix_spawnattr_setpgroup: New file.
57566         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57567         modifications.
57568         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57569         module.
57570
57571         New module 'posix_spawnattr_getpgroup'.
57572         * modules/posix_spawnattr_getpgroup: New file.
57573         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57574         modifications.
57575         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57576         module.
57577
57578         New module 'posix_spawnattr_setflags'.
57579         * modules/posix_spawnattr_setflags: New file.
57580         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57581         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57582         module.
57583
57584         New module 'posix_spawnattr_getflags'.
57585         * modules/posix_spawnattr_getflags: New file.
57586         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57587         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57588         module.
57589
57590         New module 'posix_spawnattr_init'.
57591         * modules/posix_spawnattr_init: New file.
57592         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57593         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57594         module.
57595
57596         New module 'posix_spawn_file_actions_destroy'.
57597         * modules/posix_spawn_file_actions_destroy: New file.
57598         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57599         modifications.
57600         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57601         the new module.
57602
57603         New module 'posix_spawn_file_actions_addopen'.
57604         * modules/posix_spawn_file_actions_addopen: New file.
57605         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57606         modifications.
57607         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57608         the new module.
57609
57610         New module 'posix_spawn_file_actions_adddup2'.
57611         * modules/posix_spawn_file_actions_adddup2: New file.
57612         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57613         modifications.
57614         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57615         the new module.
57616
57617         New module 'posix_spawn_file_actions_addclose'.
57618         * modules/posix_spawn_file_actions_addclose: New file.
57619         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57620         modifications.
57621         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57622         the new module.
57623
57624         New module 'posix_spawn_file_actions_init'.
57625         * modules/posix_spawn_file_actions_init: New file.
57626         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57627         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57628         new module.
57629
57630         New module 'posix_spawn-internal'.
57631         * modules/posix_spawn-internal: New file.
57632         * lib/spawn_int.h: New file, from GNU libc with modifications.
57633         * lib/spawni.c: New file, from GNU libc with modifications.
57634         * m4/posix_spawn.m4: New file.
57635
57636         New module 'spawn'.
57637         * modules/spawn: New file.
57638         * lib/spawn.in.h: New file, from GNU libc with modifications.
57639         * m4/spawn_h.m4: New file.
57640         * doc/posix-headers/spawn.texi: Mention the new module.
57641
57642 2008-09-28  Bruno Haible  <bruno@clisp.org>
57643
57644         * modules/sched-tests: New file.
57645         * tests/test-sched.c: New file.
57646
57647         New module 'sched'.
57648         * modules/sched: New file.
57649         * lib/sched.in.h: New file.
57650         * m4/sched_h.m4: New file.
57651         * doc/posix-headers/sched.texi: Mention the new module.
57652
57653 2008-09-27  Eric Blake  <ebb9@byu.net>
57654
57655         Fix previous patch, and tweak references to $0.
57656         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57657         (func_version, func_gnulib_dir): Don't call this program
57658         gnulib-tool.
57659         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57660         with using $0 in function.
57661         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57662         (func_fatal_error): Reuse the name the user invoked us with.
57663
57664 2008-09-27  Bruno Haible  <bruno@clisp.org>
57665
57666         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57667         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57668         (gl_ICONV_H): Not here.
57669         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57670         instead of assigning ICONV_H directly.
57671
57672         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57674         WCHAR_H directly.
57675
57676 2008-09-27  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57679         * modules/arpa_inet (Depends-on): Add link-warning.
57680         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57681         * modules/unistd (Makefile.am): Likewise.
57682
57683 2008-09-26  Bruno Haible  <bruno@clisp.org>
57684
57685         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57686         variables.
57687         (func_version): Essentially copied from gnulib-tool.
57688         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57689         func_readlink): Copied from gnulib-tool.
57690
57691 2008-09-26  Bruno Haible  <bruno@clisp.org>
57692
57693         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57694         invoking git-version-gen.
57695
57696 2008-09-26  Bruno Haible  <bruno@clisp.org>
57697
57698         * posix-modules: Update to directory names changed on 2008-01-19.
57699         Remove commas in output before splitting into words. No more need to
57700         avoid 'ftruncate' since 2007-02-19.
57701
57702 2008-09-26  Bruno Haible  <bruno@clisp.org>
57703
57704         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57705
57706 2008-09-26  Bruno Haible  <bruno@clisp.org>
57707
57708         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57709         * modules/fwriteerror (Depends-on): Add errno.
57710
57711 2008-09-26  Bruno Haible  <bruno@clisp.org>
57712
57713         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57714         * tests/test-vc-list-files-cvs.sh: Likewise.
57715
57716 2008-09-26  Bruno Haible  <bruno@clisp.org>
57717
57718         * doc/posix-headers/sys_resource.texi: Reorder items.
57719
57720 2008-09-26  Jim Meyering  <meyering@redhat.com>
57721
57722         fts: tweak inode comparison function
57723         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57724         inode numbers, as documented.
57725
57726         fts: sort dirent entries on inode number before traversing
57727         This avoids a quadratic, seek-related performance penalty when
57728         operating on a directory containing many entries (measurable at 10k;
57729         3.5 hours at 2 million entries with a cold cache) on certain types
57730         of file systems, including ext3 and ext4, but not tmpfs.
57731         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57732         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57733         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57734         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57735         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57736         (fts_build): Set the stat.st_ino member from D_INO.
57737         If it is likely to be useful, sort dirent entries on inode number.
57738
57739         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57740         and the struct statfs.f_type member.
57741         * modules/fts (Depends-on): Add d-ino.
57742
57743 2008-09-26  Bruno Haible  <bruno@clisp.org>
57744
57745         * modules/sigpipe-die (Depends-on): Add sigpipe.
57746
57747         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57748         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57749         and GNULIB_STDIO_H_SIGPIPE are set.
57750         * lib/stdio-write.c: New file.
57751         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57752         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57753         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57754         REPLACE_STDIO_WRITE_FUNCS.
57755         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57756         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57757         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57758         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57759         * modules/stdio (Files): Add lib/stdio-write.c.
57760         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57761         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57762         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57763         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57764         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57765         REPLACE_FPRINTF_POSIX.
57766         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57767         REPLACE_PRINTF_POSIX.
57768         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57769         REPLACE_VFPRINTF_POSIX.
57770         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57771         REPLACE_VPRINTF_POSIX.
57772         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57773         SIGPIPE issue.
57774         * doc/posix-functions/fputc.texi: Likewise.
57775         * doc/posix-functions/fputs.texi: Likewise.
57776         * doc/posix-functions/fwrite.texi: Likewise.
57777         * doc/posix-functions/printf.texi: Likewise.
57778         * doc/posix-functions/putc.texi: Likewise.
57779         * doc/posix-functions/putchar.texi: Likewise.
57780         * doc/posix-functions/puts.texi: Likewise.
57781         * doc/posix-functions/vfprintf.texi: Likewise.
57782         * doc/posix-functions/vprintf.texi: Likewise.
57783
57784         * modules/safe-write (Depends-on): Add write.
57785
57786         * modules/sigpipe-tests: New file.
57787         * tests/test-sigpipe.c: New file.
57788         * tests/test-sigpipe.sh: New file.
57789
57790         * modules/write: New file.
57791         * lib/unistd.in.h: Include <sys/types.h>.
57792         (write): New declaration.
57793         * lib/write.c: New file.
57794         * m4/write.m4: New file.
57795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57796         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57797         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57798         GNULIB_WRITE, REPLACE_WRITE.
57799         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57800         and the SIGPIPE issue.
57801
57802         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57803         (raise): New declaration.
57804         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57805         (ext_signal): New function.
57806         (rpl_raise): New function.
57807         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57808         GNULIB_SIGNAL_H_SIGPIPE.
57809         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57810         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57811
57812         * modules/sigpipe: New file.
57813         * m4/sigpipe.m4: New file.
57814
57815 2008-09-25  Derek Price  <derek@ximbiot.com>
57816             Bruno Haible  <bruno@clisp.org>
57817
57818         * gnulib-tool (func_import): Report all license incompatibilities, not
57819         just the first one.
57820
57821 2008-09-25  Bruno Haible  <bruno@clisp.org>
57822
57823         * gnulib-tool (func_import): When computing the edits, consider not
57824         only the Makefile.ams that exist but also those that will be generated.
57825
57826 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57827
57828         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57829         fixes gnulib-tool --test warning about duplicate dependency.
57830
57831 2008-09-25  Bruno Haible  <bruno@clisp.org>
57832
57833         * gnulib-tool: Don't ask the user to perform edits in the generated
57834         Makefile.ams.
57835         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57836         apply to the Makefile.am being generated.
57837         (func_emit_tests_Makefile_am): Execute edits that apply to the
57838         Makefile.am being generated.
57839         (func_import): Setup list of Makefile.am edits before emitting the
57840         Makefile.ams, not at the end.
57841         (func_create_testdir): Update.
57842         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57843
57844 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57845
57846         * gnulib-tool (func_import): Store the --tests-base option in the
57847         comment in gnulib-cache.m4.
57848
57849 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57850
57851         * NEWS: Document increased portability that sys_select now provides.
57852
57853         * lib/sys_select.in.h: Install select wrapper.
57854         * lib/sys_socket.in.h: Use more descriptive name when there is no
57855         select wrapper.
57856         * lib/winsock-select.c: New.
57857         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57858         Require gl_HEADER_SYS_SOCKET.
57859         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57860         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57861         * tests/test-sys_select.c: Add functional tests.
57862
57863 2008-09-24  Eric Blake  <ebb9@byu.net>
57864
57865         open, fopen: close fd leak in last patch
57866         * lib/open.c (rpl_open): Close fd before returning error.
57867         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57868         * doc/posix-functions/open.texi (open): Document that Irix also
57869         has the bug.
57870         * doc/posix-functions/fopen.texi (fopen): Likewise.
57871         Reported by Paolo Bonzini.
57872
57873 2008-09-24  Bruno Haible  <bruno@clisp.org>
57874
57875         Ensure that a filename ending in a slash cannot be used to access a
57876         non-directory.
57877         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57878         to check whether it's really a directory.
57879         * lib/fopen.c: Include fcntl.h, unistd.h.
57880         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57881         and fdopen().
57882         * modules/fopen (Depends-on): Add unistd.
57883         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57884         * tests/test-fopen.c (main): Likewise.
57885         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57886         * doc/posix-functions/fopen.texi: Likewise.
57887         Reported by Eric Blake.
57888
57889 2008-09-23  Eric Blake  <ebb9@byu.net>
57890
57891         c-stack: avoid compiler optimizations when provoking overflow
57892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57893         recursion harder to optimize, to ensure a stack overflow occurs.
57894         * tests/test-c-stack.c (recurse): Likewise.
57895         Borrowed from libsigsegv.
57896
57897         c-stack: work around Irix sigaltstack bug
57898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57899         whether sigaltstack uses wrong end of stack_t (copied in part from
57900         libsigsegv).
57901         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57902         Irix bug, without requiring an over-allocation.
57903         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57904         bug.
57905
57906         fopen: document mingw bug on directories
57907         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57908         not allowing a stream visiting a directory, even though reading
57909         from such a stream is not portable.
57910
57911 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57912
57913         * lib/poll.c: Rewrite.
57914         * modules/poll: Depend on alloca.
57915
57916 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57917
57918         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57919         instead define prototypes for a full set of wrappers.  Ensure
57920         that Cygwin does not use the compatibility code, which is only
57921         for MinGW.
57922         * lib/winsock.c: New.
57923         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57924         * modules/sys_socket: Add lib/winsock.c.
57925
57926         * modules/poll-tests: Add errno and perror.
57927         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57928
57929 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57930
57931         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57932
57933 2008-09-23  Bruno Haible  <bruno@clisp.org>
57934
57935         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57936         * doc/glibc-functions/*: Likewise.
57937
57938 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57939
57940         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57941         success.
57942
57943 2008-09-22  Eric Blake  <ebb9@byu.net>
57944             Bruno Haible  <bruno@clisp.org>
57945
57946         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57947         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57948         supply %A but mishandle pseudo-NaN.
57949         Reported by Simon Josefsson.
57950
57951 2008-09-21  Bruno Haible  <bruno@clisp.org>
57952
57953         * tests/test-lock.c (main): Tweak skip message.
57954         * tests/test-tls.c (main): Likewise.
57955
57956 2008-09-21  Bruno Haible  <bruno@clisp.org>
57957
57958         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57959         whether 'struct sigaction' has sa_sigaction here...
57960         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57961         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57962
57963 2008-09-21  Bruno Haible  <bruno@clisp.org>
57964
57965         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57966         section.
57967         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57968         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57969         the new section.
57970         (Support for obsolete systems lacking POSIX:2001): New section.
57971         (String handling <string.h>): Move strdup to the new section.
57972         Suggested by Simon Josefsson and Paolo Bonzini.
57973
57974 2008-09-21  Bruno Haible  <bruno@clisp.org>
57975
57976         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57977         exponents in %e and %g results on 'long double'. Needed for mingw's
57978         improved *printf functions.
57979         * tests/test-vasprintf-posix.c (test_function): Likewise.
57980         * tests/test-snprintf-posix.h (test_function): Likewise.
57981         * tests/test-sprintf-posix.h (test_function): Likewise.
57982         Reported by Eric Blake.
57983
57984 2008-09-21  Bruno Haible  <bruno@clisp.org>
57985
57986         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57987         * tests/test-sprintf-posix.h (test_function): Likewise.
57988
57989 2008-09-21  Bruno Haible  <bruno@clisp.org>
57990
57991         * modules/getpass (Depends-on): Add strdup-posix.
57992
57993         New module 'strdup-posix'.
57994         * modules/strdup-posix: New file.
57995         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57996         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57998         REPLACE_STRDUP.
57999         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
58000         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
58001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58002         strdup-posix.
58003
58004         * modules/strdup (Depends-on): Remove malloc-posix.
58005
58006 2008-09-20  Bruno Haible  <bruno@clisp.org>
58007
58008         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
58009         Wildenhues.
58010
58011 2008-09-20  Bruno Haible  <bruno@clisp.org>
58012
58013         Ensure that wint_t gets defined on IRIX 5.3.
58014         * lib/wchar.in.h (wint_t): Define if not defined by the system.
58015         * lib/wctype.in.h (wint_t): Likewise.
58016         (__wctype_wint_t): Remove type.
58017         (isw*): Use wint_t instead of __wctype_wint_t.
58018         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
58019         * modules/wchar (Files): Add m4/wint_t.m4.
58020         (Makefile.am): Substitute HAVE_WINT_T.
58021         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
58022         * tests/test-wctype.c: Check that wint_t is defined.
58023         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
58024         * doc/posix-headers/wctype.texi: Likewise.
58025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58026
58027 2008-09-18  Bruno Haible  <bruno@clisp.org>
58028
58029         * gnulib-tool (func_exit): Update comment.
58030
58031 2008-09-18  Simon Josefsson  <simon@josefsson.org>
58032
58033         * modules/getaddrinfo (Depends-on): Remove strdup, this module
58034         assumes strdup exists and does not depend on strdup to return
58035         ENOMEM on out of memory conditions.
58036
58037 2008-09-18  Bruno Haible  <bruno@clisp.org>
58038
58039         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
58040         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
58041         digits for the exponent.
58042
58043 2008-09-18  Jim Meyering  <meyering@redhat.com>
58044             Bruno Haible  <bruno@clisp.org>
58045
58046         * lib/vasnprintf.c (decimal_point_char): Define also if
58047         NEED_PRINTF_INFINITE_LONG_DOUBLE.
58048
58049 2008-09-16  Bruno Haible  <bruno@clisp.org>
58050         and Eric Blake  <ebb9@byu.net>
58051
58052         vasnprintf: support Irix 5.3
58053         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
58054         that mishandle long double infinity.
58055         Reported by Tom G. Christensen.
58056
58057 2008-09-16  Bruno Haible  <bruno@clisp.org>
58058
58059         * doc/glibc-functions/scandir.texi: Mention the function is missing on
58060         Solaris 9.
58061         * doc/glibc-functions/alphasort.texi: Likewise.
58062         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58063
58064 2008-09-16  Jim Meyering  <meyering@redhat.com>
58065
58066         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
58067         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
58068         a umask modification leak out of a subshell.  Otherwise, the
58069         opensolaris /bin/sh would be accepted and thus cause unwarranted
58070         failures in the coreutils test suite.
58071
58072 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
58073
58074         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
58075         to succeed.
58076
58077 2008-09-16  Jim Meyering  <meyering@redhat.com>
58078
58079         avoid spurious test failure when library is built without ACL support
58080         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58081         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58082         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58083         * tests/test-copy-acl.sh: Likewise.
58084
58085 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58086
58087         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58088         based on character occurrence counts.
58089
58090 2008-09-15  Eric Blake  <ebb9@byu.net>
58091
58092         tests: avoid some compiler warnings
58093         * tests/test-memchr.c (main): Pass NULL indirectly.
58094         * tests/test-closein.c (main): Avoid unused variable.
58095
58096 2008-09-15  Bruno Haible  <bruno@clisp.org>
58097
58098         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58099         are missing on OpenBSD 4.0 individually.
58100         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58101
58102 2008-09-15  Bruno Haible  <bruno@clisp.org>
58103
58104         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58105         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58106         * doc/posix-functions/perror.texi: Likewise.
58107         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58108         is missing.
58109         Reported by Eric Blake.
58110
58111         * lib/errno.in.h: Use replacement values >= 2000.
58112         Reported by Eric Blake.
58113
58114 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58115
58116         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58117         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58118         limit.
58119         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58120         compareseq was aborted.
58121
58122 2008-09-14  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58125         yvec_edit_count.
58126         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58127         (fstrcmp_bounded): Simplify result computation accordingly.
58128
58129 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58130
58131         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58132         (fstrcmp): Define in terms of fstrcmp_bounded.
58133         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58134         lower_bound argument.
58135         Return quickly if the result is certainly < lower_bound.
58136         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58137
58138 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58139
58140         * lib/diffseq.h (EARLY_ABORT): New macro.
58141         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58142         evaluates to true.
58143
58144 2008-09-14  Bruno Haible  <bruno@clisp.org>
58145
58146         * modules/perror-tests: New file.
58147         * tests/test-perror.sh: New file.
58148         * tests/test-perror.c: New file.
58149
58150         New module 'perror'.
58151         * lib/stdio.in.h (perror): New declaration.
58152         * lib/perror.c: New file.
58153         * m4/perror.m4: New file.
58154         * modules/perror: New file.
58155         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58156         * doc/posix-functions/perror.texi: Mention the perror module.
58157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58158         REPLACE_PERROR.
58159         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58160         REPLACE_PERROR.
58161
58162 2008-09-14  Bruno Haible  <bruno@clisp.org>
58163
58164         * modules/stdio (Makefile.am): Reorder to match the order in
58165         lib/stdio.in.h.
58166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58167
58168 2008-09-13  Bruno Haible  <bruno@clisp.org>
58169
58170         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58171
58172 2008-09-13  Bruno Haible  <bruno@clisp.org>
58173
58174         Extend strerror to cover the added errno values.
58175         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58176         (rpl_strerror): Provide error messages for the added errno values and
58177         for the WSA* values.
58178         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58179         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58180         strerror.
58181         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58182         * modules/strerror (Depends-on): Add errno.
58183         * doc/posix-functions/strerror.texi: Document the change.
58184         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58185         and EOVERFLOW.
58186
58187 2008-09-13  Bruno Haible  <bruno@clisp.org>
58188
58189         * modules/EOVERFLOW: Remove file.
58190         * m4/eoverflow.m4: Remove file.
58191         * modules/EOVERFLOW-tests: Remove file.
58192         * tests/test-EOVERFLOW.c: Remove file.
58193         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58194         * modules/ftell (Depends-on): Likewise.
58195         * modules/getdelim (Depends-on): Likewise.
58196         * modules/getugroups (Depends-on): Likewise.
58197         * modules/poll (Depends-on): Likewise.
58198         * modules/snprintf (Depends-on): Likewise.
58199         * modules/sprintf-posix (Depends-on): Likewise.
58200         * modules/vasnprintf (Depends-on): Likewise.
58201         * modules/vasprintf (Depends-on): Likewise.
58202         * modules/vfprintf-posix (Depends-on): Likewise.
58203         * modules/vsnprintf (Depends-on): Likewise.
58204         * modules/vsprintf-posix (Depends-on): Likewise.
58205         * modules/xvasprintf (Depends-on): Likewise.
58206         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58207         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58208         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58209         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58210         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58211         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58212         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58213         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58214         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58215         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58216         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58217         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58219         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58220         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58221         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58222         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58223         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58224         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58225         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58226         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58227         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58228         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58229         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58230         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58231         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58232         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58233         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58234         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58235         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58236         * MODULES.html.sh: Remove EOVERFLOW.
58237         * NEWS: Mention the change.
58238
58239 2008-09-13  Bruno Haible  <bruno@clisp.org>
58240
58241         * modules/errno-tests: New file.
58242         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58243
58244         * lib/errno.in.h: New file.
58245         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58246         * modules/errno: New file.
58247         * doc/posix-headers/errno.texi: Update documentation.
58248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58249
58250 2008-09-13  Bruno Haible  <bruno@clisp.org>
58251
58252         * tests/test-poll.c: Use #if for native Windows, rather than testing
58253         __MSVCRT__.
58254
58255 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58256             Bruno Haible  <bruno@clisp.org>
58257
58258         * lib/glob.c: Don't include <pwd.h> on native Windows.
58259         (WINDOWS32): New macro.
58260         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58261
58262 2008-09-13  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58265         (ETIMEDOUT): Remove macro.
58266         (glthread_cond_timedwait_multithreaded): New declaration.
58267         (glthread_cond_timedwait): Use it.
58268         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58269         (glthread_cond_timedwait_multithreaded): New function.
58270
58271 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58272
58273         * modules/poll-tests: Do not check for io.h.
58274         * tests/test-poll.c: Check for __MSVCRT__ instead.
58275
58276 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58277
58278         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58279         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58280         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58281
58282 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58283
58284         * modules/poll-tests: New.
58285         * tests/test-poll.c: New.
58286
58287 2008-09-12  Eric Blake  <ebb9@byu.net>
58288
58289         frexp: test for NetBSD failure on -0.0
58290         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58291         not all, bugs from NetBSD 3.0 have been fixed.
58292         * doc/posix-functions/frexp.texi (frexp): Document bug.
58293         Reported by Thomas Klausner.
58294
58295         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58296         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58297         literal -0.0.
58298         Reported by Jonathan C. Patschke <jp@centtech.com>.
58299
58300 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58301
58302         * lib/glthread/cond.h: Use dummy implementation also if
58303         USE_WIN32_THREADS.
58304
58305 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58306
58307         * modules/fnmatch-posix (License): Change to LGPLv2+.
58308         * modules/fnmatch-gnu (License): Likewise.
58309
58310 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58311
58312         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58313
58314 2008-09-11  Jim Meyering  <meyering@redhat.com>
58315
58316         * users.txt: Add gtk-vnc.
58317
58318 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58319
58320         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58321         rotate amounts.
58322
58323         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58324         required for 16-bit and 8-bit rotates.
58325         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58326         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58327         UINT8_MAX instead of hard-coded constants.
58328         Suggested by Paul Eggert.
58329
58330 2008-09-07  Bruno Haible  <bruno@clisp.org>
58331
58332         * tests/test-striconveh.c (main): Check behaviour when converting from
58333         UTF-7.
58334
58335         Make striconveh work better with stateful encodings.
58336         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58337         that iconv does not increment the inptr when returning -1/EINVAL.
58338
58339 2008-09-07  Bruno Haible  <bruno@clisp.org>
58340
58341         * build-aux/config.rpath: Update according to libtool-2.2.6.
58342         * build-aux/config.libpath: Likewise.
58343
58344 2008-09-06  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58347         * lib/freadptr.c (freadptr): Likewise.
58348         * lib/freadseek.c (freadptrinc): Likewise.
58349         Reported by Simon Josefsson.
58350
58351 2008-09-06  Bruno Haible  <bruno@clisp.org>
58352
58353         * modules/freadptr (License): Change to LGPLv2+.
58354         * modules/freadseek (License): Likewise.
58355         Suggested by Eric Blake.
58356
58357         * modules/memchr2 (License): Change to LGPLv2+.
58358         Approved by Eric Blake.
58359
58360 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58361             Bruno Haible  <bruno@clisp.org>
58362
58363         Make gnulib-tool work with native 'sed' on AIX.
58364         * gnulib-tool (sed_noop): New variable.
58365         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58366         func_add_or_update, func_create_testdir): Use it to initialize sed
58367         script variables.
58368         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58369
58370 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58371             Bruno Haible  <bruno@clisp.org>
58372
58373         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58374         also works after #include directives.
58375
58376 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58377
58378         getdate.y: reject an out-of-range timezone value
58379         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58380         the range [-24...+24].  When specified with only one or two digits,
58381         * tests/test-getdate.c: Tests for the fix.
58382         * doc/getdate.texi: Document this change.
58383
58384 2008-09-03  Bruno Haible  <bruno@clisp.org>
58385
58386         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58387
58388 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58389
58390         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58391         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58392         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58393         Blake <ebb9@byu.net>.
58394
58395         * tests/test-bitrotate.c: Add more test vectors.
58396
58397 2008-09-02  Eric Blake  <ebb9@byu.net>
58398
58399         vasnprintf-posix: handle large precision via %.*d
58400         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58401         when handling it ourselves.
58402         * tests/test-vasnprintf-posix.c (test_function): Add test.
58403         * tests/test-snprintf-posix.h (test_function): Likewise.
58404         * tests/test-sprintf-posix.h (test_function): Likewise.
58405         * tests/test-vasprintf-posix.c (test_function): Likewise.
58406         Reported by Alain Guibert.
58407
58408 2008-09-01  Eric Blake  <ebb9@byu.net>
58409
58410         c-stack: make configure-time check more robust
58411         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58412         successful sigaction call.
58413         Reported by Tom G. Christensen.
58414
58415 2008-09-01  Bruno Haible  <bruno@clisp.org>
58416
58417         New module 'findprog-lgpl'.
58418         * modules/findprog-lgpl: New file.
58419         * lib/findprog-lgpl.c: New file.
58420         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58421         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58422         to decide whether to use strdup or xstrdup, concatenated_filename or
58423         xconcatenated_filename.
58424
58425 2008-09-01  Bruno Haible  <bruno@clisp.org>
58426
58427         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58428         'xconcat-filename' (GPL).
58429         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58430         (License): Change to LGPLv2+.
58431         * modules/xconcat-filename: New file.
58432         * lib/concat-filename.h (concatenated_filename): Change specification.
58433         (xconcatenated_filename): New declaration.
58434         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58435         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58436         memory situations.
58437         * lib/xconcat-filename.c: New file.
58438         * NEWS: Mention the change.
58439         * lib/findprog.c: Include concat-filename.h, not filename.h.
58440         (find_in_path): Use xconcatenated_filename instead of
58441         concatenated_filename.
58442         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58443         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58444         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58445         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58446         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58447         instead of concatenated_filename.
58448         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58449         (execute_java_class): Use xconcatenated_filename instead of
58450         concatenated_filename.
58451         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58452         * modules/javacomp (Depends-on): Likewise.
58453         * modules/javaexec (Depends-on): Likewise.
58454
58455 2008-09-01  Bruno Haible  <bruno@clisp.org>
58456
58457         Split module 'filename' into 'filename' and 'concat-filename'.
58458         * modules/filename: Keep only lib/filename.h.
58459         (License): Change to LGPLv2+.
58460         * modules/concat-filename: New file, extracted from modules/filename.
58461         * lib/filename.h (concatenated_filename): Remove declaration.
58462         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58463         * lib/concat-filename.c: Include concat-filename.h.
58464         * NEWS: Mention the change.
58465
58466 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58467
58468         * lib/bitrotate.h (rotl8, rotr8): Add.
58469
58470         * modules/bitrotate (configure.ac): Need
58471         AC_REQUIRE([AC_C_INLINE]).
58472         (Description): Mention stdint.h.  Reported by Bruno Haible
58473         <bruno@clisp.org>.
58474
58475         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58476         Paolo Bonzini <bonzini@gnu.org>.
58477
58478 2008-08-31  Bruno Haible  <bruno@clisp.org>
58479
58480         Assume Solaris specific bi-arch conventions on Solaris systems.
58481         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58482         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58484         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58485         like acl_libdirstem.
58486         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58487         acl_libdirstem.
58488         * NEWS: Mention the change.
58489         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58490
58491 2008-08-31  Jim Meyering  <meyering@redhat.com>
58492
58493         * lib/strftime.h: Add comments describing the two added arguments.
58494
58495         remove duplicate #include directives
58496         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58497         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58498
58499 2008-08-31  Bruno Haible  <bruno@clisp.org>
58500
58501         New module 'sigpipe-die'.
58502         * modules/sigpipe-die: New file.
58503         * lib/sigpipe-die.h: New file.
58504         * lib/sigpipe-die.c: New file.
58505         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58506
58507 2008-08-31  Bruno Haible  <bruno@clisp.org>
58508
58509         Don't override previously installed signal handlers.
58510         * lib/fatal-signal.c (saved_sigactions): New variable.
58511         (uninstall_handlers): Reset the signal to the saved handler, not
58512         to SIG_DFL (except when ignored).
58513         (install_handlers): Save the previous handlers.
58514
58515 2008-08-30  Bruno Haible  <bruno@clisp.org>
58516
58517         * gnulib-tool (func_reset_sigpipe): New function.
58518         (func_get_automake_snippet, func_modules_transitive_closure,
58519         func_import): Invoke it before a join command that reads from stdin,
58520         to avoid "echo: write error: Broken pipe" error messages on stderr.
58521         Reported by Sam Steingold <sds@gnu.org>.
58522
58523 2008-08-30  Bruno Haible  <bruno@clisp.org>
58524
58525         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58526         Code copied from m4/open.m4.
58527         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58528         access and the filename ends in a slash. Code copied from lib/open.c.
58529         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58530         * tests/test-fopen.c (main): Check against bug with trailing slash.
58531
58532 2008-08-29  Bruno Haible  <bruno@clisp.org>
58533
58534         Avoid some "gcc -pedantic" warnings.
58535         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58536         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58537         * lib/dirent.in.h: Likewise.
58538         * lib/fcntl.in.h: Likewise.
58539         * lib/float.in.h: Likewise.
58540         * lib/iconv.in.h: Likewise.
58541         * lib/inttypes.in.h: Likewise.
58542         * lib/locale.in.h: Likewise.
58543         * lib/math.in.h: Likewise.
58544         * lib/netinet_in.in.h: Likewise.
58545         * lib/search.in.h: Likewise.
58546         * lib/signal.in.h: Likewise.
58547         * lib/stdarg.in.h: Likewise.
58548         * lib/stdint.in.h: Likewise.
58549         * lib/stdio.in.h: Likewise.
58550         * lib/stdlib.in.h: Likewise.
58551         * lib/string.in.h: Likewise.
58552         * lib/strings.in.h: Likewise.
58553         * lib/sys_select.in.h: Likewise.
58554         * lib/sys_socket.in.h: Likewise.
58555         * lib/sys_stat.in.h: Likewise.
58556         * lib/sys_time.in.h: Likewise.
58557         * lib/sysexits.in.h: Likewise.
58558         * lib/time.in.h: Likewise.
58559         * lib/unistd.in.h: Likewise.
58560         * lib/wchar.in.h: Likewise.
58561         * lib/wctype.in.h: Likewise.
58562         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58563         * modules/fchdir (Makefile.am): Likewise.
58564         * modules/fcntl (Makefile.am): Likewise.
58565         * modules/float (Makefile.am): Likewise.
58566         * modules/iconv_open (Makefile.am): Likewise.
58567         * modules/inttypes (Makefile.am): Likewise.
58568         * modules/locale (Makefile.am): Likewise.
58569         * modules/math (Makefile.am): Likewise.
58570         * modules/netinet_in (Makefile.am): Likewise.
58571         * modules/search (Makefile.am): Likewise.
58572         * modules/signal (Makefile.am): Likewise.
58573         * modules/stdarg (Makefile.am): Likewise.
58574         * modules/stdint (Makefile.am): Likewise.
58575         * modules/stdio (Makefile.am): Likewise.
58576         * modules/stdlib (Makefile.am): Likewise.
58577         * modules/string (Makefile.am): Likewise.
58578         * modules/strings (Makefile.am): Likewise.
58579         * modules/sys_select (Makefile.am): Likewise.
58580         * modules/sys_socket (Makefile.am): Likewise.
58581         * modules/sys_stat (Makefile.am): Likewise.
58582         * modules/sys_time (Makefile.am): Likewise.
58583         * modules/sysexits (Makefile.am): Likewise.
58584         * modules/time (Makefile.am): Likewise.
58585         * modules/unistd (Makefile.am): Likewise.
58586         * modules/wchar (Makefile.am): Likewise.
58587         * modules/wctype (Makefile.am): Likewise.
58588         Reported by Reuben Thomas <rrt@sc3d.org>.
58589
58590 2008-08-29  Bruno Haible  <bruno@clisp.org>
58591
58592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58593         any more.
58594
58595 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58596
58597         * MODULES.html.sh (Misc): Add bitrotate.
58598
58599         * modules/bitrotate: New file.
58600
58601         * lib/bitrotate.h: New file.
58602
58603         * modules/bitrotate-tests: New file.
58604
58605         * tests/test-bitrotate.c: New file.
58606
58607         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58608         on the bitrotate module.
58609
58610         * lib/arctwo.c: Use new bitrotate module.
58611
58612 2008-08-29  Jim Meyering  <meyering@redhat.com>
58613
58614         bootstrap: merge changes from coreutils
58615         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58616         of copied files.  Remove a kludge, now that this is fixed.
58617         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58618         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58619         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58620
58621 2008-08-29  Bruno Haible  <bruno@clisp.org>
58622
58623         * MODULES.html.sh: Remove --cvs-urls option.
58624
58625 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58626
58627         maint.mk: adjust to file name change
58628         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58629
58630 2008-08-28  Jim Meyering  <meyering@redhat.com>
58631
58632         * modules/getndelim2 (License): Relicense to LGPLv2+.
58633         Approved by Richard Stallman for the version of 1995, and by
58634         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58635
58636 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58637
58638         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58639         dummy if one is not available.  Do not touch them if
58640         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58641         (getc_maybe_unlocked): New.
58642         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58643
58644 2008-08-26  Eric Blake  <ebb9@byu.net>
58645
58646         doc/INSTALL: resync from autoconf
58647         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58648         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58649         moving...
58650         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58651         * INSTALL: Regenerate.
58652         * INSTALL.ISO: New file.
58653         * INSTALL.UTF-8: Likewise.
58654
58655 2008-08-26  Jim Meyering  <meyering@redhat.com>
58656
58657         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58658         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58659         these definitions conditional, so that they may be overridden, too.
58660
58661 2008-08-26  Bruno Haible  <bruno@clisp.org>
58662
58663         Generate INSTALL file variants with prettier quotes.
58664         * doc/Makefile (INSTALL_PRELUDE): New macro.
58665         (INSTALL): Use it.
58666         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58667
58668 2008-08-26  Bruno Haible  <bruno@clisp.org>
58669
58670         Run makeinfo in an English locale.
58671         * doc/Makefile (MAKEINFO): New variable.
58672
58673 2008-08-26  Bruno Haible  <bruno@clisp.org>
58674
58675         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58676         Suggested by Eric Blake.
58677
58678 2008-08-25  Bruno Haible  <bruno@clisp.org>
58679
58680         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58681
58682 2008-08-25  Eric Blake  <ebb9@byu.net>
58683
58684         c-stack: test that stack overflow can be caught
58685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58686         that platform allows handling stack overflow; at least OS/2 EMX
58687         has sigaltstack, but crashes before transferring control to
58688         handler on stack overflow.
58689         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58690         check for HAVE_STACK_OVERFLOW_HANDLING.
58691         Reported by Elbert Pol.
58692
58693 2008-08-25  Bruno Haible  <bruno@clisp.org>
58694
58695         * doc/posix-functions/strftime.texi: Fix description of strftime
58696         module.
58697
58698 2008-08-24  Bruno Haible  <bruno@clisp.org>
58699
58700         * tests/uniwidth/test-uc_width2.c: New file.
58701         * tests/uniwidth/test-uc_width2.sh: New file.
58702         * modules/uniwidth/width-tests (Files): Add the new files.
58703         (TESTS): Add uniwidth/test-uc_width2.sh.
58704         (TESTS_ENVIRONMENT): New variable.
58705         (check_PROGRAMS): Add test-uc_width2.
58706         (test_uc_width2_SOURCES): New variable.
58707
58708         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58709         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58710         not 0x00AB.
58711         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58712
58713 2008-08-22  Eric Blake  <ebb9@byu.net>
58714
58715         test-lock, test-tls: mention why a test is skipped
58716         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58717         skipped.
58718         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58719
58720         count-one-bits: relax license
58721         * modules/count-one-bits (License): Relicense to LGPLv2+.
58722         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58723
58724 2008-08-22  Andreas Schwab  <schwab@suse.de>
58725
58726         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58727         Remove spurious space in assignment.
58728
58729 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58730
58731         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58732         Paul Eggert <eggert@CS.UCLA.EDU>.
58733
58734 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58735
58736         * modules/gettext: Add m4/threadlib.m4.
58737
58738 2008-08-19  Eric Blake  <ebb9@byu.net>
58739
58740         test-c-stack: fix compilation failure on FreeBSD 5.0
58741         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58742         headers before <sys/resource.h>.
58743         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58744         the bug.
58745         Reported by Nelson H. F. Beebe.
58746
58747         strverscmp: migrate from "strverscmp.h" to <string.h>
58748         * modules/string (Makefile.am): Add new hooks.
58749         * modules/strverscmp (Files): Remove strverscmp.h.
58750         (Depends-on): Add string.
58751         (configure.ac): Add indicator.
58752         (Include): Mention new header.
58753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58754         defaults.
58755         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58756         results.
58757         * lib/strverscmp.h: Delete.
58758         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58759         * tests/test-strverscmp.c (includes): Adjust client.
58760         * lib/check-version.c (includes): Likewise.
58761         * NEWS: Document the change.
58762
58763         strverscmp: add unit test
58764         * modules/strverscmp-tests: New file.
58765         * tests/test-strverscmp.c: Likewise.
58766
58767 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58768
58769         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58770         regarding Windows crypto stuff, from Mono.
58771
58772 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58773
58774         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58775         if present, for intel RND.  Return error on failures.
58776
58777 2008-08-18  Ben Pfaff  <blp@gnu.org>
58778
58779         gitlog-to-changelog: give better diagnostic for failed pipe-open
58780         * build-aux/gitlog-to-changelog: Improve error message: suggest
58781         that the version of Git may be too old.
58782
58783 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58784
58785         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58786         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58787
58788 2008-08-18  Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58791         pthread_in_use().
58792
58793 2008-08-18  Bruno Haible  <bruno@clisp.org>
58794
58795         * lib/glthread/threadlib.c: Include <pthread.h>.
58796
58797 2008-08-18  Bruno Haible  <bruno@clisp.org>
58798
58799         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58800         glthread_recursive_lock_* macros.
58801         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58802         Fix syntax error.
58803
58804 2008-08-18  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/glthread/thread.c: Avoid forcing a context switch right after
58807         thread creation.
58808
58809 2008-08-17  Bruno Haible  <bruno@clisp.org>
58810
58811         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58812         * lib/glthread/thread.h: Provide Win32 specific implementation.
58813         * modules/thread (Files): Add lib/glthread/thread.c.
58814         (Depends-on): Add lock.
58815         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58816
58817 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58818
58819         New module 'yield'.
58820         * modules/yield: New file.
58821         * lib/glthread/yield.h: New file.
58822         * m4/yield.m4: New file.
58823         * MODULES.html.sh (Multithreading): Add yield.
58824
58825 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58826
58827         New module 'thread'.
58828         * modules/thread: New file.
58829         * lib/glthread/thread.h: New file.
58830         * m4/thread.m4: New file.
58831         * MODULES.html.sh (Multithreading): Add thread.
58832
58833 2008-08-17  Bruno Haible  <bruno@clisp.org>
58834
58835         * lib/glthread/lock.h: Include <stdlib.h> always.
58836         * lib/glthread/tls.h: Likewise.
58837         * lib/glthread/cond.h: Likewise.
58838
58839 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58840
58841         New module 'cond'.
58842         * modules/cond: New file.
58843         * lib/glthread/cond.h: New file.
58844         * lib/glthread/cond.c: New file.
58845         * m4/cond.m4: New file.
58846         * MODULES.html.sh (Multithreading): Add cond.
58847
58848 2008-08-16  Eric Blake  <ebb9@byu.net>
58849
58850         c-stack: fix regression on Irix 5.3 from 2008-06-21
58851         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58852         sa_sigaction...
58853         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58854         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58855         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58856         * modules/signal (Makefile.am): Use the value.
58857         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58858         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58859         * doc/posix-headers/signal.texi (signal.h): Document this
58860         portability issue.
58861         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58862         Reported by Tom G. Christensen.
58863
58864 2008-08-17  Bruno Haible  <bruno@clisp.org>
58865
58866         New module 'threadlib'.
58867         * modules/threadlib: New file.
58868         * lib/glthread/threadlib.c: New file, extracted from
58869         lib/glthread/lock.c.
58870         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58871         functions.
58872         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58873         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58874         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58875         macros.
58876         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58877         (gl_DISABLE_THREADS): Remove macro.
58878         * modules/lock (Files): Remove build-aux/config.rpath.
58879         (Depends-on): Remove havelib. Add threadlib.
58880         (configure.ac-early): Remove section.
58881         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58882         * modules/tls (Depends-on): Remove lock. Add threadlib.
58883         (Link): New section, copied from threadlib.
58884         * MODULES.html.sh (Multithreading): Add threadlib.
58885
58886 2008-08-14  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58889         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58890         glthread_rwlock_unlock, glthread_rwlock_destroy,
58891         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58892         glthread_recursive_lock_destroy): Define as macros always.
58893         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58894         glthread_lock_lock.
58895         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58896         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58897         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58898         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58899         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58900         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58901         (glthread_recursive_lock_lock_func): Renamed from
58902         glthread_recursive_lock_lock.
58903         (glthread_recursive_lock_unlock_func): Renamed from
58904         glthread_recursive_lock_unlock.
58905         (glthread_recursive_lock_destroy_func): Renamed from
58906         glthread_recursive_lock_destroy.
58907
58908 2008-08-14  Bruno Haible  <bruno@clisp.org>
58909
58910         * lib/glthread/lock.h: Renamed from lib/lock.h.
58911         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58912         * lib/glthread/tls.h: Renamed from lib/tls.h.
58913         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58914         * lib/fstrcmp.c: Update includes.
58915         * lib/strsignal.c: Update includes.
58916         * modules/lock (Files, Makefile.am): Update.
58917         (Include): Change to "glthread/lock.h".
58918         * modules/tls (Files, Makefile.am): Update.
58919         (Include): Change to "glthread/tls.h".
58920         * tests/test-lock.c: Update includes.
58921         * tests/test-tls.c: Update includes.
58922         * NEWS: Mention the renamed header files.
58923
58924 2008-08-11  Jim Meyering  <meyering@redhat.com>
58925
58926         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58927
58928 2008-08-11  Eric Blake  <ebb9@byu.net>
58929
58930         test-c-stack: avoid C99-ism
58931         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58932         before statement.
58933         Reported by Alain Guibert.
58934
58935 2008-08-10  Jim Meyering  <meyering@redhat.com>
58936
58937         ensure that return value of uinttostr et al are not ignored
58938         * lib/inttostr.h (__GNUC_PREREQ): Define.
58939         (__attribute_warn_unused_result__): Define.
58940         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58941
58942 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58943
58944         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58945         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58946
58947 2008-08-07  Jim Meyering  <meyering@redhat.com>
58948
58949         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58950
58951         * modules/mkstemp (License): Relicense under LGPLv2+.
58952         * modules/tempname (License): Likewise.
58953
58954 2008-08-06  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/poll.c (poll): Further micro-optimization.
58957
58958 2008-08-06  Jim Meyering  <meyering@redhat.com>
58959
58960         inet_pton.c: use locale-independent tolower
58961         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58962         (inet_pton6): Use c_tolower rather than tolower.
58963         * modules/inet_pton (Depends-on): Add c-ctype.
58964
58965 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58966
58967         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58968         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58969
58970 2008-08-06  Jim Meyering  <meyering@redhat.com>
58971
58972         * modules/inet_pton (License): Relicense under LGPLv2+.
58973
58974 2008-08-03  Bruno Haible  <bruno@clisp.org>
58975
58976         Additional non-aborting API for lock and tls.
58977         * lib/lock.h: Include <errno.h>.
58978         (glthread_lock_init): New macro/function.
58979         (gl_lock_init): Define as wrapper around glthread_lock_init.
58980         (glthread_lock_lock): New macro/function.
58981         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58982         (glthread_lock_unlock): New macro/function.
58983         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58984         (glthread_lock_destroy): New macro/function.
58985         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58986         (glthread_rwlock_init): New macro/function.
58987         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58988         (glthread_rwlock_rdlock): New macro/function.
58989         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58990         (glthread_rwlock_wrlock): New macro/function.
58991         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58992         (glthread_rwlock_unlock): New macro/function.
58993         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58994         (glthread_rwlock_destroy): New macro/function.
58995         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58996         (glthread_recursive_lock_init): New macro/function.
58997         (gl_recursive_lock_init): Define as wrapper around
58998         glthread_recursive_lock_init.
58999         (glthread_recursive_lock_lock): New macro/function.
59000         (gl_recursive_lock_lock): Define as wrapper around
59001         glthread_recursive_lock_lock.
59002         (glthread_recursive_lock_unlock): New macro/function.
59003         (gl_recursive_lock_unlock): Define as wrapper around
59004         glthread_recursive_lock_unlock.
59005         (glthread_recursive_lock_destroy): New macro/function.
59006         (gl_recursive_lock_destroy): Define as wrapper around
59007         glthread_recursive_lock_destroy.
59008         (glthread_once): New macro/function.
59009         (gl_once): Define as wrapper around glthread_once.
59010         Update function declarations.
59011         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
59012         glthread_rwlock_init. Return error code.
59013         (glthread_rwlock_rdlock_multithreaded): Renamed from
59014         glthread_rwlock_rdlock. Return error code.
59015         (glthread_rwlock_wrlock_multithreaded): Renamed from
59016         glthread_rwlock_wrlock. Return error code.
59017         (glthread_rwlock_unlock_multithreaded): Renamed from
59018         glthread_rwlock_unlock. Return error code.
59019         (glthread_rwlock_destroy_multithreaded): Renamed from
59020         glthread_rwlock_destroy. Return error code.
59021         (glthread_recursive_lock_init_multithreaded): Renamed from
59022         glthread_recursive_lock_init. Return error code.
59023         (glthread_recursive_lock_lock_multithreaded): Renamed from
59024         glthread_recursive_lock_lock. Return error code.
59025         (glthread_recursive_lock_unlock_multithreaded): Renamed from
59026         glthread_recursive_lock_unlock. Return error code.
59027         (glthread_recursive_lock_destroy_multithreaded): Renamed from
59028         glthread_recursive_lock_destroy. Return error code.
59029         (glthread_once_call): Make static.
59030         (glthread_once_multithreaded): Renamed from glthread_once.
59031         * lib/tls.h: Include <errno.h>.
59032         (glthread_tls_key_init): New macro/function.
59033         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
59034         (glthread_tls_set): New macro/function.
59035         (gl_tls_set): Define as wrapper around glthread_tls_set.
59036         (glthread_tls_key_destroy): New macro/function.
59037         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
59038         Update function declarations.
59039         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
59040         glthread_tls_get.
59041         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59042
59043 2008-08-04  Eric Blake  <ebb9@byu.net>
59044
59045         gnumakefile: use space, not TAB, outside of targets
59046         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
59047
59048 2008-08-02  Jim Meyering  <meyering@redhat.com>
59049
59050         getdate.y: avoid locale-dependent date parsing failure
59051         In Turkish locales, getdate would fail to recognize keywords
59052         containing a lowercase "i".  The solution is not to rely on
59053         locale-sensitive case-conversion.
59054         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
59055         (lookup_word): Use c_toupper in place of toupper.
59056         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
59057         Reported by Vefa Bicakci <bicave@superonline.com> in
59058         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
59059         * modules/getdate (Depends-on): Add c-ctype.
59060
59061 2008-08-02  Bruno Haible  <bruno@clisp.org>
59062
59063         * gnulib-tool (func_import): When updating or creating a .gitignore
59064         file, prepend each added line with a slash, and ignore leading slashes
59065         from the existing lines.
59066         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59067
59068 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59069
59070         Portability fix for GNU make 3.79.1.
59071         * top/GNUmakefile: Avoid 'else COND', which older GNU make
59072         versions do not understand.
59073
59074 2008-08-01  Bruno Haible  <bruno@clisp.org>
59075
59076         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59077         * tests/test-isnanf.h (zero): New variable.
59078         (main): Avoid literal -0.0f.
59079         * tests/test-isnand.h (zero): New variable.
59080         (main): Avoid literal -0.0.
59081         * tests/test-isnanl.h (zero): New variable.
59082         (main): Avoid literal -0.0L.
59083         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59084         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59085         -0.0, -0.0L.
59086         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59087         (test_signbitd): Avoid literal -0.0.
59088         (test_signbitl): Avoid literal -0.0L.
59089         * tests/test-ceilf1.c (zero): New variable.
59090         (main): Avoid literal -0.0f.
59091         * tests/test-ceill.c (zero): New variable.
59092         (main): Avoid literal -0.0L.
59093         * tests/test-floorf1.c (zero): New variable.
59094         (main): Avoid literal -0.0f.
59095         * tests/test-floorl.c (zero): New variable.
59096         (main): Avoid literal -0.0L.
59097         * tests/test-roundf1.c (zero): New variable.
59098         (main): Avoid literal -0.0f.
59099         * tests/test-round1.c (zero): New variable.
59100         (main): Avoid literal -0.0.
59101         * tests/test-roundl.c (zero): New variable.
59102         (main): Avoid literal -0.0L.
59103         * tests/test-truncf1.c (zero): New variable.
59104         (main): Avoid literal -0.0f.
59105         * tests/test-trunc1.c (zero): New variable.
59106         (main): Avoid literal -0.0.
59107         * tests/test-truncl.c (zero): New variable.
59108         (main): Avoid literal -0.0L.
59109         * tests/test-frexp.c (zero): New variable.
59110         (main): Avoid literal -0.0.
59111         * tests/test-frexpl.c (zero): New variable.
59112         (main): Avoid literal -0.0L.
59113         * tests/test-ldexpl.c (zero): New variable.
59114         (main): Avoid literal -0.0L.
59115         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59116         (zerod, zerol): New variables.
59117         (test_function): Avoid literals -0.0, -0.0L.
59118         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59119         (zerod, zerol): New variables.
59120         (test_function): Avoid literals -0.0, -0.0L.
59121         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59122         (zerod, zerol): New variables.
59123         (test_function): Avoid literals -0.0, -0.0L.
59124         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59125         (zerod, zerol): New variables.
59126         (test_function): Avoid literals -0.0, -0.0L.
59127         * tests/test-strtod.c (zero): New variable.
59128         (main): Avoid literal -0.0.
59129         Reported by Jonathan C. Patschke <jp@centtech.com>.
59130
59131 2008-07-31  Jim Meyering  <meyering@redhat.com>
59132
59133         sha256.h: correct definition of SHA224_DIGEST_SIZE
59134         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59135         Reported by Paulie Pena IV <paulie4@gmail.com>.
59136         Define as 224 / 8, rather than as a literal.
59137         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59138         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59139         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59140
59141 2008-07-31  Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59144         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59145         Reported by Jonathan Patschke <jp@centtech.com>.
59146
59147 2008-07-31  Bruno Haible  <bruno@clisp.org>
59148
59149         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59150         Reported by Paolo Bonzini <bonzini@gnu.org>.
59151
59152 2008-07-30  Eric Blake  <ebb9@byu.net>
59153
59154         test-strtod: allow compilation without -lm
59155         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59156         Reported by Dennis Clarke <blastwave@gmail.com>.
59157
59158 2008-07-28  Jim Meyering  <meyering@redhat.com>
59159
59160         bootstrap: work also when there are no .po files in po/
59161         * build-aux/bootstrap (update_po_files): Complete the change
59162         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59163
59164 2008-07-27  Jim Meyering  <meyering@redhat.com>
59165
59166         * users.txt: Add zile.
59167
59168 2008-07-26  Ben Pfaff  <blp@gnu.org>
59169
59170         Add missing dependencies on new m4/exponent[fdl].m4 files.
59171         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59172         * modules/isnand-nolibm: Add m4/exponentd.m4.
59173         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59174         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59175         m4/isnan[fdl].m4, because the macros actually used moved.
59176         Reported by Jim Meyering.
59177
59178 2008-07-14  Ben Pfaff  <blp@gnu.org>
59179
59180         Add isinf module.
59181         * lib/isinf.c: New file.
59182         * lib/math.in.h: Define isinf macro if we have decided to replace
59183         it.
59184         * m4/isinf.m4: New file.
59185         * m4/math_h.m4: Initialize and substitute variables for isinf
59186         module.
59187         * modules/isinf: New file.
59188         * modules/isinf-tests: New file.
59189         * modules/math: Add substitutions for new module.
59190         * tests/test-isinf.c: New file.
59191         * doc/posix-functions/isinf.texi: Mention new module.
59192         * MODULES.html.sh: Mention new module.
59193
59194 2008-07-14  Ben Pfaff  <blp@gnu.org>
59195
59196         Factor out some macros for use by additional modules.
59197         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59198         exponentf.m4.
59199         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59200         exponentd.m4.
59201         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59202         file exponentl.m4.
59203         * m4/exponentf.m4: New file.
59204         * m4/exponentd.m4: New file.
59205         * m4/exponentl.m4: New file.
59206         * modules/isnanf: Use new file m4/exponentf.m4.
59207         * modules/isnand: Use new file m4/exponentd.m4.
59208         * modules/isnanl: Use new file m4/exponentl.m4.
59209
59210 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59211
59212         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59213         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59214         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59215         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59216
59217         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59218         readlink on platforms without PATH_MAX.
59219
59220 2008-07-21  Eric Blake  <ebb9@byu.net>
59221
59222         Warn, not fail, on stale version.
59223         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59224
59225         Don't allow installation with stale devel version number.
59226         * top/GNUmakefile (_is-install-target): New macro.
59227         (_curr-ver): Forbid installation with stale version number.
59228
59229 2008-07-20  Bruno Haible  <bruno@clisp.org>
59230
59231         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59232         TESTS_ENVIRONMENT.
59233         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59234
59235 2008-07-20  Bruno Haible  <bruno@clisp.org>
59236
59237         * lib/c-stack.h (c_stack_action): Add documentation.
59238         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59239
59240 2008-07-20  Bruno Haible  <bruno@clisp.org>
59241
59242         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59243         * modules/readlink (License): Likewise.
59244
59245 2008-07-17  Eric Blake  <ebb9@byu.net>
59246
59247         * modules/c-stack (Link): Fix typo.
59248
59249         Make c-stack use libsigsegv, when available.
59250         * modules/c-stack (Depends-on): Add libsigsegv.
59251         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59252         needed.
59253         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59254         (segv_handler, overflow_handler, c_stack_action)
59255         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59256         implementation when libsigsegv is available, but only when using
59257         the library is necessary.
59258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59259         comment, explaining why XSI check fails on Linux.
59260         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59261         * tests/test-c-stack2.sh: Tweak skip message.
59262         * NEWS: Document new link-time requirements.
59263
59264 2008-07-16  Eric Blake  <ebb9@byu.net>
59265
59266         c-stack: Expose false positives when not using libsigsegv.
59267         * modules/c-stack-tests (Files): Expand test.
59268         * tests/test-c-stack.c (main): Add means to conditionally trigger
59269         non-overflow SIGSEGV.
59270         * tests/test-c-stack2.sh: New file.
59271
59272 2008-07-14  Bruno Haible  <bruno@clisp.org>
59273
59274         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59275         Reported by Eric Blake.
59276
59277 2008-07-14  Sam Steingold  <sds@gnu.org>
59278             Bruno Haible  <bruno@clisp.org>
59279
59280         New module libsigsegv.
59281         * modules/libsigsegv: New file.
59282         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59283         modifications.
59284         * MODULES.html.sh (Signal handling): New section.
59285
59286 2008-07-14  Bruno Haible  <bruno@clisp.org>
59287
59288         * modules/unictype/ctype-* (Description): Add the word "function".
59289         Improves the resulting doc in MODULES.html.
59290
59291 2008-07-12  Ben Pfaff  <blp@gnu.org>
59292
59293         Add longlong module.
59294         * modules/longlong: New file.
59295
59296 2008-07-12  Bruno Haible  <bruno@clisp.org>
59297
59298         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59299         to empty.
59300
59301 2008-07-10  Ben Pfaff  <blp@gnu.org>
59302
59303         Add isnan module.
59304         * doc/posix-functions/isnan.texi: Mention new module.
59305         * lib/math.in.h: Define isnan macro if we have decided to replace
59306         it.
59307         * m4/isnan.m4: New file.
59308         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59309         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59310         also.
59311         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59312         redundancy.
59313         * m4/math_h.m4: Initialize and substitute variables for isnan
59314         module.
59315         * modules/isnan: New file.
59316         * modules/isnan-tests: New file.
59317         * modules/math: Add substitutions for new module.
59318         * tests/test-isnan.c: New file.
59319         * MODULES.html.sh: Mention new module.
59320
59321 2008-07-10  Ben Pfaff  <blp@gnu.org>
59322
59323         Add isnanf module.
59324         * lib/isnanf.m4: New file.
59325         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59326         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59327         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59328         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59329         * modules/isnanf: New file.
59330         * modules/isnanf-tests: New file.
59331         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59332         files.
59333         * tests/test-isnanf-nolibm.c: factored most of its contents into
59334         new file tests/test-isnanf.h.
59335         * tests/test-isnanf.h: New file.
59336         * tests/test-isnanf.c: New file.
59337         * MODULES.html.sh: Mention new module.
59338         * doc/glibc-functions/isnanf.texi: Mention new module.
59339
59340 2008-07-10  Ben Pfaff  <blp@gnu.org>
59341
59342         Add isnand module.
59343         * lib/isnand.h: New file.
59344         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59345         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59346         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59347         functionality also.
59348         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59349         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59350         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59351         * modules/isnand: New file.
59352         * modules/isnand-tests: New file.
59353         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59354         files.
59355         * tests/test-isnand-nolibm.c: factored most of its contents into
59356         new file tests/test-isnand.h.
59357         * tests/test-isnand.h: New file.
59358         * tests/test-isnand.c: New file.
59359         * MODULES.html.sh: Mention new module.
59360
59361 2008-07-10  Ben Pfaff  <blp@gnu.org>
59362
59363         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59364         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59365         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59366         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59367         * modules/isnanf-nolibm: Update references to renamed files.
59368         * modules/isnand-nolibm: Likewise.
59369         * modules/isnanf-nolibm-tests: Likewise.
59370         * modules/isnand-nolibm-tests: Likewise.
59371         * lib/frexp.c: Likewise.
59372         * lib/isfinite.c: Likewise.
59373         * lib/signbitd.c: Likewise.
59374         * lib/signbitf.c: Likewise.
59375         * lib/vasnprintf.c: Likewise.
59376         * tests/test-ceilf1.c: Likewise.
59377         * tests/test-ceilf2.c: Likewise.
59378         * tests/test-floorf1.c: Likewise.
59379         * tests/test-floorf2.c: Likewise.
59380         * tests/test-frexp.c: Likewise.
59381         * tests/test-round1.c: Likewise.
59382         * tests/test-round2.c: Likewise.
59383         * tests/test-roundf1.c: Likewise.
59384         * tests/test-strtod.c: Likewise.
59385         * tests/test-trunc1.c: Likewise.
59386         * tests/test-trunc2.c: Likewise.
59387         * tests/test-truncf1.c: Likewise.
59388         * tests/test-truncf2.c: Likewise.
59389         * NEWS: Mention the renamed header files.
59390
59391 2008-07-11  Jim Meyering  <meyering@redhat.com>
59392
59393         vc-list-files: make the last-resort awk code more portable
59394         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59395         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59396         does not support it.
59397
59398 2008-07-10  Eric Blake  <ebb9@byu.net>
59399
59400         Work with tar's bootstrap.
59401         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59402         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59403         an m4 comment.
59404
59405 2008-07-09  Jim Meyering  <meyering@redhat.com>
59406
59407         posix-shell.m4: fix typo that made this test malfunction
59408         * m4/posix-shell.m4: Remove capitalization in variable name.
59409
59410 2008-07-08  Bruno Haible  <bruno@clisp.org>
59411
59412         * m4/onceonly.m4: Update comments.
59413         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59414
59415 2008-07-04  Jim Meyering  <meyering@redhat.com>
59416
59417         * users.txt: Add vc-dwim.
59418         (bison, coreutils): Use the gitweb URL.
59419
59420 2008-07-03  Jim Meyering  <meyering@redhat.com>
59421
59422         * users.txt: Add libffcall.  From Sam Steingold.
59423
59424 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59425
59426         getdate.y: do not ignore TZ with relative day, month or year offset
59427         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59428         relative-date-handling, since otherwise, the latter would clobber the
59429         sole output (an updated Start value) of the tz-handling block.
59430         * tests/test-getdate.c: Tests for the fix
59431
59432 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59433
59434         Recognize 'foo_LIBRARIES += libgnu.a'.
59435         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59436         makefile snippet has already specified an installation location,
59437         also using '+='.
59438
59439 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59440
59441         getdate.y: factor out common actions
59442         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59443         Use them in place of open-coded actions.
59444
59445 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59446
59447         Add self-test for getdate module.
59448         * modules/getdate-tests: New file.
59449         * tests/test-getdate.c: New file.
59450
59451 2008-06-29  Bruno Haible  <bruno@clisp.org>
59452
59453         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59454         .gitignore.
59455         Reported by Sylvain Beucler <beuc@beuc.net>.
59456
59457 2008-06-29  Bruno Haible  <bruno@clisp.org>
59458
59459         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59460         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59461
59462 2008-06-29  Bruno Haible  <bruno@clisp.org>
59463
59464         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59465         EXTRA_DIST.
59466         Reported by Sylvain Beucler <beuc@beuc.net>.
59467
59468 2008-06-26  Jim Meyering  <meyering@redhat.com>
59469
59470         make several modules depend on the "open" module
59471         This provides slightly increased consistency when opening-for-write
59472         the name of a non-directory spelled with a trailing slash.
59473         * modules/chdir-safer: Likewise.
59474         * modules/chown: Likewise.
59475         * modules/clean-temp: Likewise.
59476         * modules/copy-file: Likewise.
59477         * modules/fchdir: Likewise.
59478         * modules/fcntl-safer: Likewise.
59479         * modules/pipe: Likewise.
59480         * modules/utime: Likewise.
59481         Prompted by Eric Blake and Bruno Haible.
59482
59483 2008-06-24  Andreas Schwab  <schwab@suse.de>
59484
59485         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59486         literals can be used as initializers for global variables.
59487
59488 2008-06-23  Eric Blake  <ebb9@byu.net>
59489
59490         Make gnulib-cache.m4 easier to diff.
59491         * gnulib-tool (func_import): Allow newlines when reading cached
59492         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59493
59494 2008-06-23  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59497         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59498         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59499         m4/signalblocking.m4.
59500         (gl_PREREQ_SIGACTION): Don't invoke it.
59501         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59502         gl_PREREQ_SIG_HANDLER_H.
59503         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59504         Don't check for sigaction here.
59505
59506 2008-06-23  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59509         (install_handlers): Don't set the SA_RESETHAND flag.
59510
59511 2008-06-23  Bruno Haible  <bruno@clisp.org>
59512
59513         * m4/sigaction.m4: Comment fixes.
59514         * lib/signal.in.h: Likewise.
59515
59516 2008-06-23  Eric Blake  <ebb9@byu.net>
59517
59518         Fix typo.
59519         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59520
59521         Avoid SA_ namespace.
59522         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59523         Reported by Ralf Wildenhues.
59524
59525         Avoid test failure due to SA_RESTORER.
59526         * tests/test-sigaction.c (SA_MASK): New macro.
59527         (main): Avoid failing due to extension flags being set.
59528         Reported by Jim Meyering.
59529
59530         Revert use of sig-handler.h in sigprocmask.c.
59531         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59532         it requires the existence of struct sigaction.
59533         * lib/sigprocmask.c (handler_t): Restore typedef.
59534         (rpl_signal, old_handlers): Use local type.
59535
59536 2008-06-22  Bruno Haible  <bruno@clisp.org>
59537
59538         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59539         conditionally.
59540         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59541
59542 2008-06-22  Bruno Haible  <bruno@clisp.org>
59543
59544         * doc/posix-functions/siginterrupt.texi: Move note.
59545
59546         * lib/signal.in.h (SA_RESTART): New macro.
59547         * lib/sigaction.c: Update comment.
59548
59549         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59550
59551         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59552         (gl_PREREQ_SIGPROCMASK): Invoke it.
59553         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59554
59555         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59556
59557         * lib/sigprocmask.c: Update a comment.
59558
59559 2008-06-21  Eric Blake  <ebb9@byu.net>
59560
59561         Use sigaction module rather than signal().
59562         * modules/c-stack (Depends-on): Add sigaction.
59563         * modules/fatal-signal (Depends-on): Likewise.
59564         * modules/nanosleep (Depends-on): Likewise.
59565         * modules/sigprocmask (Files): Add sig-handler.h.
59566         * modules/sigaction (Files): Likewise.
59567         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59568         Eggert.
59569         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59570         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59571         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59572         (init_fatal_signals): Likewise.
59573         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59574         (siginterrupt): Delete fallback.
59575         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59576         instead.
59577         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59578         siginterrupt.
59579
59580         New module sigaction, for mingw.
59581         * modules/sigaction: New module...
59582         * modules/sigaction-tests: ...and its test.
59583         * m4/sigaction.m4: New file.
59584         * lib/sigaction.c: Likewise.
59585         * tests/test-sigaction.c: Likewise.
59586         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59587         * modules/signal (Makefile.am): Likewise.
59588         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59589         needed.
59590         * doc/posix-headers/signal.texi (signal.h): Mention provided
59591         types.
59592         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59593         that sigaction is preferable.
59594         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59595         module.
59596         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59597         sigaction.
59598
59599         Improve robustness of sigprocmask by overriding signal.
59600         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59601         is in use.
59602         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59603         (SIGKILL, SIGSTOP): Provide fallbacks.
59604         (rpl_signal): Implement.
59605         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59606         signal can be called inside handlers.
59607
59608         Fix nanosleep module on mingw.
59609         * modules/nanosleep (Depends-on): Add sys_select.
59610         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59611
59612         Fix licensing of sigprocmask.
59613         * modules/raise (License): Relicense as LGPL.
59614
59615 2008-06-21  Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59618         result if it contains question marks.
59619         Reported by Michael Geng <linux@michaelgeng.de>.
59620
59621 2008-06-19  Bruno Haible  <bruno@clisp.org>
59622
59623         Fix CVS-ism.
59624         * doc/gnulib.texi: Include updated-stamp.texi.
59625         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59626         (updated-stamp.texi): New rule.
59627         (gnulib.info): Depend on it.
59628         * doc/.gitignore: Add updated-stamp.texi.
59629         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59630
59631 2008-06-19  Bruno Haible  <bruno@clisp.org>
59632
59633         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59634         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59635
59636 2008-06-19  Eric Blake  <ebb9@byu.net>
59637
59638         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59639         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59640         Reported by Stepan Kasal.
59641
59642 2008-06-18  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59645         Reported by Eric Blake.
59646
59647 2008-06-18  Eric Blake  <ebb9@byu.net>
59648
59649         Work around cygwin 1.5.25 strsignal bug.
59650         * tests/test-strsignal.c: Allow for const char *.
59651         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59652
59653 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59654
59655         * users.txt: Update URL to article and add author/date
59656         information.
59657
59658 2008-06-17  Bruno Haible  <bruno@clisp.org>
59659
59660         New macro gl_DISABLE_THREADS.
59661         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59662         if the user did not pass --enable-threads or --disable-threads option.
59663         (gl_DISABLE_THREADS): New macro.
59664         Reported by Eric Blake <ebb9@byu.net>.
59665
59666 2008-06-17  Bruno Haible  <bruno@clisp.org>
59667
59668         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59669         when the macro ignores it.
59670         Based on a patch by Eric Blake <ebb9@byu.net>.
59671
59672 2008-06-17  Bruno Haible  <bruno@clisp.org>
59673
59674         * modules/tls (License): Change to LGPLv2+.
59675         Reported by Eric Blake.
59676
59677 2008-06-17  Eric Blake  <ebb9@byu.net>
59678
59679         Simplify c-stack prerequisites.
59680         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59681         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59682         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59683         check.
59684         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59685         <sys/resource.h>.
59686
59687         Move c-stack test into testsuite.
59688         * modules/c-stack-tests: New file.
59689         * lib/c-stack.c [DEBUG]: Move test program...
59690         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59691         fail test if sigaltstack is lacking.
59692         * tests/test-c-stack.sh: New driver file.
59693
59694 2008-06-16  Eric Blake  <ebb9@byu.net>
59695
59696         Use raise module consistently.
59697         * modules/fatal-signal (Depends-on): Add raise.
59698         * modules/sigprocmask (Depends-on): Likewise.
59699         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59700         * lib/sigprocmask.c (sigprocmask): Likewise.
59701         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59702         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59703
59704         Fix compliance bug in sigpending.
59705         * lib/sigprocmask.c (sigpending): Return pending array via
59706         parameter, not return value.
59707
59708 2008-06-14  Eric Blake  <ebb9@byu.net>
59709
59710         Improve obstack-printf test code.
59711         * tests/test-obstack-printf.c (test_function): Fix comment, and
59712         simplify usage of obstack_* in macros.  Add a test for coverage.
59713         Reported by Bruno Haible.
59714
59715 2008-06-14  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59718         array size as a constant, not as a const variable.
59719         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59720         AC_USE_SYSTEM_EXTENSIONS.
59721         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59722         Test whether the obstack_printf function actually exists.
59723         * modules/obstack-printf (Depends-on): Add extensions.
59724         (Include): Remove obstack.h.
59725         * modules/obstack-printf-posix (Depends-on): Add extensions.
59726         (Include): Remove obstack.h.
59727
59728 2008-06-13  Eric Blake  <ebb9@byu.net>
59729
59730         Add obstack-printf and obstack-printf-posix modules.
59731         * modules/obstack-printf: New file.
59732         * modules/obstack-printf-posix: Likewise.
59733         * MODULES.html.sh (Misc): Mention them.
59734         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59735         Likewise.
59736         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59737         Likewise.
59738         * modules/stdio (Makefile.am): Accomodate new modules.
59739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59740         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59741         Declare.
59742         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59743         functions.
59744         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59745         (gl_REPLACE_OBSTACK_PRINTF): New macros
59746         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59747         * tests/test-obstack-printf.c: New file.
59748         * modules/obstack-printf-tests: Likewise.
59749         * modules/obstack-printf-posix-tests: Likewise.
59750
59751 2008-06-11  Bruno Haible  <bruno@clisp.org>
59752
59753         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59754         * lib/open.c: Include errno.h.
59755         (open): Fail when attempting to write to a file that has a trailing
59756         slash.
59757         * tests/test-open.c (main): Test against trailing slash bug.
59758         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59759
59760 2008-06-10  Bruno Haible  <bruno@clisp.org>
59761
59762         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59763         for $? to work inside the trap command, with various /bin/sh-s.
59764         * tests/test-vc-list-files-cvs.sh: Likewise.
59765
59766 2008-06-10  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/acl-internal.h: Don't include gettext.h here.
59769         * lib/set-mode-acl.c: Include gettext.h here.
59770         * lib/copy-acl.c: Likewise.
59771
59772 2008-06-10  Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59775         * lib/wait-process.c (wait_subprocess): Likewise.
59776         * lib/execute.h (execute): Add termsigp argument.
59777         * lib/execute.c (execute): Likewise.
59778         * lib/csharpcomp.c (compile_csharp_using_pnet,
59779         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59780         * lib/csharpexec.c (execute_csharp_using_pnet,
59781         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59782         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59783         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59784         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59785         is_jikes_present): Update.
59786         * lib/javaexec.c (execute_java_class): Update.
59787         * lib/javaversion.c (execute_and_read_line): Update.
59788         * NEWS: Document the changes.
59789         Reported by Eric Blake.
59790
59791 2008-06-10  Eric Blake  <ebb9@byu.net>
59792
59793         Add missing include.
59794         * tests/test-strstr.c (includes): Add <signal.h>.
59795         * tests/test-strcasestr.c (includes): Likewise.
59796         * tests/test-memmem.c (includes): Likewise.
59797
59798 2008-06-10  Bruno Haible  <bruno@clisp.org>
59799
59800         * lib/wait-process.c (wait_subprocess): Add an assertion.
59801
59802 2008-06-10  Bruno Haible  <bruno@clisp.org>
59803
59804         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59805
59806 2008-06-10  Bruno Haible  <bruno@clisp.org>
59807
59808         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59809         using alarm().
59810         * tests/test-strcasestr.c (main): Likewise.
59811         * tests/test-strstr.c (main): Likewise.
59812
59813 2008-06-09  Bruno Haible  <bruno@clisp.org>
59814
59815         Work around the Solaris 10 ACE ACLs ABI change.
59816         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59817         declare if ACL_NO_TRIVIAL is present.
59818         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59819         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59820         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59821         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59822         define if ACL_NO_TRIVIAL is present.
59823         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59824         and use the current ABI.
59825         (file_has_acl): Use same #if condition as elsewhere.
59826         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59827         in use, and use the current ABI.
59828         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59829         Reported by Jim Meyering.
59830
59831 2008-06-09  Eric Blake  <ebb9@byu.net>
59832
59833         Work around environments that (stupidly) ignore SIGALRM.
59834         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59835         before using alarm().
59836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59837         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59838         Reported by Ian Beckwith <ianb@erislabs.net>.
59839
59840         Produce autobuild blurb earlier in log.
59841         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59842
59843 2008-06-09  Jim Meyering  <meyering@redhat.com>
59844         and Ondřej Vašík  <ovasik@redhat.com>
59845
59846         utimens.c: correct kernel bug work-around
59847         Ondřej Vašík found that the invalid return value of 280 indicates
59848         failure, not success, and the kernel bug we're trying to work
59849         around affects not just the utimensat call, but also the fallback
59850         futimens call.
59851         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59852         not success.
59853         [HAVE_FUTIMENS]: Use the same work-around, here.
59854
59855 2008-06-09  Jim Meyering  <meyering@redhat.com>
59856
59857         add more guards around definition of ACE_-related code
59858         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59859         ALLOW and ACE_OWNER are also defined.
59860
59861 2008-06-08  Bruno Haible  <bruno@clisp.org>
59862
59863         * lib/acl-internal.h: Add me as co-author.
59864         * lib/file-has-acl.c: Likewise.
59865         * lib/set-mode-acl.c: Likewise.
59866         * lib/copy-acl.c: Likewise.
59867
59868 2008-06-08  Bruno Haible  <bruno@clisp.org>
59869
59870         Add support for AIX ACLs.
59871         * lib/acl-internal.h (acl_nontrivial): New declaration.
59872         * lib/file-has-acl.c (acl_nontrivial): New function.
59873         (file_has_acl): Add implementation using AIX 4 ACL API.
59874         * lib/set-mode-acl.c (qset_acl): Likewise.
59875         * lib/copy-acl.c (qcopy_acl): Likewise.
59876
59877 2008-06-08  Bruno Haible  <bruno@clisp.org>
59878
59879         Add support for HP-UX ACLs.
59880         * lib/acl-internal.h (acl_nontrivial): New declaration.
59881         * lib/file-has-acl.c (acl_nontrivial): New function.
59882         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59883         * lib/set-mode-acl.c (qset_acl): Likewise.
59884         * lib/copy-acl.c (qcopy_acl): Likewise.
59885
59886 2008-06-08  Bruno Haible  <bruno@clisp.org>
59887
59888         Add support for Cygwin ACLs.
59889         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59890         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59891         the chmod_or_fchmod call.
59892         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59893
59894 2008-06-08  Bruno Haible  <bruno@clisp.org>
59895
59896         Fix bug with setuid modes in Solaris 10+ code.
59897         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59898         succeeded, when the mode contains some special bits.
59899
59900 2008-06-08  Bruno Haible  <bruno@clisp.org>
59901
59902         Add support for Solaris 7..10 ACLs.
59903         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59904         declarations.
59905         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59906         functions.
59907         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59908         * lib/set-mode-acl.c (qset_acl): Likewise.
59909         * lib/copy-acl.c (qcopy_acl): Likewise.
59910
59911 2008-06-08  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59914         declaration.
59915         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59916         (acl_access_nontrivial): Remove MacOS X case.
59917         (file_has_acl): Use acl_extended_nontrivial.
59918         * lib/copy-acl.c (qcopy_acl): Likewise.
59919
59920 2008-06-08  Bruno Haible  <bruno@clisp.org>
59921
59922         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59923
59924 2008-06-08  Jim Meyering  <meyering@redhat.com>
59925
59926         * modules/acl (Maintainer): Add Bruno Haible.
59927
59928 2008-06-07  Bruno Haible  <bruno@clisp.org>
59929
59930         Improve support for Tru64 ACLs.
59931         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59932         ACL on OSF/1.
59933
59934 2008-06-07  Bruno Haible  <bruno@clisp.org>
59935
59936         Add support for MacOS X ACLs.
59937         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59938         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59939         * lib/set-mode-acl.c (qset_acl): Likewise.
59940         * lib/copy-acl.c (qcopy_acl): Likewise.
59941
59942 2008-06-07  Bruno Haible  <bruno@clisp.org>
59943
59944         Fix memory leak introduced on 2008-05-22.
59945         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59946         use.
59947
59948 2008-06-07  Bruno Haible  <bruno@clisp.org>
59949
59950         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59951         to construct an empty ACL.
59952
59953 2008-06-07  Bruno Haible  <bruno@clisp.org>
59954
59955         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59956         precisely.
59957         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59958
59959 2008-06-07  Bruno Haible  <bruno@clisp.org>
59960
59961         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59962         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59963
59964 2008-06-07  Bruno Haible  <bruno@clisp.org>
59965
59966         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59967         regardless of POSIX.
59968         * doc/posix-functions/_longjmp.texi: Likewise.
59969         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59970         SystemV platform in this case.
59971
59972 2008-06-06  Eric Blake  <ebb9@byu.net>
59973
59974         Document abort() bugs.
59975         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59976
59977         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59978         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59979         sigsetjmp.
59980         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59981         siglongjmp, but only as a macro.
59982         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59983         is obsolete.
59984         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59985
59986         Tweak documentation to cover cygwin argz bugs.
59987         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59988         argz bug fix; no code change needed since no cygwin releases
59989         occurred between the last fix and the bug being tested.
59990         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59991         module and recently fixed cygwin bugs.
59992         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59993         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59994         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59995         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59996         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59997         Likewise.
59998         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59999         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
60000         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
60001         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
60002         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
60003         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
60004         Likewise.
60005
60006         Avoid gcc warning on cygwin.
60007         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
60008         !ACL_NO_TRIVIAL]: Avoid unused variable.
60009
60010 2008-06-05  Eric Blake  <ebb9@byu.net>
60011
60012         Be tolerant of UNKNOWN version in gnulib-tool test dir.
60013         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
60014         git-version-gen fails to come up with a version.
60015         Reported by Simon Josefsson.
60016
60017 2008-06-05  Jim Meyering  <meyering@redhat.com>
60018             Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         utimens.c: work around a probable Linux kernel bug
60021         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
60022         appears to be a kernel bug that causes utimensat to return 280
60023         instead of 0, indicating success.
60024
60025 2008-06-04  Bruno Haible  <bruno@clisp.org>
60026
60027         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
60028         2008-06-01 commit.
60029
60030 2008-06-04  Bruno Haible  <bruno@clisp.org>
60031
60032         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
60033         * lib/file-has-acl.c (acl_access_nontrivial): New function.
60034         (file_has_acl): Use it. Save errno afterwards.
60035         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
60036
60037 2008-06-03  Bruno Haible  <bruno@clisp.org>
60038
60039         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
60040         draft code. Simplify #ifs.
60041         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
60042         Put Solaris code after POSIX-draft code. Fix comments regarding
60043         Solaris 10, HP-UX. Mention Cygwin.
60044         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
60045
60046 2008-06-03  Eric Blake  <ebb9@byu.net>
60047
60048         Provide fallback for older kernels.
60049         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
60050         Provide runtime fallback if kernel lacks support.
60051         Reported by Mike Frysinger.
60052
60053 2008-06-02  Bruno Haible  <bruno@clisp.org>
60054
60055         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
60056         it exists.
60057
60058 2008-06-02  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
60061         * lib/copy-acl.c (qcopy_acl): Update comment.
60062
60063 2008-06-02  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
60066         like ACL APIs.
60067
60068 2008-06-02  Bruno Haible  <bruno@clisp.org>
60069
60070         * tests/test-file-has-acl.sh: Use different code for Cygwin.
60071         * tests/test-set-mode-acl.sh: Likewise.
60072         * tests/test-copy-acl.sh: Likewise.
60073         * tests/test-copy-file.sh: Likewise.
60074
60075 2008-06-02  Bruno Haible  <bruno@clisp.org>
60076
60077         * tests/test-file-has-acl.sh: Remove unused code.
60078
60079 2008-06-01  Bruno Haible  <bruno@clisp.org>
60080
60081         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60082         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60083         messages.
60084         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60085
60086 2008-06-01  Bruno Haible  <bruno@clisp.org>
60087
60088         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60089         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60090         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60091         APIs.
60092         * modules/acl-tests (configure.ac): Remove tests now contained in
60093         m4/acl.m4.
60094
60095 2008-06-02  Jim Meyering  <meyering@redhat.com>
60096
60097         announce-gen: use a better key-server host name
60098         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60099         it may be more consistently reliable.  Suggested by Werner Koch
60100         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60101
60102 2008-06-01  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60105         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60106
60107 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60108
60109         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60110
60111 2008-06-01  Bruno Haible  <bruno@clisp.org>
60112
60113         New ACL tests.
60114         * tests/test-file-has-acl.sh: New file.
60115         * tests/test-file-has-acl.c: New file.
60116         * tests/test-set-mode-acl.sh: New file.
60117         * tests/test-set-mode-acl.c: New file.
60118         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60119         * tests/test-copy-acl.c: New file.
60120         * modules/acl-tests: New file, based on modules/copy-file-tests.
60121         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60122         (Depends-on): Add acl-tests.
60123         (configure.ac): Remove checks.
60124         (Makefile.am): Don't create test-sameacls program here any more.
60125
60126 2008-06-01  Bruno Haible  <bruno@clisp.org>
60127
60128         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60129         * tests/test-sameacls.c: Include progname.h.
60130         (main): Invoke set_program_name. Portability fixes for MacOS X,
60131         Solaris, HP-UX.
60132
60133 2008-06-01  Bruno Haible  <bruno@clisp.org>
60134
60135         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60136         function.
60137         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60138
60139 2008-06-01  Bruno Haible  <bruno@clisp.org>
60140
60141         * modules/rpmatch (Depends-on): Add strdup.
60142
60143 2008-06-01  Bruno Haible  <bruno@clisp.org>
60144
60145         * lib/pipe.c: Include unistd-safer.h.
60146         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60147         * modules/pipe (Depends-on): Add unistd-safer.
60148
60149 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60150
60151         * modules/autobuild (configure.ac): Call AB_INIT.
60152
60153 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60154
60155         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60156         Suggested by Bruno Haible <bruno@clisp.org>.
60157
60158 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60159
60160         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60161         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60162         <bruno@clisp.org>.
60163
60164 2008-05-29  Eric Blake  <ebb9@byu.net>
60165
60166         Prefer new POSIX 200x interfaces over futimesat.
60167         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60168         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60169         when available.
60170         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60171
60172 2008-05-28  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/stpcpy (License): Change to LGPLv2+.
60175         Requested by David Lutterkort <dlutter@redhat.com>.
60176
60177 2008-05-27  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60180         current mingw.
60181         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60182
60183 2008-05-27  Bruno Haible  <bruno@clisp.org>
60184
60185         * modules/iconv_open (Link): New section, from module 'iconv'.
60186         * modules/striconv (Link): Likewise.
60187         * modules/striconveh (Link): Likewise.
60188         * modules/xstriconv (Link): Likewise.
60189         * modules/unicodeio (Link): Likewise.
60190         * modules/propername (Link): Likewise.
60191         Reported by Jim Meyering.
60192
60193 2008-05-26  Jim Meyering  <meyering@redhat.com>
60194
60195         sha256: do not artificially restrict buffer length to be < 2^32
60196         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60197         uint32_t to size_t.
60198         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60199         to match.
60200
60201         avoid unaligned access errors, e.g., on sparc
60202         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60203         direct access through a possibly-unaligned uint64* pointer.
60204         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60205         direct access through a possibly-unaligned uint32* pointer.
60206         Prompted by this patch from Tom "spot" Callaway:
60207         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60208
60209         sha512.c: fix typo in comment
60210         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60211
60212 2008-05-25  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60215         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60216         (Makefile.am): Update lib_SOURCES.
60217
60218 2008-05-25  Bruno Haible  <bruno@clisp.org>
60219
60220         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60221
60222 2008-05-25  Jim Meyering  <meyering@redhat.com>
60223
60224         useless-if-before-free: freed expr may have white-space differences
60225         * build-aux/useless-if-before-free: Recognize cases in which the
60226         freed expression differs from the tested one in embedded white
60227         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60228         $1 was used, so we can't make any regexp shy.  Improved tests now
60229         detect this.
60230
60231         useless-if-before-free: accept white space in the expression.
60232         * build-aux/useless-if-before-free: For now, any white space
60233         in the expression must be identical in the free argument.
60234
60235         useless-if-before-free: efficiency tweak
60236         * build-aux/useless-if-before-free: Make the expression-matching
60237         regexp "shy".
60238         Make the *outer* regexp shy, not the expr-matching one.
60239
60240         update code-in-comment to accept cast of free arg
60241         * build-aux/useless-if-before-free: Update regexp.
60242
60243 2008-05-25  Bruno Haible  <bruno@clisp.org>
60244
60245         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60246         * modules/copy-file-tests (Files, Makefile.am): Update.
60247         * tests/test-copy-file.c (func_test_copy): Update.
60248
60249 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60250
60251         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60252
60253 2008-05-23  Bruno Haible  <bruno@clisp.org>
60254
60255         Improve support for ACLs on OSF/1.
60256         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60257         Remove fallback for unknown flavors of ACLs.
60258
60259 2008-05-22  Bruno Haible  <bruno@clisp.org>
60260
60261         Add support for ACLs on OSF/1.
60262         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60263         replacements.
60264         (acl_free_text): New macro fallback.
60265         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60266         acl_free.
60267         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60268         acl_free_text function. Require AC_C_INLINE.
60269
60270 2008-05-22  Bruno Haible  <bruno@clisp.org>
60271
60272         Make copy_acl work on MacOS X 10.5.
60273         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60274         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60275         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60276         If MODE_INSIDE_ACL, don't assume that every system has the same text
60277         representation for ACLs as FreeBSD.
60278         * lib/copy-acl.c (copy_acl): Add support for platforms with
60279         !MODE_INSIDE_ACL.
60280         * lib/file-has-acl.c (file_has_acl): Likewise.
60281         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60282         FreeBSD, MacOS X, or IRIX, respectively.
60283
60284 2008-05-22  Bruno Haible  <bruno@clisp.org>
60285
60286         * lib/acl.h: Don't include <sys/acl.h>.
60287         (GETACLCNT): Move fallback to lib/acl-internal.h.
60288         * lib/acl-internal.h: Include <sys/acl.h> here.
60289         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60290
60291 2008-05-22  Bruno Haible  <bruno@clisp.org>
60292
60293         Split off copy_acl function to separate file.
60294         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60295         * lib/acl.c (copy_acl): Moved function to separate file.
60296         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60297         * modules/acl (Files): Add lib/copy-acl.c.
60298         (Makefiles.am): Augment lib_SOURCES.
60299
60300 2008-05-22  Bruno Haible  <bruno@clisp.org>
60301
60302         * modules/copy-file-tests: New file.
60303         * tests/test-copy-file.sh: New file.
60304         * tests/test-copy-file.c: New file.
60305         * tests/test-copy-file-sameacls.c: New file.
60306
60307 2008-05-22  Eric Blake  <ebb9@byu.net>
60308
60309         Avoid gcc warning.
60310         * tests/test-memcmp.c (main): Pass NULL indirectly.
60311
60312 2008-05-21  Bruno Haible  <bruno@clisp.org>
60313
60314         Add reference doc about ACLs.
60315         * doc/acl-resources.txt: New file.
60316         * doc/acl-cygwin.txt: New file.
60317
60318 2008-05-21  Bruno Haible  <bruno@clisp.org>
60319
60320         Avoid one more warning from gcc.
60321         * lib/vasnprintf.c (IF_LINT): Update comments.
60322         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60323
60324 2008-05-21  Jim Meyering  <meyering@redhat.com>
60325
60326         avoid a warning from gcc
60327         * lib/vasnprintf.c (IF_LINT): Define.
60328         (scale10_round_decimal_long_double):
60329         Use it to avoid a "may be used uninitialized" warning.
60330         (scale10_round_decimal_double): Likewise.
60331
60332 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60333
60334         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60335         declared.
60336
60337 2008-05-20  Bruno Haible  <bruno@clisp.org>
60338
60339         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60340         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60341
60342 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60343
60344         * modules/memcmp-tests: New file.
60345         * tests/test-memcmp.c: New file.
60346
60347 2008-05-19  Bruno Haible  <bruno@clisp.org>
60348
60349         * modules/propername (Notice, configure.ac): Put quoted "..." into
60350         --keyword option.
60351         * lib/propername.h: Update comments accordingly.
60352         Reported by Eric Blake.
60353
60354 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60355
60356         * modules/getpass-gnu (Depends-on): Add fseeko.
60357
60358 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60359
60360         * modules/base64-tests: New file.
60361
60362 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60363
60364         * lib/base64.c (base64_decode_ctx): If a decode context structure
60365         was passed in use it to ignore newlines.  If a context structure
60366         was _not_ passed in, continue to treat newlines as garbage (this
60367         is the historical behavior).  Formerly base64_decode.
60368         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60369         takes a decode context structure.
60370         * lib/base64.h (base64_decode): Macro for four-argument calls.
60371         (base64_decode_alloc): Likewise.
60372         * lib/base64.c (base64_decode_ctx): If a decode context structure
60373         was passed in use it to ignore newlines.  If a context structure
60374         was _not_ passed in, continue to treat newlines as garbage (this
60375         is the historical behavior).  Formerly base64_decode.
60376         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60377         takes a decode context structure.
60378         * lib/base64.h (base64_decode): Macro for four-argument calls.
60379         (base64_decode_alloc): Likewise.
60380
60381 2008-05-19  Jim Meyering  <meyering@redhat.com>
60382
60383         avoid a warning from gcc
60384         * lib/trim.c (IF_LINT): Define.
60385         (trim2): Use it to avoid a "may be used uninitialized" warning.
60386
60387         Fix doc typo.
60388         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60389
60390 2008-05-19  Bruno Haible  <bruno@clisp.org>
60391
60392         * doc/glibc-functions/getpass.texi: Document limits of other
60393         implementations.
60394
60395 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60396             Bruno Haible <bruno@clisp.org>
60397
60398         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60399
60400 2008-05-18  Bruno Haible  <bruno@clisp.org>
60401
60402         * modules/propername: New file, from GNU gettext.
60403         * lib/propername.h: New file, from GNU gettext.
60404         * lib/propername.c: New file, from GNU gettext.
60405         * MODULES.html.sh (Internationalization functions): Add propername.
60406
60407 2008-05-16  Jim Meyering  <meyering@redhat.com>
60408             Bruno Haible  <bruno@clisp.org>
60409
60410         Avoid some warnings from "gcc -Wshadow".
60411         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60412
60413 2008-05-15  Eric Blake  <ebb9@byu.net>
60414
60415         Extend previous patch to cygwin 1.7.0.
60416         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60417         fast implementation in cygwin >= 1.7.0.
60418         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60420
60421 2008-05-15  Bruno Haible  <bruno@clisp.org>
60422
60423         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60424         implementation in glibc >= 2.9.
60425         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60427
60428 2008-05-15  Bruno Haible  <bruno@clisp.org>
60429
60430         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60431         (Unicode string functions): Add unilbrk/*.
60432         Reported by Karl Berry.
60433
60434 2008-05-15  Eric Blake  <ebb9@byu.net>
60435
60436         Fix violation of <stdbool.h> replacement in regex.
60437         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60438         * lib/regexec.c (re_search_internal): Likewise.
60439         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60440
60441 2008-05-15  Jim Meyering  <meyering@redhat.com>
60442
60443         avoid distracting test output when git or cvs is not found
60444         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60445         * tests/test-vc-list-files-git.sh: Likewise.
60446
60447 2008-05-15  Eric Blake  <ebb9@byu.net>
60448
60449         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60450         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60451         glibc version.
60452         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60453         * doc/posix-functions/strstr.texi (strstr): Likewise.
60454         * lib/str-two-way.h (MAX): Sychronize with glibc.
60455
60456 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60457
60458         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60459         opr.ctx_type.
60460         (calc_first): Initialize constraint field.
60461         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60462         Fix grammar.
60463         (duplicate_node): Merge constraint field for all node types.
60464         (calc_eclosure_iter): Look at constraint field for all node types.
60465         * lib/regex_internal.c (create_cd_newstate): Don't look at
60466         opr.ctx_type.
60467
60468 2008-05-14  Bruno Haible  <bruno@clisp.org>
60469
60470         Help GCC to do better code generation.
60471         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60472         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60473         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60474         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60475         Declare with attribute 'malloc' if supported.
60476
60477 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60478
60479         use "echo STR|wc -c" rather than unportable "expr length STR"
60480         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60481         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60482
60483 2008-05-14  Jim Meyering  <meyering@redhat.com>
60484
60485         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60486         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60487         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60488         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60489         via Collin Lasse.
60490
60491 2008-05-14  Eric Blake  <ebb9@byu.net>
60492
60493         Avoid quadratic growth in gl_LIBSOURCES.
60494         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60495         Suggested by Bruno Haible.
60496
60497         Test xmemdup0.
60498         * modules/xmemdup0-tests: New file.
60499         * tests/test-xmemdup0.c: Likewise.
60500
60501 2008-05-13  Eric Blake  <ebb9@byu.net>
60502
60503         Split xmemdup0 into its own module.
60504         * modules/xmemdup0: New file.
60505         * lib/xmemdup0.h: Likewise.
60506         * lib/xmemdup0.c: Likewise.
60507         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60508         * lib/xalloc.h (xmemdup0): Remove.
60509         * lib/xmalloc.c (xmemdup0): Likewise.
60510
60511 2008-05-13  Eric Blake  <ebb9@byu.net>
60512             Bruno Haible  <bruno@clisp.org>
60513
60514         Reduce number of forks required during autoconf.
60515         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60516         and gl_LIBSOURCES_DIR.
60517         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60518         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60519         m4_syscmd per file.
60520         <m4_foreach_w>: Move...
60521         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60522
60523 2008-05-13  Eric Blake  <ebb9@byu.net>
60524
60525         * gnulib-tool: Fix various comment typos.
60526
60527 2008-05-12  Bruno Haible  <bruno@clisp.org>
60528
60529         Tailor the linebreaking algorithm.
60530         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60531
60532 2008-05-12  Bruno Haible  <bruno@clisp.org>
60533
60534         Update to Unicode 5.0.0.
60535         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60536         LBP_JV, LBP_JT. Redistribute values.
60537         (unilbrk_table): Change size.
60538         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60539         Unicode TR#14 rev. 22.
60540         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60541         LBP_JV, LBP_JT. Redistribute values.
60542         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60543         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60544         Update.
60545         * lib/unilbrk/lbrkprop1.h: Regenerated.
60546         * lib/unilbrk/lbrkprop2.h: Regenerated.
60547         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60548         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60549         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60550         Likewise.
60551         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60552         Likewise.
60553         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60554         result.
60555         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60556         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60557         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60558         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60559         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60560         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60561
60562 2008-05-11  Bruno Haible  <bruno@clisp.org>
60563
60564         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60565
60566 2008-05-11  Bruno Haible  <bruno@clisp.org>
60567
60568         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60569         * modules/unilbrk/gen-lbrk: New file.
60570
60571 2008-05-11  Bruno Haible  <bruno@clisp.org>
60572
60573         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60574         * m4/sha512.m4 (gl_SHA512): Likewise.
60575
60576 2008-05-11  Jim Meyering  <meyering@redhat.com>
60577
60578         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60579         * modules/crypto/sha256: New file.
60580         * modules/crypto/sha512: Likewise.
60581         * lib/sha256.c: Likewise.
60582         * lib/sha256.h: Likewise.
60583         * lib/sha512.c: Likewise.
60584         * lib/sha512.h: Likewise.
60585         * lib/u64.h: Likewise.
60586         * m4/sha256.m4: Likewise.
60587         * m4/sha512.m4: Likewise.
60588         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60589
60590 2008-05-10  Bruno Haible  <bruno@clisp.org>
60591
60592         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60593         (Input/Output <stdio.h>): Add xprintf.
60594         (Signal handling <signal.h>): Add strsignal.
60595         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60596         (Core language properties): Add func.
60597         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60598         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60599         strings.
60600         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60601         (Input/output): New section.
60602         (File system functions): Add openat-die, stat-macros.
60603         (Networking functions): Add sockets.
60604         (Unicode string functions): Add unictype/*.
60605         (Support for building libraries and executables): Add gperf.
60606         (Support for building documentation): Add agpl-3.0.
60607         (Misc): Add nocrash.
60608
60609 2008-05-10  Bruno Haible  <bruno@clisp.org>
60610
60611         * modules/unictype/gen-ctype: New file.
60612
60613 2008-05-10  Jim Meyering  <meyering@redhat.com>
60614
60615         Make chdir-safer.c more efficient on a system with no symlinks.
60616         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60617         also if ELOOP is zero.  Suggested by Bruno Haible.
60618
60619         Make chdir-safer.c slightly safer.
60620         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60621         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60622
60623         Avoid compile failure on systems without ELOOP (like mingw).
60624         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60625         Reported by Bruno Haible.
60626
60627 2008-05-10  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60630         (is_utf8_encoding): Use a case-insensitive comparison.
60631         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60632         streq.
60633
60634 2008-05-10  Bruno Haible  <bruno@clisp.org>
60635
60636         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60637         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60638         * lib/unilbrk/ulc-common.h (iconv_string_length,
60639         iconv_string_keeping_offsets): Remove declarations.
60640         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60641         Don't include <iconv.h>, streq.h, xsize.h.
60642         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60643         conversion.
60644         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60645         <iconv.h>, streq.h, xsize.h.
60646         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60647         conversion.
60648         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60649         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60650         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60651         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60652
60653 2008-05-10  Bruno Haible  <bruno@clisp.org>
60654
60655         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60656         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60657
60658         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60659         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60660
60661         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60662         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60663
60664         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60665         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60666
60667         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60668         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60669
60670         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60671         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60672
60673         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60674         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60675
60676         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60677         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60678
60679 2008-05-10  Bruno Haible  <bruno@clisp.org>
60680
60681         Split up 'linebreak' module.
60682         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60683         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60684         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60685         modifications.
60686         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60687         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60688         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60689         lib/linebreak.c.
60690         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60691         lib/linebreak.c.
60692         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60693         lib/linebreak.c.
60694         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60695         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60696         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60697         lib/linebreak.c.
60698         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60699         lib/linebreak.c.
60700         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60701         lib/linebreak.c.
60702         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60703         lib/linebreak.c.
60704         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60705         lib/linebreak.c.
60706         * modules/unilbrk/base: New file.
60707         * modules/unilbrk/tables: New file.
60708         * modules/unilbrk/u8-possible-linebreaks: New file.
60709         * modules/unilbrk/u16-possible-linebreaks: New file.
60710         * modules/unilbrk/u32-possible-linebreaks: New file.
60711         * modules/unilbrk/ulc-common: New file.
60712         * modules/unilbrk/ulc-possible-linebreaks: New file.
60713         * modules/unilbrk/u8-width-linebreaks: New file.
60714         * modules/unilbrk/u16-width-linebreaks: New file.
60715         * modules/unilbrk/u32-width-linebreaks: New file.
60716         * modules/unilbrk/ulc-width-linebreaks: New file.
60717         * lib/linebreak.h: Remove file.
60718         * lib/linebreak.c: Remove file.
60719         * m4/linebreak.m4: Remove file.
60720         * modules/linebreak: Remove file.
60721         * NEWS: Mention the changes.
60722
60723 2008-05-09  Eric Blake  <ebb9@byu.net>
60724
60725         Add xmemdup0.
60726         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60727         implementation.
60728         * lib/xmalloc.c (xmemdup0): New C implementation.
60729
60730 2008-05-08  Bruno Haible  <bruno@clisp.org>
60731
60732         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60733
60734 2008-05-07  Eric Blake  <ebb9@byu.net>
60735
60736         Support cross-compilation of <wctype.h>.
60737         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60738         AC_CACHE_CHECK.
60739
60740 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60741
60742         * build-aux/vc-list-files: Add support for bzr.
60743
60744 2008-05-03  Jim Meyering  <meyering@redhat.com>
60745
60746         avoid failed assertion with tight malloc
60747         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60748
60749 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60750
60751         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60752         are needed from arpa/inet.h.
60753         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60754         Reported by Bruno Haible.
60755
60756 2008-05-02  Jim Meyering  <meyering@redhat.com>
60757
60758         avoid compilation error on FreeBSD 6
60759         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60760
60761 2008-05-01  Jim Meyering  <meyering@redhat.com>
60762
60763         useless-if-before-free: correct --help's exit status description
60764         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60765         for one or more matches, etc.  Reported by Bruno Haible.
60766
60767         vc-list-files: make the stand-alone gnulib test work
60768         * modules/vc-list-files-tests (configure.ac):
60769         Define and AC_SUBST abs_aux_dir.
60770         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60771         $(abs_top_srcdir) to each script and having each of them
60772         duplicate the work of setting PATH, set PATH here, using
60773         the new variable, abs_aux_dir instead.
60774         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60775         * tests/test-vc-list-files-git.sh: Likewise.
60776         Reported by Bruno Haible.
60777
60778 2008-05-01  Bruno Haible  <bruno@clisp.org>
60779
60780         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60781         reallocation. Rename 'done' to 'found_delimiter'.
60782
60783 2008-05-01  Jim Meyering  <meyering@redhat.com>
60784
60785         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60786         * build-aux/vc-list-files: Use `...`, not $(...).
60787
60788 2008-04-30  Jim Meyering  <meyering@redhat.com>
60789
60790         add tests for vc-list-files
60791         * modules/vc-list-files-tests: New module.
60792         * tests/test-vc-list-files-cvs.sh: New file.
60793         * tests/test-vc-list-files-git.sh: New file.
60794
60795         avoid a warning from gcc
60796         * lib/getndelim2.c (IF_LINT): Define.
60797         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60798
60799         vc-list-files: work properly with build-aux/cvsu, too
60800         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60801         to all cvs-based clauses.
60802
60803         vc-list-files: work properly in the CVS+awk case, too
60804         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60805
60806         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60807         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60808         take more than one file argument, so .  Add quotes, just in case $dir
60809         ever contains a shell meta-character.  Prompted by Soren Hansen in
60810         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60811
60812 2008-04-29  Eric Blake  <ebb9@byu.net>
60813
60814         Optimize getndelim2 to use block operations when possible.
60815         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60816         freadseek, and memchr2.
60817         * lib/getndelim2.c (getndelim2): Use them for block reads.
60818
60819 2008-04-29  Bruno Haible  <bruno@clisp.org>
60820
60821         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60822         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60823         * modules/inet_ntop (Depends-on): Add extensions.
60824         * modules/inet_pton (Depends-on): Likewise.
60825         Reported by Simon Josefsson.
60826
60827 2008-04-29  Jim Meyering  <meyering@redhat.com>
60828
60829         When the is more than one match in a block, match all of them.
60830         * build-aux/useless-if-before-free: Iterate through each block
60831         until there are no more matches.
60832
60833         Fix broken useless-if-before-free script.
60834         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60835         the expression to match cast of argument to free-like function.
60836
60837 2008-04-29  Eric Blake  <ebb9@byu.net>
60838
60839         Use new header.
60840         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60841
60842 2008-04-29  Jim Meyering  <meyering@redhat.com>
60843
60844         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60845         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60846         by gnulib to exist and to declare e.g., inet_ntop.
60847         Don't include "inet_ntop.h", now removed.
60848
60849         * m4/arpa_inet_h.m4: Remove trailing blanks.
60850
60851 2008-04-29  Eric Blake  <ebb9@byu.net>
60852
60853         Silence valgrind on safe reads beyond potential array bounds.
60854         * lib/rawmemchr.valgrind: New file.
60855         * lib/strchrnul.valgrind: Likewise.
60856         * modules/rawmemchr (Files): Distribute new file.
60857         * modules/strchrnul (Files): Likewise.
60858         Suggested by Bruno Haible.
60859
60860 2008-04-29  Bruno Haible  <bruno@clisp.org>
60861
60862         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60863         (inet_ntop, inet_pton): Change portability warning's wording.
60864         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60865         Invoke gl_CHECK_NEXT_HEADERS.
60866         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60867         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60868         set ARPA_INET_H.
60869         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60870         * modules/arpa_inet (Description): No longer only for systems that
60871         lack it.
60872         (Depends-on): Add include_next.
60873         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60874         HAVE_ARPA_INET_H.
60875
60876 2008-04-29  Jim Meyering  <meyering@redhat.com>
60877
60878         * modules/mkdir (License): Re-license as LGPLv2+.
60879
60880 2008-04-29  Bruno Haible  <bruno@clisp.org>
60881
60882         * modules/rawmemchr (Maintainer): Set to Eric.
60883         * modules/strchrnul (Maintainer): Likewise.
60884
60885 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60886
60887         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60888         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60889
60890         * modules/arpa_inet (arpa/inet.h): Use them.
60891
60892 2008-04-28  Eric Blake  <ebb9@byu.net>
60893
60894         Test getndelim2.
60895         * modules/getndelim2-tests: New file.
60896         * tests/test-getndelim2.c: Likewise.
60897         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60898         stream.
60899         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60900
60901         * MODULES.html.sh: Document new module.
60902
60903 2008-04-20  Bruno Haible  <bruno@clisp.org>
60904
60905         * lib/c-stack.c (die): Use raise.
60906         * modules/c-stack (Depends-on): Add raise.
60907
60908 2008-04-28  Bruno Haible  <bruno@clisp.org>
60909
60910         Expect rpmatch to be declared.
60911         * lib/yesno.c (rpmatch): Remove declaration.
60912
60913         Declare rpmatch.
60914         * lib/stdlib.in.h (rpmatch): New declaration.
60915         * lib/rpmatch.c: Include <stdlib.h> first.
60916         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60917         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60919         HAVE_RPMATCH.
60920         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60922         (Include): Set to <stdlib.h>.
60923         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60924         HAVE_RPMATCH.
60925         * NEWS: Document the change.
60926
60927 2008-04-28  Bruno Haible  <bruno@clisp.org>
60928
60929         Change rpmatch to use nl_langinfo when appropriate.
60930         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60931         (N_): New macro.
60932         (localized_pattern): New function/macro.
60933         (try): Remove match, nomatch arguments. Copy the pattern into safe
60934         memory before caching it.
60935         (rpmatch): Use localized_pattern. Add translator comments.
60936         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60937         Suggested by Eric Blake.
60938         * modules/rpmatch (Depends-on): Add stdbool.
60939
60940 2008-04-28  Eric Blake  <ebb9@byu.net>
60941
60942         Add rawmemchr module, matching glibc.
60943         * modules/string (Makefile.am): New indicator.
60944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60945         * lib/string.in.h (rawmemchr): Declare when appropriate.
60946         * modules/rawmemchr: New file.
60947         * m4/rawmemchr.m4: Likewise.
60948         * lib/rawmemchr.c: Likewise.
60949         * modules/rawmemchr-tests: Likewise.
60950         * tests/test-rawmemchr.c: Likewise.
60951         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60952         module.
60953         * modules/strchrnul (Depends-on): Add rawmemchr.
60954         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60955
60956         Whitespace cleanup.
60957         * tests/test-strchrnul.c: Reindent.
60958         * lib/strchrnul.c: Likewise.
60959
60960         Optimize and test strchrnul.
60961         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60962         * modules/strchrnul-tests: New file.
60963         * tests/test-strchrnul.c: Likewise.
60964
60965         Remove intprops dependency.
60966         * modules/memchr (Depends-on): Remove intprops.
60967         * modules/memrchr (Depends-on): Likewise.
60968         * modules/memchr2 (Depends-on): Likewise.
60969         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60970         * lib/memrchr.c (__memrchr): Likewise.
60971         * lib/memrchr2.c (memchr2): Likewise.
60972         Reported by Simon Josefsson.
60973
60974 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60975
60976         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60977         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60978
60979 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60980
60981         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60982
60983         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60984
60985         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60986
60987         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60988         declarations.
60989         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60990
60991         * m4/inet_pton.m4: Don't check for header files.
60992
60993         * m4/inet_ntop.m4: Don't check for header files.
60994
60995 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60996
60997         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60998         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60999         trigger for cygwin).
61000         Reported by Bruno Haible  <bruno@clisp.org>.
61001
61002 2008-04-28  Bruno Haible  <bruno@clisp.org>
61003
61004         * doc/posix-functions/strdup.texi: Mention mingw problem.
61005
61006 2008-04-27  Bruno Haible  <bruno@clisp.org>
61007
61008         * modules/stat-time-tests (Depends-on): Add sleep.
61009         * tests/test-stat-time.c (force_unlink): New function.
61010         (cleanup): Use it.
61011         (test_mtime): Remove the ctime related tests.
61012         (test_ctime): New function, containing the ctime related tests.
61013         (main): Call test_ctime, except on native Windows platforms.
61014
61015 2008-04-27  Bruno Haible  <bruno@clisp.org>
61016
61017         * lib/rpmatch.c (rpmatch): Add some comments.
61018         Reported by James Youngman <jay@gnu.org>.
61019
61020 2008-04-27  Bruno Haible  <bruno@clisp.org>
61021
61022         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
61023         quiet NaNs.
61024
61025 2008-04-27  Bruno Haible  <bruno@clisp.org>
61026
61027         Make test-yesno.sh work on mingw.
61028         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
61029         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
61030         (main): Set stdin to binary mode.
61031         * modules/yesno-tests (Depends-on): Add binary-io.
61032
61033 2008-04-27  Bruno Haible  <bruno@clisp.org>
61034
61035         Fix 'isfinite' on x86, x86_64, ia64 platforms.
61036         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
61037         argument that lie outside the IEEE 854 domain.
61038         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
61039         (gl_ISFINITE): Use it.
61040         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
61041
61042 2008-04-27  Bruno Haible  <bruno@clisp.org>
61043
61044         Allow local renaming in config.h.
61045         * lib/memrchr.c (memrchr): Don't undefine outside libc.
61046
61047 2008-04-27  Bruno Haible  <bruno@clisp.org>
61048
61049         * lib/memchr.c (__memchr): Change type of 'i'.
61050         * lib/memchr2.c (memchr2): Likewise.
61051
61052 2008-04-26  Eric Blake  <ebb9@byu.net>
61053         and Bruno Haible  <bruno@clisp.org>
61054
61055         Optimize and test memrchr.
61056         * modules/memrchr (Depends-on): Add intprops.
61057         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
61058         * modules/memrchr-tests: New file.
61059         * tests/test-memrchr.c: New file.
61060
61061 2008-04-26  Bruno Haible  <bruno@clisp.org>
61062
61063         Add tentative support for DragonFly BSD.
61064         * lib/stdio-impl.h: Add macros for DragonFly BSD.
61065         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
61066         fp.
61067         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61068         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
61069         * lib/fpurge.c (fpurge): Likewise.
61070         * lib/freadable.c (freaadable): Likewise.
61071         * lib/freadahead.c (freadahead): Likewise.
61072         * lib/freading.c (freading): Likewise.
61073         * lib/freadptr.c (freadptr): Likewise.
61074         * lib/freadseek.c (freadptrinc): Likewise.
61075         * lib/fseeko.c (fseeko): Likewise.
61076         * lib/fseterr.c (fseterr): Likewise.
61077         * lib/fwritable.c (fwritable): Likewise.
61078         * lib/fwriting.c (fwriting): Likewise.
61079
61080 2008-04-26  Bruno Haible  <bruno@clisp.org>
61081
61082         * lib/stdio-impl.h: New file.
61083         * lib/fbufmode.c: Include stdio-impl.h.
61084         (fbufmode): Use fp_, remove redundant #defines.
61085         * lib/fflush.c: Include stdio-impl.h.
61086         (clear_ungetc_buffer): Remove redundant #defines.
61087         * lib/fpurge.c: Include stdio-impl.h.
61088         (fpurge): Remove redundant #defines.
61089         * lib/freadable.c: Include stdio-impl.h.
61090         (freadable): Remove redundant #defines.
61091         * lib/freadahead.c: Include stdio-impl.h.
61092         (freadahead): Remove redundant #defines.
61093         * lib/freading.c: Include stdio-impl.h.
61094         (freading): Remove redundant #defines.
61095         * lib/freadptr.c: Include stdio-impl.h.
61096         (freadptr): Remove redundant #defines.
61097         * lib/freadseek.c: Include stdio-impl.h.
61098         (freadptrinc): Remove redundant #defines.
61099         * lib/fseeko.c: Include stdio-impl.h.
61100         (rpl_fseeko): Remove redundant #defines.
61101         * lib/fseterr.c: Include stdio-impl.h.
61102         (fseterr): Remove redundant #defines.
61103         * lib/fwritable.c: Include stdio-impl.h.
61104         (fwritable: Remove redundant #defines.
61105         * lib/fwriting.c: Include stdio-impl.h.
61106         (fwriting): Remove redundant #defines.
61107         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61108         * modules/fflush (Files): Likewise.
61109         * modules/fpurge (Files): Likewise.
61110         * modules/freadable (Files): Likewise.
61111         * modules/freadahead (Files): Likewise.
61112         * modules/freading (Files): Likewise.
61113         * modules/freadptr (Files): Likewise.
61114         * modules/freadseek (Files): Likewise.
61115         * modules/fseeko (Files): Likewise.
61116         * modules/fseterr (Files): Likewise.
61117         * modules/fwritable (Files): Likewise.
61118         * modules/fwriting (Files): Likewise.
61119
61120 2008-04-26  Bruno Haible  <bruno@clisp.org>
61121
61122         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61123         restore_seek_optimization, update_fpos_cache): New functions, extracted
61124         from rpl_fflush.
61125         (rpl_fflush): Use them.
61126         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61127         (gl_REPLACE_FFLUSH): Use it.
61128
61129 2008-04-26  Bruno Haible  <bruno@clisp.org>
61130
61131         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61132         on Solaris.
61133         * tests/test-xstrtoimax.sh: Likewise.
61134         * tests/test-xstrtoumax.sh: Likewise.
61135         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61136
61137 2008-04-26  Bruno Haible  <bruno@clisp.org>
61138
61139         * modules/memchr-tests: New file.
61140         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61141
61142 2008-04-26  Eric Blake  <ebb9@byu.net>
61143             Bruno Haible  <bruno@clisp.org>
61144
61145         * lib/memchr.c: Include intprops.h.
61146         (__memchr): Optimize parallel detection of matching bytes. Rename local
61147         variables. Add explanatory comments.
61148
61149 2008-04-26  Bruno Haible  <bruno@clisp.org>
61150
61151         Fix module 'memchr', broken since 2000-10-28.
61152         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61153
61154 2008-04-26  Bruno Haible  <bruno@clisp.org>
61155
61156         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61157         comments.
61158
61159 2008-04-25  Eric Blake  <ebb9@byu.net>
61160
61161         Use native fstatat on cygwin 1.7.0.
61162         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61163         first.
61164
61165 2008-04-23  Eric Blake  <ebb9@byu.net>
61166
61167         Improve memchr2 performance.
61168         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61169         NUL bytes.
61170         * modules/memchr2 (Depends-on): Use intprops.h.
61171
61172 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61173
61174         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61175         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61176         <blp@cs.stanford.edu>.
61177
61178 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61179
61180         * lib/arpa_inet.in.h: New file.
61181
61182         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61183         (Makefile.am): Sed in substitute header file.
61184
61185         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61186         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61187
61188         * modules/inet_ntop (configure.ac): Use
61189         gl_ARPA_INET_MODULE_INDICATOR.
61190
61191         * modules/inet_pton (configure.ac): Use
61192         gl_ARPA_INET_MODULE_INDICATOR.
61193
61194 2008-04-22  Jim Meyering  <meyering@redhat.com>
61195
61196         * modules/verify (License): Re-license as LGPLv2+.
61197
61198 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61199
61200         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61201         parameter to void* as per POSIX standard (MinGW uses char*).
61202
61203 2008-04-21  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61206         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61207         Define to replacements if REPLACE_ISWCNTRL is 1.
61208         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61209         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61210         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61211         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61212         what it fixes.
61213         * doc/posix-functions/iswalpha.texi: Likewise.
61214         * doc/posix-functions/iswblank.texi: Likewise.
61215         * doc/posix-functions/iswcntrl.texi: Likewise.
61216         * doc/posix-functions/iswdigit.texi: Likewise.
61217         * doc/posix-functions/iswgraph.texi: Likewise.
61218         * doc/posix-functions/iswlower.texi: Likewise.
61219         * doc/posix-functions/iswprint.texi: Likewise.
61220         * doc/posix-functions/iswpunct.texi: Likewise.
61221         * doc/posix-functions/iswspace.texi: Likewise.
61222         * doc/posix-functions/iswupper.texi: Likewise.
61223         * doc/posix-functions/iswxdigit.texi: Likewise.
61224         Reported by Alain Guibert.
61225
61226 2008-04-21  Bruno Haible  <bruno@clisp.org>
61227
61228         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61229         Patch by Alain Guibert.
61230
61231 2008-04-21  Bruno Haible  <bruno@clisp.org>
61232
61233         Fix test failures on mingw.
61234         * tests/test-xstrtol.c (print_no_progname): New function.
61235         (main): Install it in error_print_progname hook.
61236         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61237         * tests/test-xstrtoimax.sh: Likewise.
61238         * tests/test-xstrtoumax.sh: Likewise.
61239
61240 2008-04-21  Bruno Haible  <bruno@clisp.org>
61241
61242         Fix test failure on mingw.
61243         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61244
61245 2008-04-21  Bruno Haible  <bruno@clisp.org>
61246
61247         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61248         Actually assign a value.
61249
61250 2008-04-20  Bruno Haible  <bruno@clisp.org>
61251
61252         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61253         take 2.
61254         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61255         'canonicalize-lgpl' module is also used.
61256         * lib/canonicalize-lgpl.c: Undo last change.
61257         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61258
61259 2008-04-20  Bruno Haible  <bruno@clisp.org>
61260
61261         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61262         config.h. Provide _mkdir based fallback for mingw.
61263         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61264         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61265         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61266         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61267         rather than defining mkdir in config.h.
61268         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61269         (gl_SYS_STAT_H_DEFAULTS): New macro.
61270         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61271         HAVE_IO_H any more.
61272         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61273         HAVE_DECL_MKDIR and HAVE_IO_H.
61274
61275 2008-04-20  Bruno Haible  <bruno@clisp.org>
61276
61277         * lib/isapipe.c: Port to native Windows platforms.
61278
61279 2008-04-20  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61282
61283 2008-04-21  Eric Blake  <ebb9@byu.net>
61284
61285         Work around preprocessors that don't handle UINTMAX_MAX.
61286         * lib/memchr2.c (memchr2): Avoid embedded #if.
61287         Reported by Alain Guibert, fix suggested by Bruno Haible.
61288
61289 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61290
61291         * doc/posix-functions/strftime.texi (strftime): Explain better
61292         Windows incompatibility.  Suggested by Micah Cowan
61293         <micah@cowan.name>.
61294
61295 2008-04-20  Bruno Haible  <bruno@clisp.org>
61296
61297         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61298         unistr/u8-mblen.
61299
61300 2008-04-20  Bruno Haible  <bruno@clisp.org>
61301
61302         Fix test failure on platforms with non-GNU iconv.
61303         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61304         (U_TO_U8): Use it, rather than u16_to_u8.
61305         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61306         units at the end of the input string.
61307         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61308
61309 2008-04-20  Bruno Haible  <bruno@clisp.org>
61310
61311         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61312         when the resulting length is 0.
61313         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61314
61315 2008-04-20  Bruno Haible  <bruno@clisp.org>
61316
61317         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61318         works.
61319         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61320
61321 2008-04-20  Bruno Haible  <bruno@clisp.org>
61322
61323         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61324         * modules/tsearch-tests (configure.ac): Test for initstate function.
61325
61326 2008-04-20  Bruno Haible  <bruno@clisp.org>
61327
61328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61329         for nlink_t if missing.
61330         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61331
61332 2008-04-19  Bruno Haible  <bruno@clisp.org>
61333
61334         Work around snprintf bug on Linux libc5.
61335         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61337         gl_SNPRINTF_SIZE1.
61338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61339         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61340         that test failed.
61341         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61342         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61343         * modules/snprintf (Files): Add m4/printf.m4.
61344         * modules/vsnprintf (Files): Likewise.
61345         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61346         * doc/posix-functions/vsnprintf.texi: Likewise.
61347
61348 2008-04-19  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61351         from 0.0058 to less than 10^-7.
61352
61353 2008-04-19  Bruno Haible  <bruno@clisp.org>
61354
61355         Fix rounding when a precision is given.
61356         * lib/vasnprintf.c (is_borderline): New function.
61357         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61358         9...9x.
61359         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61360         %e, %g.
61361         * tests/test-vasprintf-posix.c (test_function): Likewise.
61362         * tests/test-snprintf-posix.h (test_function): Likewise.
61363         * tests/test-sprintf-posix.h (test_function): Likewise.
61364         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61365         * tests/test-printf-posix.h (test_function): Likewise.
61366         * tests/test-printf-posix.output: Update.
61367         Reported by John Darrington <john@darrington.wattle.id.au> via
61368         Ben Pfaff <blp@cs.stanford.edu>.
61369
61370 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61371
61372         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61373         Suggested by Bruno Haible <bruno@clisp.org>.
61374
61375 2008-04-17  Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61378         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61379         implementation.
61380         Patch by Bruce Merry <bmerry@gmail.com>.
61381
61382 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61383
61384         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61385         doesn't work under Windows.
61386
61387 2008-04-16  Bruno Haible  <bruno@clisp.org>
61388
61389         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61390         New macros.
61391         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61392         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61393         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61394         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61395         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61396         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61397         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61398         macros.
61399         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61400         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61401         Northern Sotho, Uighur.
61402
61403 2008-04-16  Bruno Haible  <bruno@clisp.org>
61404
61405         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61406         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61407         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61408         Reported by Daniel Bergström <daniel@octocode.com>.
61409
61410 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61411             Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61414         function.
61415         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61416         New functions, mostly extracted from gl_locale_name_default.
61417         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61418
61419 2008-04-16  Eric Blake  <ebb9@byu.net>
61420
61421         Adjust strtod detection to catch glibc 2.7 bug.
61422         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61423         Reported by John Gatewood Ham.
61424
61425 2008-04-16  Bruno Haible  <bruno@clisp.org>
61426
61427         Add tentative support for Linux libc5.
61428         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61429         * lib/fpurge.c (fpurge): Likewise.
61430         * lib/freadable.c (freadable): Likewise.
61431         * lib/freadahead.c (freadahead): Likewise.
61432         * lib/freading.c (freading): Likewise.
61433         * lib/freadptr.c (freadptr): Likewise.
61434         * lib/freadseek.c (freadptrinc): Likewise.
61435         * lib/fseeko.c (rpl_fseeko): Likewise.
61436         * lib/fseterr.c (fseterr): Likewise.
61437         * lib/fwritable.c (fwritable): Likewise.
61438         * lib/fwriting.c (fwriting): Likewise.
61439         Reported by Alain Guibert <alguibert+bts@free.fr>.
61440
61441 2008-04-15  Bruno Haible  <bruno@clisp.org>
61442
61443         * modules/mathl (configure.ac): Define module indicator.
61444
61445 2008-04-15  Bruno Haible  <bruno@clisp.org>
61446
61447         * lib/logl.c (logl): Remove unused variables.
61448
61449 2008-04-15  Bruno Haible  <bruno@clisp.org>
61450
61451         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61452         fails.
61453
61454 2008-04-15  Bruno Haible  <bruno@clisp.org>
61455
61456         * lib/trim.c (trim2): Fix argument of isspace() macro.
61457
61458 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61459
61460         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61461         to 0.
61462         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61463
61464 2008-04-14  Bruno Haible  <bruno@clisp.org>
61465
61466         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61467         AC_LANG_PROGRAM argument.
61468         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61469         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61470         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61471         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61472         * m4/math_h.m4 (gl_MATH_H): Likewise.
61473         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61474         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61475         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61476         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61477         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61478         * m4/regex.m4 (gl_REGEX): Likewise.
61479         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61480         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61482         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61483         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61484         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61485         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61486         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61487
61488 2008-04-14  Jim Meyering  <meyering@redhat.com>
61489
61490         test-strtod: fix typos: s/abs/fabs/
61491         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61492
61493 2008-04-13  Bruno Haible  <bruno@clisp.org>
61494
61495         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61496         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61497         module is also used and while not building the reloc-wrapper.
61498
61499 2008-04-13  Bruno Haible  <bruno@clisp.org>
61500
61501         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61502
61503 2008-04-13  Bruno Haible  <bruno@clisp.org>
61504
61505         Fix AIX compilation failure introduced on 2008-04-02.
61506         * tests/test-frexp.c (exp): Undefine before redefining.
61507         * tests/test-frexpl.c (exp): Likewise.
61508
61509 2008-04-13  Bruno Haible  <bruno@clisp.org>
61510
61511         Work around a HP-UX stdio bug.
61512         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61513         * tests/test-ftello.c (main): Likewise.
61514         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61515         * doc/posix-functions/ftello.texi: Likewise.
61516
61517 2008-04-13  Bruno Haible  <bruno@clisp.org>
61518
61519         Make test-signbit pass on HP-UX/hppa.
61520         * tests/test-signbit.c (minus_zerol): New variable.
61521         (test_signbitl): Use it.
61522
61523 2008-04-13  Bruno Haible  <bruno@clisp.org>
61524
61525         Make truncl work on OSF/1 4.0.
61526         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61527         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61528         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61530         HAVE_DECL_TRUNCL.
61531         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61532         HAVE_DECL_TRUNCL.
61533         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61534
61535 2008-04-13  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61538
61539 2008-04-13  Bruno Haible  <bruno@clisp.org>
61540
61541         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61542         expression, so as to avoid HP-UX 11 cc compiler bug.
61543
61544 2008-04-13  Bruno Haible  <bruno@clisp.org>
61545
61546         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61547
61548 2008-04-13  Bruno Haible  <bruno@clisp.org>
61549
61550         * lib/git-merge-changelog.c: Remove empty declaration outside of
61551         functions.
61552
61553 2008-04-13  Bruno Haible  <bruno@clisp.org>
61554
61555         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61556
61557 2008-04-13  Bruno Haible  <bruno@clisp.org>
61558
61559         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61560         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61561         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61562         also if it exists but lacks definitions of the SHUT_* macros.
61563         * modules/sys_socket (Description): Update.
61564         Reported by Elbert Pol <e.pol@chello.nl>.
61565
61566 2008-04-13  Bruno Haible  <bruno@clisp.org>
61567
61568         * lib/localcharset.c (OS2): Don't redefine if already defined.
61569         Reported by Elbert Pol <e.pol@chello.nl>.
61570
61571 2008-04-13  Bruno Haible  <bruno@clisp.org>
61572
61573         * lib/binary-io.h [__EMX__]: Include <io.h>.
61574         Reported by Elbert Pol <e.pol@chello.nl>.
61575
61576 2008-04-12  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/fpucw.h: Enable the definitions also for x86_64.
61579         Needed for NetBSD/x86_64.
61580         Reported by Thomas Klausner <tk@giga.or.at>.
61581
61582 2008-04-12  Bruno Haible  <bruno@clisp.org>
61583
61584         * tests/test-strtod.c: Include isnand.h.
61585         (main): Use isnand instead of isnan.
61586         Reported by Jim Meyering.
61587
61588 2008-04-12  Bruno Haible  <bruno@clisp.org>
61589
61590         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61591         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61592
61593 2008-04-12  Jim Meyering  <meyering@redhat.com>
61594
61595         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61596
61597 2008-04-12  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61600         Reported by Elbert Pol <e.pol@chello.nl>.
61601
61602 2008-04-12  Eric Blake  <ebb9@byu.net>
61603
61604         Work around Solaris 10 math.h bug.
61605         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61606         (gl_MATH_H_DEFAULTS): Set up default.
61607         * modules/math (Makefile.am): Replace new indicators.
61608         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61609         * tests/test-math.c (main): Test this.
61610         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61611         * doc/posix-headers/math.texi (math.h): Mention bug.
61612         Reported by Nelson H. F. Beebe and Jim Meyering.
61613
61614 2008-04-11  Bruno Haible  <bruno@clisp.org>
61615
61616         Adapt to future versions of Apple GCC.
61617         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61618         Reported by Peter O'Gorman <peter@pogma.com>.
61619
61620 2008-04-11  Bruno Haible  <bruno@clisp.org>
61621
61622         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61623
61624 2008-04-11  Bruno Haible  <bruno@clisp.org>
61625
61626         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61627
61628         * modules/getaddrinfo-tests (Makefile.am): Define
61629         test_getaddrinfo_LDADD.
61630
61631 2008-04-11  Bruno Haible  <bruno@clisp.org>
61632
61633         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61634         (init): Fix syntax error.
61635         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61636         is declared.
61637
61638 2008-04-11  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61641         * modules/glob (Depends-on): Add stdbool.
61642
61643 2008-04-11  Bruno Haible  <bruno@clisp.org>
61644
61645         * lib/trim.c: Include <string.h>.
61646
61647 2008-04-11  Eric Blake  <ebb9@byu.net>
61648
61649         Avoid compile failure on OS/2.
61650         * lib/regex_internal.h (internal_function): Disable optimization
61651         on OS/2 (__EMX__), where it caused compiler error.
61652         Reported by Elbert Pol.
61653
61654 2008-04-11  Bruno Haible  <bruno@clisp.org>
61655
61656         Flush the standard error stream before aborting. Needed on mingw.
61657         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61658         * tests/test-array_list.c (ASSERT): Likewise.
61659         * tests/test-array_oset.c (ASSERT): Likewise.
61660         * tests/test-avltree_list.c (ASSERT): Likewise.
61661         * tests/test-avltree_oset.c (ASSERT): Likewise.
61662         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61663         * tests/test-binary-io.c (ASSERT): Likewise.
61664         * tests/test-byteswap.c (ASSERT): Likewise.
61665         * tests/test-c-ctype.c (ASSERT): Likewise.
61666         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61667         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61668         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61669         * tests/test-c-strstr.c (ASSERT): Likewise.
61670         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61671         * tests/test-canonicalize.c (ASSERT): Likewise.
61672         * tests/test-carray_list.c (ASSERT): Likewise.
61673         * tests/test-ceilf1.c (ASSERT): Likewise.
61674         * tests/test-ceilf2.c (ASSERT): Likewise.
61675         * tests/test-ceill.c (ASSERT): Likewise.
61676         * tests/test-count-one-bits.c (ASSERT): Likewise.
61677         * tests/test-fbufmode.c (ASSERT): Likewise.
61678         * tests/test-fflush2.c (ASSERT): Likewise.
61679         * tests/test-floorf1.c (ASSERT): Likewise.
61680         * tests/test-floorf2.c (ASSERT): Likewise.
61681         * tests/test-floorl.c (ASSERT): Likewise.
61682         * tests/test-fopen.c (ASSERT): Likewise.
61683         * tests/test-fpending.c (ASSERT): Likewise.
61684         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61685         * tests/test-fpurge.c (ASSERT): Likewise.
61686         * tests/test-freadable.c (ASSERT): Likewise.
61687         * tests/test-freadahead.c (ASSERT): Likewise.
61688         * tests/test-freading.c (ASSERT): Likewise.
61689         * tests/test-freadptr.c (ASSERT): Likewise.
61690         * tests/test-freadptr2.c (ASSERT): Likewise.
61691         * tests/test-freadseek.c (ASSERT): Likewise.
61692         * tests/test-freopen.c (ASSERT): Likewise.
61693         * tests/test-frexp.c (ASSERT): Likewise.
61694         * tests/test-frexpl.c (ASSERT): Likewise.
61695         * tests/test-fseek.c (ASSERT): Likewise.
61696         * tests/test-fseeko.c (ASSERT): Likewise.
61697         * tests/test-fstrcmp.c (ASSERT): Likewise.
61698         * tests/test-ftell.c (ASSERT): Likewise.
61699         * tests/test-ftello.c (ASSERT): Likewise.
61700         * tests/test-func.c (ASSERT): Likewise.
61701         * tests/test-fwritable.c (ASSERT): Likewise.
61702         * tests/test-fwriting.c (ASSERT): Likewise.
61703         * tests/test-getdelim.c (ASSERT): Likewise.
61704         * tests/test-getline.c (ASSERT): Likewise.
61705         * tests/test-i-ring.c (ASSERT): Likewise.
61706         * tests/test-iconv-utf.c (ASSERT): Likewise.
61707         * tests/test-iconv.c (ASSERT): Likewise.
61708         * tests/test-isfinite.c (ASSERT): Likewise.
61709         * tests/test-isnand.c (ASSERT): Likewise.
61710         * tests/test-isnanf.c (ASSERT): Likewise.
61711         * tests/test-isnanl.h (ASSERT): Likewise.
61712         * tests/test-ldexpl.c (ASSERT): Likewise.
61713         * tests/test-linked_list.c (ASSERT): Likewise.
61714         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61715         * tests/test-localename.c (ASSERT): Likewise.
61716         * tests/test-lseek.c (ASSERT): Likewise.
61717         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61718         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61719         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61720         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61721         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61722         * tests/test-mbschr.c (ASSERT): Likewise.
61723         * tests/test-mbscspn.c (ASSERT): Likewise.
61724         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61725         * tests/test-mbspbrk.c (ASSERT): Likewise.
61726         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61727         * tests/test-mbsrchr.c (ASSERT): Likewise.
61728         * tests/test-mbsspn.c (ASSERT): Likewise.
61729         * tests/test-mbsstr1.c (ASSERT): Likewise.
61730         * tests/test-mbsstr2.c (ASSERT): Likewise.
61731         * tests/test-mbsstr3.c (ASSERT): Likewise.
61732         * tests/test-memchr2.c (ASSERT): Likewise.
61733         * tests/test-memmem.c (ASSERT): Likewise.
61734         * tests/test-open.c (ASSERT): Likewise.
61735         * tests/test-printf-frexp.c (ASSERT): Likewise.
61736         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61737         * tests/test-printf-posix.c (ASSERT): Likewise.
61738         * tests/test-quotearg.c (ASSERT): Likewise.
61739         * tests/test-rbtree_list.c (ASSERT): Likewise.
61740         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61741         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61742         * tests/test-round1.c (ASSERT): Likewise.
61743         * tests/test-roundf1.c (ASSERT): Likewise.
61744         * tests/test-roundl.c (ASSERT): Likewise.
61745         * tests/test-signbit.c (ASSERT): Likewise.
61746         * tests/test-sleep.c (ASSERT): Likewise.
61747         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61748         * tests/test-snprintf.c (ASSERT): Likewise.
61749         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61750         * tests/test-stat-time.c (ASSERT): Likewise.
61751         * tests/test-strcasestr.c (ASSERT): Likewise.
61752         * tests/test-strerror.c (ASSERT): Likewise.
61753         * tests/test-striconv.c (ASSERT): Likewise.
61754         * tests/test-striconveh.c (ASSERT): Likewise.
61755         * tests/test-striconveha.c (ASSERT): Likewise.
61756         * tests/test-strsignal.c (ASSERT): Likewise.
61757         * tests/test-strstr.c (ASSERT): Likewise.
61758         * tests/test-strtod.c (ASSERT): Likewise.
61759         * tests/test-trunc1.c (ASSERT): Likewise.
61760         * tests/test-trunc2.c (ASSERT): Likewise.
61761         * tests/test-truncf1.c (ASSERT): Likewise.
61762         * tests/test-truncf2.c (ASSERT): Likewise.
61763         * tests/test-truncl.c (ASSERT): Likewise.
61764         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61765         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61766         * tests/test-vasnprintf.c (ASSERT): Likewise.
61767         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61768         * tests/test-vasprintf.c (ASSERT): Likewise.
61769         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61770         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61771         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61772         * tests/test-vsnprintf.c (ASSERT): Likewise.
61773         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61774         * tests/test-wcwidth.c (ASSERT): Likewise.
61775         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61776         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61777         * tests/test-xvasprintf.c (ASSERT): Likewise.
61778         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61779         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61780         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61781         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61782         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61783         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61784         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61785         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61786         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61787         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61788         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61789         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61790         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61791         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61792         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61793         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61794         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61795         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61796         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61797         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61798         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61799         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61800         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61801         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61802         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61803         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61804         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61805         * tests/unictype/test-combining.c (ASSERT): Likewise.
61806         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61807         * tests/unictype/test-digit.c (ASSERT): Likewise.
61808         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61809         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61810         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61811         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61812         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61813         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61814         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61815         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61816         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61817         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61818         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61819         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61820         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61821         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61822         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61823         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61824         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61825         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61826         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61827         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61828         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61829         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61830         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61831         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61832         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61833         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61834         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61835         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61836         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61837         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61838         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61839         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61840         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61841         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61842         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61843         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61844         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61845         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61846         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61847         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61848         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61849         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61850         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61851         Reported by Eric Blake.
61852
61853 2008-04-11  Bruno Haible  <bruno@clisp.org>
61854
61855         * lib/wchar.in.h: Tweak comment.
61856
61857 2008-04-11  Bruno Haible  <bruno@clisp.org>
61858
61859         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61860         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61861         gl_COMMON.
61862         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61863
61864 2008-04-11  Bruno Haible  <bruno@clisp.org>
61865
61866         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61867
61868 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61869
61870         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61871         of attempting to use non-existing /dev/*random.  Based on patch
61872         from Adam Strzelecki <ono@java.pl> in
61873         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61874
61875 2008-04-08  Bruno Haible  <bruno@clisp.org>
61876
61877         Add tentative support for emx+gcc.
61878         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61879         * lib/fpurge.c (fpurge): Likewise.
61880         * lib/freadable.c (freadable): Likewise.
61881         * lib/freadahead.c (freadahead): Likewise.
61882         * lib/freading.c (freading): Likewise.
61883         * lib/freadptr.c (freadptr): Likewise.
61884         * lib/freadseek.c (freadptrinc): Likewise.
61885         * lib/fseeko.c (rpl_fseeko): Likewise.
61886         * lib/fseterr.c (fseterr): Likewise.
61887         * lib/fwritable.c (fwritable): Likewise.
61888         * lib/fwriting.c (fwriting): Likewise.
61889         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61890
61891 2008-04-09  Eric Blake  <ebb9@byu.net>
61892
61893         Avoid some autoconf warnings.
61894         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61895         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61896         * m4/afs.m4 (gl_AFS): Likewise.
61897         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61898         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61899         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61900         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61901         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61902         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61903         (AC_CHECK_DECLS_ONCE): Likewise.
61904         Rename file...
61905         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61906         gnulib-tool requires autoconf 2.59 or better.
61907         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61908
61909 2008-04-08  Eric Blake  <ebb9@byu.net>
61910
61911         Use 'git describe --match' if present (added in git 1.5.5).
61912         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61913         if possible.
61914
61915 2008-04-08  Bruno Haible  <bruno@clisp.org>
61916
61917         Add tentative support for OpenServer.
61918         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61919         _ptr, _cnt.
61920         * lib/fpurge.c (fpurge): Likewise.
61921         * lib/freadable.c (freadable): Likewise.
61922         * lib/freadahead.c (freadahead): Likewise.
61923         * lib/freading.c (freading): Likewise.
61924         * lib/freadptr.c (freadptr): Likewise.
61925         * lib/freadseek.c (freadptrinc): Likewise.
61926         * lib/fseeko.c (rpl_fseeko): Likewise.
61927         * lib/fseterr.c (fseterr): Likewise.
61928         * lib/fwritable.c (fwritable): Likewise.
61929         * lib/fwriting.c (fwriting): Likewise.
61930         Reported by Roger Cornelius <rac@tenzing.org> and
61931         Brian K. White <brian@aljex.com>.
61932
61933 2008-04-06  Jim Meyering  <meyering@redhat.com>
61934
61935         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61936
61937 2008-04-06  Bruno Haible  <bruno@clisp.org>
61938
61939         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61940         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61941         * tests/test-printf-posix.sh: Likewise.
61942         * tests/test-vfprintf-posix.sh: Likewise.
61943         * tests/test-vprintf-posix.sh: Likewise.
61944         * tests/test-xprintf-posix.sh: Likewise.
61945
61946 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61947
61948         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61949         hide error from 'ls', needed on OS/2.
61950         Report by Elbert Pol <elbert.pol@gmail.com>.
61951
61952 2008-04-04  Eric Blake  <ebb9@byu.net>
61953
61954         Make test-fseeko.c failures meaningful.
61955         * tests/test-fseeko.c: Print line number on failure.
61956         * tests/test-fseek.c: Likewise.
61957         Reported by Nelson H. F. Beebe.
61958
61959         Improve strtod bug detection check.
61960         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61961         required for Solaris 10.
61962         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61963
61964 2008-04-04  Bruno Haible  <bruno@clisp.org>
61965
61966         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61967         by m4/setenv.m4.
61968
61969 2008-04-03  Eric Blake  <ebb9@byu.net>
61970
61971         Ensure sane .version contents.
61972         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61973         version string.
61974         * build-aux/git-version-gen: Improve documentation.
61975
61976         Make GNU make output nicer.
61977         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61978         MAKECMDGOALS to enforce message for all command line targets.  Set
61979         srcdir for use in maint.mk.
61980
61981         Another maintainer tweak.
61982         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61983         a target that regenerates version.
61984
61985 2008-04-03  Jim Meyering  <meyering@redhat.com>
61986
61987         vc-list-files: don't cause coreutils "make po-check" failure
61988         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61989
61990 2008-04-03  Eric Blake  <ebb9@byu.net>
61991
61992         Allow VPATH usage of vc-list-files.
61993         * build-aux/vc-list-files (scriptversion): Add timestamp.
61994         (options): Add --help, --version, -C.
61995         (CVS): Support installed cvsu.
61996
61997 2008-04-02  Bruno Haible  <bruno@clisp.org>
61998
61999         Avoid some "statement with no effect" warnings from gcc.
62000         * tests/test-wctype.c (main): Explicitly ignore unused values.
62001         Reported by Jim Meyering.
62002
62003 2008-04-02  Jim Meyering  <meyering@redhat.com>
62004
62005         Avoid some warnings from "gcc -Wshadow".
62006         * tests/test-frexp.c (exp): Define to a different identifier.
62007         * tests/test-frexpl.c (exp): Likewise.
62008
62009 2008-04-03  Jim Meyering  <meyering@redhat.com>
62010
62011         bootstrap: remove dangling *.[ch] symlinks from lib
62012         * build-aux/bootstrap [dangling symlink removal]: Move find's
62013         -depth option to precede all others, to avoid a warning.
62014         Remove *.[ch] files too, and from "$source_base" (usually lib/).
62015
62016 2008-04-02  Bruno Haible  <bruno@clisp.org>
62017
62018         Avoid some warnings from "gcc -Wshadow".
62019         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
62020         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
62021         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
62022         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
62023         Reported by Jim Meyering.
62024
62025 2008-04-01  Bruno Haible  <bruno@clisp.org>
62026
62027         Fix test to work on IRIX 6.5 with cc.
62028         * tests/test-math.c (numeric_equal): New function.
62029         (main): Use it.
62030
62031 2008-04-01  Bruno Haible  <bruno@clisp.org>
62032
62033         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
62034
62035 2008-04-01  Bruno Haible  <bruno@clisp.org>
62036
62037         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
62038         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62039         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
62040         (Depends-on): Remove math.
62041
62042         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
62043         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62044         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
62045         (Depends-on): Remove math.
62046
62047         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
62048         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62049         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
62050         (Depends-on): Remove math.
62051         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
62052         (Depends-on): Remove math.
62053
62054         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
62055         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62056         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
62057         (Depends-on): Remove math.
62058         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
62059         (Depends-on): Remove math.
62060
62061         * tests/test-round1.c: Include nan.h.
62062         (main): Use NaNd instead of NAN.
62063         * modules/round-tests (Files): Add tests/nan.h.
62064
62065         * tests/test-trunc1.c: Include nan.h.
62066         (main): Use NaNd instead of NAN.
62067         * modules/trunc-tests (Files): Add tests/nan.h.
62068
62069         * tests/test-roundf1.c: Include nan.h.
62070         (main): Use NaNf instead of NAN.
62071         * modules/roundf-tests (Files): Add tests/nan.h.
62072
62073         * tests/test-truncf1.c: Include nan.h.
62074         (main): Use NaNf instead of NAN.
62075         * modules/truncf-tests (Files): Add tests/nan.h.
62076
62077         * tests/test-ceilf1.c: Include nan.h.
62078         (main): Use NaNf instead of NAN.
62079         * modules/ceilf-tests (Files): Add tests/nan.h.
62080
62081         * tests/test-floorf1.c: Include nan.h.
62082         (main): Use NaNf instead of NAN.
62083         * modules/floorf-tests (Files): Add tests/nan.h.
62084
62085         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62086         (main): Use NaNf instead of NAN.
62087         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62088
62089         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62090         (main): Use NaNd instead of NAN.
62091         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62092
62093         * tests/test-frexp.c: Include nan.h.
62094         (main): Use NaNd instead of NAN.
62095         * modules/frexp-tests (Files): Add tests/nan.h.
62096
62097         * lib/isnan.c: Don't include <math.h>.
62098         (FUNC): Don't use NAN macro.
62099         * modules/isnand-nolibm (Depends-on): Remove math.
62100         * modules/isnanf-nolibm (Depends-on): Remove math.
62101         * modules/isnanl (Depends-on): Remove math.
62102         * modules/isnanl-nolibm (Depends-on): Remove math.
62103
62104         * tests/nan.h: New file.
62105
62106 2008-04-01  Eric Blake  <ebb9@byu.net>
62107
62108         Fix typos.
62109         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62110         values to be the right type.
62111
62112         For now, cater to gnulib strtod inaccuracies.
62113         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62114         fractional results.  While not as nice from a QoI perspective, it
62115         is a quicker patch than correctly implementing decimal to binary
62116         rounding.
62117
62118 2008-03-31  Eric Blake  <ebb9@byu.net>
62119
62120         Guarantee a definition of NAN.
62121         * lib/math.in.h (NAN): Define if missing.
62122         * tests/test-math.c (main): Test it.
62123         * doc/posix-headers/math.texi (math.h): Document this.
62124         * lib/isnan.c (rpl_isnand): Use it.
62125         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62126         * tests/test-floorf1.c (NaN): Likewise.
62127         * tests/test-frexp.c (NaN): Likewise.
62128         * tests/test-isnand.c (NaN): Likewise.
62129         * tests/test-isnanf.c (NaN): Likewise.
62130         * tests/test-round1.c (NaN): Likewise.
62131         * tests/test-roundf1.c (NaN): Likewise.
62132         * tests/test-snprintf-posix.h (NaN): Likewise.
62133         * tests/test-sprintf-posix.h (NaN): Likewise.
62134         * tests/test-trunc1.c (NaN): Likewise.
62135         * tests/test-truncf1.c (NaN): Likewise.
62136         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62137         * tests/test-vasprintf-posix.c (NaN): Likewise.
62138         * modules/isnand-nolibm (Depends-on): Add math.
62139         * modules/isnanf-nolibm (Depends-on): Likewise.
62140         * modules/isnanl (Depends-on): Likewise.
62141         * modules/isnanl-nolibm (Depends-on): Likewise.
62142         * modules/snprintf-posix-tests (Depends-on): Likewise.
62143         * modules/sprintf-posix-tests (Depends-on): Likewise.
62144         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62145         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62146         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62147         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62148
62149 2008-03-31  Bruno Haible  <bruno@clisp.org>
62150
62151         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62152         * doc/posix-functions/strtod.texi: Likewise.
62153
62154 2008-03-31  Bruno Haible  <bruno@clisp.org>
62155
62156         * tests/test-strtod.c (main): Don't use C99 syntax.
62157
62158 2008-03-31  Bruno Haible  <bruno@clisp.org>
62159
62160         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62161         Reported by Eric Blake.
62162
62163 2008-03-31  Jim Meyering  <meyering@redhat.com>
62164
62165         Don't compare actual signbit return values.
62166         * tests/test-strtod.c (main): Rather, compare only their
62167         zero/non-zero nature.
62168
62169 2008-03-31  Eric Blake  <ebb9@byu.net>
62170
62171         More strtod documentation.
62172         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62173         failures as distinct bugs.
62174
62175 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62176
62177         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62178         Problem reported by Erik Benada in
62179         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62180
62181 2008-03-30  Bruno Haible  <bruno@clisp.org>
62182
62183         * tests/test-strtod.c: Add comments about which assertion fails on which
62184         platform.
62185         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62186
62187 2008-03-30  Eric Blake  <ebb9@byu.net>
62188
62189         Test signbit behavior on zeros.
62190         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62191         (test_signbitd, test_signbitl): Likewise.
62192
62193         More strtod touchups.
62194         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62195         sign of negative underflow, for now.  Use .5, not .1.
62196         * doc/posix-functions/strtod.texi (strtod): Mention these
62197         limitations.
62198         Reported by Jim Meyering.
62199
62200 2008-03-30  Bruno Haible  <bruno@clisp.org>
62201
62202         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62203         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62204
62205 2008-03-30  Bruno Haible  <bruno@clisp.org>
62206
62207         Avoid failure when attempting to return empty iconv results on some
62208         platforms.
62209         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62210         allocation, don't report ENOMEM when the resulting string is empty.
62211
62212 2008-03-30  Bruno Haible  <bruno@clisp.org>
62213
62214         Fix buffer overrun.
62215         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62216         Don't consider the width for tmp_length. Check count against tmp_length
62217         before doing the padding. Ensure enough allocation during padding.
62218
62219 2008-03-30  Eric Blake  <ebb9@byu.net>
62220
62221         strtod touchups.
62222         * lib/strtod.c (strtod): Avoid compiler warnings.
62223         Reported by Jim Meyering.
62224
62225 2008-03-30  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62228         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62229         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62230         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62231         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62232         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62233         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62234         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62235
62236         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62237         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62238         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62239         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62240         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62241         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62242         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62243         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62244
62245         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62246         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62247         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62248         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62249         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62250         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62251         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62252         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62253
62254         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62255         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62256
62257         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62258         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62259
62260         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62261         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62262
62263         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62265         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62266
62267         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62269         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62270
62271         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62273         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62274
62275         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62277         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62278
62279         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62280         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62282         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62283         (Depends-on): Add EOVERFLOW.
62284         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62285         (Depends-on): Add EOVERFLOW.
62286         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62287         (Depends-on): Add EOVERFLOW.
62288         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62289         (Depends-on): Add EOVERFLOW.
62290         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62291         (Depends-on): Add EOVERFLOW.
62292         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62293         (Depends-on): Add EOVERFLOW.
62294         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62295         (Depends-on): Add EOVERFLOW.
62296         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62297         (Depends-on): Add EOVERFLOW.
62298
62299         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62301         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62302
62303         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62305         * modules/snprintf (Depends-on): Add EOVERFLOW.
62306
62307         * lib/poll.c (EOVERFLOW): Remove fallback.
62308         * modules/poll (Depends-on): Add EOVERFLOW.
62309
62310         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62311         * modules/getugroups (Depends-on): Add EOVERFLOW.
62312
62313         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62314         * modules/getdelim (Depends-on): Add EOVERFLOW.
62315
62316         * lib/ftell.c (EOVERFLOW): Remove fallback.
62317         * modules/ftell (Depends-on): Add EOVERFLOW.
62318
62319         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62320         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62321         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62322
62323         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62324
62325         * modules/EOVERFLOW-tests: New file.
62326         * tests/test-EOVERFLOW.c: New file.
62327
62328         * modules/EOVERFLOW: New file.
62329         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62330
62331 2008-03-30  Bruno Haible  <bruno@clisp.org>
62332
62333         Fix bug introduced on 2007-06-10.
62334         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62335         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62336
62337 2008-03-30  Bruno Haible  <bruno@clisp.org>
62338
62339         Improve freadseek's efficiency after ungetc.
62340         * lib/freadseek.c: Include freadahead.h.
62341         (freadptrinc): New function, extracted from freadseek.
62342         (freadseek): Use it in a loop. Use freadahead to determine the number
62343         of loop iterations.
62344         * modules/freadseek (Depends-on): Add freadahead.
62345         (configure.ac): Require AC_C_INLINE.
62346
62347 2008-03-30  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/freadseek.c (freadseek): Don't ignore the return value of
62350         freadptr.
62351
62352 2008-03-29  Eric Blake  <ebb9@byu.net>
62353
62354         Add hex float support.
62355         * modules/strtod (Depends-on): Add c-ctype.
62356         (Link): Mention POW_LIB.
62357         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62358         whitespace between 'e' and exponent.
62359         * tests/test-strtod.c (main): Enable hex float tests.
62360         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62361         now provides.
62362
62363         Document various strtod bugs, with some fixes.
62364         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62365         "-0x", "inf", "nan", and hex constants.
62366         * doc/posix-functions/atof.texi (atof): Likewise.
62367         * modules/stdlib (Makefile.am): Support strtod.
62368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62369         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62370         detect additional strtod bugs.
62371         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62372         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62373         bool where appropriate.  Parse 'inf' and 'nan'.
62374         * tests/test-strtod.c: New file.
62375         * modules/strtod (Depends-on): Add stdbool, stdlib.
62376         (configure.ac): Turn on module indicator.
62377         * modules/strtod-tests: New module.
62378
62379 2008-03-29  Eric Blake  <ebb9@byu.net>
62380
62381         Fix ftell on mingw.
62382         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62383         * modules/ftell-tests (Depends-on): Add binary-io.
62384         * modules/ftello-tests (Depends-on): Likewise.
62385         * tests/test-ftell.c (main): Enhance test to cover behavior after
62386         ungetc.  Enforce binary mode.
62387         * tests/test-ftello.c (main): Likewise.
62388
62389         Pass test-freadseek on cygwin.
62390         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62391         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62392         ungetc buffer.
62393
62394         * tests/test-fflush2.c (main): Fix typo.
62395
62396 2008-03-29  Bruno Haible  <bruno@clisp.org>
62397
62398         * tests/test-fflush2.c (main): Temporarily disable the contents of
62399         this test.
62400         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62401         Reported by Eric Blake.
62402
62403 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62404
62405         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62406         (GC_SHA224_DIGEST_SIZE): Add.
62407
62408         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62409         (gc_hash_digest_length): Likewise.
62410         (gc_hash_buffer): Likewise.
62411
62412 2008-03-25  Bruno Haible  <bruno@clisp.org>
62413
62414         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62415         detail which gettext release to use.
62416         Reported by Simon Josefsson.
62417
62418 2008-03-26  Jim Meyering  <meyering@redhat.com>
62419
62420         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62421         * modules/gnumakefile (clean-GNUmakefile): Also, use
62422         test ... && ... || : syntax rather than if-then ... fi.
62423
62424         gnumakefile: Don't double-quote-expand $(VPATH) value.
62425         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62426
62427 2008-03-24  Eric Blake  <ebb9@byu.net>
62428
62429         Alter GNUmakefile to install into top directory.
62430         * modules/maintainer-makefile: Split, and add dependency...
62431         * modules/gnumakefile: to this new module.
62432         * build-aux/GNUmakefile: Move...
62433         * top/GNUmakefile: ...here.
62434         * build-aux/maint.mk: Move...
62435         * top/maint.mk: ...here.
62436         * MODULES.html.sh (Support for maintaining...): Document new
62437         module.
62438
62439 2008-03-23  Bruno Haible  <bruno@clisp.org>
62440
62441         * gnulib-tool: New options --vc-files, --no-vc-files.
62442         (func_usage): Document them.
62443         (vc_files): New variable.
62444         (func_import): Consider vc_files.
62445         (func_create_testdir): Set vc_files to empty.
62446         Suggested by Jim Meyering and Karl Berry.
62447
62448 2008-03-23  Bruno Haible  <bruno@clisp.org>
62449
62450         Fix regex compilation error on HP-UX 11.
62451         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62452         * modules/regex (Files): Add m4/mbstate_t.m4.
62453         Reported by Ton Voon <ton.voon@altinity.com>.
62454
62455 2008-03-23  Bruno Haible  <bruno@clisp.org>
62456
62457         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62458
62459 2008-03-23  Eric Blake  <ebb9@byu.net>
62460             Bruno Haible  <bruno@clisp.org>
62461
62462         Install files from top/ in the destination directory.
62463         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62464         augmentation also for the files from top/.
62465         (func_import, func_create_testdir): Rewrite file names:
62466         top/filename -> filename.
62467
62468 2008-03-23  Bruno Haible  <bruno@clisp.org>
62469
62470         Tweak "gnulib --version" output.
62471         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62472
62473 2008-03-23  Bruno Haible  <bruno@clisp.org>
62474
62475         Tweak "gnulib --version" output.
62476         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62477         rather than contents of ChangeLog, when possible.
62478
62479 2008-03-21  Eric Blake  <ebb9@byu.net>
62480
62481         More --version tweaks.
62482         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62483         date of last ChangeLog entry.
62484
62485 2008-03-21  Jim Meyering  <meyering@redhat.com>
62486
62487         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62488
62489 2008-03-20  Eric Blake  <ebb9@byu.net>
62490
62491         VPATH fix.
62492         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62493
62494 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62495
62496         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62497         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62498
62499 2008-03-20  Eric Blake  <ebb9@byu.net>
62500
62501         Sync GNUmakefile with coreutils.
62502         * build-aux/GNUmakefile (have-Makefile): Rename...
62503         (_have-Makefile): ...to this, for namespace consideration.
62504         (GNUmakefile.cfg): Include, if present.
62505         (_autoreconf): Define a default.
62506         (_is-dist-target): New rule for rebuilds to pick up intra-release
62507         version.
62508         (maint-cfg.mk): Rename...
62509         (cfg.mk): ...to this.
62510
62511 2008-03-18  Jim Meyering  <meyering@redhat.com>
62512
62513         New script and module: mktempd
62514         * MODULES.html.sh (maint+release support): Add mktempd.
62515         * build-aux/mktempd: New file.
62516         * modules/mktempd: New file.
62517
62518 2008-03-15  Jim Meyering  <meyering@redhat.com>
62519
62520         Undo last change.
62521         * lib/sha1.c, lib/md5.c: 63 != ~63.
62522         Reported by Andreas Schwab.
62523
62524         sha1.c, md5.c: Hoist a redundant expression.
62525         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62526         "ctx->buflen" only once, before calling *_process_block.
62527         * lib/md5.c (md5_process_bytes): Likewise.
62528
62529 2008-03-14  Eric Blake  <ebb9@byu.net>
62530
62531         Bump copyright year in files generated by gnulib-tool.
62532         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62533         gnulib-tool, rather than hard-coding it.
62534
62535         Fix 'gnulib-tool --version' output to work with git.
62536         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62537         (startup): ...here.
62538         (func_version): Use it to invoke git-version-gen, rather than
62539         relying on CVS keyword expansion.  Modernize wording.
62540         (cvsdatestamp, last_checkin_date, version): Kill unused
62541         variables.
62542
62543 2008-03-12  Jim Meyering  <meyering@redhat.com>
62544
62545         Recognize optional cast of the argument to free.
62546         * build-aux/useless-if-before-free: Update regexps.
62547
62548         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62549
62550 2008-03-11  Bruno Haible  <bruno@clisp.org>
62551
62552         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62553         by a single package.
62554         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62555         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62556         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62557         Reported by Sam Steingold <sds@gnu.org>.
62558
62559 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62560
62561         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62562         repositories.
62563
62564 2008-03-11  Bruno Haible  <bruno@clisp.org>
62565
62566         Avoid conflicts between local macro definitions.
62567         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62568         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62569
62570 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62571             Bruno Haible  <bruno@clisp.org>
62572
62573         Make va_copy work with some version of xlc on AIX 5.1.
62574         * lib/stdarg.in.h: New file.
62575         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62576         On AIX, use a <stdarg.h> file substitute.
62577         * modules/stdarg (Files): Add lib/stdarg.in.h.
62578         (Depends-on): Add include_next.
62579         (Makefile.am): Build a stdarg.h substitute if requested.
62580         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62581
62582 2008-03-10  Bruno Haible  <bruno@clisp.org>
62583
62584         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62585         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62586         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62587
62588 2008-03-10  Bruno Haible  <bruno@clisp.org>
62589
62590         * modules/stdlib (Depends-on): Add include_next, remove
62591         absolute-header.
62592
62593 2008-03-09  Bruno Haible  <bruno@clisp.org>
62594
62595         * lib/freadahead.h (freadahead): Document more precisely.
62596         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62597         the sum of both buffer sizes.
62598         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62599         * NEWS: Document the change.
62600
62601 2008-03-09  Bruno Haible  <bruno@clisp.org>
62602
62603         Extend freadptr to return also the buffer size.
62604         * lib/freadptr.h (freadptr): Add sizep argument.
62605         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62606         (freadptr): Add sizep argument. Determine buffer size like freadahead
62607         does.
62608         * tests/test-freadptr.c: Don't include freadahead.h.
62609         (main): Adapt for new calling convention of freadptr.
62610         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62611         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62612         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62613         tests/test-freadptr2.sh.
62614         (Depends): Remove freadahead.
62615         (TESTS): Add test-freadptr2.sh.
62616         (check_PROGRAMS): Add test-freadptr2.
62617
62618 2008-03-09  Bruno Haible  <bruno@clisp.org>
62619
62620         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62621         Report and solution by Simon Josefsson.
62622
62623 2008-03-06  Bruno Haible  <bruno@clisp.org>
62624
62625         Make fflush after ungetc work on BSD platforms.
62626         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62627         * tests/test-fflush2.c: New file.
62628         * tests/test-fflush2.sh: New file.
62629         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62630         tests/test-fflush2.c.
62631         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62632         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62633
62634 2008-03-06  Eric Blake  <ebb9@byu.net>
62635
62636         Likewise for ftello.
62637         * modules/ftello (Dependencies): Add extensions.
62638         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62639
62640 2008-03-06  Bruno Haible  <bruno@clisp.org>
62641
62642         * modules/fseeko (Dependencies): Add extensions.
62643         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62644         Needed on glibc systems.
62645
62646 2008-03-06  Bruno Haible  <bruno@clisp.org>
62647
62648         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62649         email address.
62650         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62651
62652 2008-03-06  Bruno Haible  <bruno@clisp.org>
62653
62654         * users.txt: Add libgnupdf.
62655
62656 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62657
62658         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62659         (Header File Substitutes, Function Substitutes,
62660         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62661         (Build robot for gnulib): Fix typo.
62662
62663 2008-03-06  Bruno Haible  <bruno@clisp.org>
62664
62665         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62666         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62667
62668 2008-03-06  Bruno Haible  <bruno@clisp.org>
62669
62670         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62671         * doc/gnulib.texi: Include it.
62672
62673 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62674
62675         * modules/func (License): Change license to unlimited; there was
62676         no LGPL parts in the module anyway.
62677
62678 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62679
62680         * modules/__func__: Renamed to modules/func.
62681         * modules/__func__-tests: Renamed to modules/func-tests.
62682         * tests/test-__func__.c: Renamed to tests/test-func.c.
62683         * m4/__func__.m4: Renamed to m4/func.m4.
62684         * doc/gnulib.texi (__func__): Section renamed to func.
62685         Suggested by Eric Blake <ebb9@byu.net>.
62686
62687 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62688
62689         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62690         about __func__.  Make example self-contained.  Suggested by Eric
62691         Blake <ebb9@byu.net>.
62692
62693         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62694         Suggested by Eric Blake <ebb9@byu.net>.
62695
62696 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62697
62698         * modules/__func__: New file.
62699         * modules/__func__-tests: New file.
62700         * tests/test-__func__.c: New file.
62701         * m4/__func__.m4: New file.
62702         * doc/gnulib.texi (__func__): Document __func__ module.
62703
62704 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62705
62706         * modules/byteswap (License): Re-license as LGPLv2+.
62707
62708 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62709
62710         * doc/Makefile: Add pdf target.
62711
62712 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62713
62714         * modules/inline (License): Use 'unlimited', since there are only
62715         *.m4 files in this module.
62716
62717 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62718             Bruno Haible  <bruno@clisp.org>
62719
62720         Add support for HP C 7.1 on OpenVMS 8.3.
62721         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62722
62723 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62724
62725         Update VMS specifics.
62726         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62727
62728 2008-03-02  Jim Meyering  <meyering@redhat.com>
62729
62730         Remove the last dependency on the "free" module.
62731         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62732         Reported by Bob Proulx.
62733
62734         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62735
62736         Remove useless "if" tests before free.  Deprecate "free" module.
62737         * doc/posix-functions/free.texi: Mention that this
62738         module is no longer useful.
62739         * modules/free (Notice): Say this module is obsolete.
62740         * modules/readutmp (Depends-on): Remove free.
62741         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62742         * lib/putenv.c (putenv): Likewise.
62743         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62744         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62745         * tests/test-c-strcasestr.c (main): Likewise.
62746         * tests/test-c-strstr.c (main): Likewise.
62747         * tests/test-mbscasestr1.c (main): Likewise.
62748         * tests/test-mbscasestr2.c (main): Likewise.
62749         * tests/test-mbsstr1.c (main): Likewise.
62750         * tests/test-mbsstr2.c (main): Likewise.
62751         * tests/test-memmem.c (main): Likewise.
62752         * tests/test-strcasestr.c (main): Likewise.
62753         * tests/test-striconv.c (main): Likewise.
62754         * tests/test-striconveh.c (main): Likewise.
62755         * tests/test-striconveha.c (main): Likewise.
62756         * tests/test-strstr.c (main): Likewise.
62757
62758         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62759
62760         bootstrap: sync from coreutils again
62761         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62762
62763 2008-03-01  Jim Meyering  <meyering@redhat.com>
62764
62765         bootstrap: sync from coreutils
62766         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62767         also when the target doesn't exist.
62768
62769 2008-03-01  Eric Blake  <ebb9@byu.net>
62770
62771         Fix bugs in last patch.
62772         * lib/memchr2.c (memchr2): Fix typo.
62773         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62774         extension.
62775         Reported by Bruce Korb.
62776
62777         New module 'memchr2'.
62778         * modules/memchr2: New file.
62779         * modules/memchr2-tests: Likewise.
62780         * lib/memchr2.h: Likewise.
62781         * lib/memchr2.c: Likewise, based on memchr.c.
62782         * tests/test-memchr2.c: New test.
62783         * MODULES.html.sh (String handling): Add memchr2.
62784
62785 2008-02-29  Bruno Haible  <bruno@clisp.org>
62786
62787         * modules/freadseek-tests: New file.
62788         * tests/test-freadseek.sh: New file.
62789         * tests/test-freadseek.c: New file.
62790
62791         New module 'freadseek'.
62792         * modules/freadseek: New file.
62793         * lib/freadseek.h: New file.
62794         * lib/freadseek.c: New file.
62795         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62796
62797 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62798
62799         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62800         wydawca.
62801
62802         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62803         program_invocation_name and program_invocation_short_name are
62804         present.
62805
62806 2008-02-28  Bruno Haible  <bruno@clisp.org>
62807
62808         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62809         * tests/test-freadptr.sh: Also test non-seekable stdin.
62810
62811 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62812
62813         * build-aux/bootstrap (source_base, m4_base)
62814         (doc_base, tests_base): New variables.
62815         (gnulib_tool_options): Do not hardcode base directories, use
62816         the above variables instead.
62817
62818 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62819
62820         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62821
62822 2008-02-28  Bruno Haible  <bruno@clisp.org>
62823
62824         * modules/freadptr-tests: New file.
62825         * tests/test-freadptr.sh: New file.
62826         * tests/test-freadptr.c: New file.
62827
62828         New module 'freadptr'.
62829         * modules/freadptr: New file.
62830         * lib/freadptr.h: New file.
62831         * lib/freadptr.c: New file.
62832         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62833
62834 2008-02-26  Karl Berry  <karl@freefriends.org>
62835
62836         Sync from Libtool:
62837         * libltdl/argz.c (argz_add, argz_count): New functions.
62838         * libltdl/argz.in.h: Declare them.
62839         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62840
62841 2008-02-22  Bruno Haible  <bruno@clisp.org>
62842
62843         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62844         is a pointer type.  Needed for HP-UX 10.
62845         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62846         * doc/posix-functions/gmtime_r.texi: Likewise.
62847         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62848
62849 2008-02-24  Bruno Haible  <bruno@clisp.org>
62850
62851         * modules/environ-tests: New file.
62852         * tests/test-environ.c: New file.
62853
62854         New module 'environ'.
62855         * modules/environ: New file.
62856         * lib/unistd.in.h (environ): New declaration.
62857         * m4/environ.m4: New file.
62858         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62859         after use.
62860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62861         HAVE_DECL_ENVIRON.
62862         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62863         HAVE_DECL_ENVIRON.
62864         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62865         wrong claim that 'environ' is missing on some systems.
62866         * modules/execute (Depends-on): Add environ.
62867         * lib/execute.c (environ): Remove fallback declaration.
62868         * modules/pipe (Depends-on): Add environ.
62869         * lib/pipe.c (environ): Remove fallback declaration.
62870         * modules/setenv (Depends-on): Add environ.
62871         * lib/setenv.c (environ): Remove fallback declaration.
62872         * modules/unsetenv (Depends-on): Add environ.
62873         * lib/unsetenv.c (environ): Remove fallback declaration.
62874         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62875         m4/environ.m4.
62876         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62877         (gl_PREREQ_UNSETENV): Likewise.
62878
62879 2008-02-24  Bruno Haible  <bruno@clisp.org>
62880
62881         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62882
62883 2008-02-20  Bob Proulx  <bob@proulx.com>
62884
62885         Enable use of older two part flavor 'git describe'.
62886         * build-aux/git-version-gen: If using the older two part flavor of
62887         git version then recreate the third part now present in the
62888         newer three part flavor of git describe.
62889
62890 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62891
62892         * lib/fts.c (fts_build): Typo correction to comment.
62893
62894 2008-02-17  Bruno Haible  <bruno@clisp.org>
62895
62896         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62897         generating no-op conflicts.
62898
62899 2008-02-17  Bruno Haible  <bruno@clisp.org>
62900
62901         Speed up by 10%.
62902         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62903         result_entries, rather than an index-based loop.
62904
62905 2008-02-17  Bruno Haible  <bruno@clisp.org>
62906
62907         Speed up by 25%.
62908         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62909         'hashcode_cached'.
62910         (entry_create): New function.
62911         (entry_hashcode): Use the cached hashcode if possible.
62912         (read_changelog_file, try_split_merged_entry): Use entry_create.
62913
62914 2008-02-17  Bruno Haible  <bruno@clisp.org>
62915
62916         Speed up from O(n^2) to O(n) for long ChangeLog files.
62917         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62918         (read_changelog_file): Change implementation of entries_reversed list
62919         to rbtreehash.
62920         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62921
62922 2008-02-17  Bruno Haible  <bruno@clisp.org>
62923
62924         New option --split-merged-entry.
62925         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62926         (find_paragraph_end, try_split_merged_entry): New functions.
62927         (long_options): Add option --split-merged-entry.
62928         (usage): Document option --split-merged-entry.
62929         (main): Implement option --split-merged-entry.
62930         Reported by Eric Blake.
62931
62932 2008-02-17  Bruno Haible  <bruno@clisp.org>
62933
62934         * lib/git-merge-changelog.c: Include c-strstr.h.
62935         (main): Support the "git pull --rebase" situation.
62936         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62937         Reported by Eric Blake.
62938
62939 2008-02-16  Eric Blake  <ebb9@byu.net>
62940
62941         Avoid doubling \ in common case of "c-maybe" quoting style.
62942         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62943         eliding outer quotes.
62944         * lib/quotearg.h: Document this.
62945         * tests/test-quotearg.c (result_strings, inputs, results_g)
62946         (flag_results, locale_results): Test it by adding a new string to
62947         each test group.
62948         (compare_strings): Test new string.
62949
62950 2008-02-13  Eric Blake  <ebb9@byu.net>
62951
62952         Avoid trigraph quoting in default output.
62953         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62954         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62955         unless explicitly requested.
62956         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62957
62958 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62959
62960         Don't rely on signed integer overflowing to negative value.
62961         * lib/getugroups.c (getugroups): Include <limits.h>.
62962         Instead, compare against INT_MAX, and increment only if the test passes.
62963
62964 2008-02-13  Jim Meyering  <meyering@redhat.com>
62965         and Eric Blake  <ebb9@byu.net>
62966
62967         Avoid shadowing warning and compile errors on Linux.
62968         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62969         forwarding macros on Linux.
62970         (dcgettext): Define a stub, for Linux.
62971         (results_g, main): Avoid warnings.
62972
62973 2008-02-12  Eric Blake  <ebb9@byu.net>
62974
62975         Silence warning in last patch.
62976         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62977
62978         Quotearg part 4: add tests, fix c-maybe colon quoting.
62979         * lib/quotearg.h: Improve documentation.
62980         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62981         escapes when adding outer quotes.  When quoting trigraphs, use
62982         valid C notation.  When quoting NUL, omit extra characters if next
62983         character is not digit.  Alter prototype.
62984         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62985         callers.
62986         * modules/quotearg-tests: New module.
62987         * tests/test-quotearg.c: New test.
62988
62989 2008-02-07  Eric Blake  <ebb9@byu.net>
62990
62991         Quotearg part 3: add flag to control outer quote elision.
62992         * lib/quotearg.h (c_maybe_quoting_style): New style.
62993         (enum quoting_flags): Better documentation of flags.
62994         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62995         c-maybe style.
62996         (quotearg_buffer_restyled): Handle new flag to elide outer
62997         quotes.
62998
62999         Quotearg part 2: add flag that can control NUL elision.
63000         * lib/quotearg.h (set_quoting_flags): New prototype.
63001         * lib/quotearg.c (struct quoting_options): Add flag field.
63002         (set_quoting_flags): New function.
63003         (quotearg_buffer_restyled): Add flags parameter.
63004         (quotearg_alloc_mem): Set the flag if length cannot be returned.
63005         (quotearg_n_options): Set the flag, since length cannot be
63006         returned.
63007         (quoting_options_from_style): Default flags correctly.
63008
63009         Quotearg part 1: more wrappers, restore quotearg_char state.
63010         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
63011         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
63012         (quotearg_colon_mem): New wrappers.
63013         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
63014         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
63015         functions.
63016         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
63017         (quotearg_colon_mem): New functions.
63018
63019 2008-02-11  Bruno Haible  <bruno@clisp.org>
63020
63021         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
63022         library in the current directory: it does not work with parallel make.
63023         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63024
63025 2008-02-11  Bruno Haible  <bruno@clisp.org>
63026
63027         * .gitattributes: New file.
63028
63029 2008-02-11  Jim Meyering  <meyering@redhat.com>
63030
63031         useless-if-before-free: Fix reversed exit values.
63032         * build-aux/useless-if-before-free: Use correct values
63033         for EXIT_MATCH and EXIT_NO_MATCH.
63034
63035         * build-aux/useless-if-before-free: Close stdout carefully.
63036
63037 2008-02-10  Bruno Haible  <bruno@clisp.org>
63038
63039         New module 'git-merge-changelog'.
63040         * modules/git-merge-changelog: New file.
63041         * lib/git-merge-changelog.c: New file.
63042
63043 2008-02-10  Jim Meyering  <meyering@redhat.com>
63044
63045         useless-if-before-free: New option: --list (-l).
63046
63047         useless-if-before-free: Don't exit immediately upon open failure.
63048         * build-aux/useless-if-before-free: Exit 2 for errors.
63049         Upon failure to open a file, don't exit immediately.
63050         Rather, just warn and continue with any remaining files.
63051
63052 2008-02-10  Bruno Haible  <bruno@clisp.org>
63053
63054         New abstract list operation 'node_set_value'.
63055         * lib/gl_list.h (gl_list_node_set_value): New function.
63056         (struct gl_list_implementation): New field node_set_value.
63057         * lib/gl_list.c (gl_list_node_set_value): New function.
63058         * lib/gl_array_list.c (gl_array_node_set_value): New function.
63059         (gl_array_list_implementation): Update.
63060         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
63061         (gl_carray_list_implementation): Update.
63062         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
63063         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63064         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63065         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
63066         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63067         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63068         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63069         Update.
63070         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63071         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
63072         (gl_sublist_list_implementation): Update.
63073
63074 2008-02-10  Bruno Haible  <bruno@clisp.org>
63075
63076         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63077         Needed when ELEMENT is #defined to 'some_type *'.
63078
63079 2008-02-10  Jim Meyering  <meyering@redhat.com>
63080
63081         New script and module: useless-if-before-free
63082         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63083         * build-aux/useless-if-before-free: New file.
63084         * modules/useless-if-before-free: New file.
63085
63086         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63087
63088         xstrtol_error: Fix typo.
63089         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63090         s/exit_failure/exit_status/.
63091
63092 2008-02-09  Jim Meyering  <meyering@redhat.com>
63093
63094         New script and module: gitlog-to-changelog
63095         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63096         * modules/gitlog-to-changelog: New file.
63097         * build-aux/gitlog-to-changelog: New file.
63098
63099 2008-02-08  Jim Meyering  <meyering@redhat.com>
63100
63101         Avoid two "parameter unused" warnings.
63102         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63103         Mark "st" as used.
63104
63105         Use "git COMMAND", not "git-COMMAND".
63106         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63107         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63108         * build-aux/git-version-gen: Use "git status", not "git-status".
63109
63110 2008-02-07  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63113         Avoids a crash on Windows Vista.
63114         Reported by Adam Strzelecki <ono@java.pl> via
63115         Simon Josefsson <simon@josefsson.org>.
63116
63117 2008-02-06  Bruno Haible  <bruno@clisp.org>
63118
63119         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63120         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63121         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63123         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63124         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63125         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63126         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63134         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63135         left-adjust flag.
63136         * tests/test-snprintf-posix.h (test_function): Likewise.
63137         * tests/test-sprintf-posix.h (test_function): Likewise.
63138         * tests/test-vasprintf-posix.c (test_function): Likewise.
63139         * doc/posix-functions/fprintf.texi: Update.
63140         * doc/posix-functions/printf.texi: Update.
63141         * doc/posix-functions/snprintf.texi: Update.
63142         * doc/posix-functions/sprintf.texi: Update.
63143         * doc/posix-functions/vfprintf.texi: Update.
63144         * doc/posix-functions/vprintf.texi: Update.
63145         * doc/posix-functions/vsnprintf.texi: Update.
63146         * doc/posix-functions/vsprintf.texi: Update.
63147         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63148
63149 2008-02-06  Bruno Haible  <bruno@clisp.org>
63150
63151         Fix bug introduced on 2008-01-26.
63152         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63153
63154 2008-02-06  Bruno Haible  <bruno@clisp.org>
63155
63156         Fix bug introduced on 2007-06-10.
63157         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63158         !NEED_PRINTF_FLAG_ZERO.
63159
63160 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63161
63162         getloadavg: use libperfstat on AIX5
63163         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63164
63165 2008-02-03  Bruno Haible  <bruno@clisp.org>
63166
63167         * lib/diffseq.h: Add comments about required #includes.
63168         Reported by Michael Biggs <gnulib@doubleplum.net>.
63169
63170 2008-02-01  Bruno Haible  <bruno@clisp.org>
63171
63172         * users.txt: Add gnuit.
63173
63174 2008-01-31  Bruno Haible  <bruno@clisp.org>
63175
63176         * lib/md4.c (set_uint32): Mark as inline.
63177         * lib/md5.c (set_uint32): Likewise.
63178         * lib/sha1.c (set_uint32): Likewise.
63179         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63180         * m4/md5.m4 (gl_MD5): Likewise.
63181         * m4/sha1.m4 (gl_SHA1): Likewise.
63182
63183 2008-01-31  Jim Meyering  <meyering@redhat.com>
63184
63185         Use "sizeof VAR", rather than a literal "4".
63186         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63187         * lib/md4.c (md4_read_ctx): Likewise.
63188         * lib/sha1.c (sha1_read_ctx): Likewise.
63189
63190 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63191
63192         * tests/test-sha1.c: New file, based on test-md5.c.
63193
63194         * modules/crypto/sha1-tests: New file.
63195
63196 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63197
63198         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63199
63200 2008-01-31  Jim Meyering  <meyering@redhat.com>
63201
63202         Prefer "sizeof v" over the equivalent "4".
63203         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63204         * lib/md5.c (set_uint32): Likewise.
63205         * lib/sha1.c (set_uint32): Likewise.
63206
63207 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63208
63209         * lib/sha1.c (set_uint32): Mark function as static.
63210
63211 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63212
63213         md2: clarify comments to say that alignment is not required.
63214         * lib/md2.h: Remove warning about alignment in comment.
63215         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63216         never been required.
63217
63218 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63219
63220         md4: adapt alignment constraint fix from sha1.
63221         * lib/md4.c (set_uint32): New function, from sha1.c
63222         (md4_read_ctx): Use it.
63223         (md4_finish_ctx): Doc fix.
63224         * lib/md4.h: Doc fix.
63225
63226 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63227
63228         md5: adapt alignment constraint fix from sha1.
63229         * lib/md5.c (set_uint32): New function, from sha1.c
63230         (md5_read_ctx): Use it.
63231         (md5_finish_ctx): Doc fix.
63232         * lib/md5.h: Doc fix.
63233
63234 2008-01-30  Peter Palfrader  <weasel@debian.org>
63235
63236         sha1: remove the result buffer alignment constraint
63237         * lib/sha1.c (set_uint32): New function.
63238         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63239         constraint.
63240         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63241         * lib/sha1.h: Likewise.
63242
63243 2008-01-30  Andreas Schwab  <schwab@suse.de>
63244             Bruno Haible  <bruno@clisp.org>
63245
63246         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63247         correct definition of LDBL_MIN_EXP.
63248
63249 2008-01-30  Karl Berry  <karl@gnu.org>
63250
63251         * config/srclist-update: try to preserve x bit on updates.
63252         * config/srclistvars.sh: update for karl.
63253
63254 2008-01-29  Jim Meyering  <meyering@redhat.com>
63255
63256         vasnprintf.c: Avoid warning about unused label
63257         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63258         "overflow" label definition and associated code with the
63259         same cpp condition that guards the sole use of that label.
63260
63261 2008-01-26  Bruno Haible  <bruno@clisp.org>
63262
63263         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63264         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63265         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63266         * lib/isnanl-nolibm.h (isnanl): Likewise.
63267         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63268
63269 2008-01-26  Bruno Haible  <bruno@clisp.org>
63270
63271         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63272         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63273
63274 2008-01-26  Bruno Haible  <bruno@clisp.org>
63275
63276         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63277         GCC >= 4.0 built-in.
63278         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63279
63280 2008-01-26  Bruno Haible  <bruno@clisp.org>
63281
63282         Rename isnan, applicable to 'double' only, to isnand.
63283         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63284         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63285         (configure.ac): Update.
63286         (Include): Replace "isnan.h" with "isnand.h".
63287         * m4/isnand.m4: Renamed from m4/isnan.m4.
63288         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63289         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63290         instead of isnan.c.
63291         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63292         instead of HAVE_ISNAN_IN_LIBC.
63293         (isnand): Renamed from isnan.
63294         * lib/isnand.c: New file.
63295         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63296         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63297         (Makefile.am): Update.
63298         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63299         Include isnand.h instead of isnan.h.
63300         (main): Test isnand instead of isnan.
63301         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63302         isnan-nolibm.
63303         * modules/frexp (Depends-on): Likewise.
63304         * modules/frexp-tests (Depends-on): Likewise.
63305         * modules/frexp-nolibm (Depends-on): Likewise.
63306         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63307         * modules/isfinite (Depends-on): Likewise.
63308         * modules/round-tests (Depends-on): Likewise.
63309         * modules/signbit (Depends-on): Likewise.
63310         * modules/signbit-tests (Depends-on): Likewise.
63311         * modules/snprintf-posix (Depends-on): Likewise.
63312         * modules/sprintf-posix (Depends-on): Likewise.
63313         * modules/trunc-tests (Depends-on): Likewise.
63314         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63315         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63316         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63317         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63318         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63319         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63320         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63321         * modules/vasnprintf-posix (Depends-on): Likewise.
63322         * modules/vasprintf-posix (Depends-on): Likewise.
63323         * modules/vfprintf-posix (Depends-on): Likewise.
63324         * modules/vsnprintf-posix (Depends-on): Likewise.
63325         * modules/vsprintf-posix (Depends-on): Likewise.
63326         * lib/frexp.c: Include isnand.h instead of isnan.h.
63327         (ISNAN): Set to isnand instead of isnan.
63328         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63329         (gl_isfinited): Use isnand instead of isnan.
63330         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63331         (gl_signbitd): Use isnand instead of isnan.
63332         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63333         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63334         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63335         (main): Use isnand instead of isnan.
63336         * tests/test-round1.c: Include isnand.h.
63337         (main): Use isnand instead of isnan.
63338         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63339         (ISNAN): Set to isnand instead of isnan.
63340         * tests/test-trunc1.c: Include isnand.h.
63341         (main): Use isnand instead of isnan.
63342         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63343         (equal): Use isnand instead of isnan.
63344         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63345         isnand-nolibm.
63346         * NEWS: Mention the change.
63347
63348 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63349             Bruno Haible  <bruno@clisp.org>
63350
63351         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63352         the GCC builtins for signbits are present and set
63353         REPLACE_SIGNBIT_USING_GCC if so.
63354         * lib/math.in.h (signbit): Define using GCC builtins if
63355         REPLACE_SIGNBIT_USING_GCC is set.
63356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63357         REPLACE_SIGNBIT_USING_GCC.
63358         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63359
63360 2008-01-25  Jim Meyering  <meyering@redhat.com>
63361
63362         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63363         * lib/poll.c: Include <config.h>, not "config.h".
63364         * tests/test-getaddrinfo.c: Likewise.
63365
63366 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63367
63368         * modules/sockets-tests: New file.
63369
63370 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63371
63372         * modules/sockets: New module, can be used to call WSA_Startup and
63373         WSA_Cleanup when needed.
63374
63375         * lib/sockets.h, lib/sockets.c: New files.
63376
63377         * m4/sockets.m4: New file.
63378
63379         * tests/test-sockets.c: New file.
63380
63381 2008-01-19  Bruno Haible  <bruno@clisp.org>
63382
63383         * doc/posix-headers: Renamed from doc/headers.
63384         * doc/posix-functions: Renamed from doc/functions.
63385         * doc/gnulib.texi: Update.
63386
63387 2008-01-19  Bruno Haible  <bruno@clisp.org>
63388
63389         * doc/glibc-functions/strcasestr.texi: Include contents of
63390         doc/functions/strcasestr.texi, fixing the list of platforms.
63391         * doc/functions/strcasestr.texi: Remove file.
63392
63393 2008-01-19  Bruno Haible  <bruno@clisp.org>
63394
63395         * doc/glibc-functions/memmem.texi: Include contents of
63396         doc/functions/memmem.texi.
63397         * doc/functions/memmem.texi: Remove file.
63398
63399 2008-01-18  Bruno Haible  <bruno@clisp.org>
63400
63401         * doc/glibc-functions/*.texi: New files.
63402         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63403         to use the new files.
63404
63405 2008-01-17  Bruno Haible  <bruno@clisp.org>
63406
63407         * tests/test-gethostname.c (main): Fix printf statement.
63408
63409 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63410
63411         * modules/gethostname-tests: New file.
63412
63413         * tests/test-gethostname.c: New file.
63414
63415 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63416
63417         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63418         used by the UNAME case.  Reported by Bruno Haible
63419         <bruno@clisp.org>.
63420
63421 2008-01-17  Eric Blake  <ebb9@byu.net>
63422
63423         Convert c-strcasestr to be more efficient.
63424         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63425         (Depends-on): Add c-strcase, remove malloca, strnlen.
63426         * tests/test-c-strcasestr.c (main): Enhance test.
63427         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63428
63429 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63430
63431         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63432         Use it in creating po/Makevars.
63433
63434 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63435
63436         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63437         Applications that requires it should initialize libgcrypt
63438         manually.
63439
63440 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63441
63442         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63443
63444 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63445
63446         Fix problem with getdate on mingw32 reported by Simon Josefsson
63447         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63448         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63449         tzname", when deciding whether to declare tzname.
63450         * lib/strftime.c (tzname): Likewise.
63451
63452 2008-01-15  Bruno Haible  <bruno@clisp.org>
63453
63454         Work around a MacOS X 10.5 bug in frexpl().
63455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63456         * doc/functions/frexpl.texi: Document the bug.
63457         Reported by Elias Pipping <pipping@gentoo.org>.
63458
63459 2008-01-14  Eric Blake  <ebb9@byu.net>
63460
63461         Touch up previous patch.
63462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63463         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63464
63465         Convert strcasestr module to use Two-Way algorithm.
63466         * modules/strcasestr-simple: New module, based on the old
63467         strcasestr, but with Two-Way rather than KMP.
63468         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63469         * lib/string.in.h (rpl_strcasestr): Declare.
63470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63471         performance.
63472         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63473         * modules/string (Makefile.am): Support strcasestr.
63474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63475         * modules/strcasestr-tests (Depends-on): Check for alarm.
63476         * tests/test-strcasestr.c: Augment test.
63477         * lib/str-two-way.h: Clean up stray macro.
63478         * NEWS: Document new module.
63479         * MODULES.html.sh (string handling): Likewise.
63480         * doc/functions/strcasestr.texi: New file.
63481         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63482         here, since it is not a POSIX function.
63483
63484 2008-01-14  Colin Watson  <cjwatson@debian.org>
63485             Bruno Haible  <bruno@clisp.org>
63486
63487         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63488         works fine; if not, set REPLACE_STRSIGNAL.
63489         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63491         REPLACE_STRSIGNAL.
63492         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63493         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63494         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63495
63496 2008-01-14  Bruno Haible  <bruno@clisp.org>
63497
63498         * modules/strsignal (Include): Change to <string.h>.
63499
63500 2008-01-14  Colin Watson  <cjwatson@debian.org>
63501
63502         * modules/argp (Notice): Add a notice recommending to change
63503         XGETTEXT_OPTIONS.
63504         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63505
63506 2008-01-13  Colin Watson  <cjwatson@debian.org>
63507
63508         * modules/strsignal-tests: New file.
63509         * tests/test-strsignal.c: New file.
63510
63511         * lib/strsignal.c: New file, from glibc with modifications.
63512         * lib/siglist.h: New file, from glibc with modifications.
63513         * lib/string.in.h (strsignal): New declaration.
63514         * m4/strsignal.m4: New file.
63515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63516         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63517         * modules/strsignal: New file.
63518         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63519         HAVE_DECL_STRSIGNAL.
63520
63521 2008-01-13  Bruno Haible  <bruno@clisp.org>
63522
63523         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63524         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63525         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63526         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63527
63528 2008-01-13  Bruno Haible  <bruno@clisp.org>
63529
63530         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63531         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63532         * lib/argp.h (__attribute__): Likewise.
63533         * lib/c-stack.c (__attribute__): Likewise.
63534         * lib/error.h (__attribute__): Likewise.
63535         * lib/fts.c (__attribute__): Likewise.
63536         * lib/openat.h (__attribute__): Likewise.
63537         * lib/stdio.in.h (__attribute__): Likewise.
63538         * lib/string.in.h (__attribute__): Likewise.
63539         * lib/utimens.c (__attribute__): Likewise.
63540         * lib/vasnprintf.h (__attribute__): Likewise.
63541         * lib/xalloc.h (__attribute__): Likewise.
63542         * lib/xprintf.h (__attribute__): Likewise.
63543         * lib/xstrtol.h (__attribute__): Likewise.
63544         * lib/xvasprintf.h (__attribute__): Likewise.
63545
63546 2008-01-12  Bruno Haible  <bruno@clisp.org>
63547
63548         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63549         * doc/glibc-headers/a.out.texi: New file.
63550         * doc/glibc-headers/aliases.texi: New file.
63551         * doc/glibc-headers/alloca.texi: New file.
63552         * doc/glibc-headers/ar.texi: New file.
63553         * doc/glibc-headers/argp.texi: New file.
63554         * doc/glibc-headers/argz.texi: New file.
63555         * doc/glibc-headers/byteswap.texi: New file.
63556         * doc/glibc-headers/crypt.texi: New file.
63557         * doc/glibc-headers/endian.texi: New file.
63558         * doc/glibc-headers/envz.texi: New file.
63559         * doc/glibc-headers/err.texi: New file.
63560         * doc/glibc-headers/error.texi: New file.
63561         * doc/glibc-headers/execinfo.texi: New file.
63562         * doc/glibc-headers/fpu_control.texi: New file.
63563         * doc/glibc-headers/fstab.texi: New file.
63564         * doc/glibc-headers/fts.texi: New file.
63565         * doc/glibc-headers/getopt.texi: New file.
63566         * doc/glibc-headers/ieee754.texi: New file.
63567         * doc/glibc-headers/ifaddrs.texi: New file.
63568         * doc/glibc-headers/libintl.texi: New file.
63569         * doc/glibc-headers/mcheck.texi: New file.
63570         * doc/glibc-headers/mntent.texi: New file.
63571         * doc/glibc-headers/obstack.texi: New file.
63572         * doc/glibc-headers/paths.texi: New file.
63573         * doc/glibc-headers/printf.texi: New file.
63574         * doc/glibc-headers/pty.texi: New file.
63575         * doc/glibc-headers/resolv.texi: New file.
63576         * doc/glibc-headers/shadow.texi: New file.
63577         * doc/glibc-headers/sysexits.texi: New file.
63578         * doc/glibc-headers/ttyent.texi: New file.
63579
63580 2008-01-12  Jim Meyering  <meyering@redhat.com>
63581
63582         announce-gen: emit Gnulib's git-based version string.
63583         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63584         New option --gnulib-version=V, where V is expected to be
63585         the output of running git describe in the gnulib directory.
63586         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63587         not useful, and plan to stop publishing an xdelta file with each
63588         coreutils release.
63589
63590         * build-aux/announce-gen: Also check for lzma-compressed files.
63591
63592 2008-01-11  Bruno Haible  <bruno@clisp.org>
63593
63594         * tests/test-memmem.c (main): Increase maximum allowed time.
63595         * tests/test-strstr.c (main): Likewise.
63596
63597 2008-01-11  Bruno Haible  <bruno@clisp.org>
63598
63599         * doc/functions/memmem.texi: Add more precisions about platforms.
63600         * doc/functions/strstr.texi: Likewise.
63601
63602 2008-01-10  Eric Blake  <ebb9@byu.net>
63603
63604         * m4/strstr.m4: Delete cruft from copy-n-paste.
63605         Reported by Bruno Haible.
63606
63607 2008-01-10  Bruno Haible  <bruno@clisp.org>
63608
63609         Make c-strstr rely on strstr.
63610         * lib/c-strstr.c: Don't include str-kmp.h.
63611         (c_strstr): Define in terms of strstr.
63612         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63613         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63614
63615 2008-01-10  Bruno Haible  <bruno@clisp.org>
63616
63617         * doc/gnulib.texi (String Functions in C Locale): New section.
63618         * doc/c-ctype.texi: New file.
63619         * doc/c-strcase.texi: New file.
63620         * doc/c-strcaseeq.texi: New file.
63621         * doc/c-strcasestr.texi: New file.
63622         * doc/c-strstr.texi: New file.
63623         * doc/c-strtod.texi: New file.
63624         * doc/c-strtold.texi: New file.
63625
63626 2008-01-10  Eric Blake  <ebb9@byu.net>
63627
63628         * lib/relocatable.h: Fix a comment.
63629
63630 2008-01-10  Eric Blake  <ebb9@byu.net>
63631
63632         Share two-way algorithm.
63633         * lib/str-two-way.h: New file, merged from...
63634         * lib/memmem.c: ...here...
63635         * lib/strstr.c: ...and here.
63636         * modules/memmem (Files): Use it.
63637         * modules/strstr (Files): Likewise.
63638
63639         Avoid quadratic strstr implementations.
63640         * lib/strstr.c: New file.
63641         * m4/strstr.m4: Likewise.
63642         * modules/strstr: Likewise.
63643         * modules/strstr-tests: Likewise.
63644         * tests/test-strstr.c: Likewise.
63645         * lib/string.in.h (rpl_strstr): Declare.
63646         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63648         * modules/string (Makefile.am): Likewise.
63649         * MODULES.html.sh (string handling): Mention new module.
63650         * doc/functions/strstr.texi (strstr): Document the bug.
63651
63652 2008-01-10  Bruno Haible  <bruno@clisp.org>
63653
63654         * lib/relocatable.h (relocate): State whether result is freshly
63655         allocated or not.
63656         * lib/relocatable.c (relocate): Return a freshly allocated string
63657         instead of a pointer to a privately held string.
63658         Reported by Sylvain Beucler <beuc@gnu.org>.
63659
63660 2008-01-10  Colin Watson  <cjwatson@debian.org>
63661
63662         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63663         s/S_ISNLK/S_ISLNK/.
63664
63665 2008-01-09  Bruno Haible  <bruno@clisp.org>
63666
63667         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63668         and other files.
63669         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63670         if it's only a guess.
63671         * modules/memmem: Simplify by depending on memmem-simple.
63672
63673 2008-01-09  Bruno Haible  <bruno@clisp.org>
63674
63675         Work around OpenBSD 4.0 tdelete() bug.
63676         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63677         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63678         macros and don't redefine the enum values.
63679         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63680         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63681         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63682
63683 2008-01-09  Bruno Haible  <bruno@clisp.org>
63684
63685         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63686         (main): Don't perform the tests if setlocale did not install a UTF-8
63687         locale. Needed on OpenBSD 4.0.
63688         * modules/wcwidth-tests (Depends-on): Add localcharset.
63689
63690 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63691
63692         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63693         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63694         * NEWS: announce this.
63695         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63696
63697 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63698         and Eric Blake  <ebb9@byu.net>
63699
63700         Add memmem-simple module.
63701         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63702         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63703         * modules/memmem-simple: New file.
63704         * modules/memmem (Description): Tweak.
63705         * MODULES.html.sh (string handling): Mention new module.
63706         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63707         addressed by memmem-simple.
63708         * NEWS: Document the difference.
63709
63710 2008-01-09  Eric Blake  <ebb9@byu.net>
63711
63712         Give gcc some memmem optimization hints.
63713         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63714         (strcasestr): Declare as pure.
63715         * modules/memmem (Maintainer): Claim my implementation.
63716
63717 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63718
63719         Support AIX 6.1 and higher.
63720         * build-aux/config.libpath: Likewise.
63721         * build-aux/config.rpath: Likewise.
63722
63723 2008-01-08  Jim Meyering  <meyering@redhat.com>
63724             Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63727         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63728         Reported by Peter Fales in
63729         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63730
63731 2008-01-08  Bruno Haible  <bruno@clisp.org>
63732
63733         * modules/unictype/category-of (Depends-on): Add
63734         unictype/category-none.
63735         * modules/unictype/category-and-tests (Depends-on): Add
63736         unictype/category-{L,N,Lu,Nd}.
63737         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63738         * modules/unictype/category-or-tests (Depends-on): Add
63739         unictype/category-{L,N}.
63740         * modules/unictype/category-name-tests (Depends-on): Add
63741         unictype/category-{Z,Nl}.
63742         Reported by Simon Josefsson.
63743
63744 2008-01-08  Bruno Haible  <bruno@clisp.org>
63745
63746         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63747         convention better.
63748         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63749         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63750         Reported by Peter Miller <millerp@canb.auug.org.au>.
63751
63752 2008-01-08  Eric Blake  <ebb9@byu.net>
63753
63754         Rewrite memmem to guarantee linear complexity without malloc.
63755         * lib/memmem.c (memmem): Use Two-Way rather than
63756         Knuth-Morris-Pratt, to allow O(1) space usage.
63757         (critical_factorization, two_way_short_needle)
63758         (two_way_long_needle): New functions.
63759         (knuth_morris_pratt): Delete.
63760         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63761         Add stdint.
63762         * tests/test-memmem.c (main): Add tests for periodic needle and
63763         sublinear performance.
63764         * doc/functions/memmem.texi (memmem): Document other deficiencies
63765         in cygwin and older glibc.
63766
63767 2008-01-08  Bruno Haible  <bruno@clisp.org>
63768
63769         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63770         augmentation.
63771
63772 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63773
63774         Add a configure time option: --disable-acl.
63775         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63776         AC_ARG_ENABLE(acl).
63777
63778 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63779
63780         * tests/test-localename.c: Don't include obsolete "setenv.h".
63781
63782         * modules/localename-tests (Depends-on): Need unsetenv.
63783
63784 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63785
63786         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63787
63788 2008-01-06  Colin Watson  <cjwatson@debian.org>
63789
63790         * users.txt: Add man-db.
63791
63792 2008-01-07  Bruno Haible  <bruno@clisp.org>
63793
63794         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63795         previous section name.
63796
63797 2008-01-07  Bruno Haible  <bruno@clisp.org>
63798
63799         * lib/progname.c (set_program_name): Don't strip off a leading
63800         "lt-" prefix outside a .libs directory.
63801         Suggested by Paul Eggert.
63802
63803 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63804             Bruno Haible  <bruno@clisp.org>
63805
63806         Improve memory cleanup in 'relocatable' module.
63807         * lib/relocatable.h (compute_curr_prefix): Change return type to
63808         'char *'.
63809         * lib/relocatable.c (compute_curr_prefix): Change return type to
63810         'char *'. Free curr_installdir after use.
63811         (relocate): Free curr_prefix_better after use.
63812         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63813
63814 2008-01-01  Bruno Haible  <bruno@clisp.org>
63815
63816         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63817         failure on older glibc systems.
63818         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63819
63820 2008-01-05  Eric Blake  <ebb9@byu.net>
63821
63822         Avoid quadratic system memmem.
63823         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63824         Reported by Ralf Wildenhues.
63825
63826         Fix memmem test for mingw.
63827         * modules/memmem-tests (configure.ac): Check for alarm.
63828         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63829         it.
63830         * doc/functions/memmem.texi: New file.
63831         * doc/gnulib.texi (Function Substitutes): Add memmem.
63832         Reported by Bruno Haible.
63833
63834 2008-01-04  Bruno Haible  <bruno@clisp.org>
63835
63836         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63837         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63838         gl_HEADER_STRING_H_DEFAULTS.
63839
63840 2008-01-04  Eric Blake  <ebb9@byu.net>
63841
63842         Shorten duration of memmem test.
63843         * tests/test-memmem.c (main): Use alarm to declare failure if test
63844         is taking too long.
63845         Reported by Ralf Wildenhues.
63846
63847 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63848
63849         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63850         string, needed by strerror.
63851
63852 2008-01-03  Colin Watson  <cjwatson@debian.org>
63853             Bruno Haible  <bruno@clisp.org>
63854
63855         * doc/gnulib-tool.texi (Localization): New section.
63856
63857 2008-01-02  Bruno Haible  <bruno@clisp.org>
63858
63859         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63860         variables to 'unsigned char *' type.
63861         Reported by Paul Eggert.
63862
63863 2008-01-02  Jim Meyering  <jim@meyering.net>
63864
63865         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63866
63867 2007-12-31  Jim Meyering  <jim@meyering.net>
63868
63869         Avoid use of private FTS type name.
63870         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63871
63872 2007-12-30  Karl Berry  <karl@gnu.org>
63873
63874         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63875         work around defect in Texinfo and/or the standalone Info browser.
63876
63877 2007-12-30  Bruno Haible  <bruno@clisp.org>
63878
63879         Unify 5 copies of the KMP code.
63880         * lib/str-kmp.h: New file.
63881         * lib/c-strcasestr.c: Include str-kmp.h.
63882         (knuth_morris_pratt): Remove function.
63883         (c_strcasestr): Update.
63884         * lib/c-strstr.c: Include str-kmp.h.
63885         (knuth_morris_pratt): Remove function.
63886         (c_strcasestr): Update.
63887         * lib/mbscasestr.c: Include str-kmp.h.
63888         (knuth_morris_pratt_unibyte): Remove function.
63889         * lib/mbsstr.c: Include str-kmp.h.
63890         (knuth_morris_pratt_unibyte): Remove function.
63891         * lib/strcasestr.c: Include str-kmp.h.
63892         (knuth_morris_pratt): Remove function.
63893         (strcasestr): Update.
63894         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63895         * modules/c-strstr (Files): Likewise.
63896         * modules/mbscasestr (Files): Likewise.
63897         * modules/mbsstr (Files): Likewise.
63898         * modules/strcasestr (Files): Likewise.
63899         Suggested by Paul Eggert.
63900
63901 2007-12-30  Bruno Haible  <bruno@clisp.org>
63902
63903         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63904         defined.
63905
63906 2007-12-30  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/xmalloca.h: Include xalloc.h.
63909         (xnmalloca): New macro.
63910
63911 2007-12-30  Bruno Haible  <bruno@clisp.org>
63912
63913         * lib/malloca.h (nmalloca): New macro.
63914         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63915         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63916         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63917         knuth_morris_pratt_multibyte): Likewise.
63918         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63919         knuth_morris_pratt_multibyte): Likewise.
63920         * lib/memmem.c (knuth_morris_pratt): Likewise.
63921         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63922
63923 2007-12-25  Bruno Haible  <bruno@clisp.org>
63924
63925         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63926         * lib/glob.c: Don't include openat.h.
63927         (link_exists2_p): Add back the code that deals with the
63928         !GLOB_ALTDIRFUNC case.
63929         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63930         let it do the filename concatenation.
63931         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63932         * modules/glob (Depends-on): Remove openat.
63933
63934 2007-12-31  Bruno Haible  <bruno@clisp.org>
63935
63936         * modules/dirfd (License): Change to LGPLv2+.
63937         Approved by Jim Meyering.
63938
63939 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63940
63941         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63942         when multiplying M by sizeof (size_t).
63943
63944 2007-12-10  Martin Lambers  <marlam@marlam.de>
63945
63946         Override getpagesize on mingw.
63947         * lib/getpagesize.c: New file.
63948         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63949         * modules/getpagesize (Files): Add lib/getpagesize.c.
63950         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63952         REPLACE_GETPAGESIZE.
63953         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63954
63955 2007-12-25  Bruno Haible  <bruno@clisp.org>
63956
63957         * modules/localcharset (Notice): New field.
63958         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63959         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63960
63961 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63962             Bruno Haible  <bruno@clisp.org>
63963
63964         Avoid using the syntax symbol() in formatted documentation.
63965         * MODULES.html.sh (func_module): When replacing symbol() with a
63966         hyperlink, remove the parentheses. Show an error if some remain.
63967         Recognize and render the '...' syntax.
63968         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63969         Rework. Add paragraph about GCC's inlining.
63970         * doc/alloca.texi: Likewise.
63971         * doc/error.texi: Remove parentheses from symbol reference.
63972         * doc/gnulib-intro.texi: Likewise.
63973         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63974         * modules/fnmatch (Description): Reword to say "the ... function".
63975         * modules/full-read (Description): Likewise.
63976         * modules/full-write (Description): Likewise.
63977         * modules/safe-read (Description): Likewise.
63978         * modules/safe-write (Description): Likewise.
63979         * modules/strchrnul (Description): Likewise.
63980         * modules/trim (Description): Likewise.
63981         * modules/error (Description): Remove parentheses from symbol
63982         references.
63983         * modules/verror (Description): Likewise.
63984         Reported by Karl Berry.
63985
63986 2007-12-25  Bruno Haible  <bruno@clisp.org>
63987
63988         Fixup after 2007-10-16 commit.
63989         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63990
63991 2007-12-24  Bruno Haible  <bruno@clisp.org>
63992
63993         Make --enable-relocatable work with DESTDIR.
63994         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63995         to compute installdir from destprog.
63996         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63997         also set the RELOC_DESTDIR variable.
63998         Reported by Левашев Иван <octagram@bluebottle.com>.
63999
64000 2007-12-24  Bruno Haible  <bruno@clisp.org>
64001
64002         Fix link error due to xalloc_die().
64003         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
64004         of xreadlink.
64005         * lib/relocwrapper.c: Update comments.
64006         * build-aux/install-reloc: Remove xreadlink.c from file list.
64007         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
64008         xreadlink.c.
64009         Reported by Левашев Иван <octagram@bluebottle.com>.
64010
64011 2007-12-24  Bruno Haible  <bruno@clisp.org>
64012
64013         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
64014         * lib/setenv.h: Remove file.
64015         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
64016         lib/setenv.h.
64017         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
64018         (Depends-on): Add stdlib.
64019         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
64020         gl_FUNC_UNSETENV.
64021         (Include): Replace setenv.h with <stdlib.h>.
64022         * modules/unsetenv: New file.
64023         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
64024         * lib/unsetenv.c: Include <stdlib.h> first.
64025         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
64026         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
64027         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
64028         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
64029         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
64030         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
64032         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64033         * doc/functions/unsetenv.texi: Update.
64034         * modules/xsetenv (Depends-on): Add unsetenv.
64035         * modules/getdate (Depends-on): Likewise.
64036         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
64037         * lib/xsetenv.c: Don't include setenv.h.
64038         * lib/getdate.y: Likewise.
64039         * lib/relocwrapper.c: Likewise.
64040         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
64041         (Depends-on): Add stdlib.
64042         * NEWS: Mention the changes.
64043         Reported by Левашев Иван <octagram@bluebottle.com>.
64044
64045 2007-12-23  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/memmem.c (memmem): Use lowercase variable names. Tab
64048         indentation.
64049
64050 2007-12-23  Bruno Haible  <bruno@clisp.org>
64051
64052         * lib/c-strcasestr.c: Add more comments.
64053         * lib/c-strstr.c: Likewise.
64054         * lib/mbscasestr.c: Likewise.
64055         * lib/mbsstr.c: Likewise.
64056         * lib/strcasestr.c: Likewise.
64057         * lib/memmem.c: Likewise.
64058
64059 2007-12-23  Bruno Haible  <bruno@clisp.org>
64060
64061         * tests/test-memmem.c: Include <string.h> first.
64062
64063 2007-12-22  Bruno Haible  <bruno@clisp.org>
64064
64065         * gnulib-tool (func_create_testdir): Change $auxdir while generating
64066         the contents of $testsbase.
64067         Reported by Ralf Wildenhues.
64068
64069 2007-12-22  Bruno Haible  <bruno@clisp.org>
64070
64071         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
64072         two variables local_ldadd_before, local_ldadd_last.
64073
64074 2007-12-20  Eric Blake  <ebb9@byu.net>
64075
64076         Work around circular library issue when cross-compiling.
64077         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64078         that progname.o does not need to pull in rpl_memcmp.
64079
64080 2007-12-19  Eric Blake  <ebb9@byu.net>
64081
64082         Fix memmem to avoid O(n^2) worst-case complexity.
64083         * lib/memmem.c (knuth_morris_pratt): New function.
64084         (memmem): Use it if first few naive iterations fail.
64085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64086         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64087         * modules/memchr (License): Likewise.
64088         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64089         malloca.
64090         * tests/test-memmem.c: Rewrite, borrowing ideas from
64091         test-mbsstr1.c; the old version wouldn't even compile!
64092         * modules/memmem-tests: New file.
64093         * lib/string.in.h (rpl_memmem): Add declaration.
64094         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64096         REPLACE_MEMMEM.
64097
64098 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64099
64100         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64101         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64102         before any system include files, and undef after them all.  This
64103         should fix a problem on VMS reported by John E. Malmberg in
64104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64105
64106 2007-12-17  Eric Blake  <ebb9@byu.net>
64107
64108         Revert addition of verify, for BSD/OS.
64109         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64110         can't handle large files, for the sake of obsolete platforms.
64111         * modules/fseeko (Depends-on): Remove verify.
64112         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64113         * doc/functions/ftello.texi (ftello): Likewise.
64114         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64115         Reported by Larry Jones.
64116
64117 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64118
64119         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64120         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64121
64122 2007-12-17  Jim Meyering  <meyering@redhat.com>
64123
64124         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64125         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64126         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64127         * modules/getcwd (Depends-on): Add openat.
64128         Reported by Petr Salinger.
64129
64130 2007-12-17  Bruno Haible  <bruno@clisp.org>
64131
64132         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64133         avoid a segmentation fault of the configure test on x86_64 systems.
64134
64135 2007-12-15  Jim Meyering  <meyering@redhat.com>
64136
64137         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64138
64139 2007-12-13  Eric Blake  <ebb9@byu.net>
64140
64141         Another fseek test.
64142         * tests/test-fseek.c (main): Also test ungetc handling.
64143         * tests/test-fseeko.c (main): Likewise.
64144         * modules/fseeko (Depends-on): Add verify.
64145         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64146         large.
64147         Reported by Larry Jones.
64148
64149         Fix fseeko on mingw.
64150         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64151         seek.
64152
64153         Beef up fseek tests.
64154         * tests/test-fseek.c (main): Also test eof handling.
64155         * tests/test-fseeko.c (main): Likewise.
64156         Reported by Larry Jones.
64157
64158 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64159
64160         Fix fseeko on BSD-based platforms.
64161         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64162         successful seek.
64163
64164 2007-12-12  Eric Blake  <ebb9@byu.net>
64165
64166         Allow circular dependency of separate libtests.a
64167         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64168         when use_libtests.
64169
64170 2007-12-11  Eric Blake  <ebb9@byu.net>
64171
64172         Fix bug with -0.0L in previous patch.
64173         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64174         * tests/test-isnan.c (main): Also test on zeroes.
64175         * tests/test-isnanf.c (main): Likewise.
64176         * tests/test-isnanl.h (main): Likewise.
64177
64178         Detect pseudo-denormals on x86 even when cross-compiling.
64179         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64180         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64181         invalid bit patterns that happen to satisfy ==.
64182
64183         Avoid link failures with separate libtests.a.
64184         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64185         last, to satisfy circular dependencies.
64186
64187 2007-12-11  Eric Blake  <ebb9@byu.net>
64188         and Bruno Haible  <bruno@clisp.org>
64189
64190         Fix OpenBSD 4.0 <float.h> handling of long double.
64191         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64192         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64193         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64194
64195 2007-12-11  Jim Meyering  <meyering@redhat.com>
64196
64197         * users.txt: Add libvirt.
64198
64199         Support versions of autoconf prior to 2.59c.
64200         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64201         if it is not already defined.
64202
64203 2007-12-09  Bruno Haible  <bruno@clisp.org>
64204
64205         Let 'gnulib-tool --import' collect sources needed for the tests in
64206         tests/ rather than in lib/.
64207         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64208         argument. If true, add rules to generate libtests.a, and put libtests.a
64209         into $(LDADD). Consider source files in subdirectories and set
64210         uses_subdirs.
64211         (func_emit_initmacro_start, func_emit_initmacro_end,
64212         func_emit_initmacro_done): Pass all arguments explicitly.
64213         (func_import): Determine two module lists main_modules,
64214         testsrelated_modules. Determine use_libtests. Determine two variables
64215         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64216         instead of just sed_transform_lib_file. Determine two variables
64217         main_files and testsrelated_files. Compute 'files' as the union of
64218         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64219         func_add_or_update. In the generated gnulib-comp.m4, collect the
64220         object files for tests/ in different variables than those for lib/.
64221         Substitute LIBTESTS_LIBDEPS.
64222         (func_create_testdir): Combine the uses_subdirs results from
64223         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64224
64225 2007-12-09  Bruno Haible  <bruno@clisp.org>
64226
64227         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64228         the build-aux directory.
64229
64230 2007-12-09  Bruno Haible  <bruno@clisp.org>
64231
64232         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64233         introduced on 2006-09-09.
64234
64235 2007-12-07  Jim Meyering  <meyering@redhat.com>
64236
64237         Let these macros work also with autoconf-2.59.
64238         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64239         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64240         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64241
64242 2007-12-06  Jim Meyering  <meyering@redhat.com>
64243
64244         Avoid a configure-time syntax error in gl_FUNC_ACL.
64245         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64246         function in each branch, before testing the cache variable.
64247
64248 2007-12-04  Eric Blake  <ebb9@byu.net>
64249
64250         Make scripts executable.
64251         * build-aux/config.guess: Add execute permissions.
64252         * build-aux/config.sub: Likewise.
64253         * build-aux/gendocs.sh: Likewise.
64254
64255         Fix frexp on mingw.
64256         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64257         cross-compiling.
64258         * doc/functions/frexp.texi (frexp): Document the bug.
64259
64260         Make cygwin fseeko check more reliable.
64261         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64262         version numbers, rather than unrelated feature check.
64263         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64264         * doc/functions/ftello.texi (ftello): Likewise.
64265         Reported by Bruno Haible.
64266
64267         * m4/strerror.m4: Bump version number.
64268
64269 2007-12-03  Bruno Haible  <bruno@clisp.org>
64270
64271         * doc/functions/mprotect.texi: Mention the mingw problem.
64272
64273 2007-12-03  Eric Blake  <ebb9@byu.net>
64274
64275         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64276         REPLACE_STRERROR is initialized before this macro.
64277
64278 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64279
64280         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64281         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64282         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64283         put -lsec in even for programs other than 'ls'.  This fixes a problem
64284         for gettext reported by Bruno Haible in
64285         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64286         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64287         Add support for Solaris 10.  This isn't efficient, but should get the
64288         job done for now.
64289
64290 2007-12-03  James Youngman  <jay@gnu.org>
64291
64292         * doc/regexprops-generic.texi: change "an close-group" to "a
64293         close-group" and "illegal" to "not allowed".
64294
64295 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64296
64297         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64298         pr_byname.h. Needed for the rare case when the maintainer has done
64299         "make maintainer-clean" in the source directory and then attempts a
64300         build outside the source directory.
64301         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64302         scripts_byname.h.
64303
64304 2007-12-02  Martin Lambers <marlam@marlam.de>
64305             Bruno Haible  <bruno@clisp.org>
64306
64307         * lib/getpagesize.h: Remove file.
64308         * lib/unistd.in.h: Include declaration of getpagesize here.
64309         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64310         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64311         HAVE_SYS_PARAM_H.
64312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64313         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64314         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64315         (Depends-on): Add unistd.
64316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64317         (Include): Use <unistd.h> instead of getpagesize.h.
64318         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64319         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64320         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64321         gl_GETPAGESIZE invocation, already handled by module dependency.
64322         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64323
64324 2007-12-02  Bruno Haible  <bruno@clisp.org>
64325
64326         * modules/strings-tests: New file.
64327         * tests/test-strings.c: New file.
64328
64329         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64330         * lib/strings.in.h: New file.
64331         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64332         * m4/strings_h.m4: New file.
64333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64334         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64335         * modules/strings: New file.
64336         * modules/string (Makefile.am): Update.
64337         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64338         Reported by Karl Berry.
64339
64340 2007-12-01  Eric Blake  <ebb9@byu.net>
64341
64342         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64343         accommodate fix in cygwin 1.5.25.
64344
64345 2007-12-01  Jim Meyering  <meyering@redhat.com>
64346
64347         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64348         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64349         that would inhibit utf8-optimization of a regexp containing line-
64350         or buffer-anchors, e.g., `^', `$'.
64351
64352 2007-11-30  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64355         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64356         glthread_recursive_lock_init.
64357         * lib/lock.c (glthread_recursive_lock_init)
64358         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64359         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64360
64361 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64362
64363         New function qset_acl, like set_acl but with syscall semantics.
64364         * lib/acl.h (qset_acl): New decl.
64365         * lib/acl.c (qset_acl): New function.
64366         (set_acl): Use new function.  Use more-consistent diagnostics.
64367
64368 2007-11-28  Jim Meyering  <meyering@redhat.com>
64369
64370         * modules/physmem (License): Change from GPL to LGPLv2+.
64371
64372 2007-11-26  Bruno Haible  <bruno@clisp.org>
64373
64374         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64375         'long double' type has excess precision.
64376         Reported by Jim Meyering in
64377         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64378
64379 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64380
64381         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64382         Sync from <http://gnu.org/licenses>.
64383         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64384         with license text from same location.
64385         * doc/maintain.texi, doc/standards.texi:  Sync from
64386         <http://savannah.gnu.org/projects/gnustandards>.
64387
64388 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64389         and Jim Meyering  <meyering@redhat.com>
64390
64391         Adjust getdate' grammar to accept a slightly more regular language.
64392         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64393         Before, the former was rejected.
64394         * lib/getdate.y (digits_to_date_time): New function, factored
64395         out of ...
64396         (number): ...here.  Just call digits_to_date_time.
64397         (hybrid): New non-terminal to handle an <unsigned number,
64398         signed relative offset> sequence consistently.
64399
64400 2007-11-18  Jim Meyering  <meyering@redhat.com>
64401
64402         Pull my changes from coreutils:
64403         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64404         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64405         use of $gnulib_tool_option_extras, so that it's separated from the
64406         preceding argument.
64407
64408         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64409         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64410         parent destination directories before copying a file into place.
64411
64412 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64413
64414         bootstrap: work also with 4-argument variant of AC_INIT
64415         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64416
64417 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         Port test-getaddrinfo to Solaris.
64420         Problem reported by Bruno Haible in
64421         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64422         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64423         explanation of setting 'hints'.
64424         Don't reject an implementation merely because it returns EAI_SERVICE.
64425         (EAI_SERVICE): Define to 0 if not defined.
64426
64427 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64428
64429         The license of gnu-make and posix-shell is now "GPLed build tool".
64430         * modules/gnu-make (License): Likewise.
64431         * modules/posix-shell (License): Likewise.
64432
64433         New module posix-shell, for determining a POSIX shell
64434         or perhaps something that is close enough to a POSIX shell.
64435         * m4/posix-shell.m4: New file.
64436         * modules/posix-shell: New file.
64437
64438         * MODULES.html.sh: Mention new module.
64439
64440         New module gnu-make, for determining whether we're using GNU Make.
64441         * m4/gnu-make.m4: New file.
64442         * modules/gnu-make: New file.
64443         * MODULES.html.sh: Mention new module.
64444
64445 2007-11-14  Jim Meyering  <meyering@redhat.com>
64446
64447         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64448         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64449         use this macro to create a function _definition_.
64450         Remove useless "#undef ARGMATCH_DIE".
64451
64452 2007-11-14  Bruno Haible  <bruno@clisp.org>
64453
64454         * lib/config.charset: Update for OpenBSD 4.1.
64455         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64456
64457 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64458
64459         Document 64-bit #if problems in stdint.texi.
64460         * doc/headers/stdint.texi (stdint.h): Mention problems with
64461         64-bit-#if, and how to work around them.
64462
64463         Don't insist on 'long long int' support in the preprocessor.  It
64464         breaks too many things.  For example, PRIdMAX still uses a 'long
64465         long int' format with the latest Sun compiler, even though
64466         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64467         preprocessor problem.  This causes the latest coreutils to dump
64468         core on Solaris 10 sparc with the Sun C compiler.
64469         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64470         the troublesome expressions at configure-time, not at #if-time.
64471         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64472         preprocessor.
64473         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64474         compile-time C checks, done at 'configure'-time.
64475         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64476         * modules/inttypes (Makefile): Substitute the new symbols that
64477         gl_INTTYPES_H now generates.
64478         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64479
64480 2007-11-12  Bruno Haible  <bruno@clisp.org>
64481
64482         Tests for Unicode character classification functions.
64483
64484         * modules/unictype/bidicategory-byname-tests: New file.
64485         * modules/unictype/bidicategory-name-tests: New file.
64486         * modules/unictype/bidicategory-of-tests: New file.
64487         * modules/unictype/bidicategory-test-tests: New file.
64488         * modules/unictype/block-list-tests: New file.
64489         * modules/unictype/block-of-tests: New file.
64490         * modules/unictype/block-test-tests: New file.
64491         * modules/unictype/category-C-tests: New file.
64492         * modules/unictype/category-Cc-tests: New file.
64493         * modules/unictype/category-Cf-tests: New file.
64494         * modules/unictype/category-Cn-tests: New file.
64495         * modules/unictype/category-Co-tests: New file.
64496         * modules/unictype/category-Cs-tests: New file.
64497         * modules/unictype/category-L-tests: New file.
64498         * modules/unictype/category-Ll-tests: New file.
64499         * modules/unictype/category-Lm-tests: New file.
64500         * modules/unictype/category-Lo-tests: New file.
64501         * modules/unictype/category-Lt-tests: New file.
64502         * modules/unictype/category-Lu-tests: New file.
64503         * modules/unictype/category-M-tests: New file.
64504         * modules/unictype/category-Mc-tests: New file.
64505         * modules/unictype/category-Me-tests: New file.
64506         * modules/unictype/category-Mn-tests: New file.
64507         * modules/unictype/category-N-tests: New file.
64508         * modules/unictype/category-Nd-tests: New file.
64509         * modules/unictype/category-Nl-tests: New file.
64510         * modules/unictype/category-No-tests: New file.
64511         * modules/unictype/category-P-tests: New file.
64512         * modules/unictype/category-Pc-tests: New file.
64513         * modules/unictype/category-Pd-tests: New file.
64514         * modules/unictype/category-Pe-tests: New file.
64515         * modules/unictype/category-Pf-tests: New file.
64516         * modules/unictype/category-Pi-tests: New file.
64517         * modules/unictype/category-Po-tests: New file.
64518         * modules/unictype/category-Ps-tests: New file.
64519         * modules/unictype/category-S-tests: New file.
64520         * modules/unictype/category-Sc-tests: New file.
64521         * modules/unictype/category-Sk-tests: New file.
64522         * modules/unictype/category-Sm-tests: New file.
64523         * modules/unictype/category-So-tests: New file.
64524         * modules/unictype/category-Z-tests: New file.
64525         * modules/unictype/category-Zl-tests: New file.
64526         * modules/unictype/category-Zp-tests: New file.
64527         * modules/unictype/category-Zs-tests: New file.
64528         * modules/unictype/category-and-not-tests: New file.
64529         * modules/unictype/category-and-tests: New file.
64530         * modules/unictype/category-byname-tests: New file.
64531         * modules/unictype/category-name-tests: New file.
64532         * modules/unictype/category-none-tests: New file.
64533         * modules/unictype/category-of-tests: New file.
64534         * modules/unictype/category-or-tests: New file.
64535         * modules/unictype/category-test-withtable-tests: New file.
64536         * modules/unictype/combining-class-tests: New file.
64537         * modules/unictype/ctype-alnum-tests: New file.
64538         * modules/unictype/ctype-alpha-tests: New file.
64539         * modules/unictype/ctype-blank-tests: New file.
64540         * modules/unictype/ctype-cntrl-tests: New file.
64541         * modules/unictype/ctype-digit-tests: New file.
64542         * modules/unictype/ctype-graph-tests: New file.
64543         * modules/unictype/ctype-lower-tests: New file.
64544         * modules/unictype/ctype-print-tests: New file.
64545         * modules/unictype/ctype-punct-tests: New file.
64546         * modules/unictype/ctype-space-tests: New file.
64547         * modules/unictype/ctype-upper-tests: New file.
64548         * modules/unictype/ctype-xdigit-tests: New file.
64549         * modules/unictype/decimal-digit-tests: New file.
64550         * modules/unictype/digit-tests: New file.
64551         * modules/unictype/mirror-tests: New file.
64552         * modules/unictype/numeric-tests: New file.
64553         * modules/unictype/property-alphabetic-tests: New file.
64554         * modules/unictype/property-ascii-hex-digit-tests: New file.
64555         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64556         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64557         * modules/unictype/property-bidi-block-separator-tests: New file.
64558         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64559         * modules/unictype/property-bidi-common-separator-tests: New file.
64560         * modules/unictype/property-bidi-control-tests: New file.
64561         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64562         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64563         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64564         * modules/unictype/property-bidi-european-digit-tests: New file.
64565         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64566         * modules/unictype/property-bidi-left-to-right-tests: New file.
64567         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64568         * modules/unictype/property-bidi-other-neutral-tests: New file.
64569         * modules/unictype/property-bidi-pdf-tests: New file.
64570         * modules/unictype/property-bidi-segment-separator-tests: New file.
64571         * modules/unictype/property-bidi-whitespace-tests: New file.
64572         * modules/unictype/property-byname-tests: New file.
64573         * modules/unictype/property-combining-tests: New file.
64574         * modules/unictype/property-composite-tests: New file.
64575         * modules/unictype/property-currency-symbol-tests: New file.
64576         * modules/unictype/property-dash-tests: New file.
64577         * modules/unictype/property-decimal-digit-tests: New file.
64578         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64579         * modules/unictype/property-deprecated-tests: New file.
64580         * modules/unictype/property-diacritic-tests: New file.
64581         * modules/unictype/property-extender-tests: New file.
64582         * modules/unictype/property-format-control-tests: New file.
64583         * modules/unictype/property-grapheme-base-tests: New file.
64584         * modules/unictype/property-grapheme-extend-tests: New file.
64585         * modules/unictype/property-grapheme-link-tests: New file.
64586         * modules/unictype/property-hex-digit-tests: New file.
64587         * modules/unictype/property-hyphen-tests: New file.
64588         * modules/unictype/property-id-continue-tests: New file.
64589         * modules/unictype/property-id-start-tests: New file.
64590         * modules/unictype/property-ideographic-tests: New file.
64591         * modules/unictype/property-ids-binary-operator-tests: New file.
64592         * modules/unictype/property-ids-trinary-operator-tests: New file.
64593         * modules/unictype/property-ignorable-control-tests: New file.
64594         * modules/unictype/property-iso-control-tests: New file.
64595         * modules/unictype/property-join-control-tests: New file.
64596         * modules/unictype/property-left-of-pair-tests: New file.
64597         * modules/unictype/property-line-separator-tests: New file.
64598         * modules/unictype/property-logical-order-exception-tests: New file.
64599         * modules/unictype/property-lowercase-tests: New file.
64600         * modules/unictype/property-math-tests: New file.
64601         * modules/unictype/property-non-break-tests: New file.
64602         * modules/unictype/property-not-a-character-tests: New file.
64603         * modules/unictype/property-numeric-tests: New file.
64604         * modules/unictype/property-other-alphabetic-tests: New file.
64605         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64606         * modules/unictype/property-other-grapheme-extend-tests: New file.
64607         * modules/unictype/property-other-id-continue-tests: New file.
64608         * modules/unictype/property-other-id-start-tests: New file.
64609         * modules/unictype/property-other-lowercase-tests: New file.
64610         * modules/unictype/property-other-math-tests: New file.
64611         * modules/unictype/property-other-uppercase-tests: New file.
64612         * modules/unictype/property-paired-punctuation-tests: New file.
64613         * modules/unictype/property-paragraph-separator-tests: New file.
64614         * modules/unictype/property-pattern-syntax-tests: New file.
64615         * modules/unictype/property-pattern-white-space-tests: New file.
64616         * modules/unictype/property-private-use-tests: New file.
64617         * modules/unictype/property-punctuation-tests: New file.
64618         * modules/unictype/property-quotation-mark-tests: New file.
64619         * modules/unictype/property-radical-tests: New file.
64620         * modules/unictype/property-sentence-terminal-tests: New file.
64621         * modules/unictype/property-soft-dotted-tests: New file.
64622         * modules/unictype/property-space-tests: New file.
64623         * modules/unictype/property-terminal-punctuation-tests: New file.
64624         * modules/unictype/property-test-tests: New file.
64625         * modules/unictype/property-titlecase-tests: New file.
64626         * modules/unictype/property-unassigned-code-value-tests: New file.
64627         * modules/unictype/property-unified-ideograph-tests: New file.
64628         * modules/unictype/property-uppercase-tests: New file.
64629         * modules/unictype/property-variation-selector-tests: New file.
64630         * modules/unictype/property-white-space-tests: New file.
64631         * modules/unictype/property-xid-continue-tests: New file.
64632         * modules/unictype/property-xid-start-tests: New file.
64633         * modules/unictype/property-zero-width-tests: New file.
64634         * modules/unictype/scripts-tests: New file.
64635         * modules/unictype/syntax-c-ident-tests: New file.
64636         * modules/unictype/syntax-c-whitespace-tests: New file.
64637         * modules/unictype/syntax-java-ident-tests: New file.
64638         * modules/unictype/syntax-java-whitespace-tests: New file.
64639         * tests/unictype/test-bidi_byname.c: New file.
64640         * tests/unictype/test-bidi_name.c: New file.
64641         * tests/unictype/test-bidi_of.c: New file.
64642         * tests/unictype/test-bidi_test.c: New file.
64643         * tests/unictype/test-block_list.c: New file.
64644         * tests/unictype/test-block_of.c: New file.
64645         * tests/unictype/test-block_test.c: New file.
64646         * tests/unictype/test-categ_and.c: New file.
64647         * tests/unictype/test-categ_and_not.c: New file.
64648         * tests/unictype/test-categ_byname.c: New file.
64649         * tests/unictype/test-categ_name.c: New file.
64650         * tests/unictype/test-categ_none.c: New file.
64651         * tests/unictype/test-categ_of.c: New file.
64652         * tests/unictype/test-categ_or.c: New file.
64653         * tests/unictype/test-categ_test_withtable.c: New file.
64654         * tests/unictype/test-combining.c: New file.
64655         * tests/unictype/test-decdigit.c: New file.
64656         * tests/unictype/test-digit.c: New file.
64657         * tests/unictype/test-mirror.c: New file.
64658         * tests/unictype/test-numeric.c: New file.
64659         * tests/unictype/test-pr_byname.c: New file.
64660         * tests/unictype/test-pr_test.c: New file.
64661         * tests/unictype/test-predicate-part1.h: New file.
64662         * tests/unictype/test-predicate-part2.h: New file.
64663         * tests/unictype/test-scripts.c: New file.
64664         * tests/unictype/test-sy_c_ident.c: New file.
64665         * tests/unictype/test-sy_java_ident.c: New file.
64666
64667         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64668         for Unicode 5.0.0.
64669         * tests/unictype/test-categ_Cc.c: Likewise.
64670         * tests/unictype/test-categ_Cf.c: Likewise.
64671         * tests/unictype/test-categ_Cn.c: Likewise.
64672         * tests/unictype/test-categ_Co.c: Likewise.
64673         * tests/unictype/test-categ_Cs.c: Likewise.
64674         * tests/unictype/test-categ_L.c: Likewise.
64675         * tests/unictype/test-categ_Ll.c: Likewise.
64676         * tests/unictype/test-categ_Lm.c: Likewise.
64677         * tests/unictype/test-categ_Lo.c: Likewise.
64678         * tests/unictype/test-categ_Lt.c: Likewise.
64679         * tests/unictype/test-categ_Lu.c: Likewise.
64680         * tests/unictype/test-categ_M.c: Likewise.
64681         * tests/unictype/test-categ_Mc.c: Likewise.
64682         * tests/unictype/test-categ_Me.c: Likewise.
64683         * tests/unictype/test-categ_Mn.c: Likewise.
64684         * tests/unictype/test-categ_N.c: Likewise.
64685         * tests/unictype/test-categ_Nd.c: Likewise.
64686         * tests/unictype/test-categ_Nl.c: Likewise.
64687         * tests/unictype/test-categ_No.c: Likewise.
64688         * tests/unictype/test-categ_P.c: Likewise.
64689         * tests/unictype/test-categ_Pc.c: Likewise.
64690         * tests/unictype/test-categ_Pd.c: Likewise.
64691         * tests/unictype/test-categ_Pe.c: Likewise.
64692         * tests/unictype/test-categ_Pf.c: Likewise.
64693         * tests/unictype/test-categ_Pi.c: Likewise.
64694         * tests/unictype/test-categ_Po.c: Likewise.
64695         * tests/unictype/test-categ_Ps.c: Likewise.
64696         * tests/unictype/test-categ_S.c: Likewise.
64697         * tests/unictype/test-categ_Sc.c: Likewise.
64698         * tests/unictype/test-categ_Sk.c: Likewise.
64699         * tests/unictype/test-categ_Sm.c: Likewise.
64700         * tests/unictype/test-categ_So.c: Likewise.
64701         * tests/unictype/test-categ_Z.c: Likewise.
64702         * tests/unictype/test-categ_Zl.c: Likewise.
64703         * tests/unictype/test-categ_Zp.c: Likewise.
64704         * tests/unictype/test-categ_Zs.c: Likewise.
64705         * tests/unictype/test-ctype_alnum.c: Likewise.
64706         * tests/unictype/test-ctype_alpha.c: Likewise.
64707         * tests/unictype/test-ctype_blank.c: Likewise.
64708         * tests/unictype/test-ctype_cntrl.c: Likewise.
64709         * tests/unictype/test-ctype_digit.c: Likewise.
64710         * tests/unictype/test-ctype_graph.c: Likewise.
64711         * tests/unictype/test-ctype_lower.c: Likewise.
64712         * tests/unictype/test-ctype_print.c: Likewise.
64713         * tests/unictype/test-ctype_punct.c: Likewise.
64714         * tests/unictype/test-ctype_space.c: Likewise.
64715         * tests/unictype/test-ctype_upper.c: Likewise.
64716         * tests/unictype/test-ctype_xdigit.c: Likewise.
64717         * tests/unictype/test-decdigit.h: Likewise.
64718         * tests/unictype/test-digit.h: Likewise.
64719         * tests/unictype/test-numeric.h: Likewise.
64720         * tests/unictype/test-pr_alphabetic.c: Likewise.
64721         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64722         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64723         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64724         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64725         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64726         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64727         * tests/unictype/test-pr_bidi_control.c: Likewise.
64728         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64729         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64730         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64731         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64732         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64733         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64734         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64735         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64736         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64737         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64738         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64739         * tests/unictype/test-pr_combining.c: Likewise.
64740         * tests/unictype/test-pr_composite.c: Likewise.
64741         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64742         * tests/unictype/test-pr_dash.c: Likewise.
64743         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64744         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64745         * tests/unictype/test-pr_deprecated.c: Likewise.
64746         * tests/unictype/test-pr_diacritic.c: Likewise.
64747         * tests/unictype/test-pr_extender.c: Likewise.
64748         * tests/unictype/test-pr_format_control.c: Likewise.
64749         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64750         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64751         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64752         * tests/unictype/test-pr_hex_digit.c: Likewise.
64753         * tests/unictype/test-pr_hyphen.c: Likewise.
64754         * tests/unictype/test-pr_id_continue.c: Likewise.
64755         * tests/unictype/test-pr_id_start.c: Likewise.
64756         * tests/unictype/test-pr_ideographic.c: Likewise.
64757         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64758         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64759         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64760         * tests/unictype/test-pr_iso_control.c: Likewise.
64761         * tests/unictype/test-pr_join_control.c: Likewise.
64762         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64763         * tests/unictype/test-pr_line_separator.c: Likewise.
64764         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64765         * tests/unictype/test-pr_lowercase.c: Likewise.
64766         * tests/unictype/test-pr_math.c: Likewise.
64767         * tests/unictype/test-pr_non_break.c: Likewise.
64768         * tests/unictype/test-pr_not_a_character.c: Likewise.
64769         * tests/unictype/test-pr_numeric.c: Likewise.
64770         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64771         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64772         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64773         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64774         * tests/unictype/test-pr_other_id_start.c: Likewise.
64775         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64776         * tests/unictype/test-pr_other_math.c: Likewise.
64777         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64778         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64779         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64780         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64781         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64782         * tests/unictype/test-pr_private_use.c: Likewise.
64783         * tests/unictype/test-pr_punctuation.c: Likewise.
64784         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64785         * tests/unictype/test-pr_radical.c: Likewise.
64786         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64787         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64788         * tests/unictype/test-pr_space.c: Likewise.
64789         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64790         * tests/unictype/test-pr_titlecase.c: Likewise.
64791         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64792         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64793         * tests/unictype/test-pr_uppercase.c: Likewise.
64794         * tests/unictype/test-pr_variation_selector.c: Likewise.
64795         * tests/unictype/test-pr_white_space.c: Likewise.
64796         * tests/unictype/test-pr_xid_continue.c: Likewise.
64797         * tests/unictype/test-pr_xid_start.c: Likewise.
64798         * tests/unictype/test-pr_zero_width.c: Likewise.
64799         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64800         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64801
64802 2007-11-12  Bruno Haible  <bruno@clisp.org>
64803
64804         Unicode character classification functions.
64805         * lib/unictype.h: New file.
64806         * modules/unictype/base: New file.
64807         * modules/unictype/category-L: New file.
64808         * modules/unictype/category-Lu: New file.
64809         * modules/unictype/category-Ll: New file.
64810         * modules/unictype/category-Lt: New file.
64811         * modules/unictype/category-Lm: New file.
64812         * modules/unictype/category-Lo: New file.
64813         * modules/unictype/category-M: New file.
64814         * modules/unictype/category-Mn: New file.
64815         * modules/unictype/category-Mc: New file.
64816         * modules/unictype/category-Me: New file.
64817         * modules/unictype/category-N: New file.
64818         * modules/unictype/category-Nd: New file.
64819         * modules/unictype/category-Nl: New file.
64820         * modules/unictype/category-No: New file.
64821         * modules/unictype/category-P: New file.
64822         * modules/unictype/category-Pc: New file.
64823         * modules/unictype/category-Pd: New file.
64824         * modules/unictype/category-Ps: New file.
64825         * modules/unictype/category-Pe: New file.
64826         * modules/unictype/category-Pi: New file.
64827         * modules/unictype/category-Pf: New file.
64828         * modules/unictype/category-Po: New file.
64829         * modules/unictype/category-S: New file.
64830         * modules/unictype/category-Sm: New file.
64831         * modules/unictype/category-Sc: New file.
64832         * modules/unictype/category-Sk: New file.
64833         * modules/unictype/category-So: New file.
64834         * modules/unictype/category-Z: New file.
64835         * modules/unictype/category-Zs: New file.
64836         * modules/unictype/category-Zl: New file.
64837         * modules/unictype/category-Zp: New file.
64838         * modules/unictype/category-C: New file.
64839         * modules/unictype/category-Cc: New file.
64840         * modules/unictype/category-Cf: New file.
64841         * modules/unictype/category-Cs: New file.
64842         * modules/unictype/category-Co: New file.
64843         * modules/unictype/category-Cn: New file.
64844         * modules/unictype/category-or: New file.
64845         * modules/unictype/category-of: New file.
64846         * modules/unictype/category-test: New file.
64847         * modules/unictype/category-test-withtable: New file.
64848         * modules/unictype/category-byname: New file.
64849         * modules/unictype/category-none: New file.
64850         * modules/unictype/category-and: New file.
64851         * modules/unictype/category-and-not: New file.
64852         * modules/unictype/category-name: New file.
64853         * modules/unictype/combining-class: New file.
64854         * modules/unictype/category-all: New file.
64855         * modules/unictype/bidicategory-all: New file.
64856         * modules/unictype/bidicategory-byname: New file.
64857         * modules/unictype/bidicategory-name: New file.
64858         * modules/unictype/bidicategory-of: New file.
64859         * modules/unictype/bidicategory-test: New file.
64860         * modules/unictype/decimal-digit: New file.
64861         * modules/unictype/digit: New file.
64862         * modules/unictype/numeric: New file.
64863         * modules/unictype/mirror: New file.
64864         * modules/unictype/property-white-space: New file.
64865         * modules/unictype/property-alphabetic: New file.
64866         * modules/unictype/property-other-alphabetic: New file.
64867         * modules/unictype/property-not-a-character: New file.
64868         * modules/unictype/property-default-ignorable-code-point: New file.
64869         * modules/unictype/property-other-default-ignorable-code-point: New
64870         file.
64871         * modules/unictype/property-deprecated: New file.
64872         * modules/unictype/property-logical-order-exception: New file.
64873         * modules/unictype/property-variation-selector: New file.
64874         * modules/unictype/property-private-use: New file.
64875         * modules/unictype/property-unassigned-code-value: New file.
64876         * modules/unictype/property-uppercase: New file.
64877         * modules/unictype/property-other-uppercase: New file.
64878         * modules/unictype/property-lowercase: New file.
64879         * modules/unictype/property-other-lowercase: New file.
64880         * modules/unictype/property-titlecase: New file.
64881         * modules/unictype/property-soft-dotted: New file.
64882         * modules/unictype/property-id-start: New file.
64883         * modules/unictype/property-other-id-start: New file.
64884         * modules/unictype/property-id-continue: New file.
64885         * modules/unictype/property-other-id-continue: New file.
64886         * modules/unictype/property-xid-start: New file.
64887         * modules/unictype/property-xid-continue: New file.
64888         * modules/unictype/property-pattern-white-space: New file.
64889         * modules/unictype/property-pattern-syntax: New file.
64890         * modules/unictype/property-join-control: New file.
64891         * modules/unictype/property-grapheme-base: New file.
64892         * modules/unictype/property-grapheme-extend: New file.
64893         * modules/unictype/property-other-grapheme-extend: New file.
64894         * modules/unictype/property-grapheme-link: New file.
64895         * modules/unictype/property-bidi-control: New file.
64896         * modules/unictype/property-bidi-left-to-right: New file.
64897         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64898         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64899         * modules/unictype/property-bidi-european-digit: New file.
64900         * modules/unictype/property-bidi-eur-num-separator: New file.
64901         * modules/unictype/property-bidi-eur-num-terminator: New file.
64902         * modules/unictype/property-bidi-arabic-digit: New file.
64903         * modules/unictype/property-bidi-common-separator: New file.
64904         * modules/unictype/property-bidi-block-separator: New file.
64905         * modules/unictype/property-bidi-segment-separator: New file.
64906         * modules/unictype/property-bidi-whitespace: New file.
64907         * modules/unictype/property-bidi-non-spacing-mark: New file.
64908         * modules/unictype/property-bidi-boundary-neutral: New file.
64909         * modules/unictype/property-bidi-pdf: New file.
64910         * modules/unictype/property-bidi-embedding-or-override: New file.
64911         * modules/unictype/property-bidi-other-neutral: New file.
64912         * modules/unictype/property-hex-digit: New file.
64913         * modules/unictype/property-ascii-hex-digit: New file.
64914         * modules/unictype/property-ideographic: New file.
64915         * modules/unictype/property-unified-ideograph: New file.
64916         * modules/unictype/property-radical: New file.
64917         * modules/unictype/property-ids-binary-operator: New file.
64918         * modules/unictype/property-ids-trinary-operator: New file.
64919         * modules/unictype/property-zero-width: New file.
64920         * modules/unictype/property-space: New file.
64921         * modules/unictype/property-non-break: New file.
64922         * modules/unictype/property-iso-control: New file.
64923         * modules/unictype/property-format-control: New file.
64924         * modules/unictype/property-dash: New file.
64925         * modules/unictype/property-hyphen: New file.
64926         * modules/unictype/property-punctuation: New file.
64927         * modules/unictype/property-line-separator: New file.
64928         * modules/unictype/property-paragraph-separator: New file.
64929         * modules/unictype/property-quotation-mark: New file.
64930         * modules/unictype/property-sentence-terminal: New file.
64931         * modules/unictype/property-terminal-punctuation: New file.
64932         * modules/unictype/property-currency-symbol: New file.
64933         * modules/unictype/property-math: New file.
64934         * modules/unictype/property-other-math: New file.
64935         * modules/unictype/property-paired-punctuation: New file.
64936         * modules/unictype/property-left-of-pair: New file.
64937         * modules/unictype/property-combining: New file.
64938         * modules/unictype/property-composite: New file.
64939         * modules/unictype/property-decimal-digit: New file.
64940         * modules/unictype/property-numeric: New file.
64941         * modules/unictype/property-diacritic: New file.
64942         * modules/unictype/property-extender: New file.
64943         * modules/unictype/property-ignorable-control: New file.
64944         * modules/unictype/property-test: New file.
64945         * modules/unictype/property-byname: New file.
64946         * modules/unictype/property-all: New file.
64947         * modules/unictype/scripts: New file.
64948         * modules/unictype/scripts-all: New file.
64949         * modules/unictype/block-of: New file.
64950         * modules/unictype/block-test: New file.
64951         * modules/unictype/block-list: New file.
64952         * modules/unictype/block-all: New file.
64953         * modules/unictype/syntax-c-whitespace: New file.
64954         * modules/unictype/syntax-java-whitespace: New file.
64955         * modules/unictype/syntax-c-ident: New file.
64956         * modules/unictype/syntax-java-ident: New file.
64957         * modules/unictype/ctype-alnum: New file.
64958         * modules/unictype/ctype-alpha: New file.
64959         * modules/unictype/ctype-cntrl: New file.
64960         * modules/unictype/ctype-digit: New file.
64961         * modules/unictype/ctype-graph: New file.
64962         * modules/unictype/ctype-lower: New file.
64963         * modules/unictype/ctype-print: New file.
64964         * modules/unictype/ctype-punct: New file.
64965         * modules/unictype/ctype-space: New file.
64966         * modules/unictype/ctype-upper: New file.
64967         * modules/unictype/ctype-xdigit: New file.
64968         * modules/unictype/ctype-blank: New file.
64969         * lib/unictype/bidi_byname.c: New file.
64970         * lib/unictype/bidi_name.c: New file.
64971         * lib/unictype/bidi_of.c: New file.
64972         * lib/unictype/bidi_test.c: New file.
64973         * lib/unictype/bitmap.h: New file.
64974         * lib/unictype/block_test.c: New file.
64975         * lib/unictype/blocks.c: New file.
64976         * lib/unictype/categ_C.c: New file.
64977         * lib/unictype/categ_Cc.c: New file.
64978         * lib/unictype/categ_Cf.c: New file.
64979         * lib/unictype/categ_Cn.c: New file.
64980         * lib/unictype/categ_Co.c: New file.
64981         * lib/unictype/categ_Cs.c: New file.
64982         * lib/unictype/categ_L.c: New file.
64983         * lib/unictype/categ_Ll.c: New file.
64984         * lib/unictype/categ_Lm.c: New file.
64985         * lib/unictype/categ_Lo.c: New file.
64986         * lib/unictype/categ_Lt.c: New file.
64987         * lib/unictype/categ_Lu.c: New file.
64988         * lib/unictype/categ_M.c: New file.
64989         * lib/unictype/categ_Mc.c: New file.
64990         * lib/unictype/categ_Me.c: New file.
64991         * lib/unictype/categ_Mn.c: New file.
64992         * lib/unictype/categ_N.c: New file.
64993         * lib/unictype/categ_Nd.c: New file.
64994         * lib/unictype/categ_Nl.c: New file.
64995         * lib/unictype/categ_No.c: New file.
64996         * lib/unictype/categ_P.c: New file.
64997         * lib/unictype/categ_Pc.c: New file.
64998         * lib/unictype/categ_Pd.c: New file.
64999         * lib/unictype/categ_Pe.c: New file.
65000         * lib/unictype/categ_Pf.c: New file.
65001         * lib/unictype/categ_Pi.c: New file.
65002         * lib/unictype/categ_Po.c: New file.
65003         * lib/unictype/categ_Ps.c: New file.
65004         * lib/unictype/categ_S.c: New file.
65005         * lib/unictype/categ_Sc.c: New file.
65006         * lib/unictype/categ_Sk.c: New file.
65007         * lib/unictype/categ_Sm.c: New file.
65008         * lib/unictype/categ_So.c: New file.
65009         * lib/unictype/categ_Z.c: New file.
65010         * lib/unictype/categ_Zl.c: New file.
65011         * lib/unictype/categ_Zp.c: New file.
65012         * lib/unictype/categ_Zs.c: New file.
65013         * lib/unictype/categ_and.c: New file.
65014         * lib/unictype/categ_and_not.c: New file.
65015         * lib/unictype/categ_byname.c: New file.
65016         * lib/unictype/categ_name.c: New file.
65017         * lib/unictype/categ_none.c: New file.
65018         * lib/unictype/categ_of.c: New file.
65019         * lib/unictype/categ_or.c: New file.
65020         * lib/unictype/categ_test.c: New file.
65021         * lib/unictype/combining.c: New file.
65022         * lib/unictype/ctype_alnum.c: New file.
65023         * lib/unictype/ctype_alpha.c: New file.
65024         * lib/unictype/ctype_blank.c: New file.
65025         * lib/unictype/ctype_cntrl.c: New file.
65026         * lib/unictype/ctype_digit.c: New file.
65027         * lib/unictype/ctype_graph.c: New file.
65028         * lib/unictype/ctype_lower.c: New file.
65029         * lib/unictype/ctype_print.c: New file.
65030         * lib/unictype/ctype_punct.c: New file.
65031         * lib/unictype/ctype_space.c: New file.
65032         * lib/unictype/ctype_upper.c: New file.
65033         * lib/unictype/ctype_xdigit.c: New file.
65034         * lib/unictype/decdigit.c: New file.
65035         * lib/unictype/digit.c: New file.
65036         * lib/unictype/identsyntaxmap.h: New file.
65037         * lib/unictype/mirror.c: New file.
65038         * lib/unictype/numeric.c: New file.
65039         * lib/unictype/pr_alphabetic.c: New file.
65040         * lib/unictype/pr_ascii_hex_digit.c: New file.
65041         * lib/unictype/pr_bidi_arabic_digit.c: New file.
65042         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
65043         * lib/unictype/pr_bidi_block_separator.c: New file.
65044         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
65045         * lib/unictype/pr_bidi_common_separator.c: New file.
65046         * lib/unictype/pr_bidi_control.c: New file.
65047         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
65048         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
65049         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
65050         * lib/unictype/pr_bidi_european_digit.c: New file.
65051         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
65052         * lib/unictype/pr_bidi_left_to_right.c: New file.
65053         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
65054         * lib/unictype/pr_bidi_other_neutral.c: New file.
65055         * lib/unictype/pr_bidi_pdf.c: New file.
65056         * lib/unictype/pr_bidi_segment_separator.c: New file.
65057         * lib/unictype/pr_bidi_whitespace.c: New file.
65058         * lib/unictype/pr_byname.c: New file.
65059         * lib/unictype/pr_byname.gperf: New file.
65060         * lib/unictype/pr_combining.c: New file.
65061         * lib/unictype/pr_composite.c: New file.
65062         * lib/unictype/pr_currency_symbol.c: New file.
65063         * lib/unictype/pr_dash.c: New file.
65064         * lib/unictype/pr_decimal_digit.c: New file.
65065         * lib/unictype/pr_default_ignorable_code_point.c: New file.
65066         * lib/unictype/pr_deprecated.c: New file.
65067         * lib/unictype/pr_diacritic.c: New file.
65068         * lib/unictype/pr_extender.c: New file.
65069         * lib/unictype/pr_format_control.c: New file.
65070         * lib/unictype/pr_grapheme_base.c: New file.
65071         * lib/unictype/pr_grapheme_extend.c: New file.
65072         * lib/unictype/pr_grapheme_link.c: New file.
65073         * lib/unictype/pr_hex_digit.c: New file.
65074         * lib/unictype/pr_hyphen.c: New file.
65075         * lib/unictype/pr_id_continue.c: New file.
65076         * lib/unictype/pr_id_start.c: New file.
65077         * lib/unictype/pr_ideographic.c: New file.
65078         * lib/unictype/pr_ids_binary_operator.c: New file.
65079         * lib/unictype/pr_ids_trinary_operator.c: New file.
65080         * lib/unictype/pr_ignorable_control.c: New file.
65081         * lib/unictype/pr_iso_control.c: New file.
65082         * lib/unictype/pr_join_control.c: New file.
65083         * lib/unictype/pr_left_of_pair.c: New file.
65084         * lib/unictype/pr_line_separator.c: New file.
65085         * lib/unictype/pr_logical_order_exception.c: New file.
65086         * lib/unictype/pr_lowercase.c: New file.
65087         * lib/unictype/pr_math.c: New file.
65088         * lib/unictype/pr_non_break.c: New file.
65089         * lib/unictype/pr_not_a_character.c: New file.
65090         * lib/unictype/pr_numeric.c: New file.
65091         * lib/unictype/pr_other_alphabetic.c: New file.
65092         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65093         * lib/unictype/pr_other_grapheme_extend.c: New file.
65094         * lib/unictype/pr_other_id_continue.c: New file.
65095         * lib/unictype/pr_other_id_start.c: New file.
65096         * lib/unictype/pr_other_lowercase.c: New file.
65097         * lib/unictype/pr_other_math.c: New file.
65098         * lib/unictype/pr_other_uppercase.c: New file.
65099         * lib/unictype/pr_paired_punctuation.c: New file.
65100         * lib/unictype/pr_paragraph_separator.c: New file.
65101         * lib/unictype/pr_pattern_syntax.c: New file.
65102         * lib/unictype/pr_pattern_white_space.c: New file.
65103         * lib/unictype/pr_private_use.c: New file.
65104         * lib/unictype/pr_punctuation.c: New file.
65105         * lib/unictype/pr_quotation_mark.c: New file.
65106         * lib/unictype/pr_radical.c: New file.
65107         * lib/unictype/pr_sentence_terminal.c: New file.
65108         * lib/unictype/pr_soft_dotted.c: New file.
65109         * lib/unictype/pr_space.c: New file.
65110         * lib/unictype/pr_terminal_punctuation.c: New file.
65111         * lib/unictype/pr_test.c: New file.
65112         * lib/unictype/pr_titlecase.c: New file.
65113         * lib/unictype/pr_unassigned_code_value.c: New file.
65114         * lib/unictype/pr_unified_ideograph.c: New file.
65115         * lib/unictype/pr_uppercase.c: New file.
65116         * lib/unictype/pr_variation_selector.c: New file.
65117         * lib/unictype/pr_white_space.c: New file.
65118         * lib/unictype/pr_xid_continue.c: New file.
65119         * lib/unictype/pr_xid_start.c: New file.
65120         * lib/unictype/pr_zero_width.c: New file.
65121         * lib/unictype/scripts.c: New file.
65122         * lib/unictype/sy_c_ident.c: New file.
65123         * lib/unictype/sy_c_whitespace.c: New file.
65124         * lib/unictype/sy_java_ident.c: New file.
65125         * lib/unictype/sy_java_whitespace.c: New file.
65126
65127         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65128         Unicode 5.0.0.
65129         * lib/unictype/blocks.h: Likewise.
65130         * lib/unictype/categ_C.h: Likewise.
65131         * lib/unictype/categ_Cc.h: Likewise.
65132         * lib/unictype/categ_Cf.h: Likewise.
65133         * lib/unictype/categ_Cn.h: Likewise.
65134         * lib/unictype/categ_Co.h: Likewise.
65135         * lib/unictype/categ_Cs.h: Likewise.
65136         * lib/unictype/categ_L.h: Likewise.
65137         * lib/unictype/categ_Ll.h: Likewise.
65138         * lib/unictype/categ_Lm.h: Likewise.
65139         * lib/unictype/categ_Lo.h: Likewise.
65140         * lib/unictype/categ_Lt.h: Likewise.
65141         * lib/unictype/categ_Lu.h: Likewise.
65142         * lib/unictype/categ_M.h: Likewise.
65143         * lib/unictype/categ_Mc.h: Likewise.
65144         * lib/unictype/categ_Me.h: Likewise.
65145         * lib/unictype/categ_Mn.h: Likewise.
65146         * lib/unictype/categ_N.h: Likewise.
65147         * lib/unictype/categ_Nd.h: Likewise.
65148         * lib/unictype/categ_Nl.h: Likewise.
65149         * lib/unictype/categ_No.h: Likewise.
65150         * lib/unictype/categ_P.h: Likewise.
65151         * lib/unictype/categ_Pc.h: Likewise.
65152         * lib/unictype/categ_Pd.h: Likewise.
65153         * lib/unictype/categ_Pe.h: Likewise.
65154         * lib/unictype/categ_Pf.h: Likewise.
65155         * lib/unictype/categ_Pi.h: Likewise.
65156         * lib/unictype/categ_Po.h: Likewise.
65157         * lib/unictype/categ_Ps.h: Likewise.
65158         * lib/unictype/categ_S.h: Likewise.
65159         * lib/unictype/categ_Sc.h: Likewise.
65160         * lib/unictype/categ_Sk.h: Likewise.
65161         * lib/unictype/categ_Sm.h: Likewise.
65162         * lib/unictype/categ_So.h: Likewise.
65163         * lib/unictype/categ_Z.h: Likewise.
65164         * lib/unictype/categ_Zl.h: Likewise.
65165         * lib/unictype/categ_Zp.h: Likewise.
65166         * lib/unictype/categ_Zs.h: Likewise.
65167         * lib/unictype/categ_of.h: Likewise.
65168         * lib/unictype/combining.h: Likewise.
65169         * lib/unictype/ctype_alnum.h: Likewise.
65170         * lib/unictype/ctype_alpha.h: Likewise.
65171         * lib/unictype/ctype_blank.h: Likewise.
65172         * lib/unictype/ctype_cntrl.h: Likewise.
65173         * lib/unictype/ctype_digit.h: Likewise.
65174         * lib/unictype/ctype_graph.h: Likewise.
65175         * lib/unictype/ctype_lower.h: Likewise.
65176         * lib/unictype/ctype_print.h: Likewise.
65177         * lib/unictype/ctype_punct.h: Likewise.
65178         * lib/unictype/ctype_space.h: Likewise.
65179         * lib/unictype/ctype_upper.h: Likewise.
65180         * lib/unictype/ctype_xdigit.h: Likewise.
65181         * lib/unictype/decdigit.h: Likewise.
65182         * lib/unictype/digit.h: Likewise.
65183         * lib/unictype/mirror.h: Likewise.
65184         * lib/unictype/numeric.h: Likewise.
65185         * lib/unictype/pr_alphabetic.h: Likewise.
65186         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65187         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65188         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65189         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65190         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65191         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65192         * lib/unictype/pr_bidi_control.h: Likewise.
65193         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65194         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65195         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65196         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65197         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65198         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65199         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65200         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65201         * lib/unictype/pr_bidi_pdf.h: Likewise.
65202         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65203         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65204         * lib/unictype/pr_combining.h: Likewise.
65205         * lib/unictype/pr_composite.h: Likewise.
65206         * lib/unictype/pr_currency_symbol.h: Likewise.
65207         * lib/unictype/pr_dash.h: Likewise.
65208         * lib/unictype/pr_decimal_digit.h: Likewise.
65209         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65210         * lib/unictype/pr_deprecated.h: Likewise.
65211         * lib/unictype/pr_diacritic.h: Likewise.
65212         * lib/unictype/pr_extender.h: Likewise.
65213         * lib/unictype/pr_format_control.h: Likewise.
65214         * lib/unictype/pr_grapheme_base.h: Likewise.
65215         * lib/unictype/pr_grapheme_extend.h: Likewise.
65216         * lib/unictype/pr_grapheme_link.h: Likewise.
65217         * lib/unictype/pr_hex_digit.h: Likewise.
65218         * lib/unictype/pr_hyphen.h: Likewise.
65219         * lib/unictype/pr_id_continue.h: Likewise.
65220         * lib/unictype/pr_id_start.h: Likewise.
65221         * lib/unictype/pr_ideographic.h: Likewise.
65222         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65223         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65224         * lib/unictype/pr_ignorable_control.h: Likewise.
65225         * lib/unictype/pr_iso_control.h: Likewise.
65226         * lib/unictype/pr_join_control.h: Likewise.
65227         * lib/unictype/pr_left_of_pair.h: Likewise.
65228         * lib/unictype/pr_line_separator.h: Likewise.
65229         * lib/unictype/pr_logical_order_exception.h: Likewise.
65230         * lib/unictype/pr_lowercase.h: Likewise.
65231         * lib/unictype/pr_math.h: Likewise.
65232         * lib/unictype/pr_non_break.h: Likewise.
65233         * lib/unictype/pr_not_a_character.h: Likewise.
65234         * lib/unictype/pr_numeric.h: Likewise.
65235         * lib/unictype/pr_other_alphabetic.h: Likewise.
65236         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65237         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65238         * lib/unictype/pr_other_id_continue.h: Likewise.
65239         * lib/unictype/pr_other_id_start.h: Likewise.
65240         * lib/unictype/pr_other_lowercase.h: Likewise.
65241         * lib/unictype/pr_other_math.h: Likewise.
65242         * lib/unictype/pr_other_uppercase.h: Likewise.
65243         * lib/unictype/pr_paired_punctuation.h: Likewise.
65244         * lib/unictype/pr_paragraph_separator.h: Likewise.
65245         * lib/unictype/pr_pattern_syntax.h: Likewise.
65246         * lib/unictype/pr_pattern_white_space.h: Likewise.
65247         * lib/unictype/pr_private_use.h: Likewise.
65248         * lib/unictype/pr_punctuation.h: Likewise.
65249         * lib/unictype/pr_quotation_mark.h: Likewise.
65250         * lib/unictype/pr_radical.h: Likewise.
65251         * lib/unictype/pr_sentence_terminal.h: Likewise.
65252         * lib/unictype/pr_soft_dotted.h: Likewise.
65253         * lib/unictype/pr_space.h: Likewise.
65254         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65255         * lib/unictype/pr_titlecase.h: Likewise.
65256         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65257         * lib/unictype/pr_unified_ideograph.h: Likewise.
65258         * lib/unictype/pr_uppercase.h: Likewise.
65259         * lib/unictype/pr_variation_selector.h: Likewise.
65260         * lib/unictype/pr_white_space.h: Likewise.
65261         * lib/unictype/pr_xid_continue.h: Likewise.
65262         * lib/unictype/pr_xid_start.h: Likewise.
65263         * lib/unictype/pr_zero_width.h: Likewise.
65264         * lib/unictype/scripts.h: Likewise.
65265         * lib/unictype/scripts_byname.gperf: Likewise.
65266         * lib/unictype/sy_c_ident.h: Likewise.
65267         * lib/unictype/sy_c_whitespace.h: Likewise.
65268         * lib/unictype/sy_java_ident.h: Likewise.
65269         * lib/unictype/sy_java_whitespace.h: Likewise.
65270
65271         * lib/unictype/Makefile: New file.
65272         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65273         glibc.
65274         * lib/unictype/3level.h: New file, copied from glibc.
65275         * lib/unictype/3levelbit.h: New file.
65276
65277 2007-11-11  Bruno Haible  <bruno@clisp.org>
65278
65279         * modules/gperf: New file.
65280         * modules/iconv_open (Depends-on): Add it.
65281         (Makefile.am): Remove the GPERF definition.
65282
65283 2007-11-11  Bruno Haible  <bruno@clisp.org>
65284
65285         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65286         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65287
65288 2007-11-11  Bruno Haible  <bruno@clisp.org>
65289
65290         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65291         (usage): Remove function.
65292
65293 2007-11-11  Bruno Haible  <bruno@clisp.org>
65294
65295         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65296         gl_FUNC_CEILF_LIBS.
65297         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65298         gl_FUNC_CEIL_LIBS.
65299         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65300         gl_FUNC_CEILL_LIBS.
65301         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65302         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65303         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65304
65305 2007-11-11  Bruno Haible  <bruno@clisp.org>
65306
65307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65308         roundf were declared but do not exist on functions.
65309         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65310         roundl were declared but do not exist on functions.
65311         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65312         HAVE_FLOORL_AND_CEILL, respectively.
65313         Needed for Sun C on Solaris 10.
65314
65315 2007-11-11  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65318         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65319         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65320         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65321         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65322         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65323         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65324         HAVE_DECL_ROUNDF.
65325         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65326         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65328         of HAVE_DECL_ROUND*.
65329         * modules/math (Makefile.am): Update.
65330
65331 2007-11-10  Bruno Haible  <bruno@clisp.org>
65332
65333         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65334         ptrdiff_t as m4/intl.m4.
65335
65336 2007-11-10  Jim Meyering  <meyering@redhat.com>
65337
65338         Avoid link failure for the argmatch test.
65339         * tests/test-argmatch.c (usage): Define function to avoid a link
65340         failure: argmatch_die requires a usage function.
65341
65342 2007-11-09  Bruno Haible  <bruno@clisp.org>
65343
65344         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65345         * doc/functions/vsnprintf.texi: Likewise.
65346         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65347         with a size argument < 2.
65348
65349 2007-11-09  Bruno Haible  <bruno@clisp.org>
65350
65351         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65352         buffer. Fixes an inefficiency introduced on 2007-11-03.
65353
65354 2007-11-09  Bruno Haible  <bruno@clisp.org>
65355
65356         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65357         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65358
65359 2007-11-08  Jim Meyering  <meyering@redhat.com>
65360
65361         Change cache variable name prefix "jm_" to "gl_" everywhere.
65362         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65363         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65364         * m4/uptime.m4: s/gl_/jm_/
65365
65366 2007-11-07  Bruno Haible  <bruno@clisp.org>
65367
65368         Update to GNU gettext 0.17.
65369         * m4/intl.m4: Update to GNU gettext 0.17.
65370         * m4/po.m4: Likewise.
65371         * modules/gettext (Files): Remove m4/ulonglong.m4.
65372         (configure.ac): Require gettext infrastructure from version 0.17.
65373
65374 2007-11-06  Bruno Haible  <bruno@clisp.org>
65375
65376         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65377         symbolic values are not defined in a public header.
65378         * lib/freadable.c (freadable) [QNX]: Likewise.
65379         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65380         * lib/freading.c (freading) [QNX]: Likewise.
65381         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65382         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65383         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65384         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65385         Reported by Alain Magloire.
65386
65387         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65388
65389 2007-11-05  Bruno Haible  <bruno@clisp.org>
65390
65391         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65392         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65393         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65394         Reported by Eric Blake.
65395
65396 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65397             Bruno Haible  <bruno@clisp.org>
65398
65399         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65400         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65401         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65402         (malloc): Undefine also before including <stdlib.h>.
65403         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65404         Needed on OSF/1 4.0.
65405
65406 2007-11-05  Jim Meyering  <meyering@redhat.com>
65407
65408         git-version-gen: sync from coreutils.
65409         * build-aux/git-version-gen: Add comments.
65410         Change the first '-' to '.' in the snapshot version string,
65411         e.g., 6.9-377-08144 -> 6.9.377-08144
65412         Remove first parameter.
65413         Don't declare a version "-dirty" merely because a time
65414         stamp has changed.
65415
65416 2007-11-04  Bruno Haible  <bruno@clisp.org>
65417
65418         * lib/lock.h: Protect all macro definitions containing an 'if'
65419         statement through a "do { ... } while (0)".
65420         * lib/tls.h: Likewise.
65421
65422 2007-11-04  Bruno Haible  <bruno@clisp.org>
65423
65424         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65425
65426 2007-11-04  Bruno Haible  <bruno@clisp.org>
65427
65428         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65429         * modules/fprintf-posix (Depends-on): Add nocrash.
65430         * modules/snprintf-posix (Depends-on): Likewise.
65431         * modules/sprintf-posix (Depends-on): Likewise.
65432         * modules/vasnprintf-posix (Depends-on): Likewise.
65433         * modules/vasprintf-posix (Depends-on): Likewise.
65434         * modules/vfprintf-posix (Depends-on): Likewise.
65435         * modules/vsnprintf-posix (Depends-on): Likewise.
65436         * modules/vsprintf-posix (Depends-on): Likewise.
65437         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65438         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65439         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65440         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65441         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65442         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65443         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65444
65445 2007-11-04  Bruno Haible  <bruno@clisp.org>
65446
65447         * modules/nocrash: New file.
65448         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65449         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65450
65451 2007-11-04  Bruno Haible  <bruno@clisp.org>
65452
65453         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65454         precision handling.
65455         * tests/test-vasprintf-posix.c (test_function): Likewise.
65456         * tests/test-snprintf-posix.h (test_function): Likewise.
65457         * tests/test-sprintf-posix.h (test_function): Likewise.
65458
65459         Fix *printf behaviour for large precisions on mingw and BeOS.
65460         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65461         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65463         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65465         gl_PRINTF_PRECISION and test its result. Invoke
65466         gl_PREREQ_VASNPRINTF_PRECISION.
65467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65468         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65473         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65474         * doc/functions/fprintf.texi: Update.
65475         * doc/functions/printf.texi: Update.
65476         * doc/functions/snprintf.texi: Update.
65477         * doc/functions/sprintf.texi: Update.
65478         * doc/functions/vfprintf.texi: Update.
65479         * doc/functions/vprintf.texi: Update.
65480         * doc/functions/vsnprintf.texi: Update.
65481         * doc/functions/vsprintf.texi: Update.
65482
65483 2007-11-04  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65486
65487 2007-11-04  Bruno Haible  <bruno@clisp.org>
65488
65489         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65490         Reported by Sylvain Beucler <beuc@gnu.org>.
65491
65492 2007-11-03  Bruno Haible  <bruno@clisp.org>
65493
65494         * tests/test-fprintf-posix2.sh: New file.
65495         * tests/test-fprintf-posix2.c: New file.
65496         * modules/fprintf-posix-tests (Files): Add them.
65497         (TESTS): Add test-fprintf-posix2.sh.
65498         (configure.ac): Check for getrlimit and setrlimit.
65499         (check_PROGRAMS): Add test-fprintf-posix2.
65500
65501         * tests/test-printf-posix2.sh: New file.
65502         * tests/test-printf-posix2.c: New file.
65503         * modules/printf-posix-tests (Files): Add them.
65504         (TESTS): Add test-printf-posix2.sh.
65505         (configure.ac): Check for getrlimit and setrlimit.
65506         (check_PROGRAMS): Add test-printf-posix2.
65507
65508         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65509         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65510         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65511         (decode_double): New function, copied from decode_long_double.
65512         (scale10_round_decimal_decoded): New function, extracted from
65513         scale10_round_decimal_long_double.
65514         (scale10_round_decimal_long_double): Use it.
65515         (scale10_round_decimal_double): New function.
65516         (floorlog10): New function.
65517         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65519         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65520         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65521         gl_PRINTF_ENOMEM and test its result. Invoke
65522         gl_PREREQ_VASNPRINTF_ENOMEM.
65523         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65524         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65525         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65527         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65529         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65530         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65531         * modules/snprintf-posix (Depends-on): Likewise.
65532         * modules/sprintf-posix (Depends-on): Likewise.
65533         * modules/vasnprintf-posix (Depends-on): Likewise.
65534         * modules/vasprintf-posix (Depends-on): Likewise.
65535         * modules/vfprintf-posix (Depends-on): Likewise.
65536         * modules/vsnprintf-posix (Depends-on): Likewise.
65537         * modules/vsprintf-posix (Depends-on): Likewise.
65538         * doc/functions/fprintf.texi: Update.
65539         * doc/functions/printf.texi: Update.
65540         * doc/functions/snprintf.texi: Update.
65541         * doc/functions/sprintf.texi: Update.
65542         * doc/functions/vfprintf.texi: Update.
65543         * doc/functions/vprintf.texi: Update.
65544         * doc/functions/vsnprintf.texi: Update.
65545         * doc/functions/vsprintf.texi: Update.
65546
65547 2007-11-03  Bruno Haible  <bruno@clisp.org>
65548
65549         * modules/frexp-nolibm-tests: New file.
65550
65551         * modules/frexp-nolibm: New file.
65552         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65553
65554 2007-11-03  Bruno Haible  <bruno@clisp.org>
65555
65556         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65557         value is C99 compliant.
65558         Needed for OSF/1 5.1.
65559
65560 2007-11-03  Bruno Haible  <bruno@clisp.org>
65561
65562         Fix out-of-memory handling of vasnprintf.
65563         * lib/printf-parse.c: Include <errno.h>.
65564         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65565         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65566         is already set.
65567
65568 2007-11-02  Eric Blake  <ebb9@byu.net>
65569
65570         Fix tests on cygwin.
65571         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65572
65573 2007-11-01  Bruno Haible  <bruno@clisp.org>
65574
65575         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65576         warning.
65577         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65578         needed for POSIX compatibility.
65579
65580 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65581
65582         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65583         for compatibility with GNU.
65584
65585 2007-11-01  Bruno Haible  <bruno@clisp.org>
65586
65587         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65588         (putenv): Renamed from rpl_putenv. Change argument type from
65589         'const char *' to 'char *'.
65590         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65591         of defining putenv in config.h, just set REPLACE_PUTENV.
65592         * modules/putenv (Depends-on): Add stdlib.
65593         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65594         (Include): Use <stdlib.h>.
65595         * lib/stdlib.in.h (putenv): New declaration.
65596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65597         REPLACE_PUTENV.
65598         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65599         REPLACE_PUTENV.
65600         Needed for MacOS X 10.5.0.
65601         Reported by Peter O'Gorman <peter@pogma.com>.
65602
65603 2007-11-01  Jim Meyering  <meyering@redhat.com>
65604
65605         Treat an empty date string exactly like "0".
65606         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65607         if the remaining date string (to be parsed) is empty, use "0".
65608         Reported by Mischa Molhoek and discussed in this thread:
65609         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65610
65611 2007-10-31  Bruno Haible  <bruno@clisp.org>
65612
65613         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65614         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65615         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65616         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65617         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65618         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65619
65620 2007-10-31  Bruno Haible  <bruno@clisp.org>
65621
65622         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65623         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65624         (AC_TYPE_LONG_LONG_INT): Use it.
65625         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65626         it as well.
65627         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65628         to m4/longlong.m4.
65629         * modules/stdint (Files): Remove m4/ulonglong.m4.
65630         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65631         m4/ulonglong.m4.
65632         * modules/strtoumax (Files): Likewise.
65633
65634 2007-10-30  Bruno Haible  <bruno@clisp.org>
65635
65636         * modules/xvasprintf-posix: New file.
65637         Suggested by Eric Blake.
65638
65639 2007-10-30  Bruno Haible  <bruno@clisp.org>
65640
65641         * modules/xprintf-posix-tests: New file.
65642         * tests/test-xprintf-posix.sh: New file.
65643         * tests/test-xprintf-posix.c: New file.
65644         * tests/test-xfprintf-posix.c: New file.
65645
65646         * modules/xprintf-posix: New file.
65647
65648 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65649
65650         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65651         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65652         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65653
65654 2007-10-29  Bruno Haible  <bruno@clisp.org>
65655
65656         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65657         contain the special marker '_cv_'.
65658         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65659         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65660         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65661         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65662         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65663         Reported by Ralf Wildenhues.
65664
65665 2007-10-29  Bruno Haible  <bruno@clisp.org>
65666
65667         * gnulib-tool (func_import): When --lgpl is not specified, set
65668         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65669         GPLv3.
65670         Reported by Simon Josefsson.
65671
65672 2007-10-28  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65675         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65676         HAVE_DECL_ISFINITE.
65677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65678         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65679         HAVE_DECL_ISFINITE.
65680
65681 2007-10-28  Bruno Haible  <bruno@clisp.org>
65682
65683         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65684         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65685
65686 2007-10-28  Bruno Haible  <bruno@clisp.org>
65687
65688         Fix link errors with Sun C 5.0 on Solaris 10.
65689         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65690         function is declared but not present in the compiler's libm.
65691         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65692         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65693         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65694         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65695         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65696         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65697         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65699         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65700         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65701         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65702         HAVE_DECL_FLOORL.
65703
65704 2007-10-28  Bruno Haible  <bruno@clisp.org>
65705
65706         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65707         gl_FUNC_FLOORL. Cache the result.
65708         (gl_FUNC_FLOORL): Use it.
65709         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65710         gl_FUNC_CEILL. Cache the result.
65711         (gl_FUNC_CEILL): Use it.
65712
65713         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65714         gl_FUNC_FLOOR. Cache the result.
65715         (gl_FUNC_FLOOR): Use it.
65716         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65717         gl_FUNC_CEIL. Cache the result.
65718         (gl_FUNC_CEIL): Use it.
65719
65720         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65721         gl_FUNC_FLOORF. Cache the result.
65722         (gl_FUNC_FLOORF): Use it.
65723         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65724         gl_FUNC_CEILF. Cache the result.
65725         (gl_FUNC_CEILF): Use it.
65726
65727 2007-10-28  Bruno Haible  <bruno@clisp.org>
65728
65729         * gnulib-tool: Allow specifying the LGPL version number through
65730         --lgpl=2 or --lgpl=3.
65731         (func_usage): Document --lgpl with argument.
65732         Handle --lgpl=... arguments.
65733         (func_import): Recognize also gl_LGPL calls with an argument. When
65734         --lgpl=2 is used and the module's license is just LGPL, report an
65735         error. Set sed_transform_lib_file according to the lgpl variable. In
65736         the generated files, use --lgpl or gl_LGPL invocations with argument,
65737         if necessary.
65738         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65739         an LGPv2+ license.
65740         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65741         gl_LGPL macro.
65742
65743 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65744             Bruno Haible  <bruno@clisp.org>
65745
65746         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65747         (u16_uctomb_aux): Likewise.
65748         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65749         !HAVE_INLINE.
65750         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65751
65752 2007-10-28  Bruno Haible  <bruno@clisp.org>
65753
65754         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65755         Invoke AM_GETTEXT_OPTION if it exists.
65756         * modules/vasprintf: Likewise.
65757         * modules/verror: Likewise.
65758         * modules/xprintf: Likewise.
65759         * modules/xvasprintf: Likewise.
65760
65761 2007-10-27  Ben Pfaff  <blp@gnu.org>
65762
65763         * lib/math.in.h: Define isfinite macro and prototypes for
65764         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65765         implementations.
65766         * m4/math_h.m4: New substitutions for isfinite module.
65767         * lib/isfinite.c: New file.
65768         * m4/isfinite.m4: New file.
65769         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65770         * modules/isfinite: New file.
65771         * modules/isfinite-tests: New file.
65772         * tests/tests-isfinite.c: New file.
65773         * doc/functions/isfinite.texi: Mention isfinite module.
65774         * MODULES.html.sh: Mention new module.
65775
65776 2007-10-27  Ben Pfaff  <blp@gnu.org>
65777
65778         Ralf Wildenhues reported that Tru64 4.0D declares the round
65779         functions but does not have definitions.
65780         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65781         cannot be found in any library, set the output variable to
65782         "missing" instead of "".
65783         * m4/round.m4: Also use our substitute if we cannot find round in
65784         any library, even if it is declared.
65785         * m4/roundf.m4: Likewise for roundf.
65786         * m4/roundl.m4: Likewise for roundl.
65787         * lib/math.in.h: Undefine roundf, round, roundl before defining
65788         their replacements, to allow for hypothetical systems where these
65789         may be defined as macros but not available in libraries.
65790
65791 2007-10-27  Bruno Haible  <bruno@clisp.org>
65792
65793         * doc/gnulib.texi: Invoke @firstparagraphindent.
65794         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65795         changes in gnulib.
65796         (Source changes): New section.
65797
65798 2007-10-26  Bruno Haible  <bruno@clisp.org>
65799
65800         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65801         borrowed from autoconf.
65802
65803 2007-10-26  Bruno Haible  <bruno@clisp.org>
65804
65805         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65806         strerror returned the empty string. Needed on HP-UX 11.00.
65807
65808 2007-10-24  Micah Cowan  <micah@cowan.name>
65809
65810         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65811         * build-aux/bootstrap: Remove support for now-unnecessary option,
65812         --cvs-user, and envvars CVS_USER, CVS_RSH.
65813
65814 2007-10-24  Jim Meyering  <meyering@redhat.com>
65815
65816         Avoid diagnostics from sha1sum when there is no cached checksum.
65817         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65818         if the po.s1 file hasn't been created yet.
65819
65820         * build-aux/bootstrap: Sync from coreutils:
65821         2007-10-24  Jim Meyering  <meyering@redhat.com>
65822         Get gnulib from the git repository, not from an obsolete cvs one.
65823         * build-aux/bootstrap: Suggestion from Micah Cowan.
65824         2007-10-04  Jim Meyering  <jim@meyering.net>
65825         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65826         (update_po_files): Work also when there are no .po files in po/.
65827
65828 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * README: Append ".git" to git and cg examples.
65831         Problem reported by Benoit Sigoure.
65832
65833 2007-10-23  Micah Cowan  <micah@cowan.name>
65834
65835         * users.txt: Add wget.
65836
65837 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65838
65839         Fix linking of some unistdio tests on FreeBSD.
65840         * modules/unistdio/u16-vsnprintf-tests
65841         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65842         * modules/unistdio/u16-vsprintf-tests
65843         (test_u16_vsnprintf1_LDADD): Likewise.
65844         * modules/unistdio/u32-vsnprintf-tests
65845         (test_u32_vsnprintf1_LDADD): Likewise.
65846         * modules/unistdio/u32-vsprintf-tests
65847         (test_u32_vsprintf1_LDADD): Likewise.
65848         * modules/unistdio/u8-vsnprintf-tests
65849         (test_u8_vsnprintf1_LDADD): Likewise.
65850         * modules/unistdio/u8-vsprintf-tests
65851         (test_u8_vsprintf1_LDADD): Likewise.
65852         * modules/unistdio/ulc-vsnprintf-tests
65853         (test_ulc_vsnprintf1_LDADD): Likewise.
65854         * modules/unistdio/ulc-vsprintf-tests
65855         (test_ulc_vsprintf1_LDADD): Likewise.
65856
65857         Fix linking of some uniconv tests on FreeBSD.
65858         * modules/uniconv/u16-conv-from-enc-tests
65859         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65860         * modules/uniconv/u16-conv-to-enc-tests
65861         (test_u16_conv_to_enc_LDADD): Likewise.
65862         * modules/uniconv/u16-strconv-from-enc-tests
65863         (test_u16_strconv_from_enc_LDADD): Likewise.
65864         * modules/uniconv/u16-strconv-to-enc-tests
65865         (test_u16_strconv_to_enc_LDADD): Likewise.
65866         * modules/uniconv/u32-conv-from-enc-tests
65867         (test_u32_conv_from_enc_LDADD): Likewise.
65868         * modules/uniconv/u32-conv-to-enc-tests
65869         (test_u32_conv_to_enc_LDADD): Likewise.
65870         * modules/uniconv/u32-strconv-from-enc-tests
65871         (test_u32_strconv_from_enc_LDADD): Likewise.
65872         * modules/uniconv/u32-strconv-to-enc-tests
65873         (test_u32_strconv_to_enc_LDADD): Likewise.
65874         * modules/uniconv/u8-conv-from-enc-tests
65875         (test_u8_conv_from_enc_LDADD): Likewise.
65876         * modules/uniconv/u8-conv-to-enc-tests
65877         (test_u8_conv_to_enc_LDADD): Likewise.
65878         * modules/uniconv/u8-strconv-from-enc-tests
65879         (test_u8_strconv_from_enc_LDADD): Likewise.
65880         * modules/uniconv/u8-strconv-to-enc-tests
65881         (test_u8_strconv_to_enc_LDADD): Likewise.
65882
65883 2007-10-22  Bruno Haible  <bruno@clisp.org>
65884
65885         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65886         size.
65887
65888 2007-10-22  Eric Blake  <ebb9@byu.net>
65889
65890         Tweak x*printf documentation.
65891         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65892         variable name and comments.
65893         Suggested by Bruno Haible.
65894
65895 2007-10-22  Bruno Haible  <bruno@clisp.org>
65896
65897         * lib/acl.c (copy_acl): Fix file name in comment.
65898
65899 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65900
65901         Fix Tru64 problem with stdbool.h.
65902         * lib/stdbool.in.h (false, true):
65903         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65904         Don't declare as an enum in this situation; it runs afoul of Tru64.
65905         Problem reported by Steven M. Schweda in
65906         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65907
65908 2007-10-22  Eric Blake  <ebb9@byu.net>
65909
65910         Also wrap vf?printf.
65911         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65912         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65913         (xvprintf, xvfprintf): New functions.
65914
65915 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65916
65917         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65918         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65919
65920         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65921         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65922
65923 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65924
65925         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65926         by Bruno Haible.
65927
65928 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65929
65930         * lib/getloadavg.c
65931         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65932         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65933
65934         * tests/test-i-ring.c: Work for C89.
65935
65936 2007-10-22  Bruno Haible  <bruno@clisp.org>
65937
65938         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65939         -1u, in preprocessor expression, so that we don't test for the bug
65940         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65942
65943 2007-10-22  Eric Blake  <ebb9@byu.net>
65944
65945         * tests/test-yesno.sh: Silence stderr during test.
65946
65947 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65948
65949         * modules/crypto/gc-camellia: New file.
65950
65951         * m4/gc-camellia.m4: New file.
65952
65953         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65954
65955         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65956
65957 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65958
65959         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65960         --help to stdout.  Reported by sms@antinode.org (Steven
65961         M. Schweda).
65962
65963 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65964
65965         * users.txt: Fix link to libksba.
65966
65967 2007-10-21  Ben Pfaff  <blp@gnu.org>
65968
65969         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65970         round.c roundf implementation that depends on floorf and ceilf to
65971         be tested unconditionally.
65972
65973 2007-10-21  Ben Pfaff  <blp@gnu.org>
65974
65975         * m4/check-libm-func.m4: Removed.
65976         * m4/check-math-lib.m4: New file.
65977         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65978         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65979         definition and lack of AC_LIBOBJ([roundf]).
65980         * m4/roundl.m4: Ditto, and similarly for roundl.
65981         * modules/round: Reference new m4 file.
65982         * modules/roundf: Ditto.
65983         * modules/roundl: Ditto.
65984         * tests/test-round2.c (main): Use ROUND instead of round.
65985         Bug report from Bruno Haible.
65986
65987 2007-10-21  Bruno Haible  <bruno@clisp.org>
65988
65989         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65990         context.
65991
65992 2007-10-21  Bruno Haible  <bruno@clisp.org>
65993
65994         * tests/test-wcwidth.c (main): Allow negative result for some control
65995         characters.
65996
65997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65998         Needed on OSF/1 5.1.
65999
66000 2007-10-21  Bruno Haible  <bruno@clisp.org>
66001
66002         * tests/test-floorf1.c: Include isnanf.h.
66003         (main): Use isnanf() instead of isnan().
66004         * tests/test-ceilf1.c: Include isnanf.h.
66005         (main): Use isnanf() instead of isnan().
66006         * tests/test-truncf1.c: Include isnanf.h.
66007         (main): Use isnanf() instead of isnan().
66008         * tests/test-roundf1.c: Include isnanf.h.
66009         (main): Use isnanf() instead of isnan().
66010
66011 2007-10-21  Eric Blake  <ebb9@byu.net>
66012
66013         * users.txt: Update URL for m4.
66014
66015 2007-10-21  Bruno Haible  <bruno@clisp.org>
66016
66017         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
66018
66019 2007-10-21  Bruno Haible  <bruno@clisp.org>
66020
66021         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
66022         Git's management files if the CVS files are not present.
66023
66024 2007-10-20  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
66027         gcc-3.4.x.
66028
66029 2007-10-20  Ben Pfaff  <blp@gnu.org>
66030
66031         * lib/math.in.h: Declare round, roundf, roundl if we are providing
66032         implementations.
66033         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
66034         * lib/round.c: New file.
66035         * lib/roundf.c: New file.
66036         * lib/roundl.c: New file.
66037         * m4/round.m4: New file.
66038         * m4/roundf.m4: New file.
66039         * m4/roundl.m4: New file.
66040         * m4/check-libm-func-m4: New file.
66041         * modules/math: Replace round, roundf, roundl related @VARS@ in
66042         math.in.h.
66043         * modules/round: New file.
66044         * modules/round-tests: New file.
66045         * modules/roundf: New file.
66046         * modules/roundf-tests: New file.
66047         * modules/roundl: New file.
66048         * modules/roundl-tests: New file.
66049         * tests/test-round1.c: New file.
66050         * tests/test-round2.c: New file.
66051         * tests/test-roundf1.c: New file.
66052         * tests/test-roundf2.c: New file.
66053         * tests/test-roundl.c: New file.
66054         * doc/functions/round.texi: Mention round module.
66055         * doc/functions/roundf.texi: Mention roundf module.
66056         * doc/functions/roundl.texi: Mention roundl module.
66057         * MODULES.html.sh: Mention new modules.
66058         Thanks to Bruno Haible for suggestions.
66059
66060 2007-10-20  Jim Meyering  <meyering@redhat.com>
66061
66062         * lib/xprintf.c: Include <config.h> unconditionally.
66063
66064         Change xprintf's license to GPL.
66065         * modules/xprintf (License): s/LGPL/GPL/, since this module
66066         depends on modules (exit and exitfail) which are GPL.
66067         Suggestion from Bruno Haible.
66068
66069         xprintf fixes.
66070         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
66071         Use a clearer diagnostic.
66072         Patch from Bruno Haible.
66073
66074 2007-10-20  Bruno Haible  <bruno@clisp.org>
66075
66076         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66077         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66079
66080 2007-10-20  Bruno Haible  <bruno@clisp.org>
66081
66082         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66083         precision in the comparison result > x - 1 or similar.
66084         * tests/test-ceilf2.c (correct_result_p): Likewise.
66085         * tests/test-truncf2.c (correct_result_p): Likewise.
66086         * tests/test-trunc2.c (correct_result_p): Likewise.
66087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66088
66089 2007-10-20  Bruno Haible  <bruno@clisp.org>
66090
66091         * modules/ceil: New file.
66092         * m4/ceil.m4: New file.
66093         * doc/functions/ceil.texi: Mention the 'ceil' module.
66094
66095 2007-10-20  Bruno Haible  <bruno@clisp.org>
66096
66097         * modules/floor: New file.
66098         * m4/floor.m4: New file.
66099         * doc/functions/floor.texi: Mention the 'floor' module.
66100
66101 2007-10-20  Bruno Haible  <bruno@clisp.org>
66102
66103         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66104         of %a.
66105         * modules/floorf-tests (Depends-on): Likewise.
66106         * modules/truncf-tests (Depends-on): Likewise.
66107         * modules/trunc-tests (Depends-on): Likewise.
66108         Reported by Ben Pfaff.
66109
66110 2007-10-19  Jim Meyering  <meyering@redhat.com>
66111
66112         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66113         Don't bother testing specific errno values.  Just test ferror.
66114
66115         New module: xprintf
66116         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66117
66118 2007-10-19  Bruno Haible  <bruno@clisp.org>
66119
66120         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66121         syntax.
66122         * modules/javaexec (Makefile.am): Likewise.
66123         * modules/relocatable-prog (Makefile.am): Likewise.
66124         Suggested by Jim Meyering.
66125
66126 2007-10-18  Bruno Haible  <bruno@clisp.org>
66127
66128         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66129         Reported by Jim Meyering.
66130
66131 2007-10-18  Eric Blake  <ebb9@byu.net>
66132
66133         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66134
66135 2007-10-18  Bruno Haible  <bruno@clisp.org>
66136
66137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66138         the format string into writable memory. Needed in Fortify conditions.
66139
66140 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66141             Bruno Haible  <bruno@clisp.org>
66142
66143         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66144         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66145         * modules/trim (Depends-on): Add mbchar.
66146         (configure.ac): Add gl_FUNC_MBRTOWC.
66147         (Makefile.am): Augment lib_SOURCES.
66148
66149 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         Modify glob.c to use fstatat and dirfd, to simplify it.
66152         Suggested by Eric Blake.
66153         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66154         Don't include <stdbool.h>; not used.
66155         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66156         (link_exists_p): Simplify implementation, since we can now assume
66157         dirfd and fstatat.
66158         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66159
66160 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66161
66162         * gnulib-tool (func_get_dependencies): Fix sed script to
66163         match only tests.
66164
66165 2007-10-17  Bruno Haible  <bruno@clisp.org>
66166
66167         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66168         allow locale names without encoding suffix.
66169         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66170         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66171
66172 2007-10-16  Bruno Haible  <bruno@clisp.org>
66173
66174         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66175         * lib/getgroups.c (getgroups): Likewise.
66176         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66177
66178 2007-10-16  Bruno Haible  <bruno@clisp.org>
66179
66180         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66181         * modules/malloc-posix (License): Likewise.
66182         * modules/realloc-posix (License): Likewise.
66183         * modules/calloc-posix (License): Likewise.
66184         * modules/intprops (License): Change from GPL to LGPL, with
66185         Paul Eggert's approval.
66186
66187 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66188
66189         Merge glibc changes into lib/glob.c.
66190
66191         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66192         2007-10-15 04:59:03 UTC.  Here are the changes:
66193
66194         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66195
66196         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66197
66198         * lib/glob.c: Add some branch prediction throughout.
66199
66200         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66201
66202         [BZ #5103]
66203         * lib/glob.c (glob): Recognize patterns starting \/.
66204
66205         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66206
66207         [BZ #3996]
66208         * lib/glob.c (attribute_hidden): Define if not defined.
66209         (glob): Unescape dirname, filename or username when needed and not
66210         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66211         is NULL.  Handle unescaped [ in pattern without closing ].
66212         Don't pass GLOB_CHECK down to recursive glob for directories.
66213         (__glob_pattern_type): New function.
66214         (__glob_pattern_p): Implement using __glob_pattern_type.
66215         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66216         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66217         Remove unreachable code.
66218
66219         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66220
66221         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66222         explain why there are no leaks.
66223
66224         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66225
66226         [BZ #3253]
66227         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66228         time, rather allocate increasingly bigger arrays of pointers, if
66229         possible with alloca, if too large with malloc.
66230
66231 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66234         Problem reported by H.Merijn Brand in
66235         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66236         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66237         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66238
66239 2007-10-15  Bruno Haible  <bruno@clisp.org>
66240
66241         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66242         with explicit rpl_ prefix.
66243         * lib/fopen.c (fopen): Likewise.
66244         * lib/freopen.c (freopen): Likewise.
66245         * lib/iconv.c (iconv): Likewise.
66246         * lib/iconv_close.c (iconv_close): Likewise.
66247
66248 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66249
66250         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66251
66252 2007-10-15  Bruno Haible  <bruno@clisp.org>
66253
66254         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66255         <stddef.h> instead of <stdlib.h> since we only need NULL.
66256         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66257
66258 2007-10-15  Bruno Haible  <bruno@clisp.org>
66259
66260         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66261         Replace paragraph talking about LIBOBJS.
66262         Reported by Colin Watson <cjwatson@debian.org>.
66263
66264 2007-10-15  Bruno Haible  <bruno@clisp.org>
66265
66266         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66267         <stdlib.h> before using NULL.
66268
66269 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66270
66271         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66272         Reported by Albert Chin <china@thewrittenword.com>.
66273
66274 2007-10-14  Bruno Haible  <bruno@clisp.org>
66275
66276         * modules/iconv_open-utf-tests: New file.
66277         * tests/test-iconv-utf.c: New file.
66278
66279         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66280         * modules/iconv_open-utf: New file.
66281         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66282         (iconv, iconv_close): New declarations.
66283         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66284         be defined.
66285         (iconv_open): Add special handling of conversion between UTF-8 and
66286         UTF-{16,32}{BE,LE}.
66287         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66288         * lib/iconv_close.c: New file.
66289         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66290         gl_FUNC_ICONV_OPEN.
66291         (gl_FUNC_ICONV_OPEN): Use it.
66292         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66293         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66294         and REPLACE_ICONV_UTF.
66295         * modules/iconv_open (Depends-on): Add c-strcase.
66296         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66297         ICONV_CONST.
66298         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66299
66300 2007-10-13  Albert Chin  <china@thewrittenword.com>
66301             Bruno Haible  <bruno@clisp.org>
66302
66303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66304         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66305
66306 2007-10-13  Bruno Haible  <bruno@clisp.org>
66307
66308         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66309         defined, use the ISO C99 inline semantics.
66310         * lib/argp.h (ARGP_EI): Likewise.
66311
66312 2007-10-13  Bruno Haible  <bruno@clisp.org>
66313
66314         Handle 'inline' change in gcc 4.3.0.
66315         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66316         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66317         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66318         argp_fmtstream_point): Disable 'extern' declaration if the function
66319         definition is going to be provided inline.
66320         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66321         semantics, not the ISO C99 inline semantics.
66322         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66323         'extern' declaration if the function definition is going to be provided
66324         inline.
66325         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66326         the GNU C inline semantics, not the ISO C99 inline semantics. With
66327         GCC 4.2, avoid a warning.
66328
66329 2007-10-13  Bruno Haible  <bruno@clisp.org>
66330
66331         * lib/freading.h (freading): Enable the use of __freading for
66332         glibc >= 2.7.
66333         * lib/freading.c (freading): Likewise.
66334
66335 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66338         "warning: C99 inline functions are not supported; using GNU89".
66339
66340 2007-10-12  Bruno Haible  <bruno@clisp.org>
66341
66342         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66343         of 2.
66344         * tests/test-ceilf2.c: New file.
66345         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66346
66347         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66348         * modules/ceilf-tests: Update.
66349
66350 2007-10-12  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66353         of 2.
66354         * tests/test-floorf2.c: New file.
66355         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66356
66357         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66358         * modules/floorf-tests: Update.
66359
66360 2007-10-12  Bruno Haible  <bruno@clisp.org>
66361
66362         * tests/test-trunc2.c: New file.
66363         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66364
66365         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66366         * modules/trunc-tests: Update.
66367
66368 2007-10-12  Bruno Haible  <bruno@clisp.org>
66369
66370         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66371         of 2.
66372         * tests/test-truncf2.c: New file.
66373         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66374
66375         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66376         * modules/truncf-tests: Update.
66377
66378 2007-10-11  Eric Blake  <ebb9@byu.net>
66379
66380         Don't claim strerror is broken on Interix.
66381         * doc/functions/strerror.texi (strerror): Known broken systems are
66382         now Solaris 8, and not Interix.
66383         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66384         Interix on cross-compile.
66385         Reported by Martin Koeppe in
66386         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66387
66388 2007-10-11  Bruno Haible  <bruno@clisp.org>
66389
66390         * modules/i-ring-tests: New file.
66391         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66392         instead of assert.
66393
66394 2007-10-11  Bruno Haible  <bruno@clisp.org>
66395
66396         * modules/filenamecat-tests: New file.
66397         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66398         * lib/filenamecat.c: Remove test code.
66399
66400 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66401
66402         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66403
66404         * lib/strerror.c: Include <string.h> always, to test interface,
66405         and to remove the need for the dummy.
66406         Include intprops.h to compute width instead of doing it ourselves
66407         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66408         (strerror): Define it to return NULL if there's no system strerror.
66409         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66410         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66411         ancient pre-strerror Unix systems well any more.  Saying "unknown
66412         system error" is enough.
66413         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66414         simpler strerror.c implementation.
66415         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66416         Simplify the tests to reflect the simpler strerror implementation.
66417         * modules/strerror (Depends-on): Add intprops.
66418
66419 2007-10-09  Eric Blake  <ebb9@byu.net>
66420
66421         Silence test-fpending.
66422         * modules/fpending-tests (Files): Add wrapper script.
66423         * tests/test-fpending.sh: New file.
66424
66425 2007-10-09  Bruno Haible  <bruno@clisp.org>
66426
66427         * MODULES.html.sh (func_module): Don't create a hyperlink for
66428         function names like 'printf_frexp'.
66429         (Misc): Add crc, memxor.
66430         (Characteristics of floating types): New section.
66431         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66432         isnanf-nolibm, signbit, trunc, truncf, truncl.
66433         (Enhancements for ISO C 99 functions): New subsection Input/output.
66434         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66435         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66436         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66437         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66438         (Enhancements for POSIX:2001 functions): Add chdir-long.
66439         (File system functions): Add areadlink, chdir-safer, read-file.
66440         Remove cycle-check.
66441         (File system as inode set): New section.
66442         (Date and time): Add gethrxtime.
66443         (Multithreading): Add openmp.
66444         (Internationalization functions): Add localename.
66445         (Unicode string functions): Add unistr/u*-mbsnlen.
66446         (Support for maintaining and releasing projects): Add git-version-gen.
66447         (Lone files): Remove directories.
66448
66449 2007-10-08  Ben Pfaff  <blp@gnu.org>
66450
66451         * lib/xmalloca.h: Fix typo in comment.
66452
66453 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66456         when avoiding problems with integer overflow.  Use a portable test
66457         instead.
66458
66459 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66460
66461         * modules/dummy (License): Change to LGPLv2+.
66462         * modules/float (License): Likewise
66463         * modules/realloc (License): Likewise
66464         * modules/stdlib (License): Likewise
66465
66466 2007-10-07  Bruno Haible  <bruno@clisp.org>
66467
66468         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66469         * floor.c (TWO_MANT_DIG): Likewise.
66470         * ceil.c (TWO_MANT_DIG): Likewise.
66471         Reported by Ben Pfaff.
66472
66473 2007-10-07  Bruno Haible  <bruno@clisp.org>
66474
66475         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66476         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66477         * lib/frexp.c (FUNC): Likewise.
66478         * lib/printf-frexp.h (printf_frexp): Likewise.
66479         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66480         * lib/printf-frexp.c (FUNC): Likewise.
66481         Suggested by Jim Meyering.
66482
66483 2007-10-07  Jim Meyering  <meyering@redhat.com>
66484
66485         Make xnanosleep's integer overflow test more robust.
66486         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66487         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66488
66489 2007-10-07  Bruno Haible  <bruno@clisp.org>
66490
66491         * NEWS: Mention the license change.
66492
66493         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66494         abbreviations in the modules files.
66495
66496         Change copyright notice from GPLv2+ to GPLv3+.
66497         * README: Change copyright notice.
66498         * MODULES.html.sh: Likewise.
66499         * build-aux/bootstrap.conf: Likewise.
66500         * build-aux/config.libpath: Likewise.
66501         * build-aux/csharpcomp.sh.in: Likewise.
66502         * build-aux/csharpexec.sh.in: Likewise.
66503         * build-aux/install-reloc: Likewise.
66504         * build-aux/javacomp.sh.in: Likewise.
66505         * build-aux/javaexec.sh.in: Likewise.
66506         * build-aux/ldd.sh.in: Likewise.
66507         * build-aux/reloc-ldflags: Likewise.
66508         * build-aux/relocatable.sh.in: Likewise.
66509         * build-aux/x-to-1.in: Likewise.
66510         * check-module: Likewise.
66511         * config/srclistvars.sh: Likewise.
66512         * gnulib-tool: Likewise.
66513         * lib/acl-internal.h: Likewise.
66514         * lib/acl.c: Likewise.
66515         * lib/acl.h: Likewise.
66516         * lib/acl_entries.c: Likewise.
66517         * lib/areadlink-with-size.c: Likewise.
66518         * lib/areadlink.c: Likewise.
66519         * lib/areadlink.h: Likewise.
66520         * lib/argmatch.c: Likewise.
66521         * lib/argmatch.h: Likewise.
66522         * lib/argp-ba.c: Likewise.
66523         * lib/argp-eexst.c: Likewise.
66524         * lib/argp-fmtstream.c: Likewise.
66525         * lib/argp-fmtstream.h: Likewise.
66526         * lib/argp-fs-xinl.c: Likewise.
66527         * lib/argp-help.c: Likewise.
66528         * lib/argp-namefrob.h: Likewise.
66529         * lib/argp-parse.c: Likewise.
66530         * lib/argp-pin.c: Likewise.
66531         * lib/argp-pv.c: Likewise.
66532         * lib/argp-pvh.c: Likewise.
66533         * lib/argp-xinl.c: Likewise.
66534         * lib/argp.h: Likewise.
66535         * lib/at-func.c: Likewise.
66536         * lib/atanl.c: Likewise.
66537         * lib/backupfile.c: Likewise.
66538         * lib/backupfile.h: Likewise.
66539         * lib/basename.c: Likewise.
66540         * lib/binary-io.h: Likewise.
66541         * lib/byteswap.in.h: Likewise.
66542         * lib/c-stack.c: Likewise.
66543         * lib/c-stack.h: Likewise.
66544         * lib/c-strcasestr.c: Likewise.
66545         * lib/c-strcasestr.h: Likewise.
66546         * lib/c-strstr.c: Likewise.
66547         * lib/c-strstr.h: Likewise.
66548         * lib/c-strtod.c: Likewise.
66549         * lib/calloc.c: Likewise.
66550         * lib/canon-host.c: Likewise.
66551         * lib/canon-host.h: Likewise.
66552         * lib/canonicalize-lgpl.c: Likewise.
66553         * lib/canonicalize.c: Likewise.
66554         * lib/canonicalize.h: Likewise.
66555         * lib/ceil.c: Likewise.
66556         * lib/ceilf.c: Likewise.
66557         * lib/ceill.c: Likewise.
66558         * lib/chdir-long.c: Likewise.
66559         * lib/chdir-long.h: Likewise.
66560         * lib/chdir-safer.c: Likewise.
66561         * lib/chdir-safer.h: Likewise.
66562         * lib/chown.c: Likewise.
66563         * lib/classpath.c: Likewise.
66564         * lib/classpath.h: Likewise.
66565         * lib/clean-temp.c: Likewise.
66566         * lib/clean-temp.h: Likewise.
66567         * lib/cloexec.c: Likewise.
66568         * lib/close-stream.c: Likewise.
66569         * lib/closein.c: Likewise.
66570         * lib/closein.h: Likewise.
66571         * lib/closeout.c: Likewise.
66572         * lib/closeout.h: Likewise.
66573         * lib/concat-filename.c: Likewise.
66574         * lib/copy-file.c: Likewise.
66575         * lib/copy-file.h: Likewise.
66576         * lib/count-one-bits.h: Likewise.
66577         * lib/crc.c: Likewise.
66578         * lib/crc.h: Likewise.
66579         * lib/creat-safer.c: Likewise.
66580         * lib/csharpcomp.c: Likewise.
66581         * lib/csharpcomp.h: Likewise.
66582         * lib/csharpexec.c: Likewise.
66583         * lib/csharpexec.h: Likewise.
66584         * lib/cycle-check.c: Likewise.
66585         * lib/cycle-check.h: Likewise.
66586         * lib/diacrit.c: Likewise.
66587         * lib/diacrit.h: Likewise.
66588         * lib/diffseq.h: Likewise.
66589         * lib/dirchownmod.c: Likewise.
66590         * lib/dirent.in.h: Likewise.
66591         * lib/dirfd.c: Likewise.
66592         * lib/dirfd.h: Likewise.
66593         * lib/dirname.c: Likewise.
66594         * lib/dirname.h: Likewise.
66595         * lib/dummy.c: Likewise.
66596         * lib/dup-safer.c: Likewise.
66597         * lib/dup2.c: Likewise.
66598         * lib/eealloc.h: Likewise.
66599         * lib/error.c: Likewise.
66600         * lib/error.h: Likewise.
66601         * lib/euidaccess.c: Likewise.
66602         * lib/exclude.c: Likewise.
66603         * lib/exclude.h: Likewise.
66604         * lib/execute.c: Likewise.
66605         * lib/execute.h: Likewise.
66606         * lib/exitfail.c: Likewise.
66607         * lib/exitfail.h: Likewise.
66608         * lib/expl.c: Likewise.
66609         * lib/fatal-signal.c: Likewise.
66610         * lib/fatal-signal.h: Likewise.
66611         * lib/fbufmode.c: Likewise.
66612         * lib/fbufmode.h: Likewise.
66613         * lib/fchdir.c: Likewise.
66614         * lib/fchmodat.c: Likewise.
66615         * lib/fchownat.c: Likewise.
66616         * lib/fcntl--.h: Likewise.
66617         * lib/fcntl-safer.h: Likewise.
66618         * lib/fcntl.in.h: Likewise.
66619         * lib/fd-safer.c: Likewise.
66620         * lib/fflush.c: Likewise.
66621         * lib/file-has-acl.c: Likewise.
66622         * lib/file-set.c: Likewise.
66623         * lib/file-type.c: Likewise.
66624         * lib/file-type.h: Likewise.
66625         * lib/fileblocks.c: Likewise.
66626         * lib/filemode.c: Likewise.
66627         * lib/filemode.h: Likewise.
66628         * lib/filename.h: Likewise.
66629         * lib/filenamecat.c: Likewise.
66630         * lib/filenamecat.h: Likewise.
66631         * lib/findprog.c: Likewise.
66632         * lib/findprog.h: Likewise.
66633         * lib/float.in.h: Likewise.
66634         * lib/floor.c: Likewise.
66635         * lib/floorf.c: Likewise.
66636         * lib/floorl.c: Likewise.
66637         * lib/fopen-safer.c: Likewise.
66638         * lib/fopen.c: Likewise.
66639         * lib/fpending.c: Likewise.
66640         * lib/fpending.h: Likewise.
66641         * lib/fprintf.c: Likewise.
66642         * lib/fprintftime.h: Likewise.
66643         * lib/fpucw.h: Likewise.
66644         * lib/fpurge.c: Likewise.
66645         * lib/fpurge.h: Likewise.
66646         * lib/freadable.c: Likewise.
66647         * lib/freadable.h: Likewise.
66648         * lib/freadahead.c: Likewise.
66649         * lib/freadahead.h: Likewise.
66650         * lib/freading.c: Likewise.
66651         * lib/freading.h: Likewise.
66652         * lib/free.c: Likewise.
66653         * lib/freopen.c: Likewise.
66654         * lib/frexp.c: Likewise.
66655         * lib/frexpl.c: Likewise.
66656         * lib/fseek.c: Likewise.
66657         * lib/fseterr.c: Likewise.
66658         * lib/fseterr.h: Likewise.
66659         * lib/fstatat.c: Likewise.
66660         * lib/fstrcmp.c: Likewise.
66661         * lib/fstrcmp.h: Likewise.
66662         * lib/fsusage.c: Likewise.
66663         * lib/fsusage.h: Likewise.
66664         * lib/ftell.c: Likewise.
66665         * lib/ftello.c: Likewise.
66666         * lib/fts-cycle.c: Likewise.
66667         * lib/fts.c: Likewise.
66668         * lib/fts_.h: Likewise.
66669         * lib/full-read.c: Likewise.
66670         * lib/full-read.h: Likewise.
66671         * lib/full-write.c: Likewise.
66672         * lib/full-write.h: Likewise.
66673         * lib/fwritable.c: Likewise.
66674         * lib/fwritable.h: Likewise.
66675         * lib/fwriteerror.c: Likewise.
66676         * lib/fwriteerror.h: Likewise.
66677         * lib/fwriting.c: Likewise.
66678         * lib/fwriting.h: Likewise.
66679         * lib/gcd.c: Likewise.
66680         * lib/gcd.h: Likewise.
66681         * lib/getcwd.c: Likewise.
66682         * lib/getdate.h: Likewise.
66683         * lib/getdate.y: Likewise.
66684         * lib/getdomainname.c: Likewise.
66685         * lib/getdomainname.h: Likewise.
66686         * lib/getgroups.c: Likewise.
66687         * lib/gethostname.c: Likewise.
66688         * lib/gethrxtime.c: Likewise.
66689         * lib/gethrxtime.h: Likewise.
66690         * lib/getloadavg.c: Likewise.
66691         * lib/getndelim2.c: Likewise.
66692         * lib/getndelim2.h: Likewise.
66693         * lib/getnline.c: Likewise.
66694         * lib/getnline.h: Likewise.
66695         * lib/getopt.c: Likewise.
66696         * lib/getopt.in.h: Likewise.
66697         * lib/getopt1.c: Likewise.
66698         * lib/getopt_int.h: Likewise.
66699         * lib/getpagesize.h: Likewise.
66700         * lib/getsubopt.c: Likewise.
66701         * lib/gettime.c: Likewise.
66702         * lib/getugroups.c: Likewise.
66703         * lib/getugroups.h: Likewise.
66704         * lib/getusershell.c: Likewise.
66705         * lib/gl_anyavltree_list1.h: Likewise.
66706         * lib/gl_anyavltree_list2.h: Likewise.
66707         * lib/gl_anyhash_list1.h: Likewise.
66708         * lib/gl_anyhash_list2.h: Likewise.
66709         * lib/gl_anylinked_list1.h: Likewise.
66710         * lib/gl_anylinked_list2.h: Likewise.
66711         * lib/gl_anyrbtree_list1.h: Likewise.
66712         * lib/gl_anyrbtree_list2.h: Likewise.
66713         * lib/gl_anytree_list1.h: Likewise.
66714         * lib/gl_anytree_list2.h: Likewise.
66715         * lib/gl_anytree_oset.h: Likewise.
66716         * lib/gl_anytreehash_list1.h: Likewise.
66717         * lib/gl_anytreehash_list2.h: Likewise.
66718         * lib/gl_array_list.c: Likewise.
66719         * lib/gl_array_list.h: Likewise.
66720         * lib/gl_array_oset.c: Likewise.
66721         * lib/gl_array_oset.h: Likewise.
66722         * lib/gl_avltree_list.c: Likewise.
66723         * lib/gl_avltree_list.h: Likewise.
66724         * lib/gl_avltree_oset.c: Likewise.
66725         * lib/gl_avltree_oset.h: Likewise.
66726         * lib/gl_avltreehash_list.c: Likewise.
66727         * lib/gl_avltreehash_list.h: Likewise.
66728         * lib/gl_carray_list.c: Likewise.
66729         * lib/gl_carray_list.h: Likewise.
66730         * lib/gl_linked_list.c: Likewise.
66731         * lib/gl_linked_list.h: Likewise.
66732         * lib/gl_linkedhash_list.c: Likewise.
66733         * lib/gl_linkedhash_list.h: Likewise.
66734         * lib/gl_list.c: Likewise.
66735         * lib/gl_list.h: Likewise.
66736         * lib/gl_oset.c: Likewise.
66737         * lib/gl_oset.h: Likewise.
66738         * lib/gl_rbtree_list.c: Likewise.
66739         * lib/gl_rbtree_list.h: Likewise.
66740         * lib/gl_rbtree_oset.c: Likewise.
66741         * lib/gl_rbtree_oset.h: Likewise.
66742         * lib/gl_rbtreehash_list.c: Likewise.
66743         * lib/gl_rbtreehash_list.h: Likewise.
66744         * lib/gl_sublist.c: Likewise.
66745         * lib/gl_sublist.h: Likewise.
66746         * lib/group-member.c: Likewise.
66747         * lib/group-member.h: Likewise.
66748         * lib/hard-locale.c: Likewise.
66749         * lib/hard-locale.h: Likewise.
66750         * lib/hash-pjw.c: Likewise.
66751         * lib/hash-pjw.h: Likewise.
66752         * lib/hash-triple.c: Likewise.
66753         * lib/hash.c: Likewise.
66754         * lib/hash.h: Likewise.
66755         * lib/human.c: Likewise.
66756         * lib/human.h: Likewise.
66757         * lib/i-ring.c: Likewise.
66758         * lib/i-ring.h: Likewise.
66759         * lib/idcache.c: Likewise.
66760         * lib/imaxabs.c: Likewise.
66761         * lib/imaxdiv.c: Likewise.
66762         * lib/inet_pton.c: Likewise.
66763         * lib/inet_pton.h: Likewise.
66764         * lib/intprops.h: Likewise.
66765         * lib/inttostr.c: Likewise.
66766         * lib/inttostr.h: Likewise.
66767         * lib/inttypes.in.h: Likewise.
66768         * lib/isapipe.c: Likewise.
66769         * lib/isdir.c: Likewise.
66770         * lib/isnan.c: Likewise.
66771         * lib/isnan.h: Likewise.
66772         * lib/isnanf.c: Likewise.
66773         * lib/isnanf.h: Likewise.
66774         * lib/isnanl-nolibm.h: Likewise.
66775         * lib/isnanl.c: Likewise.
66776         * lib/isnanl.h: Likewise.
66777         * lib/javacomp.c: Likewise.
66778         * lib/javacomp.h: Likewise.
66779         * lib/javaexec.c: Likewise.
66780         * lib/javaexec.h: Likewise.
66781         * lib/javaversion.c: Likewise.
66782         * lib/javaversion.h: Likewise.
66783         * lib/javaversion.java: Likewise.
66784         * lib/lbrkprop.h: Likewise.
66785         * lib/lchmod.h: Likewise.
66786         * lib/lchown.c: Likewise.
66787         * lib/ldexpl.c: Likewise.
66788         * lib/linebreak.c: Likewise.
66789         * lib/linebreak.h: Likewise.
66790         * lib/linebuffer.c: Likewise.
66791         * lib/linebuffer.h: Likewise.
66792         * lib/locale.in.h: Likewise.
66793         * lib/logl.c: Likewise.
66794         * lib/long-options.c: Likewise.
66795         * lib/long-options.h: Likewise.
66796         * lib/lstat.c: Likewise.
66797         * lib/lstat.h: Likewise.
66798         * lib/math.in.h: Likewise.
66799         * lib/mbchar.c: Likewise.
66800         * lib/mbchar.h: Likewise.
66801         * lib/mbfile.h: Likewise.
66802         * lib/mbiter.h: Likewise.
66803         * lib/mbscasecmp.c: Likewise.
66804         * lib/mbscasestr.c: Likewise.
66805         * lib/mbschr.c: Likewise.
66806         * lib/mbscspn.c: Likewise.
66807         * lib/mbslen.c: Likewise.
66808         * lib/mbsncasecmp.c: Likewise.
66809         * lib/mbsnlen.c: Likewise.
66810         * lib/mbspbrk.c: Likewise.
66811         * lib/mbspcasecmp.c: Likewise.
66812         * lib/mbsrchr.c: Likewise.
66813         * lib/mbssep.c: Likewise.
66814         * lib/mbsspn.c: Likewise.
66815         * lib/mbsstr.c: Likewise.
66816         * lib/mbstok_r.c: Likewise.
66817         * lib/mbswidth.c: Likewise.
66818         * lib/mbswidth.h: Likewise.
66819         * lib/mbuiter.h: Likewise.
66820         * lib/memcasecmp.c: Likewise.
66821         * lib/memcasecmp.h: Likewise.
66822         * lib/memchr.c: Likewise.
66823         * lib/memcmp.c: Likewise.
66824         * lib/memcoll.c: Likewise.
66825         * lib/memcoll.h: Likewise.
66826         * lib/memcpy.c: Likewise.
66827         * lib/memrchr.c: Likewise.
66828         * lib/mkancesdirs.c: Likewise.
66829         * lib/mkdir-p.c: Likewise.
66830         * lib/mkdir-p.h: Likewise.
66831         * lib/mkdir.c: Likewise.
66832         * lib/mkdirat.c: Likewise.
66833         * lib/mkdtemp.c: Likewise.
66834         * lib/mkstemp-safer.c: Likewise.
66835         * lib/mkstemp.c: Likewise.
66836         * lib/modechange.c: Likewise.
66837         * lib/modechange.h: Likewise.
66838         * lib/mountlist.c: Likewise.
66839         * lib/mountlist.h: Likewise.
66840         * lib/mpsort.c: Likewise.
66841         * lib/nanosleep.c: Likewise.
66842         * lib/obstack.c: Likewise.
66843         * lib/obstack.h: Likewise.
66844         * lib/open-safer.c: Likewise.
66845         * lib/open.c: Likewise.
66846         * lib/openat-die.c: Likewise.
66847         * lib/openat-priv.h: Likewise.
66848         * lib/openat-proc.c: Likewise.
66849         * lib/openat.c: Likewise.
66850         * lib/openat.h: Likewise.
66851         * lib/pagealign_alloc.c: Likewise.
66852         * lib/pagealign_alloc.h: Likewise.
66853         * lib/physmem.c: Likewise.
66854         * lib/physmem.h: Likewise.
66855         * lib/pipe-safer.c: Likewise.
66856         * lib/pipe.c: Likewise.
66857         * lib/pipe.h: Likewise.
66858         * lib/posixtm.c: Likewise.
66859         * lib/posixtm.h: Likewise.
66860         * lib/posixver.c: Likewise.
66861         * lib/printf-frexp.c: Likewise.
66862         * lib/printf-frexp.h: Likewise.
66863         * lib/printf-frexpl.c: Likewise.
66864         * lib/printf-frexpl.h: Likewise.
66865         * lib/printf.c: Likewise.
66866         * lib/progname.c: Likewise.
66867         * lib/progname.h: Likewise.
66868         * lib/progreloc.c: Likewise.
66869         * lib/putenv.c: Likewise.
66870         * lib/quote.c: Likewise.
66871         * lib/quote.h: Likewise.
66872         * lib/quotearg.c: Likewise.
66873         * lib/quotearg.h: Likewise.
66874         * lib/raise.c: Likewise.
66875         * lib/readline.c: Likewise.
66876         * lib/readline.h: Likewise.
66877         * lib/readlink.c: Likewise.
66878         * lib/readtokens.c: Likewise.
66879         * lib/readtokens.h: Likewise.
66880         * lib/readtokens0.c: Likewise.
66881         * lib/readtokens0.h: Likewise.
66882         * lib/readutmp.c: Likewise.
66883         * lib/readutmp.h: Likewise.
66884         * lib/realloc.c: Likewise.
66885         * lib/relocwrapper.c: Likewise.
66886         * lib/rename-dest-slash.c: Likewise.
66887         * lib/rename.c: Likewise.
66888         * lib/rmdir.c: Likewise.
66889         * lib/rpmatch.c: Likewise.
66890         * lib/safe-read.c: Likewise.
66891         * lib/safe-read.h: Likewise.
66892         * lib/safe-write.c: Likewise.
66893         * lib/safe-write.h: Likewise.
66894         * lib/same-inode.h: Likewise.
66895         * lib/same.c: Likewise.
66896         * lib/same.h: Likewise.
66897         * lib/save-cwd.c: Likewise.
66898         * lib/save-cwd.h: Likewise.
66899         * lib/savedir.c: Likewise.
66900         * lib/savedir.h: Likewise.
66901         * lib/savewd.c: Likewise.
66902         * lib/savewd.h: Likewise.
66903         * lib/search.in.h: Likewise.
66904         * lib/setenv.c: Likewise.
66905         * lib/setenv.h: Likewise.
66906         * lib/settime.c: Likewise.
66907         * lib/sh-quote.c: Likewise.
66908         * lib/sh-quote.h: Likewise.
66909         * lib/sig2str.c: Likewise.
66910         * lib/sig2str.h: Likewise.
66911         * lib/signal.in.h: Likewise.
66912         * lib/signbitd.c: Likewise.
66913         * lib/signbitf.c: Likewise.
66914         * lib/signbitl.c: Likewise.
66915         * lib/sigprocmask.c: Likewise.
66916         * lib/sincosl.c: Likewise.
66917         * lib/sleep.c: Likewise.
66918         * lib/sprintf.c: Likewise.
66919         * lib/sqrtl.c: Likewise.
66920         * lib/stat-time.h: Likewise.
66921         * lib/stdio--.h: Likewise.
66922         * lib/stdio-safer.h: Likewise.
66923         * lib/stdlib--.h: Likewise.
66924         * lib/stdlib-safer.h: Likewise.
66925         * lib/stdlib.in.h: Likewise.
66926         * lib/stpcpy.c: Likewise.
66927         * lib/stpncpy.c: Likewise.
66928         * lib/strchrnul.c: Likewise.
66929         * lib/strcspn.c: Likewise.
66930         * lib/strerror.c: Likewise.
66931         * lib/strftime.c: Likewise.
66932         * lib/strftime.h: Likewise.
66933         * lib/striconveh.c: Likewise.
66934         * lib/striconveh.h: Likewise.
66935         * lib/striconveha.c: Likewise.
66936         * lib/striconveha.h: Likewise.
66937         * lib/stripslash.c: Likewise.
66938         * lib/strnlen1.c: Likewise.
66939         * lib/strnlen1.h: Likewise.
66940         * lib/strtod.c: Likewise.
66941         * lib/strtoimax.c: Likewise.
66942         * lib/strtok_r.c: Likewise.
66943         * lib/strtol.c: Likewise.
66944         * lib/strtoll.c: Likewise.
66945         * lib/strtoul.c: Likewise.
66946         * lib/strtoull.c: Likewise.
66947         * lib/sysexits.in.h: Likewise.
66948         * lib/tempname.c: Likewise.
66949         * lib/tempname.h: Likewise.
66950         * lib/timespec.h: Likewise.
66951         * lib/tls.c: Likewise.
66952         * lib/tls.h: Likewise.
66953         * lib/tmpdir.c: Likewise.
66954         * lib/tmpdir.h: Likewise.
66955         * lib/tmpfile-safer.c: Likewise.
66956         * lib/tmpfile.c: Likewise.
66957         * lib/trigl.c: Likewise.
66958         * lib/trigl.h: Likewise.
66959         * lib/trim.c: Likewise.
66960         * lib/trim.h: Likewise.
66961         * lib/trunc.c: Likewise.
66962         * lib/truncf.c: Likewise.
66963         * lib/truncl.c: Likewise.
66964         * lib/tsearch.c: Likewise.
66965         * lib/unicodeio.c: Likewise.
66966         * lib/unicodeio.h: Likewise.
66967         * lib/unistd--.h: Likewise.
66968         * lib/unistd-safer.h: Likewise.
66969         * lib/unistdio/ulc-fprintf.c: Likewise.
66970         * lib/unistdio/ulc-vfprintf.c: Likewise.
66971         * lib/unlinkdir.c: Likewise.
66972         * lib/unlinkdir.h: Likewise.
66973         * lib/unlocked-io.h: Likewise.
66974         * lib/unsetenv.c: Likewise.
66975         * lib/userspec.c: Likewise.
66976         * lib/utime.c: Likewise.
66977         * lib/utimecmp.c: Likewise.
66978         * lib/utimecmp.h: Likewise.
66979         * lib/utimens.c: Likewise.
66980         * lib/verify.h: Likewise.
66981         * lib/verror.c: Likewise.
66982         * lib/verror.h: Likewise.
66983         * lib/version-etc-fsf.c: Likewise.
66984         * lib/version-etc.c: Likewise.
66985         * lib/version-etc.h: Likewise.
66986         * lib/vfprintf.c: Likewise.
66987         * lib/vprintf.c: Likewise.
66988         * lib/vsprintf.c: Likewise.
66989         * lib/w32spawn.h: Likewise.
66990         * lib/wait-process.c: Likewise.
66991         * lib/wait-process.h: Likewise.
66992         * lib/wcwidth.c: Likewise.
66993         * lib/write-any-file.c: Likewise.
66994         * lib/xalloc-die.c: Likewise.
66995         * lib/xalloc.h: Likewise.
66996         * lib/xasprintf.c: Likewise.
66997         * lib/xgetcwd.c: Likewise.
66998         * lib/xgetcwd.h: Likewise.
66999         * lib/xgetdomainname.c: Likewise.
67000         * lib/xgetdomainname.h: Likewise.
67001         * lib/xgethostname.c: Likewise.
67002         * lib/xmalloc.c: Likewise.
67003         * lib/xmalloca.c: Likewise.
67004         * lib/xmalloca.h: Likewise.
67005         * lib/xmemcoll.c: Likewise.
67006         * lib/xnanosleep.c: Likewise.
67007         * lib/xreadlink.c: Likewise.
67008         * lib/xreadlink.h: Likewise.
67009         * lib/xsetenv.c: Likewise.
67010         * lib/xsetenv.h: Likewise.
67011         * lib/xstriconv.c: Likewise.
67012         * lib/xstriconv.h: Likewise.
67013         * lib/xstrndup.c: Likewise.
67014         * lib/xstrndup.h: Likewise.
67015         * lib/xstrtod.c: Likewise.
67016         * lib/xstrtod.h: Likewise.
67017         * lib/xstrtol-error.c: Likewise.
67018         * lib/xstrtol.c: Likewise.
67019         * lib/xstrtol.h: Likewise.
67020         * lib/xtime.h: Likewise.
67021         * lib/xvasprintf.c: Likewise.
67022         * lib/xvasprintf.h: Likewise.
67023         * lib/yesno.c: Likewise.
67024         * lib/yesno.h: Likewise.
67025         * posix-modules: Likewise.
67026         * tests/test-alloca-opt.c: Likewise.
67027         * tests/test-arcfour.c: Likewise.
67028         * tests/test-arctwo.c: Likewise.
67029         * tests/test-argmatch.c: Likewise.
67030         * tests/test-argp-2.sh: Likewise.
67031         * tests/test-argp.c: Likewise.
67032         * tests/test-arpa_inet.c: Likewise.
67033         * tests/test-array_list.c: Likewise.
67034         * tests/test-array_oset.c: Likewise.
67035         * tests/test-atexit.c: Likewise.
67036         * tests/test-avltree_list.c: Likewise.
67037         * tests/test-avltree_oset.c: Likewise.
67038         * tests/test-avltreehash_list.c: Likewise.
67039         * tests/test-base64.c: Likewise.
67040         * tests/test-binary-io.c: Likewise.
67041         * tests/test-byteswap.c: Likewise.
67042         * tests/test-c-ctype.c: Likewise.
67043         * tests/test-c-strcasecmp.c: Likewise.
67044         * tests/test-c-strcasestr.c: Likewise.
67045         * tests/test-c-strncasecmp.c: Likewise.
67046         * tests/test-c-strstr.c: Likewise.
67047         * tests/test-canonicalize-lgpl.c: Likewise.
67048         * tests/test-canonicalize.c: Likewise.
67049         * tests/test-carray_list.c: Likewise.
67050         * tests/test-ceilf.c: Likewise.
67051         * tests/test-ceill.c: Likewise.
67052         * tests/test-count-one-bits.c: Likewise.
67053         * tests/test-crc.c: Likewise.
67054         * tests/test-dirname.c: Likewise.
67055         * tests/test-fbufmode.c: Likewise.
67056         * tests/test-fcntl.c: Likewise.
67057         * tests/test-fflush.c: Likewise.
67058         * tests/test-floorf.c: Likewise.
67059         * tests/test-floorl.c: Likewise.
67060         * tests/test-fopen.c: Likewise.
67061         * tests/test-fprintf-posix.c: Likewise.
67062         * tests/test-fprintf-posix.h: Likewise.
67063         * tests/test-fpurge.c: Likewise.
67064         * tests/test-freadable.c: Likewise.
67065         * tests/test-freadahead.c: Likewise.
67066         * tests/test-freading.c: Likewise.
67067         * tests/test-freopen.c: Likewise.
67068         * tests/test-frexp.c: Likewise.
67069         * tests/test-frexpl.c: Likewise.
67070         * tests/test-fseek.c: Likewise.
67071         * tests/test-fseeko.c: Likewise.
67072         * tests/test-fseterr.c: Likewise.
67073         * tests/test-fstrcmp.c: Likewise.
67074         * tests/test-ftell.c: Likewise.
67075         * tests/test-ftello.c: Likewise.
67076         * tests/test-fwritable.c: Likewise.
67077         * tests/test-fwriting.c: Likewise.
67078         * tests/test-getaddrinfo.c: Likewise.
67079         * tests/test-getpass.c: Likewise.
67080         * tests/test-gettimeofday.c: Likewise.
67081         * tests/test-hmac-md5.c: Likewise.
67082         * tests/test-hmac-sha1.c: Likewise.
67083         * tests/test-iconv.c: Likewise.
67084         * tests/test-iconvme.c: Likewise.
67085         * tests/test-inttypes.c: Likewise.
67086         * tests/test-isnan.c: Likewise.
67087         * tests/test-isnanf.c: Likewise.
67088         * tests/test-isnanl-nolibm.c: Likewise.
67089         * tests/test-isnanl.c: Likewise.
67090         * tests/test-isnanl.h: Likewise.
67091         * tests/test-ldexpl.c: Likewise.
67092         * tests/test-linked_list.c: Likewise.
67093         * tests/test-linkedhash_list.c: Likewise.
67094         * tests/test-locale.c: Likewise.
67095         * tests/test-localename.c: Likewise.
67096         * tests/test-lock.c: Likewise.
67097         * tests/test-lseek.c: Likewise.
67098         * tests/test-malloca.c: Likewise.
67099         * tests/test-math.c: Likewise.
67100         * tests/test-mbscasecmp.c: Likewise.
67101         * tests/test-mbscasestr1.c: Likewise.
67102         * tests/test-mbscasestr2.c: Likewise.
67103         * tests/test-mbscasestr3.c: Likewise.
67104         * tests/test-mbscasestr4.c: Likewise.
67105         * tests/test-mbschr.c: Likewise.
67106         * tests/test-mbscspn.c: Likewise.
67107         * tests/test-mbsncasecmp.c: Likewise.
67108         * tests/test-mbspbrk.c: Likewise.
67109         * tests/test-mbspcasecmp.c: Likewise.
67110         * tests/test-mbsrchr.c: Likewise.
67111         * tests/test-mbsspn.c: Likewise.
67112         * tests/test-mbsstr1.c: Likewise.
67113         * tests/test-mbsstr2.c: Likewise.
67114         * tests/test-mbsstr3.c: Likewise.
67115         * tests/test-md5.c: Likewise.
67116         * tests/test-memmem.c: Likewise.
67117         * tests/test-netinet_in.c: Likewise.
67118         * tests/test-open.c: Likewise.
67119         * tests/test-printf-frexp.c: Likewise.
67120         * tests/test-printf-frexpl.c: Likewise.
67121         * tests/test-printf-posix.c: Likewise.
67122         * tests/test-printf-posix.h: Likewise.
67123         * tests/test-rbtree_list.c: Likewise.
67124         * tests/test-rbtree_oset.c: Likewise.
67125         * tests/test-rbtreehash_list.c: Likewise.
67126         * tests/test-read-file.c: Likewise.
67127         * tests/test-rijndael.c: Likewise.
67128         * tests/test-search.c: Likewise.
67129         * tests/test-signbit.c: Likewise.
67130         * tests/test-sleep.c: Likewise.
67131         * tests/test-snprintf-posix.c: Likewise.
67132         * tests/test-snprintf-posix.h: Likewise.
67133         * tests/test-snprintf.c: Likewise.
67134         * tests/test-sprintf-posix.c: Likewise.
67135         * tests/test-sprintf-posix.h: Likewise.
67136         * tests/test-stat-time.c: Likewise.
67137         * tests/test-stdbool.c: Likewise.
67138         * tests/test-stdint.c: Likewise.
67139         * tests/test-stdio.c: Likewise.
67140         * tests/test-stdlib.c: Likewise.
67141         * tests/test-stpncpy.c: Likewise.
67142         * tests/test-strcasestr.c: Likewise.
67143         * tests/test-striconv.c: Likewise.
67144         * tests/test-striconveh.c: Likewise.
67145         * tests/test-striconveha.c: Likewise.
67146         * tests/test-string.c: Likewise.
67147         * tests/test-sys_select.c: Likewise.
67148         * tests/test-sys_socket.c: Likewise.
67149         * tests/test-sys_stat.c: Likewise.
67150         * tests/test-sys_time.c: Likewise.
67151         * tests/test-sysexits.c: Likewise.
67152         * tests/test-time.c: Likewise.
67153         * tests/test-tls.c: Likewise.
67154         * tests/test-trunc.c: Likewise.
67155         * tests/test-truncf.c: Likewise.
67156         * tests/test-truncl.c: Likewise.
67157         * tests/test-unistd.c: Likewise.
67158         * tests/test-vasnprintf-posix.c: Likewise.
67159         * tests/test-vasnprintf-posix2.c: Likewise.
67160         * tests/test-vasnprintf.c: Likewise.
67161         * tests/test-vasprintf-posix.c: Likewise.
67162         * tests/test-vasprintf.c: Likewise.
67163         * tests/test-verify.c: Likewise.
67164         * tests/test-vfprintf-posix.c: Likewise.
67165         * tests/test-vprintf-posix.c: Likewise.
67166         * tests/test-vsnprintf-posix.c: Likewise.
67167         * tests/test-vsnprintf.c: Likewise.
67168         * tests/test-vsprintf-posix.c: Likewise.
67169         * tests/test-wchar.c: Likewise.
67170         * tests/test-wctype.c: Likewise.
67171         * tests/test-wcwidth.c: Likewise.
67172         * tests/test-xstrtol.c: Likewise.
67173         * tests/test-xvasprintf.c: Likewise.
67174         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67175         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67176         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67177         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67178         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67179         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67180         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67181         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67182         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67183         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67184         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67185         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67186         * tests/uniname/test-uninames.c: Likewise.
67187         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67188         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67189         * tests/unistdio/test-u16-printf1.h: Likewise.
67190         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67191         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67192         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67193         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67194         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67195         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67196         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67197         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67198         * tests/unistdio/test-u32-printf1.h: Likewise.
67199         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67200         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67201         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67202         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67203         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67204         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67205         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67206         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67207         * tests/unistdio/test-u8-printf1.h: Likewise.
67208         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67209         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67210         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67211         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67212         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67213         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67214         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67215         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67216         * tests/unistdio/test-ulc-printf1.h: Likewise.
67217         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67218         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67219         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67220         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67221         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67222         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67223         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67224         * tests/uniwidth/test-u16-width.c: Likewise.
67225         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67226         * tests/uniwidth/test-u32-width.c: Likewise.
67227         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67228         * tests/uniwidth/test-u8-width.c: Likewise.
67229         * tests/uniwidth/test-uc_width.c: Likewise.
67230         * config/srclist-update: Likewise.
67231         (fixlicense): Update to GPLv3+.
67232
67233         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67234         * tests/test-tsearch.c: Change copyright notice.
67235
67236         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67237         * lib/c-strcaseeq.h: Change copyright notice.
67238         * lib/streq.h: Likewise.
67239         * lib/uniconv.h: Likewise.
67240         * lib/uniconv/u-conv-from-enc.h: Likewise.
67241         * lib/uniconv/u-conv-to-enc.h: Likewise.
67242         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67243         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67244         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67245         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67246         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67247         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67248         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67249         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67250         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67251         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67252         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67253         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67254         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67255         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67256         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67257         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67258         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67259         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67260         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67261         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67262         * lib/uniname.h: Likewise.
67263         * lib/uniname/uniname.c: Likewise.
67264         * lib/unistdio.h: Likewise.
67265         * lib/unistdio/u-asnprintf.h: Likewise.
67266         * lib/unistdio/u-asprintf.h: Likewise.
67267         * lib/unistdio/u-printf-args.c: Likewise.
67268         * lib/unistdio/u-printf-args.h: Likewise.
67269         * lib/unistdio/u-printf-parse.h: Likewise.
67270         * lib/unistdio/u-snprintf.h: Likewise.
67271         * lib/unistdio/u-sprintf.h: Likewise.
67272         * lib/unistdio/u-vasprintf.h: Likewise.
67273         * lib/unistdio/u-vsnprintf.h: Likewise.
67274         * lib/unistdio/u-vsprintf.h: Likewise.
67275         * lib/unistdio/u16-asnprintf.c: Likewise.
67276         * lib/unistdio/u16-asprintf.c: Likewise.
67277         * lib/unistdio/u16-printf-parse.c: Likewise.
67278         * lib/unistdio/u16-snprintf.c: Likewise.
67279         * lib/unistdio/u16-sprintf.c: Likewise.
67280         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67281         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67282         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67283         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67284         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67285         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67286         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67287         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67288         * lib/unistdio/u16-vasnprintf.c: Likewise.
67289         * lib/unistdio/u16-vasprintf.c: Likewise.
67290         * lib/unistdio/u16-vsnprintf.c: Likewise.
67291         * lib/unistdio/u16-vsprintf.c: Likewise.
67292         * lib/unistdio/u32-asnprintf.c: Likewise.
67293         * lib/unistdio/u32-asprintf.c: Likewise.
67294         * lib/unistdio/u32-printf-parse.c: Likewise.
67295         * lib/unistdio/u32-snprintf.c: Likewise.
67296         * lib/unistdio/u32-sprintf.c: Likewise.
67297         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67298         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67299         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67300         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67301         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67302         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67303         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67304         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67305         * lib/unistdio/u32-vasnprintf.c: Likewise.
67306         * lib/unistdio/u32-vasprintf.c: Likewise.
67307         * lib/unistdio/u32-vsnprintf.c: Likewise.
67308         * lib/unistdio/u32-vsprintf.c: Likewise.
67309         * lib/unistdio/u8-asnprintf.c: Likewise.
67310         * lib/unistdio/u8-asprintf.c: Likewise.
67311         * lib/unistdio/u8-printf-parse.c: Likewise.
67312         * lib/unistdio/u8-snprintf.c: Likewise.
67313         * lib/unistdio/u8-sprintf.c: Likewise.
67314         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67315         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67316         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67317         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67318         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67319         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67320         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67321         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67322         * lib/unistdio/u8-vasnprintf.c: Likewise.
67323         * lib/unistdio/u8-vasprintf.c: Likewise.
67324         * lib/unistdio/u8-vsnprintf.c: Likewise.
67325         * lib/unistdio/u8-vsprintf.c: Likewise.
67326         * lib/unistdio/ulc-asnprintf.c: Likewise.
67327         * lib/unistdio/ulc-asprintf.c: Likewise.
67328         * lib/unistdio/ulc-printf-parse.c: Likewise.
67329         * lib/unistdio/ulc-snprintf.c: Likewise.
67330         * lib/unistdio/ulc-sprintf.c: Likewise.
67331         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67332         * lib/unistdio/ulc-vasprintf.c: Likewise.
67333         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67334         * lib/unistdio/ulc-vsprintf.c: Likewise.
67335         * lib/unistr.h: Likewise.
67336         * lib/unistr/u-cpy-alloc.h: Likewise.
67337         * lib/unistr/u-cpy.h: Likewise.
67338         * lib/unistr/u-endswith.h: Likewise.
67339         * lib/unistr/u-move.h: Likewise.
67340         * lib/unistr/u-set.h: Likewise.
67341         * lib/unistr/u-startswith.h: Likewise.
67342         * lib/unistr/u-stpcpy.h: Likewise.
67343         * lib/unistr/u-stpncpy.h: Likewise.
67344         * lib/unistr/u-strcat.h: Likewise.
67345         * lib/unistr/u-strcpy.h: Likewise.
67346         * lib/unistr/u-strcspn.h: Likewise.
67347         * lib/unistr/u-strdup.h: Likewise.
67348         * lib/unistr/u-strlen.h: Likewise.
67349         * lib/unistr/u-strncat.h: Likewise.
67350         * lib/unistr/u-strncpy.h: Likewise.
67351         * lib/unistr/u-strnlen.h: Likewise.
67352         * lib/unistr/u-strpbrk.h: Likewise.
67353         * lib/unistr/u-strspn.h: Likewise.
67354         * lib/unistr/u-strstr.h: Likewise.
67355         * lib/unistr/u-strtok.h: Likewise.
67356         * lib/unistr/u16-check.c: Likewise.
67357         * lib/unistr/u16-chr.c: Likewise.
67358         * lib/unistr/u16-cmp.c: Likewise.
67359         * lib/unistr/u16-cpy-alloc.c: Likewise.
67360         * lib/unistr/u16-cpy.c: Likewise.
67361         * lib/unistr/u16-endswith.c: Likewise.
67362         * lib/unistr/u16-mblen.c: Likewise.
67363         * lib/unistr/u16-mbsnlen.c: Likewise.
67364         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67365         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67366         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67367         * lib/unistr/u16-mbtouc.c: Likewise.
67368         * lib/unistr/u16-mbtoucr.c: Likewise.
67369         * lib/unistr/u16-move.c: Likewise.
67370         * lib/unistr/u16-next.c: Likewise.
67371         * lib/unistr/u16-prev.c: Likewise.
67372         * lib/unistr/u16-set.c: Likewise.
67373         * lib/unistr/u16-startswith.c: Likewise.
67374         * lib/unistr/u16-stpcpy.c: Likewise.
67375         * lib/unistr/u16-stpncpy.c: Likewise.
67376         * lib/unistr/u16-strcat.c: Likewise.
67377         * lib/unistr/u16-strchr.c: Likewise.
67378         * lib/unistr/u16-strcmp.c: Likewise.
67379         * lib/unistr/u16-strcpy.c: Likewise.
67380         * lib/unistr/u16-strcspn.c: Likewise.
67381         * lib/unistr/u16-strdup.c: Likewise.
67382         * lib/unistr/u16-strlen.c: Likewise.
67383         * lib/unistr/u16-strmblen.c: Likewise.
67384         * lib/unistr/u16-strmbtouc.c: Likewise.
67385         * lib/unistr/u16-strncat.c: Likewise.
67386         * lib/unistr/u16-strncmp.c: Likewise.
67387         * lib/unistr/u16-strncpy.c: Likewise.
67388         * lib/unistr/u16-strnlen.c: Likewise.
67389         * lib/unistr/u16-strpbrk.c: Likewise.
67390         * lib/unistr/u16-strrchr.c: Likewise.
67391         * lib/unistr/u16-strspn.c: Likewise.
67392         * lib/unistr/u16-strstr.c: Likewise.
67393         * lib/unistr/u16-strtok.c: Likewise.
67394         * lib/unistr/u16-to-u32.c: Likewise.
67395         * lib/unistr/u16-to-u8.c: Likewise.
67396         * lib/unistr/u16-uctomb-aux.c: Likewise.
67397         * lib/unistr/u16-uctomb.c: Likewise.
67398         * lib/unistr/u32-check.c: Likewise.
67399         * lib/unistr/u32-chr.c: Likewise.
67400         * lib/unistr/u32-cmp.c: Likewise.
67401         * lib/unistr/u32-cpy-alloc.c: Likewise.
67402         * lib/unistr/u32-cpy.c: Likewise.
67403         * lib/unistr/u32-endswith.c: Likewise.
67404         * lib/unistr/u32-mblen.c: Likewise.
67405         * lib/unistr/u32-mbsnlen.c: Likewise.
67406         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67407         * lib/unistr/u32-mbtouc.c: Likewise.
67408         * lib/unistr/u32-mbtoucr.c: Likewise.
67409         * lib/unistr/u32-move.c: Likewise.
67410         * lib/unistr/u32-next.c: Likewise.
67411         * lib/unistr/u32-prev.c: Likewise.
67412         * lib/unistr/u32-set.c: Likewise.
67413         * lib/unistr/u32-startswith.c: Likewise.
67414         * lib/unistr/u32-stpcpy.c: Likewise.
67415         * lib/unistr/u32-stpncpy.c: Likewise.
67416         * lib/unistr/u32-strcat.c: Likewise.
67417         * lib/unistr/u32-strchr.c: Likewise.
67418         * lib/unistr/u32-strcmp.c: Likewise.
67419         * lib/unistr/u32-strcpy.c: Likewise.
67420         * lib/unistr/u32-strcspn.c: Likewise.
67421         * lib/unistr/u32-strdup.c: Likewise.
67422         * lib/unistr/u32-strlen.c: Likewise.
67423         * lib/unistr/u32-strmblen.c: Likewise.
67424         * lib/unistr/u32-strmbtouc.c: Likewise.
67425         * lib/unistr/u32-strncat.c: Likewise.
67426         * lib/unistr/u32-strncmp.c: Likewise.
67427         * lib/unistr/u32-strncpy.c: Likewise.
67428         * lib/unistr/u32-strnlen.c: Likewise.
67429         * lib/unistr/u32-strpbrk.c: Likewise.
67430         * lib/unistr/u32-strrchr.c: Likewise.
67431         * lib/unistr/u32-strspn.c: Likewise.
67432         * lib/unistr/u32-strstr.c: Likewise.
67433         * lib/unistr/u32-strtok.c: Likewise.
67434         * lib/unistr/u32-to-u16.c: Likewise.
67435         * lib/unistr/u32-to-u8.c: Likewise.
67436         * lib/unistr/u32-uctomb.c: Likewise.
67437         * lib/unistr/u8-check.c: Likewise.
67438         * lib/unistr/u8-chr.c: Likewise.
67439         * lib/unistr/u8-cmp.c: Likewise.
67440         * lib/unistr/u8-cpy-alloc.c: Likewise.
67441         * lib/unistr/u8-cpy.c: Likewise.
67442         * lib/unistr/u8-endswith.c: Likewise.
67443         * lib/unistr/u8-mblen.c: Likewise.
67444         * lib/unistr/u8-mbsnlen.c: Likewise.
67445         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67446         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67447         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67448         * lib/unistr/u8-mbtouc.c: Likewise.
67449         * lib/unistr/u8-mbtoucr.c: Likewise.
67450         * lib/unistr/u8-move.c: Likewise.
67451         * lib/unistr/u8-next.c: Likewise.
67452         * lib/unistr/u8-prev.c: Likewise.
67453         * lib/unistr/u8-set.c: Likewise.
67454         * lib/unistr/u8-startswith.c: Likewise.
67455         * lib/unistr/u8-stpcpy.c: Likewise.
67456         * lib/unistr/u8-stpncpy.c: Likewise.
67457         * lib/unistr/u8-strcat.c: Likewise.
67458         * lib/unistr/u8-strchr.c: Likewise.
67459         * lib/unistr/u8-strcmp.c: Likewise.
67460         * lib/unistr/u8-strcpy.c: Likewise.
67461         * lib/unistr/u8-strcspn.c: Likewise.
67462         * lib/unistr/u8-strdup.c: Likewise.
67463         * lib/unistr/u8-strlen.c: Likewise.
67464         * lib/unistr/u8-strmblen.c: Likewise.
67465         * lib/unistr/u8-strmbtouc.c: Likewise.
67466         * lib/unistr/u8-strncat.c: Likewise.
67467         * lib/unistr/u8-strncmp.c: Likewise.
67468         * lib/unistr/u8-strncpy.c: Likewise.
67469         * lib/unistr/u8-strnlen.c: Likewise.
67470         * lib/unistr/u8-strpbrk.c: Likewise.
67471         * lib/unistr/u8-strrchr.c: Likewise.
67472         * lib/unistr/u8-strspn.c: Likewise.
67473         * lib/unistr/u8-strstr.c: Likewise.
67474         * lib/unistr/u8-strtok.c: Likewise.
67475         * lib/unistr/u8-to-u16.c: Likewise.
67476         * lib/unistr/u8-to-u32.c: Likewise.
67477         * lib/unistr/u8-uctomb-aux.c: Likewise.
67478         * lib/unistr/u8-uctomb.c: Likewise.
67479         * lib/unitypes.h: Likewise.
67480         * lib/uniwidth.h: Likewise.
67481         * lib/uniwidth/cjk.h: Likewise.
67482         * lib/uniwidth/u16-strwidth.c: Likewise.
67483         * lib/uniwidth/u16-width.c: Likewise.
67484         * lib/uniwidth/u32-strwidth.c: Likewise.
67485         * lib/uniwidth/u32-width.c: Likewise.
67486         * lib/uniwidth/u8-strwidth.c: Likewise.
67487         * lib/uniwidth/u8-width.c: Likewise.
67488         * lib/uniwidth/width.c: Likewise.
67489
67490 2007-10-07  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67493         The file is still under LGPL (see modules/inttypes).
67494
67495 2007-10-06  Bruno Haible  <bruno@clisp.org>
67496
67497         * modules/trunc (Dependencies): Add 'extensions'.
67498         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67499         Reported by Ben Pfaff <blp@gnu.org>.
67500
67501 2007-10-06  Bruno Haible  <bruno@clisp.org>
67502
67503         * modules/freopen-tests: New file.
67504         * tests/test-freopen.c: New file.
67505
67506         * modules/fopen-tests: New file.
67507         * tests/test-fopen.c: New file.
67508
67509         * modules/fopen: New file.
67510         * lib/fopen.c: New file.
67511         * m4/fopen.m4: New file.
67512         * modules/freopen: New file.
67513         * lib/freopen.c: New file.
67514         * m4/freopen.m4: New file.
67515         * lib/stdio.in.h (fopen, freopen): New declarations.
67516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67517         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67518         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67519         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67520         * doc/functions/fopen.texi: Mention the 'fopen' module.
67521         * doc/functions/freopen.texi: Mention the 'freopen' module.
67522
67523 2007-10-06  Bruno Haible  <bruno@clisp.org>
67524
67525         * modules/open-tests: New file.
67526         * tests/test-open.c: New file.
67527
67528         * modules/open: New file.
67529         * lib/open.c: New file.
67530         * m4/open.m4: New file.
67531         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67532         lib/open.c does.
67533         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67534         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67535         macros.
67536         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67537         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67538         REPLACE_OPEN.
67539         * doc/functions/open.texi: Mention the 'open' module.
67540
67541 2007-10-04  Bruno Haible  <bruno@clisp.org>
67542
67543         * modules/ceill-tests: New file.
67544         * tests/test-ceill.c: New file.
67545
67546         * modules/ceill: New file.
67547         * lib/ceill.c: Replace entire file.
67548         * m4/ceill.m4: New file.
67549         * lib/math.in.h (ceill): Replace declaration.
67550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67551         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67552         * doc/functions/ceill.texi: Mention the 'ceill' module.
67553         * modules/mathl (Files): Remove lib/ceill.c.
67554         (Depends-on): Add ceill.
67555
67556 2007-10-04  Bruno Haible  <bruno@clisp.org>
67557
67558         * modules/ceilf-tests: New file.
67559         * tests/test-ceilf.c: New file.
67560
67561         * modules/ceilf: New file.
67562         * lib/ceil.c: New file.
67563         * lib/ceilf.c: New file.
67564         * m4/ceilf.m4: New file.
67565         * lib/math.in.h (ceilf): New declaration.
67566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67567         HAVE_DECL_CEILF.
67568         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67569         HAVE_DECL_CEILF.
67570         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67571
67572 2007-10-04  Bruno Haible  <bruno@clisp.org>
67573
67574         * modules/floorl-tests: New file.
67575         * tests/test-floorl.c: New file.
67576
67577         * modules/floorl: New file.
67578         * lib/floorl.c: Replace entire file.
67579         * m4/floorl.m4: New file.
67580         * lib/math.in.h (floorl): Replace declaration.
67581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67582         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67583         * doc/functions/floorl.texi: Mention the 'floorl' module.
67584         * modules/mathl (Files): Remove lib/floorl.c.
67585         (Depends-on): Add floorl.
67586
67587 2007-10-04  Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/floorf-tests: New file.
67590         * tests/test-floorf.c: New file.
67591
67592         * modules/floorf: New file.
67593         * lib/floor.c: New file.
67594         * lib/floorf.c: New file.
67595         * m4/floorf.m4: New file.
67596         * lib/math.in.h (floorf): New declaration.
67597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67598         HAVE_DECL_FLOORF.
67599         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67600         HAVE_DECL_FLOORF.
67601         * doc/functions/floorf.texi: Mention the 'floorf' module.
67602
67603 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67604             Bruno Haible  <bruno@clisp.org>
67605
67606         Advertise for the Git server instead of the CVS server.
67607         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67608         repository instead of the CVS one.
67609         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67610         about all VCS systems generically.
67611         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67612
67613 2007-10-04  Bruno Haible  <bruno@clisp.org>
67614
67615         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67616         means.
67617         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67618
67619 2007-10-04  Bruno Haible  <bruno@clisp.org>
67620
67621         * modules/truncl-tests: New file.
67622         * tests/test-truncl.c: New file.
67623
67624         * modules/truncl: New file.
67625         * lib/truncl.c: New file.
67626         * m4/truncl.m4: New file.
67627         * lib/math.in.h (truncl): New declaration.
67628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67629         HAVE_DECL_TRUNCL.
67630         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67631         HAVE_DECL_TRUNCL.
67632         * doc/functions/truncl.texi: Mention the 'truncl' module.
67633
67634 2007-10-04  Bruno Haible  <bruno@clisp.org>
67635
67636         * modules/truncf-tests: New file.
67637         * tests/test-truncf.c: New file.
67638
67639         * modules/truncf: New file.
67640         * lib/trunc.c: Make paramerizable through USE_* macros.
67641         * lib/truncf.c: New file.
67642         * m4/truncf.m4: New file.
67643         * lib/math.in.h (truncf): New declaration.
67644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67645         HAVE_DECL_TRUNCF.
67646         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67647         HAVE_DECL_TRUNCF.
67648         * doc/functions/truncf.texi: Mention the 'truncf' module.
67649
67650 2007-10-03  Bruno Haible  <bruno@clisp.org>
67651
67652         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67653         augmentation also for tests modules.
67654         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67655         * modules/atexit-tests (Makefile.am): Likewise.
67656         * modules/binary-io-tests (Makefile.am): Likewise.
67657         * modules/c-strcase-tests (Makefile.am): Likewise.
67658         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67659         * modules/canonicalize-tests (Makefile.am): Likewise.
67660         * modules/closein-tests (Makefile.am): Likewise.
67661         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67662         * modules/freadahead-tests (Makefile.am): Likewise.
67663         * modules/fseek-tests (Makefile.am): Likewise.
67664         * modules/fseeko-tests (Makefile.am): Likewise.
67665         * modules/ftell-tests (Makefile.am): Likewise.
67666         * modules/ftello-tests (Makefile.am): Likewise.
67667         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67668         * modules/isnanl-tests (Makefile.am): Likewise.
67669         * modules/lseek-tests (Makefile.am): Likewise.
67670         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67671         * modules/mbscasestr-tests (Makefile.am): Likewise.
67672         * modules/mbschr-tests (Makefile.am): Likewise.
67673         * modules/mbscspn-tests (Makefile.am): Likewise.
67674         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67675         * modules/mbspbrk-tests (Makefile.am): Likewise.
67676         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67677         * modules/mbsrchr-tests (Makefile.am): Likewise.
67678         * modules/mbsspn-tests (Makefile.am): Likewise.
67679         * modules/mbsstr-tests (Makefile.am): Likewise.
67680         * modules/printf-posix-tests (Makefile.am): Likewise.
67681         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67682         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67683         * modules/tsearch-tests (Makefile.am): Likewise.
67684         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67685         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67686         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67687         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67688         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67689         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67690         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67691         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67692         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67693         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67694         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67695         * modules/xstrtol-tests (Makefile.am): Likewise.
67696         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67697         * modules/yesno-tests (Makefile.am): Likewise.
67698
67699 2007-10-03  Bruno Haible  <bruno@clisp.org>
67700
67701         * modules/trunc-tests: New file.
67702         * tests/test-trunc.c: New file.
67703
67704         * modules/trunc: New file.
67705         * lib/trunc.c: New file.
67706         * m4/trunc.m4: New file.
67707         * lib/math.in.h (trunc): New declaration.
67708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67709         HAVE_DECL_TRUNC.
67710         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67711         HAVE_DECL_TRUNC.
67712         * doc/functions/trunc.texi: Mention the 'trunc' module.
67713
67714 2007-10-03  Bruno Haible  <bruno@clisp.org>
67715
67716         * tests/test-fpending.c: New file, mostly copied
67717         from coreutils/lib/t-fpending.c.
67718         * modules/fpending-tests: New file.
67719
67720 2007-10-03  Bruno Haible  <bruno@clisp.org>
67721
67722         Port the stdio extensions to QNX (untested).
67723         * lib/fseterr.c (fseterr): Add support for QNX.
67724         * lib/fbufmode.c (fbufmode): Likewise.
67725         * lib/freadable.c (freadable): Likewise.
67726         * lib/fwritable.c (fwritable): Likewise.
67727         * lib/freading.c (freading): Likewise.
67728         * lib/fwriting.c (fwriting): Likewise.
67729         * lib/freadahead.c (freadahed): Likewise.
67730         * lib/fpurge.c (fpurge): Likewise.
67731         * lib/fseeko.c (rpl_fseeko): Likewise.
67732
67733 2007-10-03  Bruno Haible  <bruno@clisp.org>
67734             Jim Meyering  <jim@meyering.net>
67735             Eric Blake  <ebb9@byu.net>
67736
67737         * doc/relocatable.texi: Use @command instead of @program.
67738
67739 2007-10-02  Jim Meyering  <jim@meyering.net>
67740
67741         Perform one more "_.h" -> ".in.h" substitution.
67742         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67743         instead of unistd_.h here, too.
67744
67745 2007-10-01  Bruno Haible  <bruno@clisp.org>
67746
67747         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67748         Needed for the alloca-opt module.
67749
67750 2007-09-30  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67753         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67754         alloca_.h.
67755         * lib/argz.in.h: Renamed from lib/argz_.h.
67756         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67757         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67758         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67759         byteswap_.h.
67760         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67761         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67762         dirent_.h.
67763         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67764         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67765         fcntl_.h.
67766         * lib/float.in.h: Renamed from lib/float_.h.
67767         * modules/float (Files, Makefile.am): Use float.in.h instead of
67768         float_.h.
67769         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67770         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67771         fnmatch_.h.
67772         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67773         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67774         getopt_.h.
67775         * lib/glob.in.h: Renamed from lib/glob_.h.
67776         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67777         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67778         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67779         iconv_.h.
67780         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67781         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67782         inttypes_.h.
67783         * lib/locale.in.h: Renamed from lib/locale_.h.
67784         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67785         locale_.h.
67786         * lib/math.in.h: Renamed from lib/math_.h.
67787         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67788         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67789         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67790         of netinet_in_.h. Add dependency.
67791         * lib/poll.in.h: Renamed from lib/poll_.h.
67792         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67793         * lib/search.in.h: Renamed from lib/search_.h.
67794         * modules/search (Files, Makefile.am): Use search.in.h instead of
67795         search_.h.
67796         * lib/signal.in.h: Renamed from lib/signal_.h.
67797         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67798         _signal.h.
67799         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67800         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67801         stdbool_.h.
67802         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67803         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67804         stdint_.h.
67805         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67806         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67807         stdio_.h.
67808         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67809         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67810         stdlib_.h.
67811         * lib/string.in.h: Renamed from lib/string_.h.
67812         * modules/string (Files, Makefile.am): Use string.in.h instead of
67813         string_.h.
67814         * doc/gnulib-tool.texi (Initial import): Update.
67815         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67816         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67817         of sys_select_.h. Add dependency.
67818         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67819         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67820         of sys_socket_.h.
67821         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67822         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67823         sys_stat_.h.
67824         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67825         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67826         sys_time_.h.
67827         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67828         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67829         sysexits_.h.
67830         * lib/time.in.h: Renamed from lib/time_.h.
67831         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67832         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67833         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67834         unistd_.h.
67835         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67836         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67837         wchar_.h.
67838         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67839         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67840         wctype_.h.
67841         * build-aux/bootstrap (slurp): Update.
67842         * lib/.cppi-disable: Update.
67843
67844 2007-09-30  Bruno Haible  <bruno@clisp.org>
67845
67846         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67847         Needed on BeOS.
67848
67849 2007-09-30  Bruno Haible  <bruno@clisp.org>
67850
67851         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67852
67853 2007-09-29  Bruno Haible  <bruno@clisp.org>
67854
67855         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67856
67857 2007-09-29  Bruno Haible  <bruno@clisp.org>
67858
67859         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67860         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67861         * build-aux/install-reloc: Compile also areadlink.c.
67862         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67863
67864 2007-09-29  Bruno Haible  <bruno@clisp.org>
67865
67866         * gnulib-tool (func_emit_initmacro_done): Indentation.
67867
67868 2007-09-29  Bruno Haible  <bruno@clisp.org>
67869
67870         * README: Add CVS checkout update instructions.
67871         Info from Bob Proulx <bob@proulx.com>.
67872
67873 2007-09-28  Eric Blake  <ebb9@byu.net>
67874
67875         Provide move-if-change.
67876         * build-aux/move-if-change: New file, based on best practice
67877         rather than any canonical upstream location.
67878
67879 2007-09-28  Jim Meyering  <jim@meyering.net>
67880
67881         Fix canonicalize loop-detection corner case.
67882         Do not attempt to stat the symlink values stored via seen_triple.
67883         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67884         on linux-2.6.18, (but not 2.6.22).
67885         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67886         triple_compare.  The former compares dev,ino,filename, while the latter
67887         would actually stat dirname(filename) when dev and ino were equal.
67888         * lib/hash-triple.c: Install <string.h>.
67889         (STREQ): Define.
67890         (triple_compare_ino_str): New function.
67891         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67892
67893 2007-09-28  Eric Blake  <ebb9@byu.net>
67894
67895         Enforce that AC_REPLACE_FUNCS files exist.
67896         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67897         override check for typos.
67898
67899         Fix test-closein on Solaris 10.
67900         * tests/test-closein.c (main): Don't assume stdin can be inherited
67901         closed on all systems.
67902         * tests/test-closein.sh: Likewise.
67903         Reported by Piotr Tarnowski.
67904
67905 2007-09-28  Jim Meyering  <jim@meyering.net>
67906
67907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67908
67909 2007-09-27  Jim Meyering  <jim@meyering.net>
67910
67911         canonicalize: Avoid a false-positive cycle failure.
67912         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67913         Sort.  Remove cycle-check.
67914         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67915         not cycle-check.h.
67916         (seen_triple): New function.
67917         (canonicalize_filename_mode): Use it instead of cycle-check.
67918         * tests/test-canonicalize.c: Add a test for this bug.
67919         * tests/test-canonicalize.sh: Set up and run the test.
67920
67921         New module, file-set, from coreutils.
67922         * modules/file-set: Define it.
67923         * lib/file-set.c, lib/file-set.h: Implement.
67924
67925         New module, hash-triple, from coreutils.
67926         * modules/hash-triple: Define it.
67927         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67928
67929 2007-09-25  Eric Blake  <ebb9@byu.net>
67930
67931         Fix strerror on Interix.
67932         * lib/string_.h (strerror): Declare replacement.
67933         * doc/functions/strerror.texi (strerror): Document the Interix
67934         shortcoming.
67935         * modules/string (Makefile.am): Support new hooks.
67936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67937         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67938         gl_FUNC_STRERROR_SEPARATE.
67939         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67940         * lib/strerror.c (rpl_strerror): Provide replacement.
67941         * modules/strerror (Depends-on): Add string.
67942         (configure.ac): Detect use of module.
67943         * tests/test-strerror.c: New file.
67944         * modules/strerror-tests: New test module.
67945         * modules/argp (Depends-on): Add strerror.
67946         * modules/error (Depends-on): Likewise.
67947         Reported by Martin Koeppe.
67948
67949 2007-09-24  Bruno Haible  <bruno@clisp.org>
67950
67951         * README: Update git instructions.
67952
67953 2007-09-24  Eric Blake  <ebb9@byu.net>
67954
67955         Revert fpending breakage from 2007-09-08.
67956         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67957         __fpending.c.
67958
67959 2007-09-24  Jim Meyering  <jim@meyering.net>
67960
67961         filenamecat.c: Add a test.
67962         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67963         showing how the function works when DIR is the empty string.
67964
67965 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67966
67967         * tests/test-canonicalize.sh: Turn on executable bit.
67968
67969 2007-09-19  Eric Blake  <ebb9@byu.net>
67970
67971         * README: Update CVS instructions.
67972
67973 2007-09-18  Bruno Haible  <bruno@clisp.org>
67974
67975         * modules/areadlink: New file.
67976         * lib/areadlink.h (areadlink): New declaration.
67977         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67978
67979 2007-09-17  Jim Meyering  <jim@meyering.net>
67980
67981         * lib/savewd.c (ESTALE) [!defined]: Define.
67982         Reported to be required on Interix by Martin Koeppe.
67983
67984 2007-09-17  Bruno Haible  <bruno@clisp.org>
67985
67986         * gnulib-tool (func_version): Use $version.
67987
67988 2007-09-16  Bruno Haible  <bruno@clisp.org>
67989
67990         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67991         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67992         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67993         Reported by Greg Schafer <gschafer@zip.com.au>.
67994
67995 2007-09-15  Bruno Haible  <bruno@clisp.org>
67996
67997         * gnulib-tool (sed): Try a little harder to make bash understand the
67998         alias.
67999         Reported by Bruce Korb <bruce.korb@gmail.com>.
68000
68001 2007-09-13  Eric Blake  <ebb9@byu.net>
68002
68003         * ChangeLog: Remove conflict markers.
68004
68005 2007-09-13  Simon Josefsson  <simon@josefsson.org>
68006
68007         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
68008         Reported by Bruno Haible <bruno@clisp.org>.
68009
68010 2007-09-12  Bruno Haible  <bruno@clisp.org>
68011
68012         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
68013         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
68014         is not defined.
68015
68016 2007-09-12  Eric Blake  <ebb9@byu.net>
68017
68018         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
68019         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
68020         Autoconf definition.
68021         * modules/euidaccess (Depends-on): Add extensions, for
68022         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
68023         * modules/fnmatch (Depends-on): Likewise.
68024         * modules/getaddrinfo (Depends-on): Likewise.
68025         * modules/getdelim (Depends-on): Likewise.
68026         * modules/getline (Depends-on): Likewise.
68027         * modules/getsubopt (Depends-on): Likewise.
68028         * modules/gettext (Depends-on): Likewise.
68029         * modules/group-member (Depends-on): Likewise.
68030         * modules/mbchar (Depends-on): Likewise.
68031         * modules/memmem (Depends-on): Likewise.
68032         * modules/mempcpy (Depends-on): Likewise.
68033         * modules/memrchr (Depends-on): Likewise.
68034         * modules/pagealign_alloc (Depends-on): Likewise.
68035         * modules/readutmp (Depends-on): Likewise.
68036         * modules/stpcpy (Depends-on): Likewise.
68037         * modules/stpncpy (Depends-on): Likewise.
68038         * modules/strchrnul (Depends-on): Likewise.
68039         * modules/strndup (Depends-on): Likewise.
68040         * modules/strsep (Depends-on): Likewise.
68041         * modules/strverscmp (Depends-on): Likewise.
68042         * modules/vasprintf (Depends-on): Likewise.
68043         * modules/wcwidth (Depends-on): Likewise.
68044         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
68045         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
68046         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
68047         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
68048         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
68049         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68050         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
68051         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68052         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
68053         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68054         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68055         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68056         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68057         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
68058         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
68059         * m4/readutmp.m4 (gl_READUTMP): Likewise.
68060         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68061         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68062         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68063         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68064         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68066         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68067         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
68068         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
68069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68070         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
68071         so that lock.m4 can be used in gettext without extensions module.
68072
68073 2007-09-11  Bruno Haible  <bruno@clisp.org>
68074
68075         * m4/isc-posix.m4: Remove file.
68076         Suggested by Eric Blake.
68077
68078 2007-09-11  Eric Blake  <ebb9@byu.net>
68079
68080         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68081
68082 2007-09-10  Bruno Haible  <bruno@clisp.org>
68083
68084         * posix-modules: Fix typo in error message.
68085         Reported by Matt <mkraai@beckman.com>.
68086
68087 2007-09-09  Bruno Haible  <bruno@clisp.org>
68088
68089         * doc/functions/getdelim.texi: Update list of platforms lacking the
68090         function.
68091         * doc/functions/getline.texi: Likewise.
68092
68093 2007-09-09  Jim Meyering  <jim@meyering.net>
68094
68095         * lib/hash.c (hash_initialize): Detect calloc failure.
68096         Reported by Bruno Haible.
68097
68098 2007-09-09  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68101         malloc or realloc fails.
68102
68103 2007-09-09  Bruno Haible  <bruno@clisp.org>
68104
68105         * modules/getcwd (Depends-on): Add malloc-posix.
68106         * modules/glob (Depends-on): Likewise.
68107         * modules/putenv (Depends-on): Likewise.
68108         * modules/strdup (Depends-on): Likewise.
68109         * modules/getdelim (Depends-on): Add realloc-posix.
68110         * modules/read-file (Depends-on): Likewise.
68111
68112 2007-09-09  Bruno Haible  <bruno@clisp.org>
68113
68114         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68115         (gl_FUNC_MALLOC_POSIX): Require it.
68116         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68117         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68118         * modules/realloc (Files): Add m4/malloc.m4.
68119         * modules/calloc (Files): Likewise.
68120
68121 2007-09-09  Bruno Haible  <bruno@clisp.org>
68122
68123         * modules/malloc-posix: New file.
68124         * modules/malloc (Depends-on): Add malloc-posix.
68125         * lib/malloc.c: Include errno.h.
68126         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68127         and a POSIX-compatible malloc into a single function. Set ENOMEM
68128         when returning NULL.
68129         * m4/malloc.m4: New file.
68130         * doc/functions/malloc.texi: Mention the malloc-posix module.
68131         * lib/stdlib_.h (malloc): New declaration.
68132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68133         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68134         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68135         and HAVE_MALLOC_POSIX.
68136
68137 2007-09-09  Bruno Haible  <bruno@clisp.org>
68138
68139         * modules/realloc-posix: New file.
68140         * modules/realloc (Depends-on): Add realloc-posix.
68141         * lib/realloc.c: Include errno.h.
68142         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68143         and a POSIX-compatible realloc into a single function. Set ENOMEM
68144         when returning NULL.
68145         * m4/realloc.m4: New file.
68146         * doc/functions/realloc.texi: Mention the realloc-posix module.
68147         * lib/stdlib_.h (realloc): New declaration.
68148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68149         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68150         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68151         and HAVE_REALLOC_POSIX.
68152
68153 2007-09-09  Bruno Haible  <bruno@clisp.org>
68154
68155         * modules/calloc-posix: New file.
68156         * modules/calloc (Depends-on): Add calloc-posix.
68157         * lib/calloc.c: Include errno.h.
68158         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68159         and a POSIX-compatible calloc into a single function. Set ENOMEM
68160         when returning NULL.
68161         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68162         * doc/functions/calloc.texi: Mention the calloc-posix module.
68163         * lib/stdlib_.h (calloc): New declaration.
68164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68165         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68166         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68167         and HAVE_CALLOC_POSIX.
68168
68169 2007-09-09  Bruno Haible  <bruno@clisp.org>
68170
68171         Allow for modules to show an arbitrary notice.
68172         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68173         * gnulib-tool: New option --extract-notice.
68174         (func_usage): Document it.
68175         (sed_extract_prog): Update.
68176         (func_get_notice): New function.
68177         (func_modules_notice): New function.
68178         (func_import, func_create_testdir): Invoke it.
68179         Suggested by Jim Meyering.
68180
68181 2007-09-09  Bruno Haible  <bruno@clisp.org>
68182
68183         * gnulib-tool: New options --verbose, --quiet.
68184         (func_usage): Document them.
68185         (verbose): New variable.
68186         (func_execute_command): New function.
68187         (func_import): Don't show the module list and the file list if
68188         $verbose < 0.
68189         (func_create_testdir): Likewise. Use func_execute_command.
68190         (func_create_megatestdir): Use func_execute_command.
68191
68192 2007-09-08  Bruno Haible  <bruno@clisp.org>
68193
68194         * gnulib-tool (func_import): Prefer rsync over wget when available,
68195         for fetching the PO files.
68196
68197 2007-09-08  Bruno Haible  <bruno@clisp.org>
68198
68199         * posix-modules: New file. Portions copied from gnulib-tool.
68200         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68201
68202 2007-09-08  Jim Meyering  <jim@meyering.net>
68203
68204         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68205         * lib/fpending.h: Rename from __fpending.h.
68206         * lib/fpending.c: Rename from __fpending.c.
68207         Include "fpending.h", not "__fpending.h".
68208         * lib/__fpending.h, lib/__fpending.c: Remove files.
68209         * modules/fpending (Files): Reflect new file names.
68210         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68211
68212 2007-09-08  Bruno Haible  <bruno@clisp.org>
68213
68214         * m4/inttypes-h.m4: Remove stub file.
68215
68216 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68217
68218         * doc/headers/stdint.texi: Discuss #include_next issue.
68219
68220 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68221
68222         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68223
68224 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68225
68226         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68227         in variable name.
68228
68229 2007-09-03  Jim Meyering  <jim@meyering.net>
68230
68231         New module: git-version-gen.
68232         * modules/git-version-gen: New file.
68233
68234         Import changes from coreutils for bootstrap script.
68235
68236         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68237
68238         bootstrap: uses rsync to download the .po files
68239         * build-aux/bootstrap (po_download_command_format): New global.
68240         (download_po_files): Use rsync.
68241         (update_po_files): Don't remove .po files after download,
68242         so future rsync runs can take advantage of the copies.
68243
68244         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68245
68246         Solve the unnecessary-.po-file-regeneration problem once and for all.
68247         * build-aux/bootstrap (download_po_files): New function, renamed from
68248         get_translations.  Now, downloads, but doesn't update LINGUAS.
68249         (update_po_files): New function.
68250
68251         bootstrap: Ignore more.
68252         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68253         uniwidth to e.g., lib/.gitignore.
68254         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68255
68256         * build-aux/bootstrap: New setting: vc_ignore.
68257         (insert_sorted_if_absent): Create $file if absent.
68258         Adapt to new, possibly empty, list: $vc_ignore.
68259
68260         bootstrap: generate more ignorable names
68261         * build-aux/bootstrap (slurp): When generating ignorable names,
68262         also map .sin to .sed, .gperf to .c, and .y to .c.
68263
68264 2007-09-03  Jim Meyering  <jim@meyering.net>
68265
68266         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68267         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68268
68269 2007-09-02  Bruno Haible  <bruno@clisp.org>
68270
68271         Fix mis-recognition of 'mcs' on QNX 6.
68272         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68273         output contains the string "Mono".
68274         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68275         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68276
68277 2007-09-01  Bruno Haible  <bruno@clisp.org>
68278
68279         Fix collision between uniwidth/* and linebreak modules.
68280         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68281         u32_width): Remove declarations.
68282         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68283         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68284         streq3, streq2, streq1, streq0): Remove functions.
68285         (STREQ): Remove macro.
68286         (is_cjk_encoding): Remove function.
68287         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68288         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68289         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68290         * NEWS: Document the change.
68291
68292 2007-09-01  Bruno Haible  <bruno@clisp.org>
68293
68294         * lib/streq.h: Add double-inclusion guard.
68295
68296 2007-09-01  Karl Berry  <karl@gnu.org>
68297
68298         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68299
68300 2007-08-28  Jim Meyering  <jim@meyering.net>
68301
68302         Rename mreadlink_with_size to areadlink_with_size.
68303         * NEWS: Document the change.
68304         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68305         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68306         * lib/mreadlink.h: Rename this to...
68307         * lib/areadlink.h: ...this.
68308         * modules/mreadlink-with-size: Rename this to...
68309         * modules/areadlink-with-size: ...this.
68310         * lib/canonicalize.c: Reflect the renaming.
68311         * modules/canonicalize: Likewise.
68312
68313 2007-08-26  Bruno Haible  <bruno@clisp.org>
68314
68315         * gnulib-tool (func_import): When deciding which files to remove,
68316         consider also dangling symbolic links.
68317         Reported by Eric Blake.
68318
68319 2007-08-26  Bruno Haible  <bruno@clisp.org>
68320
68321         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68322
68323 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68324
68325         * lib/readline.c: Don't include getline.h, the prototype is now
68326         found in stdio.h.
68327
68328 2007-08-23  Jim Meyering  <jim@meyering.net>
68329
68330         Getdelim touchup.
68331         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68332         around the funlockfile call, since funlockfile never sets errno.
68333         Don't set errno upon failed realloc.
68334
68335 2007-08-22  Eric Blake  <ebb9@byu.net>
68336
68337         Getline touchups.
68338         * lib/getdelim.c (getdelim): Revert regression that required *n to
68339         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68340         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68341         getdelim, rather than whether implementation is missing.
68342         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68343         * lib/stdio_.h (getline): Also declare if replacement is
68344         required.
68345         * doc/functions/getdelim.texi: New file.
68346         * doc/functions/getline.texi: Likewise.
68347         * doc/gnulib.texi (Function Substitutes): Add new files.
68348         Reported by Bruno Haible.
68349
68350 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68351
68352         * users.txt: Add Guile.
68353
68354 2007-08-22  Eric Blake  <ebb9@byu.net>
68355
68356         * tests/test-getdelim.c (main): Use remove, not unlink.
68357         * tests/test-getline.c (main): Likewise.
68358
68359         Move getline and getdelim into stdio.h, per POSIX 200x.
68360         * modules/getline (Files): Remove getline.h.
68361         (Depends-on): Add stdio.
68362         (configure.ac): Add module indicator.
68363         * modules/getdelim (Files): Remove getdelim.h.
68364         (Depends-on): Add stdio.
68365         (configure.ac): Add module indicator.
68366         * modules/stdio (Makefile.am): Work with new indicators.
68367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68369         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68370         * lib/getdelim.h: Delete.
68371         * lib/getline.h: Delete.
68372         * lib/stdio_.h (getdelim, getline): Declare.
68373         * modules/getdelim-tests: New module.
68374         * modules/getline-tests: Likewise.
68375         * tests/test-getdelim.c: New file.
68376         * tests/test-getline.c: Likewise.
68377         * NEWS: Document the change.
68378         * lib/getline.c: Update choice of header.
68379         * lib/csharpcomp.c: Likewise.
68380         * lib/getpass.c: Likewise.
68381         * lib/javacomp.c: Likewise.
68382         * lib/javaversion.c: Likewise.
68383         * lib/yesno.c: Likewise.
68384         * lib/getdelim.c: Likewise.
68385         (getdelim): Set errno on failure, and avoid memory leak.
68386
68387 2007-08-19  Bruno Haible  <bruno@clisp.org>
68388
68389         * modules/closein (Depends-on): Add freadahead.
68390         * lib/closein.c: Include freadahead.h.
68391         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68392         is zero.
68393
68394 2007-08-19  Bruno Haible  <bruno@clisp.org>
68395
68396         * modules/freadahead-tests: New file.
68397         * tests/test-freadahead.sh: New file.
68398         * tests/test-freadahead.c: New file.
68399
68400         * modules/freadahead: New file.
68401         * lib/freadahead.h: New file.
68402         * lib/freadahead.c: New file.
68403         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68404         fbufmode, fpurge, freadable, fwritable.
68405
68406 2007-08-19  Eric Blake  <ebb9@byu.net>
68407
68408         Test yesno in combination with closein.
68409         * lib/yesno.c (yesno): Document use of stdin.
68410         * modules/yesno-tests (Files): New module.
68411         * tests/test-yesno.c (main): New file.
68412         * tests/test-yesno.sh: Likewise.
68413
68414 2007-08-19  Bruno Haible  <bruno@clisp.org>
68415
68416         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68417         * lib/fseeko.c (rpl_fseeko): Likewise.
68418         * lib/fseterr.c (fseterr): Likewise.
68419
68420 2007-08-19  Bruno Haible  <bruno@clisp.org>
68421
68422         * tests/test-lseek.c (main): Disable a test for BeOS.
68423         * doc/functions/lseek.texi: Document the BeOS bug.
68424
68425 2007-08-19  Bruno Haible  <bruno@clisp.org>
68426             Eric Blake  <ebb9@byu.net>
68427
68428         * lib/lseek.c: Include <sys/stat.h>.
68429         (rpl_lseek): Add workaround code also for Unix platforms.
68430         Needed for BeOS.
68431         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68432         * doc/functions/lseek.texi: Document BeOS definiency.
68433
68434 2007-08-18  Bruno Haible  <bruno@clisp.org>
68435
68436         * modules/fstrcmp-tests: New file.
68437         * tests/test-fstrcmp.c: New file.
68438
68439 2007-08-18  Bruno Haible  <bruno@clisp.org>
68440
68441         * modules/fstrcmp: New file, from GNU gettext with modifications.
68442         * lib/fstrcmp.h: New file, from GNU gettext.
68443         * lib/fstrcmp.c: New file, from GNU gettext.
68444         * MODULES.html.sh (String handling): Add fstrcmp.
68445
68446 2007-08-18  Bruno Haible  <bruno@clisp.org>
68447
68448         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68449         'bool'.
68450         (diag, compareseq): Remove const from the ctxt argument.
68451         (USE_HEURISTIC): Undefine at the end.
68452
68453 2007-08-18  Jim Meyering  <jim@meyering.net>
68454
68455         New file: lib/idcache.h
68456         * NEWS: Mention the addition.
68457         * modules/idcache (Files): Add lib/idcache.h
68458         * lib/idcache.c: Include "idcache.h".
68459         Don't include <sys/types.h>.
68460         Add a FIXME comment.
68461         Move file-scoped "static" declarations to the top.
68462         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68463
68464 2007-08-17  Bruno Haible  <bruno@clisp.org>
68465         and Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         * MODULES.html.sh: Add diffseq.
68468         * modules/diffseq: New file.
68469         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68470         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68471
68472 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         Import changes from coreutils for bootstrap script.
68475
68476         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         * build-aux/bootstrap (slurp): Work even in environments where
68479         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68480         current code does not slurp files whose names start with ".", and
68481         this looks like it might be a troublesome area.
68482
68483         2007-07-11  Jim Meyering  <jim@meyering.net>
68484
68485         If there's a GPL vN copyright comment, require that N == 3.
68486
68487         2007-07-08  Jim Meyering  <jim@meyering.net>
68488
68489         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68490         * build-aux/bootstrap (mam_template): Move definition out of loop.
68491
68492         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68493
68494         * build-aux/bootstrap (symlink_to_dir): Rename function from
68495         symlink_to_gnulib.  Add a directory parameter.  Update all
68496         callers.
68497         (cp_mark_as_generated): Also check for -- and link to -- files in
68498         gl/.
68499
68500         2007-07-08  Jim Meyering  <jim@meyering.net>
68501
68502         Adapt to deeper hierarchy in gnulib.
68503         * build-aux/bootstrap (symlink_to_dir): If the destination
68504         directory doesn't exist, create it. This is required at least for
68505         "lib/uniwidth/cjk.h".
68506
68507         2007-05-15  Jim Meyering  <jim@meyering.net>
68508
68509         * build-aux/bootstrap: Now that generated Makefile.am files
68510         are no longer under version control, they must be created at
68511         bootstrap time.
68512
68513 2007-08-14  Ben Pfaff  <blp@gnu.org>
68514
68515         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68516
68517 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68520         given the changes below.
68521         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68522         even on hosts that have padding bits beyond the supported 64.
68523
68524 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68525
68526         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68527         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68528         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68529         depends on it.
68530         (xstrtol_error): Remove.
68531         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68532         but with a different signature.
68533         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68534         * lib/xstrtol-error.c: Include exitfail.h.
68535         (xstrtol_fatal): New function, with a different signature from the
68536         old xstrtol_error, so that the caller need not worry about passing
68537         in an exit status, or about storage management of the option argument.
68538         (xstrtol_error): Now a static function.  Redo signature to
68539         implement xstrtol_fatal.  Output the correct number of hyphens in
68540         front of the option so that the caller need not worry about
68541         storage management.
68542         (N_): New macro.
68543         (_): Remove; not used now.
68544         * modules/xstrtol: Depend on getopt.
68545         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68546         of old STRTOL_FATAL_ERROR macro.
68547         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68548         of test program.
68549         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68550         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68551
68552 2007-08-08  Eric Blake  <ebb9@byu.net>
68553
68554         * lib/xstrtol-error.c: Add missing include.
68555
68556         Move xstrtol messages into gnulib domain, when --pobase is used.
68557         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68558         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68559         * modules/xstrtol (Files): Distribute new file.
68560         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68561         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68562         * tests/test-xstrtol.c: ...into new file.
68563         * tests/test-xstrtoul.c: Also test xstrtoul.
68564         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68565         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68566         * tests/test-xstrtol.sh: Drive the tests.
68567         * tests/test-xstrtoimax.sh: Likewise.
68568         * tests/test-xstrtoumax.sh: Likewise.
68569         * modules/xstrtol-tests: New module.
68570         * modules/xstrtoimax-tests: Likewise.
68571         * modules/xstrtoumax-tests: Likewise.
68572
68573 2007-08-08  Jim Meyering  <jim@meyering.net>
68574
68575         New function: mfile_name_concat.
68576         * lib/filenamecat.c (mfile_name_concat): New function, just like
68577         file_name_concat, but return NULL upon failure rather than exiting
68578         with a diagnostic.
68579         * lib/filenamecat.h: Declare it.
68580
68581 2007-08-07  Bruno Haible  <bruno@clisp.org>
68582
68583         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68584         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68585         warning from gcc.
68586         Reported by Eric Blake.
68587
68588 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68589
68590         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68591         * modules/crypto/arcfour (License): Likewise.
68592         * modules/crypto/des-tests (License): Likewise.
68593         * modules/crypto/gc-arctwo-tests (License): Likewise.
68594         * modules/crypto/gc-des-tests (License): Likewise.
68595         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68596         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68597         * modules/crypto/gc-md2-tests (License): Likewise.
68598         * modules/crypto/gc-md4-tests (License): Likewise.
68599         * modules/crypto/gc-md5-tests (License): Likewise.
68600         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68601         * modules/crypto/gc-rijndael-tests (License): Likewise.
68602         * modules/crypto/gc-sha1-tests (License): Likewise.
68603         * modules/crypto/gc-tests (License): Likewise.
68604         * modules/crypto/hmac-md5 (License): Likewise.
68605         * modules/crypto/hmac-sha1 (License): Likewise.
68606         * modules/crypto/md2-tests (License): Likewise.
68607         * modules/crypto/md4-tests (License): Likewise.
68608         * modules/crypto/md5 (License): Likewise.
68609         * modules/crypto/rijndael (License): Likewise.
68610         * modules/crypto/sha1 (License): Likewise.
68611         * modules/memxor (License): Likewise.
68612
68613 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68614         and Bruno Haible  <bruno@clisp.org>
68615
68616         * NEWS: Describe interface changes to human, xstrtol.
68617         * lib/human.h: Include <xstrtol.h>.
68618         (human_options): Return enum strtol_error, not int.  Remove
68619         bool arg; take int * instead.
68620         * lib/human.c: Don't include "gettext.h".
68621         (_): Remove; no longer used.
68622         Don't include <xstrtol.h>, since human.h does it.
68623         (human_options): Adjust to abovementioned interface changes.
68624         Do not report error to stderr; that's now the caller's
68625         responsibility.
68626         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68627         interface change.
68628         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68629         Str, Argument_type_string.  All uses changed.  Put " argument"
68630         in diagnostics to make them clearer.  Change wording of suffix
68631         message for clarity.
68632         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68633         Argument_type_string.
68634         (STRTOL_FATAL_WARN): Remove; no longer used.
68635         * modules/human (Depends-on): Remove gettext-h.
68636
68637 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68638
68639         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68640
68641 2007-07-31  Bruno Haible  <bruno@clisp.org>
68642
68643         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68644         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68645         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68646
68647 2007-07-31  Bruno Haible  <bruno@clisp.org>
68648
68649         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68650         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68651
68652 2007-07-30  Bruno Haible  <bruno@clisp.org>
68653
68654         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68655         * modules/c-ctype (License): Likewise.
68656         * modules/c-strcase (License): Likewise.
68657         * modules/check-version (License): Likewise.
68658         * modules/iconv (License): Likewise.
68659         * modules/iconv_open (License): Likewise.
68660         * modules/read-file (License): Likewise.
68661         * modules/striconv (License): Likewise.
68662         * modules/strverscmp (License): Likewise.
68663         * modules/vasprintf (License): Likewise.
68664         * modules/crypto/des (License): Likewise.
68665         * modules/crypto/gc (License): Likewise.
68666         * modules/crypto/gc-arcfour (License): Likewise.
68667         * modules/crypto/gc-arctwo (License): Likewise.
68668         * modules/crypto/gc-des (License): Likewise.
68669         * modules/crypto/gc-hmac-md5 (License): Likewise.
68670         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68671         * modules/crypto/gc-md2 (License): Likewise.
68672         * modules/crypto/gc-md4 (License): Likewise.
68673         * modules/crypto/gc-md5 (License): Likewise.
68674         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68675         * modules/crypto/gc-random (License): Likewise.
68676         * modules/crypto/gc-rijndael (License): Likewise.
68677         * modules/crypto/gc-sha1 (License): Likewise.
68678         * modules/crypto/md2 (License): Likewise.
68679         * modules/crypto/md4 (License): Likewise.
68680
68681 2007-07-30  Jim Meyering  <jim@meyering.net>
68682
68683         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68684         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68685         it has valid stat data.  This bug would cause du not to count the
68686         sizes of inaccessible directories.
68687         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68688         in <http://bugzilla.redhat.com/250077>.
68689
68690 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68691             Bruno Haible  <bruno@clisp.org>
68692
68693         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68694         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68695         #include_next, gives a diagnostic about it, but reports no error in
68696         the exit code.
68697         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68698
68699 2007-07-24  Ben Pfaff  <blp@gnu.org>
68700
68701         Improve name: "count-one-bits" is better than "popcount".
68702         * MODULES.html.sh: Update name.
68703         * lib/popcount.h: Renamed lib/count-one-bits.h.
68704         (popcount): Renamed count_one_bits.
68705         (popcountl): Renamed count_one_bits_l.
68706         (popcountll): Renamed count_one_bits_ll.
68707         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68708         * modules/popcount: Renamed module/count-one-bits.
68709         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68710         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68711
68712 2007-07-23  Ben Pfaff  <blp@gnu.org>
68713
68714         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68715         better code generation, and add U to large constants to avoid
68716         warnings, in non-GCC case.
68717         Suggested by Bruno Haible.
68718
68719 2007-07-23  Ben Pfaff  <blp@gnu.org>
68720
68721         * lib/popcount.h: Use verify_true instead of if...abort.
68722         * modules/popcount: Depend on verify module.
68723         Suggested by Jim Meyering.
68724
68725 2007-07-23  Bruno Haible  <bruno@clisp.org>
68726
68727         * gnulib-tool (func_import): Create a .cvsignore file also when the
68728         directory is not yet in CVS but the toplevel directory is. When
68729         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68730         Reported by Karl Berry.
68731
68732 2007-07-22  Ben Pfaff  <blp@gnu.org>
68733
68734         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68735         case.
68736         Suggested by Eric Blake.
68737
68738 2007-07-22  Ben Pfaff  <blp@gnu.org>
68739
68740         New module: popcount.
68741         * MODULES.html.sh: Add popcount.
68742         * modules/popcount: New file.
68743         * modules/popcount-tests: New file.
68744         * tests/test-popcount.c: New file.
68745         * lib/popcount.h: New file.
68746         * m4/popcount.m4: New file.
68747
68748 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * build-aux/announce-gen: Update to GPLv3.
68751
68752         * build-aux/config.guess: Update from config.
68753
68754 2007-07-21  Bruno Haible  <bruno@clisp.org>
68755
68756         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68757         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68758
68759 2007-07-20  Jim Meyering  <jim@meyering.net>
68760
68761         * check-module: Diagnose a self-dependency.
68762
68763 2007-07-19  Bruno Haible  <bruno@clisp.org>
68764
68765         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68766         empty.
68767         Reported by Eric Blake.
68768
68769 2007-07-18  Bruno Haible  <bruno@clisp.org>
68770
68771         * gnulib-tool: New options --po-base, --po-domain.
68772         (func_usage): Document them.
68773         (pobase, po_domain): New variables.
68774         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68775         DEFAULT_TEXT_DOMAIN.
68776         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68777         (func_import): Consider pobase and po_domain. Create a po/ directory.
68778         (func_create_testdir): Set pobase and po_domain to empty.
68779         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68780         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68781
68782 2007-07-18  Bruno Haible  <bruno@clisp.org>
68783
68784         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68785         EXTRA_DIST augmentation for files in build-aux/.
68786
68787 2007-07-16  Bruno Haible  <bruno@clisp.org>
68788
68789         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68790         * modules/getdelim (License): Likewise.
68791
68792 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68793
68794         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68795         * modules/d-type (License): Likewise.
68796         * modules/extensions (License): Likewise.
68797         * modules/fnmatch (License): Likewise.
68798         * modules/fseeko (License): Likewise.
68799         * modules/getaddrinfo (License): Likewise.
68800         * modules/getline (License): Likewise.
68801         * modules/getlogin_r (License): Likewise.
68802         * modules/getpass (License): Likewise.
68803         * modules/gettimeofday (License): Likewise.
68804         * modules/glob (License): Likewise.
68805         * modules/inet_ntop (License): Likewise.
68806         * modules/malloc (License): Likewise.
68807         * modules/malloca (License): Likewise.
68808         * modules/memmem (License): Likewise.
68809         * modules/mempcpy (License): Likewise.
68810         * modules/memset (License): Likewise.
68811         * modules/minmax (License): Likewise.
68812         * modules/mktime (License): Likewise.
68813         * modules/netinet_in (License): Likewise.
68814         * modules/pathmax (License): Likewise.
68815         * modules/poll (License): Likewise.
68816         * modules/regex (License): Likewise.
68817         * modules/snprintf (License): Likewise.
68818         * modules/stdbool (License): Likewise.
68819         * modules/stdint (License): Likewise.
68820         * modules/stdio (License): Likewise.
68821         * modules/strcase (License): Likewise.
68822         * modules/strcasestr (License): Likewise.
68823         * modules/strdup (License): Likewise.
68824         * modules/string (License): Likewise.
68825         * modules/strndup (License): Likewise.
68826         * modules/strnlen (License): Likewise.
68827         * modules/strpbrk (License): Likewise.
68828         * modules/strptime (License): Likewise.
68829         * modules/strsep (License): Likewise.
68830         * modules/sys_select (License): Likewise.
68831         * modules/sys_socket (License): Likewise.
68832         * modules/sys_stat (License): Likewise.
68833         * modules/sys_time (License): Likewise.
68834         * modules/time (License): Likewise.
68835         * modules/time_r (License): Likewise.
68836         * modules/timegm (License): Likewise.
68837         * modules/unistd (License): Likewise.
68838         * modules/vsnprintf (License): Likewise.
68839         * modules/wctype (License): Likewise.
68840
68841 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68842
68843         * modules/argz (License): LGPLv2+.
68844
68845 2007-07-15  Karl Berry  <karl@gnu.org>
68846
68847         * doc/gnulib.texi: revise node structure per new fdl.texi.
68848
68849 2007-07-14  Bruno Haible  <bruno@clisp.org>
68850
68851         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68852         the output file.
68853         * lib/uniname/uninames.h: Regenerated.
68854
68855 2007-07-14  Karl Berry  <karl@gnu.org>
68856
68857         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68858         omitting sectioning and index commands.
68859
68860 2007-07-13  Bruno Haible  <bruno@clisp.org>
68861
68862         New gnulib-tool option --more-symlinks.
68863         * gnulib-tool (func_usage): Document --more-symlinks.
68864         (do_copyrights): New variable.
68865         Recognize option --more-symlinks.
68866         (func_import): Don't add a copyright notice transform to
68867         sed_transform_lib_file if do_copyrights is empty.
68868
68869 2007-07-13  Bruno Haible  <bruno@clisp.org>
68870
68871         * lib/vasnprintf.c (decimal_point_char): Define also if
68872         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68873         && !NEED_PRINTF_DIRECTIVE_A.
68874         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68875         Gary V. Vaughan <gary@gnu.org>.
68876
68877 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * lib/inttypes_.h: Undo previous change, since it was fixed
68880         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68881
68882 2007-07-13  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68885         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68886
68887 2007-07-13  Jim Meyering  <jim@meyering.net>
68888
68889         df: Don't fail for Tru64's "file-on-file mount".
68890         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68891         so we fall through and use statfs instead.  Details here:
68892         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68893         Reported by Albert Chin.
68894
68895 2007-07-13  Bruno Haible  <bruno@clisp.org>
68896
68897         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68898         * modules/configmake (License): Likewise.
68899         * modules/gettext (License): Likewise.
68900         * modules/gettext-h (License): Likewise.
68901         * modules/include_next (License): Likewise.
68902         * modules/link-warning (License): Likewise.
68903         * modules/localcharset (License): Likewise.
68904         * modules/localename (License): Likewise.
68905         * modules/lock (License): Likewise.
68906         * modules/relocatable-lib-lgpl (License): Likewise.
68907         * modules/size_max (License): Likewise.
68908         * modules/vasnprintf (License): Likewise.
68909         * modules/wchar (License): Likewise.
68910         * modules/xsize (License): Likewise.
68911
68912 2007-07-13  Bruno Haible  <bruno@clisp.org>
68913
68914         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68915         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68916
68917 2007-07-12  Bruno Haible  <bruno@clisp.org>
68918
68919         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68920         in the modules files.
68921
68922 2007-07-11  Karl Berry  <karl@gnu.org>
68923
68924         * MODULES.html.sh (func_module): use
68925          sed -e '\|^'"${includefile}"'$|d'
68926          instead of /.../d, to avoid errors on $includefile's containing /.
68927
68928 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68929
68930         * gnulib-tool (func_import): Avoid duplication of --avoid
68931         statements
68932         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68933         names to `_' in variable names.
68934
68935 2007-07-10  Eric Blake  <ebb9@byu.net>
68936
68937         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68938         * NEWS: Document this change.
68939
68940 2007-07-08  Bruno Haible  <bruno@clisp.org>
68941
68942         Update to Unicode 5.0.
68943         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68944         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68945         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68946         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68947         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68948         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68949         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68950         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68951         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68952         U+10A3F, U+1D242..U+1D244.
68953         (nonspacing_table_ind): Update.
68954         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68955         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68956
68957 2007-07-08  Bruno Haible  <bruno@clisp.org>
68958
68959         Update to Unicode 5.0.
68960         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68961         code transform. Extend the name index field of unicode_name_to_code and
68962         unicode_code_to_name from 16 to 24 bits.
68963         * lib/uniname/uniname.c (unicode_character_name,
68964         unicode_name_character): Add the range 0x12xxx to the code transform.
68965         * lib/uniname/uninames.h: Regenerated.
68966         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68967
68968 2007-07-07  Bruno Haible  <bruno@clisp.org>
68969
68970         * modules/wcwidth-tests: New file.
68971         * tests/test-wcwidth.c: New file.
68972
68973         Work around MacOS X wcwidth() bug.
68974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68975         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68976         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68977         original wcwidth in non-UTF-8 locales.
68978         * modules/wcwidth (Depends-on): Add localcharset, streq,
68979         uniwidth/width.
68980         * doc/functions/wcwidth.texi: Update.
68981
68982 2007-07-07  Bruno Haible  <bruno@clisp.org>
68983
68984         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68985         (wcwidth): New declaration.
68986         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68987         macros.
68988         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68989         here. Prepare for creating <wchar.h> unconditionally.
68990         * modules/wchar (Depends-on): Add link-warning.
68991         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68992         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68993         * lib/wcwidth.h: Remove file.
68994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68995         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68996         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68997         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68998         (Include): Replace wcwidth.h with <wchar.h>.
68999         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
69000         * lib/mbchar.h: Don't include wcwidth.h.
69001         * lib/mbswidth.c: Likewise.
69002         * NEWS: Mention the change.
69003
69004 2007-07-07  Bruno Haible  <bruno@clisp.org>
69005
69006         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
69007         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
69008         definition with an external declaration.
69009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
69010         defined as a function. Remove AC_C_INLINE requirement.
69011         * modules/wcwidth (Files): Add lib/wcwidth.c.
69012         (Makefile.am): Remove redundant statement.
69013
69014 2007-07-07  Bruno Haible  <bruno@clisp.org>
69015
69016         * MODULES.html.sh (Unicode string functions): Add the new modules.
69017
69018         * tests/uniwidth/test-u32-strwidth.c: New file.
69019         * modules/uniwidth/u32-strwidth-tests: New file.
69020
69021         * lib/uniwidth/u32-strwidth.c: New file.
69022         * modules/uniwidth/u32-strwidth: New file.
69023
69024         * tests/uniwidth/test-u16-strwidth.c: New file.
69025         * modules/uniwidth/u16-strwidth-tests: New file.
69026
69027         * lib/uniwidth/u16-strwidth.c: New file.
69028         * modules/uniwidth/u16-strwidth: New file.
69029
69030         * tests/uniwidth/test-u8-strwidth.c: New file.
69031         * modules/uniwidth/u8-strwidth-tests: New file.
69032
69033         * lib/uniwidth/u8-strwidth.c: New file.
69034         * modules/uniwidth/u8-strwidth: New file.
69035
69036         * tests/uniwidth/test-u32-width.c: New file.
69037         * modules/uniwidth/u32-width-tests: New file.
69038
69039         * lib/uniwidth/u32-width.c: New file.
69040         * modules/uniwidth/u32-width: New file.
69041
69042         * tests/uniwidth/test-u16-width.c: New file.
69043         * modules/uniwidth/u16-width-tests: New file.
69044
69045         * lib/uniwidth/u16-width.c: New file.
69046         * modules/uniwidth/u16-width: New file.
69047
69048         * tests/uniwidth/test-u8-width.c: New file.
69049         * modules/uniwidth/u8-width-tests: New file.
69050
69051         * lib/uniwidth/u8-width.c: New file.
69052         * modules/uniwidth/u8-width: New file.
69053
69054         * tests/uniwidth/test-uc_width.c: New file.
69055         * modules/uniwidth/width-tests: New file.
69056
69057         * lib/uniwidth/width.c: New file, from GNU libiconv.
69058         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
69059         * modules/uniwidth/width: New file.
69060
69061         * lib/uniwidth.h: New file, from GNU libiconv.
69062         * modules/uniwidth/base: New file.
69063
69064 2007-07-07  Bruno Haible  <bruno@clisp.org>
69065
69066         * lib/uniname.h: New file, from GNU gettext.
69067         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
69068         * lib/uniname/uninames.h: New file, from GNU gettext.
69069         * lib/uniname/uniname.c: New file, from GNU gettext.
69070         * tests/uniname/test-uninames.sh: New file.
69071         * tests/uniname/test-uninames.c: New file, from GNU gettext.
69072         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
69073         * modules/uniname/base: New file.
69074         * modules/uniname/uniname: New file.
69075         * modules/uniname/uniname-tests: New file.
69076         * MODULES.html.sh (Unicode string functions): Add the new modules.
69077
69078 2007-07-06  Bruno Haible  <bruno@clisp.org>
69079
69080         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69081
69082 2007-07-06  Bruno Haible  <bruno@clisp.org>
69083
69084         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69085         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69086         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69087         include <sys/time.h>.
69088         Reported by Eric Blake.
69089
69090 2007-07-06  Eric Blake  <ebb9@byu.net>
69091
69092         Fix testing canonicalize on cygwin.
69093         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69094         Revert patch from 2007-06-19.
69095         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69096         canonicalize module is also in use.
69097         * tests/test-canonicalize.c: New file.
69098         * tests/test-canonicalize.sh: Likewise.
69099         * modules/canonicalize-tests: Likewise.
69100
69101 2007-07-06  Jim Meyering  <jim@meyering.net>
69102
69103         * lib/getugroups.c (getugroups): Detect getgrent failure.
69104         Adjust comment to reflect reality: this function may return -1.
69105
69106 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69107
69108         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69109         the new TP address.
69110         (usage): Fix typo
69111         (gnulib_mk): New variable.
69112
69113 2007-07-05  Jim Meyering  <jim@meyering.net>
69114
69115         Don't let endgrent clobber errno, no matter how improbable.
69116         * lib/getugroups.c (getugroups): Save and restore errno around
69117         endgrent call.
69118
69119         Close the group DB even when failing with 2^31 or more members.
69120         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69121
69122 2007-07-04  Jim Meyering  <jim@meyering.net>
69123
69124         * lib/getugroups.h: New file.
69125         * lib/getugroups.c: Include "getugroups.h".
69126         Remove uses of "register" keyword.
69127         Move local variable, "cp", down into scope where used.
69128         Give "username" parameter the "const" attribute.
69129         * modules/getugroups (Files): Add lib/getugroups.h
69130
69131 2007-07-04  Karl Berry  <karl@gnu.org>
69132
69133         * MODULES.html.sh (func_all_modules): Complete rename of
69134         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69135
69136 2007-07-02  Bruno Haible  <bruno@clisp.org>
69137
69138         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69139         mode, when inttypes.h comes from gnulib.
69140         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69141
69142 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69143
69144         * NEWS: Mention lgpl module name change.
69145
69146         * modules/lgpl-2.1: Renamed from lgpl.
69147
69148         * NEWS: Mention gpl module name change.
69149
69150         * modules/gpl-3.0: New file, based on gpl-2.0.
69151
69152         * modules/gpl-2.0: Renamed from gpl.
69153
69154         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69155         doc/gpl-2.0.texi.
69156
69157 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69160         #define __STDC_LIMIT_MACROS temporarily while including
69161         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69162         Problem reported by Joel E. Denny in
69163         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69164
69165 2007-07-01  Bruno Haible  <bruno@clisp.org>
69166
69167         * lib/unistdio.h: New file.
69168         * lib/unistdio/u-asnprintf.h: New file.
69169         * lib/unistdio/u-asprintf.h: New file.
69170         * lib/unistdio/u-printf-args.c: New file.
69171         * lib/unistdio/u-printf-args.h: New file.
69172         * lib/unistdio/u-printf-parse.h: New file.
69173         * lib/unistdio/u-snprintf.h: New file.
69174         * lib/unistdio/u-sprintf.h: New file.
69175         * lib/unistdio/u-vasprintf.h: New file.
69176         * lib/unistdio/u-vsnprintf.h: New file.
69177         * lib/unistdio/u-vsprintf.h: New file.
69178         * lib/unistdio/ulc-asnprintf.c: New file.
69179         * lib/unistdio/ulc-asprintf.c: New file.
69180         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69181         * lib/unistdio/ulc-printf-parse.c: New file.
69182         * lib/unistdio/ulc-snprintf.c: New file.
69183         * lib/unistdio/ulc-sprintf.c: New file.
69184         * lib/unistdio/ulc-vasnprintf.c: New file.
69185         * lib/unistdio/ulc-vasprintf.c: New file.
69186         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69187         * lib/unistdio/ulc-vsnprintf.c: New file.
69188         * lib/unistdio/ulc-vsprintf.c: New file.
69189         * lib/unistdio/u8-asnprintf.c: New file.
69190         * lib/unistdio/u8-asprintf.c: New file.
69191         * lib/unistdio/u8-printf-parse.c: New file.
69192         * lib/unistdio/u8-snprintf.c: New file.
69193         * lib/unistdio/u8-sprintf.c: New file.
69194         * lib/unistdio/u8-vasnprintf.c: New file.
69195         * lib/unistdio/u8-vasprintf.c: New file.
69196         * lib/unistdio/u8-vsnprintf.c: New file.
69197         * lib/unistdio/u8-vsprintf.c: New file.
69198         * lib/unistdio/u8-u8-asnprintf.c: New file.
69199         * lib/unistdio/u8-u8-asprintf.c: New file.
69200         * lib/unistdio/u8-u8-snprintf.c: New file.
69201         * lib/unistdio/u8-u8-sprintf.c: New file.
69202         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69203         * lib/unistdio/u8-u8-vasprintf.c: New file.
69204         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69205         * lib/unistdio/u8-u8-vsprintf.c: New file.
69206         * lib/unistdio/u16-asnprintf.c: New file.
69207         * lib/unistdio/u16-asprintf.c: New file.
69208         * lib/unistdio/u16-printf-parse.c: New file.
69209         * lib/unistdio/u16-snprintf.c: New file.
69210         * lib/unistdio/u16-sprintf.c: New file.
69211         * lib/unistdio/u16-vasnprintf.c: New file.
69212         * lib/unistdio/u16-vasprintf.c: New file.
69213         * lib/unistdio/u16-vsnprintf.c: New file.
69214         * lib/unistdio/u16-vsprintf.c: New file.
69215         * lib/unistdio/u16-u16-asnprintf.c: New file.
69216         * lib/unistdio/u16-u16-asprintf.c: New file.
69217         * lib/unistdio/u16-u16-snprintf.c: New file.
69218         * lib/unistdio/u16-u16-sprintf.c: New file.
69219         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69220         * lib/unistdio/u16-u16-vasprintf.c: New file.
69221         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69222         * lib/unistdio/u16-u16-vsprintf.c: New file.
69223         * lib/unistdio/u32-asnprintf.c: New file.
69224         * lib/unistdio/u32-asprintf.c: New file.
69225         * lib/unistdio/u32-printf-parse.c: New file.
69226         * lib/unistdio/u32-snprintf.c: New file.
69227         * lib/unistdio/u32-sprintf.c: New file.
69228         * lib/unistdio/u32-vasnprintf.c: New file.
69229         * lib/unistdio/u32-vasprintf.c: New file.
69230         * lib/unistdio/u32-vsnprintf.c: New file.
69231         * lib/unistdio/u32-vsprintf.c: New file.
69232         * lib/unistdio/u32-u32-asnprintf.c: New file.
69233         * lib/unistdio/u32-u32-asprintf.c: New file.
69234         * lib/unistdio/u32-u32-snprintf.c: New file.
69235         * lib/unistdio/u32-u32-sprintf.c: New file.
69236         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69237         * lib/unistdio/u32-u32-vasprintf.c: New file.
69238         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69239         * lib/unistdio/u32-u32-vsprintf.c: New file.
69240         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69241         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69242         * tests/unistdio/test-ulc-printf1.h: New file.
69243         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69244         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69245         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69246         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69247         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69248         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69249         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69250         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69251         * tests/unistdio/test-u8-asnprintf1.c: New file.
69252         * tests/unistdio/test-u8-asnprintf1.h: New file.
69253         * tests/unistdio/test-u8-printf1.h: New file.
69254         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69255         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69256         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69257         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69258         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69259         * tests/unistdio/test-u8-vasprintf1.c: New file.
69260         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69261         * tests/unistdio/test-u8-vsprintf1.c: New file.
69262         * tests/unistdio/test-u16-asnprintf1.c: New file.
69263         * tests/unistdio/test-u16-asnprintf1.h: New file.
69264         * tests/unistdio/test-u16-printf1.h: New file.
69265         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69266         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69267         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69268         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69269         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69270         * tests/unistdio/test-u16-vasprintf1.c: New file.
69271         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69272         * tests/unistdio/test-u16-vsprintf1.c: New file.
69273         * tests/unistdio/test-u32-asnprintf1.c: New file.
69274         * tests/unistdio/test-u32-asnprintf1.h: New file.
69275         * tests/unistdio/test-u32-printf1.h: New file.
69276         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69277         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69278         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69279         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69280         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69281         * tests/unistdio/test-u32-vasprintf1.c: New file.
69282         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69283         * tests/unistdio/test-u32-vsprintf1.c: New file.
69284         * modules/unistdio/base: New file.
69285         * modules/unistdio/u-printf-args: New file.
69286         * modules/unistdio/ulc-asnprintf: New file.
69287         * modules/unistdio/ulc-asprintf: New file.
69288         * modules/unistdio/ulc-fprintf: New file.
69289         * modules/unistdio/ulc-printf-parse: New file.
69290         * modules/unistdio/ulc-snprintf: New file.
69291         * modules/unistdio/ulc-sprintf: New file.
69292         * modules/unistdio/ulc-vasnprintf: New file.
69293         * modules/unistdio/ulc-vasprintf: New file.
69294         * modules/unistdio/ulc-vfprintf: New file.
69295         * modules/unistdio/ulc-vsnprintf: New file.
69296         * modules/unistdio/ulc-vsprintf: New file.
69297         * modules/unistdio/u8-asnprintf: New file.
69298         * modules/unistdio/u8-asprintf: New file.
69299         * modules/unistdio/u8-printf-parse: New file.
69300         * modules/unistdio/u8-snprintf: New file.
69301         * modules/unistdio/u8-sprintf: New file.
69302         * modules/unistdio/u8-vasnprintf: New file.
69303         * modules/unistdio/u8-vasprintf: New file.
69304         * modules/unistdio/u8-vsnprintf: New file.
69305         * modules/unistdio/u8-vsprintf: New file.
69306         * modules/unistdio/u8-u8-asnprintf: New file.
69307         * modules/unistdio/u8-u8-asprintf: New file.
69308         * modules/unistdio/u8-u8-snprintf: New file.
69309         * modules/unistdio/u8-u8-sprintf: New file.
69310         * modules/unistdio/u8-u8-vasnprintf: New file.
69311         * modules/unistdio/u8-u8-vasprintf: New file.
69312         * modules/unistdio/u8-u8-vsnprintf: New file.
69313         * modules/unistdio/u8-u8-vsprintf: New file.
69314         * modules/unistdio/u16-asnprintf: New file.
69315         * modules/unistdio/u16-asprintf: New file.
69316         * modules/unistdio/u16-printf-parse: New file.
69317         * modules/unistdio/u16-snprintf: New file.
69318         * modules/unistdio/u16-sprintf: New file.
69319         * modules/unistdio/u16-vasnprintf: New file.
69320         * modules/unistdio/u16-vasprintf: New file.
69321         * modules/unistdio/u16-vsnprintf: New file.
69322         * modules/unistdio/u16-vsprintf: New file.
69323         * modules/unistdio/u16-u16-asnprintf: New file.
69324         * modules/unistdio/u16-u16-asprintf: New file.
69325         * modules/unistdio/u16-u16-snprintf: New file.
69326         * modules/unistdio/u16-u16-sprintf: New file.
69327         * modules/unistdio/u16-u16-vasnprintf: New file.
69328         * modules/unistdio/u16-u16-vasprintf: New file.
69329         * modules/unistdio/u16-u16-vsnprintf: New file.
69330         * modules/unistdio/u16-u16-vsprintf: New file.
69331         * modules/unistdio/u32-asnprintf: New file.
69332         * modules/unistdio/u32-asprintf: New file.
69333         * modules/unistdio/u32-printf-parse: New file.
69334         * modules/unistdio/u32-snprintf: New file.
69335         * modules/unistdio/u32-sprintf: New file.
69336         * modules/unistdio/u32-vasnprintf: New file.
69337         * modules/unistdio/u32-vasprintf: New file.
69338         * modules/unistdio/u32-vsnprintf: New file.
69339         * modules/unistdio/u32-vsprintf: New file.
69340         * modules/unistdio/u32-u32-asnprintf: New file.
69341         * modules/unistdio/u32-u32-asprintf: New file.
69342         * modules/unistdio/u32-u32-snprintf: New file.
69343         * modules/unistdio/u32-u32-sprintf: New file.
69344         * modules/unistdio/u32-u32-vasnprintf: New file.
69345         * modules/unistdio/u32-u32-vasprintf: New file.
69346         * modules/unistdio/u32-u32-vsnprintf: New file.
69347         * modules/unistdio/u32-u32-vsprintf: New file.
69348         * modules/unistdio/ulc-asnprintf-tests: New file.
69349         * modules/unistdio/ulc-vasnprintf-tests: New file.
69350         * modules/unistdio/ulc-vasprintf-tests: New file.
69351         * modules/unistdio/ulc-vsnprintf-tests: New file.
69352         * modules/unistdio/ulc-vsprintf-tests: New file.
69353         * modules/unistdio/u8-asnprintf-tests: New file.
69354         * modules/unistdio/u8-vasnprintf-tests: New file.
69355         * modules/unistdio/u8-vasprintf-tests: New file.
69356         * modules/unistdio/u8-vsnprintf-tests: New file.
69357         * modules/unistdio/u8-vsprintf-tests: New file.
69358         * modules/unistdio/u16-asnprintf-tests: New file.
69359         * modules/unistdio/u16-vasnprintf-tests: New file.
69360         * modules/unistdio/u16-vasprintf-tests: New file.
69361         * modules/unistdio/u16-vsnprintf-tests: New file.
69362         * modules/unistdio/u16-vsprintf-tests: New file.
69363         * modules/unistdio/u32-asnprintf-tests: New file.
69364         * modules/unistdio/u32-vasnprintf-tests: New file.
69365         * modules/unistdio/u32-vasprintf-tests: New file.
69366         * modules/unistdio/u32-vsnprintf-tests: New file.
69367         * modules/unistdio/u32-vsprintf-tests: New file.
69368         * MODULES.html.sh (Unicode string functions): Add the new modules.
69369
69370 2007-07-01  Bruno Haible  <bruno@clisp.org>
69371
69372         * lib/sprintf.c (sprintf): Limit the available length estimation,
69373         to avoid address wraparound.
69374         * lib/vsprintf.c (vsprintf): Likewise.
69375         * modules/sprintf-posix (Dependencies): Add stdint.
69376         * modules/vsprintf-posix (Dependencies): Likewise.
69377
69378 2007-07-01  Bruno Haible  <bruno@clisp.org>
69379
69380         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69381         Windows PATH as well. Conservative double-quoting. Comments.
69382
69383 2007-07-01  Bruno Haible  <bruno@clisp.org>
69384             Eric Blake  <ebb9@byu.net>
69385             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69386
69387         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69388         empty components in $PATH, denoting '.'.
69389
69390 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69391
69392         * gnulib-tool: Fix indentation.
69393         (func_create_megatestdir): Likewise.
69394         Report by Bruno Haible.
69395
69396 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69397
69398         Sync from Automake.
69399         * build-aux/gnupload: Fix shell portability issues with for loops.
69400         Report by Karl Berry.
69401
69402 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69403
69404         * build-aux/maint.mk (POURL): Use translationproject.org.
69405
69406 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69407             Bruno Haible  <bruno@clisp.org>
69408
69409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69410         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69411         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69412         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69413         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69414
69415 2007-06-27  Bruno Haible  <bruno@clisp.org>
69416
69417         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69418         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69419
69420 2007-06-26  Karl Berry  <karl@gnu.org>
69421
69422         * MODULES.html.sh: remove xreadlink-with-size.
69423
69424 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69427         method that I hope also handles the double-include problem noted
69428         by Bruno Haible in
69429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69430
69431 2007-06-23  Bruno Haible  <bruno@clisp.org>
69432
69433         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69434         Don't let the 'mostlyclean' target fail if the last subdirectory could
69435         not be removed.
69436         Reported by Karl Berry.
69437
69438 2007-06-23  Bruno Haible  <bruno@clisp.org>
69439
69440         * gnulib-tool (echo): Add a speedier workaround for ksh.
69441         * tests/test-echo.sh: Likewise.
69442
69443 2007-06-23  Bruno Haible  <bruno@clisp.org>
69444
69445         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69446         * tests/test-echo.sh: Likewise.
69447
69448 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69449
69450         * gnulib-tool (IFS): Initialize early, so we don't set it to
69451         empty later.
69452         (self_abspathname): Rewrite algorithm to set it, reindent.
69453         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69454         (func_create_megatestdir): Merge some sed scripts.
69455
69456 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69457
69458         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69459         exposed by Sun Studio 11 cc on Solaris 8.
69460
69461 2007-06-22  Bruno Haible  <bruno@clisp.org>
69462
69463         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69464         backslashes.
69465         * tests/test-echo.sh: New file.
69466
69467 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69468
69469         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69470         simplify `sed_replace_build_aux' scripts, they are portable but
69471         echoing them with `echo' is not.
69472         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69473
69474 2007-06-21  Karl Berry  <karl@gnu.org>
69475
69476         * config/srclist.txt: guess we can't handle the licenses via
69477         srclist at the moment.
69478
69479 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * MODULES.html.sh: Add include_next.
69482         * modules/include_next: New file.
69483
69484 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69487         INCLUDE_NEXT.
69488         (gl_CHECK_NEXT_HEADERS): New macro.
69489         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69490         the obsolescent gl_ABSOLUTE_HEADER.
69491         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69492         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69493         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69494         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69495         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69496         * m4/math_h.m4 (gl_MATH_H): Likewise.
69497         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69498         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69499         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69500         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69501         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69502         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69503         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69504         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69506         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69507         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69508         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69509         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69510         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69511         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69512         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69513         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69514         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69515         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69516         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69517         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69518         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69519         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69520         * lib/float_.h: Likewise.
69521         * lib/inttypes_.h: Likewise.
69522         * lib/math_.h: Likewise.
69523         * lib/search_.h: Likewise.
69524         * lib/signal_.h: Likewise.
69525         * lib/stdint_.h: Likewise.
69526         * lib/stdio_.h: Likewise.
69527         * lib/stdlib_.h: Likewise.
69528         * lib/string_.h: Likewise.
69529         * lib/sys_stat_.h: Likewise.
69530         * lib/sys_time_.h: Likewise.
69531         * lib/time_.h: Likewise.
69532         * lib/unistd_.h: Likewise.
69533         * lib/wchar_.h: Likewise.
69534         * lib/wctype_.h: Likewise.
69535         * lib/dirent_.h: Likewise.
69536         * lib/iconv_.h: Likewise.
69537         * lib/locale_.h: Likewise.
69538         * lib/netinet_in_.h: Likewise.
69539         * lib/sys_select_.h: Likewise.
69540         * lib/sys_socket_.h: Likewise.
69541         * lib/sysexits_.h: Likewise.
69542         * modules/fcntl (Depends-on): Depend on include_next, not
69543         absolute_header.
69544         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69545         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69546         * modules/fchdir: Likewise.
69547         * modules/float: Likewise.
69548         * modules/iconv_open: Likewise.
69549         * modules/inttypes: Likewise.
69550         * modules/locale: Likewise.
69551         * modules/math: Likewise.
69552         * modules/netinet_in: Likewise.
69553         * modules/search: Likewise.
69554         * modules/signal: Likewise.
69555         * modules/stdint: Likewise.
69556         * modules/stdio: Likewise.
69557         * modules/stdlib: Likewise.
69558         * modules/string: Likewise.
69559         * modules/sys_select: Likewise.
69560         * modules/sys_socket: Likewise.
69561         * modules/sys_stat: Likewise.
69562         * modules/sys_time: Likewise.
69563         * modules/sysexits: Likewise.
69564         * modules/time: Likewise.
69565         * modules/unistd: Likewise.
69566         * modules/wchar: Likewise.
69567         * modules/wctype: Likewise.
69568         * modules/sys_stat: Change maintainer to "all".
69569         * modules/unistd: Likewise.
69570
69571 2007-06-20  Karl Berry  <karl@gnu.org>
69572
69573         * config/srclist.txt: track www changes in license files.
69574
69575 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69576
69577         * build-aux/bootstrap: Remove stray dot.
69578         Make sure build_aux settings are honored when linking
69579         gnulib_extra_files.
69580
69581 2007-06-19  Eric Blake  <ebb9@byu.net>
69582
69583         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69584         Allow compilation on cygwin.
69585
69586 2007-06-19  Jim Meyering  <jim@meyering.net>
69587
69588         xreadlink-with-size: Remove module.  No longer used.
69589         Ex-callers now use xreadlink or mreadlink-with-size.
69590         * modules/xreadlink-with-size: Remove module.
69591         * lib/xreadlink-with-size.c: Remove file.
69592         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69593         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69594         just before the function definition *is* accurate.
69595
69596         Eliminate one way canonicalize_filename_mode could exit.
69597         * lib/canonicalize.c (canonicalize_filename_mode):
69598         Use mreadlink_with_size, not xreadlink_with_size.
69599
69600 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         Detect porting problems to FreeBSD/arm, which has time_t wider than
69603         long int.  Original problem reported for GNU diff by Xin Li in
69604         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69605         * modules/getdate (Depends-on): Add intprops, verify.
69606         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69607         is an integer type no wider than long int.
69608
69609 2007-06-18  Jim Meyering  <jim@meyering.net>
69610
69611         New module: mreadlink-with-size.
69612         * MODULES.html.sh: Add mreadlink-with-size.
69613         * modules/mreadlink-with-size: New module
69614         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69615         not xreadlink-with-size.
69616         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69617
69618 2007-06-16  Bruno Haible  <bruno@clisp.org>
69619
69620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69621         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69622         Reported by Gary V. Vaughan <gary@gnu.org>.
69623
69624 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69625
69626         Revamp lchown so that it lives in unistd.h where it belongs.
69627         * lib/lchown.h: Remove.
69628         * lib/dirchownmod.c: Don't include lib/lchown.h.
69629         * lib/fchownat.c: Likewise.
69630         * lib/openat.c: Likewise.
69631         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69632         does not follow symlinks.
69633         (EOPNOTSUPP): Define if not defined.
69634         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69635         is defined to 0.
69636         (lchown): New decl.
69637         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69638         Do not check for lchown decl.
69639         Set REPLACE_LCHOWN.
69640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69641         REPLACE_LCHOWN.
69642         * modules/chown: Make it clear it follows symlinks.
69643         * modules/lchown: Make it clear it doesn't follow symlinks.
69644         (Files): Remove lib/lchown.h
69645         (Depends-on): Add unistd.
69646         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69647         (Include): Include <unistd.h>, not "lchown.h".
69648         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69649         REPLACE_LCHOWN.
69650
69651 2007-06-15  Jim Meyering  <jim@meyering.net>
69652
69653         Change license (GPL to LGPL) of fsusage and dependents.
69654         * modules/fsusage (License): Change to LGPL.
69655         * modules/full-read (License): Likewise.
69656         * modules/full-write (License): Likewise.
69657         * modules/safe-read (License): Likewise.
69658         * modules/safe-write (License): Likewise.
69659
69660 2007-06-14  Ben Pfaff  <blp@gnu.org>
69661
69662         Missing part of allocsa -> malloca transition.
69663         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69664         gl_MALLOCA.
69665
69666 2007-06-12  Bruno Haible  <bruno@clisp.org>
69667
69668         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69669         to ia64, x86_64, i386.
69670         Reported by Eric Blake.
69671
69672 2007-06-12  Bruno Haible  <bruno@clisp.org>
69673
69674         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69675         cross-compiling to x86_64.
69676
69677 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69680         glitch reported by Ralf Wildenhues in
69681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69682
69683         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69684         Vin Shelton.
69685
69686 2007-06-11  Bruno Haible  <bruno@clisp.org>
69687
69688         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69689         replacement string.
69690         Reported by Eric Blake.
69691
69692 2007-06-10  Bruno Haible  <bruno@clisp.org>
69693
69694         Prepare vasnprintf code for use with Unicode strings.
69695         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69696         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69697         TYPE_U32_STRING.
69698         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69699         a_u32_string variants.
69700         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69701         * lib/printf-args.c: Don't include config.h and the specification
69702         header if PRINTF_FETCHARGS is already defined.
69703         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69704         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69705         TYPE_U16_STRING, TYPE_U32_STRING.
69706         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69707         u16_directive, u16_directives, u32_directive, u32_directives): New
69708         types.
69709         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69710         New declarations.
69711         * lib/printf-parse.c: Don't include config.h and the specification
69712         header if PRINTF_PARSE is already defined. Eliminate the set of
69713         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69714         them now. Include c-ctype.h.
69715         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69716         directive and CHAR_T_ONLY_ASCII.
69717         * lib/vasnprintf.c: Don't include config.h and the specification header
69718         if VASNPRINTF is already defined.
69719         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69720         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69721         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69722         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69723         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69724         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69725         code accordingly.
69726         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69727         pad_ourselves also in this case, with the 'c' and 's' directives, and
69728         with a different notion of "width".
69729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69730
69731 2007-06-10  Bruno Haible  <bruno@clisp.org>
69732
69733         * modules/unistr/u32-mbsnlen: New file.
69734         * lib/unistr/u32-mbsnlen.c: New file.
69735
69736         * modules/unistr/u16-mbsnlen: New file.
69737         * lib/unistr/u16-mbsnlen.c: New file.
69738
69739         * modules/unistr/u8-mbsnlen: New file.
69740         * lib/unistr/u8-mbsnlen.c: New file.
69741
69742         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69743         declarations.
69744
69745 2007-06-10  Bruno Haible  <bruno@clisp.org>
69746
69747         * lib/string_.h (mbsnlen): New declaration.
69748         * lib/mbsnlen.c: New file.
69749         * m4/mbsnlen.m4: New file.
69750         * modules/mbsnlen: New file.
69751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69752         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69753         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69754
69755 2007-06-10  Bruno Haible  <bruno@clisp.org>
69756
69757         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69758
69759 2007-06-10  Bruno Haible  <bruno@clisp.org>
69760
69761         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69762         * lib/mbuiter.h: Likewise.
69763
69764 2007-06-10  Bruno Haible  <bruno@clisp.org>
69765
69766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69767         declaration.
69768
69769 2007-06-10  Karl Berry  <karl@gnu.org>
69770
69771         * config/srclist.txt: remove gettext entries, Bruno prefers
69772         to update individually.
69773
69774 2007-06-10  Bruno Haible  <bruno@clisp.org>
69775
69776         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69777         'maxlen'. Ensure only length + width bytes are allocated, not
69778         length + 1 + width.
69779
69780 2007-06-09  Bruno Haible  <bruno@clisp.org>
69781
69782         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69783         (CHAR_T): Remove macro.
69784         (VASNPRINTF): Update.
69785
69786 2007-06-09  Bruno Haible  <bruno@clisp.org>
69787
69788         * MODULES.html.sh (Unicode string functions): Add the new modules.
69789
69790         * modules/uniconv/u32-conv-to-enc: New file.
69791         * lib/uniconv/u32-conv-to-enc.c: New file.
69792         * modules/uniconv/u32-conv-to-enc-tests: New file.
69793         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69794
69795         * modules/uniconv/u16-conv-to-enc: New file.
69796         * lib/uniconv/u16-conv-to-enc.c: New file.
69797         * lib/uniconv/u-conv-to-enc.h: New file.
69798         * modules/uniconv/u16-conv-to-enc-tests: New file.
69799         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69800
69801         * modules/uniconv/u8-conv-to-enc: New file.
69802         * lib/uniconv/u8-conv-to-enc.c: New file.
69803         * modules/uniconv/u8-conv-to-enc-tests: New file.
69804         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69805
69806         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69807         u32_conv_to_encoding): New declarations.
69808
69809 2007-06-09  Bruno Haible  <bruno@clisp.org>
69810
69811         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69812
69813 2007-06-09  Bruno Haible  <bruno@clisp.org>
69814
69815         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69816         * modules/malloca: Renamed from modules/allocsa, updated.
69817         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69818         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69819         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69820         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69821         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69822         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69823         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69824         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69825         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69826         * modules/c-strcasestr (Depends-on): Update.
69827         * lib/c-strcasestr.c: Update.
69828         * modules/c-strstr (Depends-on): Update.
69829         * lib/c-strstr.c: Update.
69830         * modules/canonicalize-lgpl (Depends-on): Update.
69831         * lib/canonicalize-lgpl.c: Update.
69832         * modules/clean-temp (Depends-on): Update.
69833         * lib/clean-temp.c: Update.
69834         * modules/csharpcomp (Depends-on): Update.
69835         * lib/csharpcomp.c: Update.
69836         * modules/csharpexec (Depends-on): Update.
69837         * lib/csharpexec.c: Update.
69838         * modules/javacomp (Depends-on): Update.
69839         * lib/javacomp.c: Update.
69840         * modules/javaexec (Depends-on): Update.
69841         * lib/javaexec.c: Update.
69842         * modules/mbscasestr (Depends-on): Update.
69843         * lib/mbscasestr.c: Update.
69844         * modules/mbsstr (Depends-on): Update.
69845         * lib/mbsstr.c: Update.
69846         * modules/setenv (Depends-on): Update.
69847         * lib/setenv.c: Update.
69848         * modules/strcasestr (Depends-on): Update.
69849         * lib/strcasestr.c: Update.
69850         * modules/striconveha (Depends-on): Update.
69851         * lib/striconveha.c: Update.
69852         * modules/relocatable-prog-wrapper (Files): Update.
69853         * lib/relocwrapper.c: Update.
69854         * build-aux/install-reloc: Update.
69855         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69856
69857 2007-06-08  Bruno Haible  <bruno@clisp.org>
69858
69859         Port to uClibc.
69860         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69861         * lib/fpurge.c (fpurge): Likewise.
69862         * lib/freading.c (freading): Likewise.
69863         * lib/fseeko.c (rpl_fseeko): Likewise.
69864         * lib/fseterr.c (fseterr): Likewise.
69865         * lib/fwriting.c (fwriting): Likewise.
69866         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69867
69868 2007-06-08  Bruno Haible  <bruno@clisp.org>
69869
69870         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69871         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69872         * modules/gettext (Files): Add m4/intlmacosx.m4.
69873
69874 2007-06-07  Bruno Haible  <bruno@clisp.org>
69875
69876         * modules/localename-tests: New file.
69877         * tests/test-localename.c: New file.
69878
69879         New module 'localename'.
69880         * lib/localename.h: New file.
69881         * lib/localename.c: New file, from GNU gettext.
69882         * m4/localename.m4: New file.
69883         * modules/localename: New file.
69884
69885 2007-06-07  Bruno Haible  <bruno@clisp.org>
69886
69887         Work around the lack of <wchar.h> on some builds of uClibc.
69888         * doc/headers/wchar.texi: Update.
69889         * lib/wchar_.h: Include <wchar.h> only if it exists.
69890         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69891         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69892         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69893         doesn't exist.
69894         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69895         * modules/mbfile (Depends-on): Add wchar.
69896         * modules/mbiter (Depends-on): Likewise.
69897         * modules/mbuiter (Depends-on): Likewise.
69898         Reported by Simon Josefsson.
69899
69900 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         Work around problem reported by Steven M. Schweda in
69903         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69904         Tru64 5.1B with the Compaq compiler environment installed declares
69905         an 'isblank' function but does not define it in the C library.
69906         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69907         * lib/regex_internal.h (isblank): Likewise.
69908         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69909         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69910
69911 2007-06-05  Bruno Haible  <bruno@clisp.org>
69912
69913         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69914         ia64.
69915         * modules/printf-safe: New file.
69916         * modules/fprintf-posix (Depends-on): Add printf-safe.
69917         * modules/printf-posix (Depends-on): Likewise.
69918         * modules/snprintf-posix (Depends-on): Likewise.
69919         * modules/sprintf-posix (Depends-on): Likewise.
69920         * modules/vasnprintf-posix (Depends-on): Likewise.
69921         * modules/vasprintf-posix (Depends-on): Likewise.
69922         * modules/vfprintf-posix (Depends-on): Likewise.
69923         * modules/vprintf-posix (Depends-on): Likewise.
69924         * modules/vsnprintf-posix (Depends-on): Likewise.
69925         * modules/vsprintf-posix (Depends-on): Likewise.
69926         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69927         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69928         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69929         "no" on i386, x86_64, ia64.
69930         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69931         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69932         on i386, x86_64, ia64.
69933         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69934         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69935         on i386, x86_64, ia64.
69936         * tests/test-vasnprintf-posix.c: Include float.h.
69937         (LDBL80_WORDS): New macro.
69938         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69939         on i386, x86_64, ia64.
69940         * tests/test-vasprintf-posix.c: Include float.h.
69941         (LDBL80_WORDS): New macro.
69942         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69943         on i386, x86_64, ia64.
69944         * tests/test-snprintf-posix.c: Include float.h.
69945         * tests/test-sprintf-posix.c: Likewise.
69946         * tests/test-vsnprintf-posix.c: Likewise.
69947         * tests/test-vsprintf-posix.c: Likewise.
69948
69949 2007-06-05  Bruno Haible  <bruno@clisp.org>
69950
69951         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69952         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69953         non-IEEE numbers on i386, x86_64, ia64.
69954         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69955         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69956         * tests/test-isnanl.h: Include float.h.
69957         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69958
69959 2007-06-05  Bruno Haible  <bruno@clisp.org>
69960
69961         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69962         also the %a / %A. Handle the %a / %A code before this extra handling.
69963
69964 2007-06-05  Bruno Haible  <bruno@clisp.org>
69965
69966         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69967         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69968
69969 2007-06-05  Bruno Haible  <bruno@clisp.org>
69970
69971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69972         typo in variable name.
69973
69974 2007-06-05  Eric Blake  <ebb9@byu.net>
69975
69976         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69977         Reported by Simon Josefsson.
69978
69979 2007-06-04  Bruno Haible  <bruno@clisp.org>
69980
69981         Avoid test failures on some PowerPC platforms.
69982         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69983         Define differently for PowerPC.
69984         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69985         Reported by Gary V. Vaughan <gary@gnu.org>.
69986
69987 2007-06-02  Bruno Haible  <bruno@clisp.org>
69988
69989         Fix test-stdint failure on FreeBSD/ia64.
69990         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69991         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69992         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69993         * doc/headers/stdint.texi: Update.
69994
69995 2007-06-01  Bruno Haible  <bruno@clisp.org>
69996
69997         * tests/test-binary-io.c (main): Pass a third argument to open().
69998         Reported by Gary V. Vaughan <gary@gnu.org>.
69999
70000 2007-06-01  Bruno Haible  <bruno@clisp.org>
70001
70002         * doc/functions/frexpl.texi: Update for mingw.
70003
70004 2007-06-01  Bruno Haible  <bruno@clisp.org>
70005
70006         * tests/test-lseek.c (main): Disable test of errno for invalid third
70007         argument.
70008         * doc/functions/lseek.texi: Update.
70009         Reported by Gary V. Vaughan <gary@gnu.org>.
70010
70011 2007-05-28  Bruno Haible  <bruno@clisp.org>
70012
70013         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
70014
70015 2007-05-31  Eric Blake  <ebb9@byu.net>
70016
70017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
70018         cross compiling.
70019
70020 2007-05-30  Eric Blake  <ebb9@byu.net>
70021         and Bruno Haible  <bruno@clisp.org>
70022
70023         Work around mingw test failures exposed by m4-1.4.9b.
70024         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
70025         * tests/test-unistd.c: Disable uid_t and git_t tests for the
70026         moment.
70027
70028 2007-05-30  Bruno Haible  <bruno@clisp.org>
70029
70030         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
70031         assuming that they are closed. Needed on HP-UX 11.
70032
70033 2007-05-29  Bruno Haible  <bruno@clisp.org>
70034
70035         Fix a problem with #include_next.
70036         * lib/dirent_.h: Split the double-inclusion guard.
70037         * lib/fcntl_.h: Likewise.
70038         * lib/float_.h: Likewise.
70039         * lib/iconv_.h: Likewise.
70040         * lib/inttypes_.h: Likewise.
70041         * lib/locale_.h: Likewise.
70042         * lib/math_.h: Likewise.
70043         * lib/netinet_in_.h: Likewise.
70044         * lib/search_.h: Likewise.
70045         * lib/signal_.h: Likewise.
70046         * lib/stdint_.h: Likewise.
70047         * lib/stdio_.h: Likewise.
70048         * lib/stdlib_.h: Likewise.
70049         * lib/string_.h: Likewise.
70050         * lib/sys_select_.h: Likewise.
70051         * lib/sys_socket_.h: Likewise.
70052         * lib/sys_stat_.h: Likewise.
70053         * lib/sys_time_.h: Likewise.
70054         * lib/sysexits_.h: Likewise.
70055         * lib/time_.h: Likewise.
70056         * lib/unistd_.h: Likewise.
70057         * lib/wchar_.h: Likewise.
70058         * lib/wctype_.h: Likewise.
70059
70060 2007-05-29  Bruno Haible  <bruno@clisp.org>
70061
70062         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
70063         for the moment.
70064
70065 2007-05-29  Bruno Haible  <bruno@clisp.org>
70066
70067         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
70068         invocation.
70069         Reported by Eric Blake.
70070
70071 2007-05-29  Bruno Haible  <bruno@clisp.org>
70072
70073         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
70074         compiling case.
70075
70076 2007-05-29  Eric Blake  <ebb9@byu.net>
70077             Bruno Haible  <bruno@clisp.org>
70078
70079         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70080         cross compiles.
70081
70082 2007-05-28  Eric Blake  <ebb9@byu.net>
70083
70084         * modules/closein-tests (test_closein_LDADD): Support test on
70085         cygwin with libtool.
70086
70087 2007-05-28  Bruno Haible  <bruno@clisp.org>
70088
70089         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70090         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70091         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70092         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70093         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70094         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70095         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70096         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70097         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70098
70099 2007-05-28  Eric Blake  <ebb9@byu.net>
70100
70101         Unconditionally include <config.h> in unit tests.
70102         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70103         * tests/test-allocsa.c, tests/test-arcfour.c,
70104         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70105         tests/test-array_list.c, tests/test-array_oset.c,
70106         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70107         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70108         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70109         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70110         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70111         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70112         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70113         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70114         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70115         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70116         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70117         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70118         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70119         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70120         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70121         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70122         test-md5.c, test-memmem.c, test-printf-posix.c,
70123         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70124         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70125         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70126         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70127         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70128         test-vasnprintf-posix2.c, test-vasnprintf.c,
70129         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70130         test-vfprintf-posix.c, test-vprintf-posix.c,
70131         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70132         test-xvasprintf.c: Likewise.
70133
70134 2007-05-28  Bruno Haible  <bruno@clisp.org>
70135
70136         * gnulib-tool (func_import): Remember the --with-tests command-line
70137         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70138         Reported by Eric Blake.
70139
70140 2007-05-28  Bruno Haible  <bruno@clisp.org>
70141
70142         * modules/ftell-tests: New file.
70143         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70144         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70145
70146         * lib/ftell.c: New file.
70147         * modules/ftell: New file.
70148         * m4/ftell.m4: New file.
70149         * doc/functions/ftell.texi: Update.
70150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70151         REPLACE_FTELL.
70152         * lib/stdio_.h (rpl_ftell): New declaration.
70153         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70154         REPLACE_FTELL.
70155
70156 2007-05-28  Eric Blake  <ebb9@byu.net>
70157
70158         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70159
70160 2007-05-28  Bruno Haible  <bruno@clisp.org>
70161
70162         * modules/fseek-tests: New file.
70163         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70164         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70165
70166         * lib/fseek.c: New file.
70167         * modules/fseek: New file.
70168         * m4/fseek.m4: New file.
70169         * doc/functions/fseek.texi: Update.
70170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70171         REPLACE_FSEEK.
70172         * lib/stdio_.h (rpl_fseek): New declaration.
70173         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70174         REPLACE_FSEEK.
70175
70176 2007-05-28  Bruno Haible  <bruno@clisp.org>
70177
70178         * lib/stdio_.h (fflush): More comments.
70179
70180 2007-05-28  Bruno Haible  <bruno@clisp.org>
70181
70182         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70183         runtime test.
70184
70185 2007-05-28  Eric Blake  <ebb9@byu.net>
70186
70187         Improve lseek module.
70188         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70189         * lib/unistd_.h (lseek): Scale back link warning message.
70190         * tests/test-lseek.c: Beef up test.
70191         * tests/test-lseek.sh: Exercise more facets of lseek.
70192         Reported by Bruno Haible.
70193
70194 2007-05-28  Bruno Haible  <bruno@clisp.org>
70195
70196         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70197         to define.
70198
70199 2007-05-27  Bruno Haible  <bruno@clisp.org>
70200
70201         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70202
70203 2007-05-27  Bruno Haible  <bruno@clisp.org>
70204
70205         * modules/openmp: New file.
70206         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70207         Noah Misch.
70208
70209 2007-05-26  Bruno Haible  <bruno@clisp.org>
70210
70211         * modules/chdir-long (Depends-on): Add fchdir.
70212         * modules/chdir-safer (Depends-on): Likewise.
70213         * modules/fts (Depends-on): Likewise.
70214         * modules/fts-lgpl (Depends-on): Likewise.
70215         * modules/openat (Depends-on): Likewise.
70216         * modules/savewd (Depends-on): Likewise.
70217
70218 2007-05-24  Eric Blake  <ebb9@byu.net>
70219
70220         Fix lseek on mingw.
70221         * modules/lseek: New module.
70222         * m4/lseek.m4: New file.
70223         * lib/lseek.c: New file.
70224         * modules/lseek-tests: New file.
70225         * tests/test-lseek.c: New file.
70226         * tests/test-lseek.sh: New file.
70227         * MODULES.html.sh: Document lseek module.
70228         * modules/fflush (Depends-on): Add lseek, fseeko.
70229         * modules/fseeko (Depends-on): Likewise.
70230         * modules/ftello (Depends-on): Likewise.
70231         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70232         broken.
70233         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70234         broken.
70235         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70236         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70237         * lib/ftello.c (rpl_ftello): Likewise.
70238         * tests/test-fseeko.c (main): Test this.
70239         * tests/test-fseeko.sh: Likewise.
70240         * tests/test-ftello.c (main): Likewise.
70241         * tests/test-ftello.sh: Likewise.
70242         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70243         implies replacing fseek.
70244         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70245         HAVE_FTELLO.
70246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70247         * modules/unistd (Makefile.am): Likewise.
70248         * lib/unistd_.h (lseek): Declare a replacement.
70249         * doc/functions/lseek.texi (lseek): Document this fix.
70250         * doc/functions/fseek.texi (fseek): Likewise.
70251         * doc/functions/ftell.texi (ftell): Likewise.
70252
70253 2007-05-24  Bruno Haible  <bruno@clisp.org>
70254
70255         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70256         in the printed representation of a NaN.
70257         * tests/test-vasprintf-posix.c (test_function): Likewise.
70258         * tests/test-snprintf-posix.h (test_function): Likewise.
70259         * tests/test-sprintf-posix.h (test_function): Likewise.
70260         Reported by Eric Blake.
70261
70262 2007-05-23  Eric Blake  <ebb9@byu.net>
70263
70264         Fix fseeko/ftello on cygwin 1.5.24.
70265         * doc/functions/fseeko.texi (fseeko): Document the fix.
70266         * doc/functions/ftello.texi (ftello): Document the fix.
70267         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70268         * doc/functions/stdout.text (stdout): New file.
70269         * doc/functions/stderr.text (stderr): New file.
70270         * doc/gnulib.texi (Function Substitutes): Use new files.
70271         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70272         prior to 1.7.0.
70273         * tests/test-ftello.c (main): Likewise for ftello.
70274         * tests/test-fseeko.sh: New file.
70275         * tests/test-ftello.sh: New file.
70276         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70277         with seekable stdin.
70278         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70279         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70280         (gl_REPLACE_FSEEKO): New macro.
70281         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70282         * modules/fseeko (Files): Distribute fseeko.c.
70283         * modules/ftello (Files): Distribute ftello.c.
70284         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70285         mode.
70286         * lib/ftello.c (rpl_ftello): New file.
70287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70288         fseeko, ftello.
70289         (gl_STDIN_LARGE_OFFSET): New macro.
70290         * modules/stdio (Makefile.am): Perform the replacement.
70291         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70292
70293 2007-05-23  Bruno Haible  <bruno@clisp.org>
70294
70295         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70296         GNULIB_POSIXCHECK is defined.
70297
70298 2007-05-21  Bruno Haible  <bruno@clisp.org>
70299
70300         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70301         Check also the output for NaN arguments. When cross-compiling, guess
70302         no on IRIX.
70303         * lib/vasnprintf.c: Update comments.
70304         * tests/test-vasnprintf-posix.c (strisnan): New function.
70305         (test_function): Use it.
70306         * tests/test-vasprintf-posix.c (strisnan): New function.
70307         (test_function): Use it.
70308         * tests/test-snprintf-posix.h (strisnan): New function.
70309         (test_function): Use it.
70310         * tests/test-sprintf-posix.h (strisnan): New function.
70311         (test_function): Use it.
70312         Reported by Eric Blake.
70313
70314 2007-05-20  Bruno Haible  <bruno@clisp.org>
70315
70316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70317         numbers that fails on BeOS.
70318         * doc/functions/frexpl.texi: Update.
70319
70320 2007-05-20  Jim Meyering  <jim@meyering.net>
70321
70322         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70323         forced upon us by glibc-2.6.
70324
70325 2007-05-20  Bruno Haible  <bruno@clisp.org>
70326
70327         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70328         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70329         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70330         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70331         NEED_PRINTF_INFINITE.
70332         (is_infinitel): New function.
70333         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70335         gl_PREREQ_VASNPRINTF_INFINITE.
70336         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70338         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70339         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70340         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70341         gl_PREREQ_VASNPRINTF_INFINITE.
70342         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70346         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70347         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70348         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70349         * doc/functions/fprintf.texi: Update.
70350         * doc/functions/printf.texi: Update.
70351         * doc/functions/snprintf.texi: Update.
70352         * doc/functions/sprintf.texi: Update.
70353         * doc/functions/vfprintf.texi: Update.
70354         * doc/functions/vprintf.texi: Update.
70355         * doc/functions/vsnprintf.texi: Update.
70356         * doc/functions/vsprintf.texi: Update.
70357
70358 2007-05-20  Bruno Haible  <bruno@clisp.org>
70359
70360         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70361         was not found in libc.
70362         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70363
70364 2007-05-20  Bruno Haible  <bruno@clisp.org>
70365
70366         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70367         printed as "-nan" instead of "nan".
70368         * tests/test-vasprintf-posix.c (test_function): Likewise.
70369         * tests/test-snprintf-posix.h (test_function): Likewise.
70370         * tests/test-sprintf-posix.h (test_function): Likewise.
70371         Needed for HP-UX 11.
70372
70373 2007-05-20  Jim Meyering  <jim@meyering.net>
70374
70375         Fix buggy test for the fchownat-deref bug.
70376         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70377         symlink required for the run-test.  Without it, this test would
70378         always declare that fchownat doesn't work, and client code would
70379         unnecessarily use the replacement function with fixed libc.
70380         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70381         Reported by Greg Schafer.
70382
70383 2007-05-19  Bruno Haible  <bruno@clisp.org>
70384
70385         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70386         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70387         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70388         Needed for IRIX 6.5 and Solaris 2.5.1.
70389
70390 2007-05-19  Bruno Haible  <bruno@clisp.org>
70391
70392         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70393         (test_function): Skip tests involving -0.0 on platforms where
70394         -0.0 = 0.0.
70395         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70396         (test_function): Skip tests involving -0.0 on platforms where
70397         -0.0 = 0.0.
70398         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70399         (test_function): Skip tests involving -0.0 on platforms where
70400         -0.0 = 0.0.
70401         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70402         (test_function): Skip tests involving -0.0 on platforms where
70403         -0.0 = 0.0.
70404         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70405         tests.
70406         * tests/test-printf-posix.h (test_function): Likewise.
70407         * tests/test-printf-posix.output: Remove all -0.0 related results.
70408         Needed for IRIX 6.5.
70409
70410 2007-05-19  Bruno Haible  <bruno@clisp.org>
70411
70412         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70413         printed as "nan0x7fffffff" instead of "nan".
70414         * tests/test-vasprintf-posix.c (test_function): Likewise.
70415         * tests/test-snprintf-posix.h (test_function): Likewise.
70416         * tests/test-sprintf-posix.h (test_function): Likewise.
70417         * tests/test-fprintf-posix.h (NaN): Remove macro.
70418         (test_function): Remove all NaN related tests.
70419         * tests/test-printf-posix.h (NaN): Remove macro.
70420         (test_function): Remove all NaN related tests.
70421         * tests/test-printf-posix.output: Remove all NaN related results.
70422         Needed for IRIX 6.5.
70423
70424 2007-05-19  Bruno Haible  <bruno@clisp.org>
70425
70426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70427         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70428
70429 2007-05-19  Bruno Haible  <bruno@clisp.org>
70430
70431         * lib/float_.h: New file.
70432         * m4/float_h.m4: New file.
70433         * modules/float: New file.
70434         * modules/isnanl (Dependencies): Add float.
70435         * modules/isnanl-nolibm (Dependencies): Likewise.
70436         * modules/mathl (Dependencies): Likewise.
70437         * modules/printf-frexpl (Dependencies): Likewise.
70438         * modules/signbit (Dependencies): Likewise.
70439         * modules/vasnprintf (Dependencies): Likewise.
70440         * doc/headers/float.texi: Update.
70441
70442 2007-05-19  Jim Meyering  <jim@meyering.net>
70443
70444         * lib/utimens.c (gl_futimens): Rename from futimens,
70445         now that glibc-2.6 declares futimens.
70446         * lib/utimens.h: Likewise.
70447
70448 2007-05-19  Bruno Haible  <bruno@clisp.org>
70449
70450         Avoid test failures on mingw.
70451         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70452         * tests/test-printf-posix.sh: Likewise.
70453         * tests/test-vfprintf-posix.sh: Likewise.
70454         * tests/test-vprintf-posix.sh: Likewise.
70455
70456 2007-05-19  Bruno Haible  <bruno@clisp.org>
70457
70458         Fix *printf result for NaN, Inf, -0.0 on mingw.
70459         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70460         * lib/vasnprintf.c: Include math.h and isnan.h.
70461         (is_infinite_or_zero): New function.
70462         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70463         values in the %f, %F, %e, %E, %g, %G directives.
70464         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70465         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70466         gl_PRINTF_INFINITE and test its result. Invoke
70467         gl_PREREQ_VASNPRINTF_INFINITE.
70468         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70470         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70471         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70472         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70473         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70474         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70475         * doc/functions/fprintf.texi: Update.
70476         * doc/functions/printf.texi: Update.
70477         * doc/functions/snprintf.texi: Update.
70478         * doc/functions/sprintf.texi: Update.
70479         * doc/functions/vfprintf.texi: Update.
70480         * doc/functions/vprintf.texi: Update.
70481         * doc/functions/vsnprintf.texi: Update.
70482         * doc/functions/vsprintf.texi: Update.
70483
70484 2007-05-19  Bruno Haible  <bruno@clisp.org>
70485
70486         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70487         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70488         Instead of multiplying with 10^k, set extra_zeroes to k.
70489         (scale10_round_long_double): Remove function.
70490
70491 2007-05-18  Bruno Haible  <bruno@clisp.org>
70492
70493         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70494         introduced on 2007-05-06.
70495
70496 2007-05-18  Bruno Haible  <bruno@clisp.org>
70497
70498         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70499         %g directives.
70500         * tests/test-vasprintf-posix.c (test_function): Likewise.
70501         * tests/test-snprintf-posix.h (test_function): Likewise.
70502         * tests/test-sprintf-posix.h (test_function): Likewise.
70503
70504 2007-05-18  Bruno Haible  <bruno@clisp.org>
70505
70506         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70507         (strmatch): New function.
70508         (test_function): Test the %f directive on numbers of various exponents.
70509         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70510         (strmatch): New function.
70511         (test_function): Test the %f directive on numbers of various exponents.
70512         * tests/test-snprintf-posix.h (strmatch): New function.
70513         (test_function): Test the %f directive on numbers of various exponents.
70514         * tests/test-sprintf-posix.h (strmatch): New function.
70515         (test_function): Test the %f directive on numbers of various exponents.
70516         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70517         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70518         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70519         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70520
70521 2007-05-18  Bruno Haible  <bruno@clisp.org>
70522
70523         Add support for 'long double' number output.
70524         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70525         * lib/vasnprintf.c: Include math.h and float+.h.
70526         (mp_limb_t): New type.
70527         (GMP_LIMB_BITS): New macro.
70528         (mp_twolimb_t): New type.
70529         (GMP_TWOLIMB_BITS): New macro.
70530         (mpn_t): New type.
70531         (multiply, divide, convert_to_decimal, decode_long_double,
70532         scale10_round_long_double, scale10_round_decimal_long_double,
70533         floorlog10l): New functions.
70534         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70535         for the %f, %F, %e, %E, %g, %G directives.
70536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70538         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70539         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70541         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70547         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70548         * modules/snprintf-posix (Depends-on): Likewise.
70549         * modules/sprintf-posix (Depends-on): Likewise.
70550         * modules/vasnprintf-posix (Depends-on): Likewise.
70551         * modules/vasprintf-posix (Depends-on): Likewise.
70552         * modules/vfprintf-posix (Depends-on): Likewise.
70553         * modules/vsnprintf-posix (Depends-on): Likewise.
70554         * modules/vsprintf-posix (Depends-on): Likewise.
70555         * modules/vasnprintf (Files): Add lib/float+.h.
70556         * doc/functions/fprintf.texi: Update.
70557         * doc/functions/printf.texi: Update.
70558         * doc/functions/snprintf.texi: Update.
70559         * doc/functions/sprintf.texi: Update.
70560         * doc/functions/vfprintf.texi: Update.
70561         * doc/functions/vprintf.texi: Update.
70562         * doc/functions/vsnprintf.texi: Update.
70563         * doc/functions/vsprintf.texi: Update.
70564
70565 2007-05-18  Bruno Haible  <bruno@clisp.org>
70566
70567         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70568
70569 2007-05-18  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70572         for printing 64-bit integers. Needed for mingw.
70573
70574 2007-05-18  Bruno Haible  <bruno@clisp.org>
70575
70576         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70577         gl_FUNC_FREXPL_WORKS.
70578         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70579
70580 2007-05-18  Bruno Haible  <bruno@clisp.org>
70581
70582         * modules/frexpl-nolibm-tests: New file.
70583
70584         * modules/frexpl-nolibm: New file.
70585         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70586
70587 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70590         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70591         GCC 4.2, which otherwise issues a lot of warnings.
70592         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70593         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70594         Likewise.
70595         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70596         * modules/iconv_open (iconv.h): Likewise.
70597         * modules/locale (locale.h): Likewise.
70598         * modules/netinet_in (netinet/in.h): Likewise.
70599         * modules/sys_select (sys_select.h): Likewise.
70600         * modules/sys_socket (sys/socket.h): Likewise.
70601         * modules/sys_stat (sys/stat.h): Likewise.
70602         * modules/sysexits (sysexits.h): Likewise.
70603         * modules/unistd (unistd.h): Likewise.
70604
70605 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70606
70607         * modules/closein-tests (Makefile.am): Distribute
70608         `test-closein.sh'.
70609
70610 2007-05-17  Bruno Haible  <bruno@clisp.org>
70611
70612         * tests/test-printf-posix.output: Renamed from
70613         tests/test-fprintf-posix.out.
70614         * modules/fprintf-posix-tests: Update.
70615         * modules/printf-posix-tests: Update.
70616         * modules/vfprintf-posix-tests: Update.
70617         * modules/vprintf-posix-tests: Update.
70618         * tests/test-fprintf-posix.sh: Update.
70619         * tests/test-printf-posix.sh: Update.
70620         * tests/test-vfprintf-posix.sh: Update.
70621         * tests/test-vprintf-posix.sh: Update.
70622         Reported by Ralf Wildenhues.
70623
70624 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70625
70626         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70627         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70628         GCC 4.2, which otherwise issues a lot of warnings.
70629         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70630         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70631         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70632         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70633         it should no longer be needed.
70634         * lib/string_.h: Likewise.
70635         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70636         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70637         * modules/inttypes (inttypes.h): Likewise.
70638         * modules/math (math.h): Likewise.
70639         * modules/search (search.h): Likewise.
70640         * modules/signal (signal.h): Likewise.
70641         * modules/stdint (stdint.h): Likewise.
70642         * modules/stdio (stdio.h): Likewise.
70643         * modules/stdlib (stdlib.h): Likewise.
70644         * modules/string (string.h): Likewise.
70645         * modules/sys_time (sys/time.h): Likewise.
70646         * modules/time (time.h): Likewise.
70647         * modules/wchar (wchar.h): Likewise.
70648         * modules/wctype (wtype.h): Likewise.
70649
70650 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70651
70652         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70653
70654 2007-05-13  Bruno Haible  <bruno@clisp.org>
70655
70656         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70657         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70658         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70659         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70660         (gl_PREREQ_STRTOK_R): Don't require it here.
70661
70662 2007-05-13  Bruno Haible  <bruno@clisp.org>
70663
70664         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70665         when used in C++ mode.
70666
70667 2007-05-12  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/linebuffer.h: Tweak doc.
70670         * lib/linebuffer.c: Likewise.
70671
70672 2007-05-12  James Youngman  <jay@gnu.org>
70673
70674         * lib/linebuffer.c (readlinebuffer_delim): New function,
70675         like readlinebuffer, but use a caller-specified delimiter.
70676         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70677         as the delimiter.
70678         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70679
70680 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70681
70682         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70683         * modules/openat (Files): Remove openat-die.c.
70684         (Depends-on): Add openat-die.
70685         * modules/openat-die: New module.
70686
70687 2007-05-06  Bruno Haible  <bruno@clisp.org>
70688
70689         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70690         Update with info about Cygwin.
70691         * doc/functions/fprintf.texi: Update.
70692         * doc/functions/printf.texi: Update.
70693         * doc/functions/snprintf.texi: Update.
70694         * doc/functions/sprintf.texi: Update.
70695         * doc/functions/vfprintf.texi: Update.
70696         * doc/functions/vprintf.texi: Update.
70697         * doc/functions/vsnprintf.texi: Update.
70698         * doc/functions/vsprintf.texi: Update.
70699         Reported by Eric Blake.
70700
70701 2007-05-06  Bruno Haible  <bruno@clisp.org>
70702
70703         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70704         padding ourselves for the floating-point directives.
70705         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70708         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70709         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70711         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70712         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70713         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70715         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70716         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70717         * tests/test-snprintf-posix.h (test_function): Also check the width
70718         and some flags in the %f directive.
70719         * tests/test-sprintf-posix.h (test_function): Likewise.
70720         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70721         * tests/test-vasprintf-posix.c (test_function): Likewise.
70722         * doc/functions/fprintf.texi: Update.
70723         * doc/functions/printf.texi: Update.
70724         * doc/functions/snprintf.texi: Update.
70725         * doc/functions/sprintf.texi: Update.
70726         * doc/functions/vfprintf.texi: Update.
70727         * doc/functions/vprintf.texi: Update.
70728         * doc/functions/vsnprintf.texi: Update.
70729         * doc/functions/vsprintf.texi: Update.
70730
70731 2007-05-06  Bruno Haible  <bruno@clisp.org>
70732
70733         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70734         pass the ' flag character to sprintf or snprintf.
70735         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70736         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70737         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70738         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70739         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70740         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70741         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70743         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70744         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70746         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70747         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70748         flag.
70749         * tests/test-sprintf-posix.h (test_function): Likewise.
70750         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70751         * tests/test-vasprintf-posix.c (test_function): Likewise.
70752         * doc/functions/fprintf.texi: Update.
70753         * doc/functions/printf.texi: Update.
70754         * doc/functions/snprintf.texi: Update.
70755         * doc/functions/sprintf.texi: Update.
70756         * doc/functions/vfprintf.texi: Update.
70757         * doc/functions/vprintf.texi: Update.
70758         * doc/functions/vsnprintf.texi: Update.
70759         * doc/functions/vsprintf.texi: Update.
70760
70761 2007-05-01  Bruno Haible  <bruno@clisp.org>
70762
70763         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70764
70765 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70766
70767         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70768         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70769
70770 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70771
70772         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70773         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70774         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70775
70776 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70777
70778         * lib/argp-help.c (struct hol_entry): New member `ord'.
70779         (HOL_ENTRY_PTRCMP): Use ord for comparison
70780         (hol_sort): Initialize ord.
70781
70782 2007-05-01  Bruno Haible  <bruno@clisp.org>
70783
70784         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70785         Reported by Eric Blake.
70786         * doc/gnulib.texi (Function Substitutes): Update.
70787
70788 2007-05-01  Bruno Haible  <bruno@clisp.org>
70789
70790         * doc/functions.texi: Remove file, now redundant through
70791         doc/functions/*.texi.
70792
70793 2007-05-01  Bruno Haible  <bruno@clisp.org>
70794
70795         * modules/argp (Depends-on): Add sleep.
70796
70797 2007-05-01  Bruno Haible  <bruno@clisp.org>
70798
70799         * modules/sleep-tests: New file.
70800         * tests/test-sleep.c: New file.
70801
70802         * modules/sleep: New file.
70803         * lib/sleep.c: New file.
70804         * m4/sleep.m4: New file.
70805         * lib/unistd_.h (sleep): New declaration.
70806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70807         HAVE_SLEEP.
70808         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70809         * doc/functions/sleep.texi: Document the sleep module.
70810
70811 2007-05-01  Bruno Haible  <bruno@clisp.org>
70812
70813         * lib/sigprocmask.h: Remove file.
70814         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70815         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70816         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70817         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70818         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70819         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70820         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70821         HAVE_SIGSET_T as a shell variable.
70822         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70823         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70824         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70825         (Depends-on): Add signal. Remove verify.
70826         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70827         (Include): Mention <signal.h> instead of sigprocmask.h.
70828         * NEWS: Mention the change.
70829         * lib/fatal-signal.c: Don't include sigprocmask.h.
70830
70831 2007-05-01  Bruno Haible  <bruno@clisp.org>
70832
70833         * modules/signal: New file.
70834         * lib/signal_.h: New file.
70835         * m4/signal_h.m4: New file.
70836
70837 2007-05-01  Bruno Haible  <bruno@clisp.org>
70838
70839         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70840         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70841         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70842         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70843
70844 2007-05-01  Bruno Haible  <bruno@clisp.org>
70845
70846         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70847         configure time.
70848         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70849         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70850         * modules/sys_stat (Makefile.am): Substitute their values into
70851         sys/stat.h.
70852
70853 2007-05-01  Bruno Haible  <bruno@clisp.org>
70854
70855         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70856         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70857         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70858
70859 2007-05-01  Bruno Haible  <bruno@clisp.org>
70860
70861         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70862         'assert' module here.
70863
70864 2007-05-01  Bruno Haible  <bruno@clisp.org>
70865
70866         * doc/functions/*.texi: New files.
70867         * doc/functions/google-ranking.txt: New file.
70868         * doc/gnulib.texi (Function Substitutes): New chapter.
70869         (ctime, inet_ntoa): Remove sections.
70870         * doc/ctime.texi: Remove file.
70871         * doc/inet_ntoa.texi: Remove file.
70872         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70873         dependencies.
70874         (%.info): New rule, specifying a --reference-limit.
70875
70876 2007-05-01  Bruno Haible  <bruno@clisp.org>
70877
70878         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70879
70880 2007-05-01  Bruno Haible  <bruno@clisp.org>
70881
70882         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70883         the portability of 'mkdir' to mingw systems.
70884
70885 2007-05-01  Bruno Haible  <bruno@clisp.org>
70886
70887         * doc/headers/google-ranking.txt: New file.
70888
70889 2007-04-30  Eric Blake  <ebb9@byu.net>
70890
70891         Prefer fseeko to fseek.
70892         * modules/getpass (Depends-on): Add fseeko.
70893         * lib/getpass.c (getpass): Use fseeko, not fseek.
70894
70895 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70896
70897         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70898         assumes the sorting is stable, while most qsort implementations
70899         are not.  Use argument addresses to ensure they never compare as
70900         equal.
70901
70902         * tests/test-argp-2.sh (usage-indent test): Fix output
70903         (func_compare): Restore diff options
70904         * tests/test-argp.c: Restore #include "progname.h"
70905
70906 2007-04-29  Bruno Haible  <bruno@clisp.org>
70907
70908         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70909         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70910         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70912         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70913         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70914         (TESTS, check_PROGRAMS): Add test-snprintf.
70915         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70916         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70917         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70918         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70919         assertions that fail on HP-UX, OSF/1, or IRIX.
70920         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70921
70922 2007-04-29  Bruno Haible  <bruno@clisp.org>
70923
70924         * MODULES.html.sh (posix_functions): Remove 'contents'.
70925
70926 2007-04-29  Karl Berry  <karl@gnu.org>
70927
70928         * config/srclist.txt (gendocs_template_min): new entry.
70929
70930 2007-04-29  Bruno Haible  <bruno@clisp.org>
70931
70932         Work around fpurge bug on BSD systems.
70933         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70934         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70935         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70936         fpurge to rpl_fpurge if the system already has this function.
70937         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70938         the case where the system already has this function. Correct invariants
70939         on BSD systems.
70940         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70941         BSD systems.
70942
70943 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70944
70945         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70946         proposed by Sven Verdoolaege.
70947
70948         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70949         options.
70950         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70951         (usage and help tests): Update
70952
70953 2007-04-29  Bruno Haible  <bruno@clisp.org>
70954
70955         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70956         Print more information in case of failure. Disable a test on BeOS.
70957
70958 2007-04-29  Bruno Haible  <bruno@clisp.org>
70959
70960         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70961         This helps debugging on systems on which no gdb is available.
70962
70963 2007-04-29  Bruno Haible  <bruno@clisp.org>
70964
70965         * lib/freading.h: Improve comments.
70966         * lib/fwriting.h: Likewise.
70967         * tests/test-freading.c (main): Don't check freading immediately after
70968         repositioning. Needed for glibc.
70969
70970 2007-04-29  Bruno Haible  <bruno@clisp.org>
70971
70972         * lib/freading.c (freading): Trivial simplification.
70973
70974 2007-04-28  Bruno Haible  <bruno@clisp.org>
70975
70976         * tests/test-fwriting.c (main): Also test the interaction between
70977         fflush and fwriting.
70978         * modules/fwriting-tests (Depends-on): Add fflush.
70979
70980         * tests/test-freading.c (main): Also test the interaction between
70981         fflush and freading.
70982         * modules/freading-tests (Depends-on): Add fflush.
70983
70984 2007-04-28  Bruno Haible  <bruno@clisp.org>
70985
70986         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70987         fseeko and ftello.
70988         Suggested by Eric Blake.
70989
70990 2007-04-28  Jim Meyering  <jim@meyering.net>
70991
70992         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70993         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70994         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70995
70996 2007-04-27  Eric Blake  <ebb9@byu.net>
70997
70998         * doc/headers/assert.texi (assert.h): Document assert module use.
70999
71000 2007-04-27  Bruno Haible  <bruno@clisp.org>
71001
71002         * doc/headers/*.texi: New files.
71003         * doc/gnulib.texi (Header File Substitutes): New chapter.
71004         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
71005         dependencies.
71006         (standards.info ,standards.html, standards.dvi): Update dependencies.
71007         (mostlyclean, clean): New targets.
71008
71009 2007-04-27  Bruno Haible  <bruno@clisp.org>
71010
71011         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
71012         * modules/sysexits (Files, Makefile.am): Update.
71013
71014         * lib/sys_socket_.h: Renamed from lib/socket_.h.
71015         * modules/sys_socket (Files, Makefile.am): Update.
71016
71017         * lib/sys_stat_.h: Renamed from lib/stat_.h.
71018         * modules/sys_stat (Files, Makefile.am): Update.
71019
71020 2007-04-27  Eric Blake  <ebb9@byu.net>
71021
71022         * lib/freading.h: Improve comments.
71023         * lib/fwriting.h: Likewise.
71024         * lib/fflush.c: Likewise.
71025
71026         Fix closein for mingw.
71027         * modules/closein-tests: Add tests for closein.
71028         * tests/test-closein.c: New file.
71029         * tests/test-closein.sh: Likewise.
71030         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
71031         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
71032
71033 2007-04-27  Bruno Haible  <bruno@clisp.org>
71034
71035         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
71036         version is < 6.
71037         * lib/math_.h [__DECC]: Likewise.
71038         * lib/stdio_.h [__DECC]: Likewise.
71039         * lib/stdlib_.h [__DECC]: Likewise.
71040         * lib/string_.h [__DECC]: Likewise.
71041         * lib/time_.h [__DECC]: Likewise.
71042         * lib/wchar_.h [__DECC]: Likewise.
71043         * lib/wctype_.h [__DECC]: Likewise.
71044
71045 2007-04-27  Bruno Haible  <bruno@clisp.org>
71046
71047         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
71048
71049 2007-04-27  Bruno Haible  <bruno@clisp.org>
71050
71051         * lib/fflush.c: Add comments.
71052         * modules/fpurge-tests (Depends-on): Add fflush.
71053         * modules/freadable-tests (Depends-on): Likewise.
71054         * modules/fwritable-tests (Depends-on): Likewise.
71055
71056 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
71057
71058         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
71059         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
71060         Report by Bruno Haible <bruno@clisp.org>.
71061
71062 2007-04-26  Eric Blake  <ebb9@byu.net>
71063
71064         Fix fflush on mingw.
71065         * modules/fflush (Depends-on): Add freading.
71066         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
71067         but unread data.
71068
71069 2007-04-26  Eric Blake  <ebb9@byu.net>
71070         and Bruno Haible  <bruno@clisp.org>
71071
71072         Implement freading and fwriting.
71073         * lib/freading.c: New file.
71074         * lib/freading.h: Likewise.
71075         * m4/freading.m4: Likewise.
71076         * modules/freading: Likewise.
71077         * modules/freading-tests: Likewise.
71078         * tests/test-freading.c: Likewise.
71079         * lib/fwriting.c: New file.
71080         * lib/fwriting.h: Likewise.
71081         * m4/fwriting.m4: Likewise.
71082         * modules/fwriting: Likewise.
71083         * modules/fwriting-tests: Likewise.
71084         * tests/test-fwriting.c: Likewise.
71085         * MODULES.html.sh (File stream based Input/Output): Mention them.
71086
71087 2007-04-26  Bruno Haible  <bruno@clisp.org>
71088
71089         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71090         'long' when we assume it.
71091         Suggested by Eric Blake.
71092
71093 2007-04-26  Bruno Haible  <bruno@clisp.org>
71094
71095         Ensure fseeko, ftello are declared on glibc systems.
71096         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71097         * modules/fseeko (configure.ac-early): Likewise.
71098         * modules/ftello (configure.ac-early): Likewise.
71099         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71100         AC_FUNC_FSEEKO for this.
71101         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71102         (gl_CHECK_FSEEKO): Remove macro.
71103
71104 2007-04-26  Bruno Haible  <bruno@clisp.org>
71105
71106         * tests/test-fflush.c (main): Also check the ftell result after
71107         fflush and fseek/fseeko.
71108         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71109         file descriptor position cache in the stream.
71110         * lib/fseeko.c (rpl_fseeko): Likewise.
71111
71112 2007-04-26  Bruno Haible  <bruno@clisp.org>
71113
71114         * modules/fflush-tests (Depends-on): Add fseeko.
71115
71116 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71117             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71118
71119         * lib/argz_.h: ensure error_t definition is obtained in same
71120         mechanism system argz.h would have.
71121         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71122         argz facilities are known bad.  Err on the side of caution if
71123         cross-compiling.
71124
71125 2007-04-25  Eric Blake  <ebb9@byu.net>
71126
71127         * lib/fpurge.c (includes): Use stdlib.h for free.
71128         * tests/test-fflush.c (main): Also test fflush-fseeko.
71129
71130 2007-04-25  Bruno Haible  <bruno@clisp.org>
71131
71132         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71133         * lib/fseeko.c: New file.
71134         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71135         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71136         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71137         gl_FUNC_FSEEKO.
71138         (gl_FUNC_FSEEKO): Invoke it.
71139         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71140         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71141         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71142
71143 2007-04-25  Bruno Haible  <bruno@clisp.org>
71144
71145         * modules/fflush (Depends-on): Add ftello.
71146
71147 2007-04-25  Bruno Haible  <bruno@clisp.org>
71148
71149         * modules/ftello-tests: New file.
71150         * tests/test-ftello.c: New file.
71151
71152         * modules/ftello: New file.
71153         * m4/ftello.m4: New file.
71154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71155         HAVE_FTELLO.
71156         * lib/stdio_.h (ftello): New declaration.
71157         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71158         HAVE_FTELLO.
71159
71160 2007-04-25  Bruno Haible  <bruno@clisp.org>
71161
71162         * modules/fseeko-tests: New file.
71163         * tests/test-fseeko.c: New file.
71164
71165         * modules/fseeko: New file.
71166         * m4/fseeko.m4: New file.
71167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71168         HAVE_FSEEKO.
71169         * lib/stdio_.h (fseeko): New declaration.
71170         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71171         HAVE_FSEEKO.
71172
71173 2007-04-25  Bruno Haible  <bruno@clisp.org>
71174
71175         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71176
71177 2007-04-25  Bruno Haible  <bruno@clisp.org>
71178
71179         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71180         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71181         * tests/test-unistd.c: Likewise.
71182         * tests/test-fcntl.c: Likewise.
71183
71184 2007-04-23  Eric Blake  <ebb9@byu.net>
71185
71186         * lib/fflush.c: Fix missing include.
71187         Reported by Bruno Haible.
71188
71189 2007-04-23  Bruno Haible  <bruno@clisp.org>
71190
71191         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71192         Reported by Eric Blake.
71193
71194 2007-04-23  Bruno Haible  <bruno@clisp.org>
71195
71196         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71197
71198 2007-04-23  Bruno Haible  <bruno@clisp.org>
71199
71200         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71201
71202 2007-04-23  Bruno Haible  <bruno@clisp.org>
71203
71204         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71205         Needed on HP-UX 11.
71206
71207 2007-04-16  Eric Blake  <ebb9@byu.net>
71208
71209         Make fflush rely on fpurge.
71210         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71211         open coding all variants.
71212         * modules/fflush (Depends-on): Add fpurge and unistd.
71213         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71214         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71215
71216         Fix --with-tests compilation on cygwin.
71217         * modules/argmatch-tests (Makefile.am): List gnulib library first
71218         in LDADD.
71219         * modules/argp-tests (Makefile.am): Likewise.
71220         * modules/array-list-tests (Makefile.am): Likewise.
71221         * modules/array-oset-tests (Makefile.am): Likewise.
71222         * modules/avltree-list-tests (Makefile.am): Likewise.
71223         * modules/avltree-oset-tests (Makefile.am): Likewise.
71224         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71225         * modules/carray-list-tests (Makefile.am): Likewise.
71226         * modules/dirname-tests (Makefile.am): Likewise.
71227         * modules/frexp-tests (Makefile.am): Likewise.
71228         * modules/isnanl-tests (Makefile.am): Likewise.
71229         * modules/linked-list-tests (Makefile.am): Likewise.
71230         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71231         * modules/lock-tests (Makefile.am): Likewise.
71232         * modules/rbtree-list-tests (Makefile.am): Likewise.
71233         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71234         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71235         * modules/tls-tests (Makefile.am): Likewise.
71236         * modules/tsearch-tests (Makefile.am): Likewise.
71237         * modules/xvasprintf-tests (Makefile.am): Likewise.
71238
71239         Fix fpurge for cygwin.
71240         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71241         value.
71242         * modules/fpurge-tests (Depends-on): Clean up trash.
71243
71244 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71245
71246         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71247
71248         * m4/autobuild.m4: Re-indent.
71249
71250 2007-04-13  Bruno Haible  <bruno@clisp.org>
71251
71252         * modules/fpurge-tests: New file.
71253         * tests/test-fpurge.c: New file.
71254
71255         * modules/fpurge: New file.
71256         * lib/fpurge.h: New file.
71257         * lib/fpurge.c: New file.
71258         * m4/fpurge.m4: New file.
71259
71260 2007-04-13  Bruno Haible  <bruno@clisp.org>
71261
71262         * modules/fbufmode-tests: New file.
71263         * tests/test-fbufmode.c: New file.
71264
71265         * modules/fbufmode: New file.
71266         * lib/fbufmode.h: New file.
71267         * lib/fbufmode.c: New file.
71268         * m4/fbufmode.m4: New file.
71269
71270 2007-04-13  Bruno Haible  <bruno@clisp.org>
71271
71272         * modules/fwritable-tests: New file.
71273         * tests/test-fwritable.c: New file.
71274
71275         * modules/fwritable: New file.
71276         * lib/fwritable.h: New file.
71277         * lib/fwritable.c: New file.
71278         * m4/fwritable.m4: New file.
71279
71280 2007-04-13  Bruno Haible  <bruno@clisp.org>
71281
71282         * modules/freadable-tests: New file.
71283         * tests/test-freadable.c: New file.
71284
71285         * modules/freadable: New file.
71286         * lib/freadable.h: New file.
71287         * lib/freadable.c: New file.
71288         * m4/freadable.m4: New file.
71289
71290 2007-04-13  Bruno Haible  <bruno@clisp.org>
71291
71292         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71293         MOSTLYCLEANFILES.
71294
71295 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71298         gzip bootstrap.conf to avoid dragging in i18n machinery.
71299         (gnulib_tool_option): Use it.
71300
71301 2007-04-13  Bruno Haible  <bruno@clisp.org>
71302
71303         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71304         %F directives.
71305         * tests/test-vasprintf-posix.c (test_function): Likewise.
71306         * tests/test-snprintf-posix.h (test_function): Likewise.
71307         * tests/test-sprintf-posix.h (test_function): Likewise.
71308         * tests/test-fprintf-posix.h (test_function): Likewise.
71309         * tests/test-printf-posix.h (test_function): Likewise.
71310         * tests/test-fprintf-posix.out: Likewise.
71311
71312 2007-04-13  Bruno Haible  <bruno@clisp.org>
71313
71314         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71315         * modules/tls-tests (configure.ac): Likewise.
71316         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71317
71318 2007-04-13  Bruno Haible  <bruno@clisp.org>
71319
71320         * lib/tls.c (glthread_tls_get): Fix return type.
71321         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71322
71323 2007-04-12  Eric Blake  <ebb9@byu.net>
71324
71325         * modules/gettime (Depends-on): Remove gettime.
71326         Reported by Dmitry V. Levin.
71327
71328 2007-04-12  Bruno Haible  <bruno@clisp.org>
71329
71330         * modules/fflush (Include): Mention <stdio.h>.
71331         * modules/strtoimax (Include): Mention <inttypes.h>.
71332         * modules/strtoumax (Include): Likewise.
71333
71334 2007-04-12  Eric Blake  <ebb9@byu.net>
71335
71336         * .cvsignore: New file.
71337         * .gitignore: Likewise.
71338
71339 2007-04-12  Bruno Haible  <bruno@clisp.org>
71340
71341         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71342         not before, since $(LDADD) often contains libgnu.a.
71343         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71344         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71345         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71346         Needed on Cygwin.
71347
71348 2007-04-12  Eric Blake  <ebb9@byu.net>
71349
71350         Work around glibc's failure to flush stdin on fclose.
71351         * lib/closein.c (close_stdin): Flush stdin before closing.
71352
71353         Work around glibc's failure to reset seekable stdin on exit.
71354         * modules/closein: New module.
71355         * lib/closein.c: New file.
71356         * lib/closein.h: Likewise.
71357         * m4/closein.m4: Likewise.
71358         * MODULES.html.sh (File stream based Input/Output): Document it.
71359
71360 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71361
71362         * gnulib-tool: Rename generated 'autobuild' script to
71363         'do-autobuild' in --create-megatestdir output.
71364
71365         * doc/gnulib.texi (Build robot for gnulib): Fix.
71366
71367 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71368
71369         * modules/sysexits (Depends-on): Add absolute-header.
71370
71371 2007-04-12  Eric Blake  <ebb9@byu.net>
71372
71373         No need to preserve errno on success.
71374         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71375         Reported by Bruno Haible.
71376
71377 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71378
71379         * MODULES.html.sh (Support for maintaining and releasing
71380         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71381
71382 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71383
71384         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71385
71386 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71387
71388         * modules/autobuild: New module.
71389
71390         * m4/autobuild.m4: New file.
71391
71392 2007-04-11  Bruno Haible  <bruno@clisp.org>
71393
71394         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71395         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71396         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71399         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71400         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71401         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71402         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71403         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71405         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71406         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71407         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71408         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71409         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71410         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71411         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71412         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71413         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71414         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71415         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71417         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71418         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71419         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71420         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71421         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71422         Reported by Eric Blake.
71423
71424 2007-04-11  Bruno Haible  <bruno@clisp.org>
71425
71426         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71427
71428 2007-04-10  Bruno Haible  <bruno@clisp.org>
71429
71430         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71431         for NaN and Infinity. Needed on FreeBSD 6.1.
71432         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71433         regarding results for "%010a" of Infinity and NaN.
71434         * tests/test-vasprintf-posix.c (test_function): Likewise.
71435         * tests/test-snprintf-posix.h (test_function): Likewise.
71436         * tests/test-sprintf-posix.h (test_function): Likewise.
71437         * tests/test-fprintf-posix.h (test_function): Likewise.
71438         * tests/test-printf-posix.h (test_function): Likewise.
71439         * tests/test-fprintf-posix.out: Likewise.
71440
71441 2007-04-10  Bruno Haible  <bruno@clisp.org>
71442
71443         * modules/locale-tests: New file.
71444         * tests/test-locale.c: New file.
71445
71446         * modules/locale: New file.
71447         * lib/locale_.h: New file.
71448         * m4/locale_h.m4: New file.
71449
71450 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71451             Bruno Haible  <bruno@clisp.org>
71452
71453         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71454         be determined, test for availability of the copysignf, copysign,
71455         copysignl functions.
71456         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71457         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71458         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71459
71460 2007-04-09  Eric Blake  <ebb9@byu.net>
71461
71462         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71463         * modules/stdio (Makefile.am): Support fflush.
71464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71465         * modules/fflush: New file.
71466         * lib/fflush.c: Likewise.
71467         * m4/fflush.m4: Likewise.
71468         * modules/fflush-tests: New test.
71469         * tests/test-fflush.c: Likewise.
71470         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71471
71472 2007-04-06  Bruno Haible  <bruno@clisp.org>
71473
71474         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71475         (VASNPRINTF): Use signbit for faster determination whether to print a
71476         minus sign.
71477         * modules/vasnprintf (Files): Remove lib/float+.h.
71478         * modules/fprintf-posix (Depends-on): Add signbit.
71479         * modules/snprintf-posix (Depends-on): Likewise.
71480         * modules/sprintf-posix (Depends-on): Likewise.
71481         * modules/vasnprintf-posix (Depends-on): Likewise.
71482         * modules/vasprintf-posix (Depends-on): Likewise.
71483         * modules/vfprintf-posix (Depends-on): Likewise.
71484         * modules/vsnprintf-posix (Depends-on): Likewise.
71485         * modules/vsprintf-posix (Depends-on): Likewise.
71486
71487 2007-04-06  Bruno Haible  <bruno@clisp.org>
71488
71489         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71490         * tests/test-frexpl.c (main): Likewise.
71491         * tests/test-ldexpl.c (main): Likewise.
71492         * modules/frexp-tests (Depends-on): Add signbit.
71493         * modules/frexpl-tests (Depdends-on): Likewise.
71494         * modules/ldexpl-tests (Depdends-on): Likewise.
71495
71496 2007-04-06  Bruno Haible  <bruno@clisp.org>
71497
71498         * modules/signbit-tests: New file.
71499         * tests/test-signbit.c: New file.
71500
71501         * modules/signbit: New file.
71502         * lib/signbitf.c: New file.
71503         * lib/signbitd.c: New file.
71504         * lib/signbitl.c: New file.
71505         * m4/signbit.m4: New file.
71506         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71507         (signbit): New macro.
71508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71509         REPLACE_SIGNBIT.
71510         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71511         REPLACE_FREXPL into math.h.
71512
71513 2007-04-06  Bruno Haible  <bruno@clisp.org>
71514
71515         * modules/isnanf-nolibm-tests: New file.
71516         * tests/test-isnanf.c: New file.
71517
71518         * modules/isnanf-nolibm: New file.
71519         * lib/isnanf.h: New file.
71520         * lib/isnanf.c: New file.
71521         * lib/isnan.c: Consider the USE_FLOAT macro.
71522         * m4/isnanf.m4: New file.
71523
71524 2007-04-06  Bruno Haible  <bruno@clisp.org>
71525
71526         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71527         (Link): New section.
71528
71529         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71530
71531 2007-04-06  Bruno Haible  <bruno@clisp.org>
71532
71533         Assume the 'long double' type.
71534         * m4/longdouble.m4: Remove file.
71535         * config/srclist.txt: Don't mention longdouble.m4.
71536         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71537         * lib/float+.h: Likewise.
71538         * lib/frexp.c: Likewise.
71539         * lib/printf-args.h: Likewise.
71540         * lib/printf-args.c: Likewise.
71541         * lib/printf-frexp.c: Likewise.
71542         * lib/printf-parse.c: Likewise.
71543         * lib/vasnprintf.c: Likewise.
71544         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71545         * m4/intl.m4: Likewise.
71546         * m4/isnanl.m4: Likewise.
71547         * m4/printf.m4: Likewise.
71548         * m4/printf-frexpl.m4: Likewise.
71549         * m4/vasnprintf.m4: Likewise.
71550         * modules/allocsa (Files): Remove m4/longdouble.m4.
71551         * modules/gettext (Files): Likewise.
71552         * modules/relocatable-prog-wrapper (Files): Likewise.
71553         * modules/vasnprintf (Files): Likewise.
71554         * modules/isnanl (Files): Likewise.
71555         (Include): Simplify.
71556         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71557         (Include): Simplify.
71558         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71559         (Include): Simplify.
71560         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71561         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71562         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71563         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71564         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71565         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71566         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71567         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71568         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71569         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71570         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71571         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71572         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71573         * tests/test-isnanl.c: Likewise.
71574         * tests/test-snprintf-posix.h: Likewise.
71575         * tests/test-sprintf-posix.h: Likewise.
71576         * tests/test-vasnprintf-posix.c: Likewise.
71577         * tests/test-vasnprintf-posix2.c: Likewise.
71578         * tests/test-vasprintf-posix.c: Likewise.
71579
71580 2007-04-06  Bruno Haible  <bruno@clisp.org>
71581
71582         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71583         * lib/math_.h [__DECC]: Include the overridden include file through
71584         #include_next, outside the double-inclusion guard.
71585         * lib/stdio_.h [__DECC]: Likewise.
71586         * lib/stdlib_.h [__DECC]: Likewise.
71587         * lib/string_.h [__DECC]: Likewise.
71588         * lib/time_.h [__DECC]: Likewise.
71589         * lib/wchar_.h [__DECC]: Likewise.
71590         * lib/wctype_.h [__DECC]: Likewise.
71591         * lib/inttypes_.h [__DECC]: Likewise.
71592         Reported by Albert Chin <china@thewrittenword.com> in
71593         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71594
71595 2007-04-04  Eric Blake  <ebb9@byu.net>
71596
71597         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71598         1.5.x.
71599
71600 2007-04-04  Bruno Haible  <bruno@clisp.org>
71601
71602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71603         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71604
71605 2007-04-04  Bruno Haible  <bruno@clisp.org>
71606
71607         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71608         results for "%010a" of Infinity and NaN.
71609         * tests/test-vasprintf-posix.c (test_function): Likewise.
71610         * tests/test-snprintf-posix.h (test_function): Likewise.
71611         * tests/test-sprintf-posix.h (test_function): Likewise.
71612         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71613         * tests/test-printf-posix.h (test_function): Likewise.
71614         * tests/test-fprintf-posix.out: Update.
71615         Needed for FreeBSD 6.1.
71616
71617 2007-04-04  Bruno Haible  <bruno@clisp.org>
71618
71619         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71620         directly used by the gnulib modules nor by gnulib-tool.
71621
71622 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * DEPENDENCIES: Give overall description of version dependency
71625         desirability.  Use more-typical names for apps.
71626         Add shell, coreutils, diffutils, grep, tar, gzip.
71627
71628 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71629
71630         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71631
71632 2007-04-04  Karl Berry  <karl@gnu.org>
71633
71634         * MODULES.html.sh (func_module): missing '.
71635
71636 2007-04-03  Bruno Haible  <bruno@clisp.org>
71637
71638         * modules/argmatch-tests (Makefile.am): New variable
71639         test_argmatch_LDADD.
71640         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71641         * modules/array-list-tests (Makefile.am): New variable
71642         test_array_list_LDADD.
71643         * modules/array-oset-tests (Makefile.am): New variable
71644         test_array_oset_LDADD.
71645         * modules/avltree-list-tests (Makefile.am): New variable
71646         test_avltree_list_LDADD.
71647         * modules/avltree-oset-tests (Makefile.am): New variable
71648         test_avltree_oset_LDADD.
71649         * modules/avltreehash-list-tests (Makefile.am): New variable
71650         test_avltreehash_list_LDADD.
71651         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71652         test_canonicalize_lgpl_LDADD.
71653         * modules/carray-list-tests (Makefile.am): New variable
71654         test_carray_list_LDADD.
71655         * modules/dirname-tests (Makefile.am): New variable
71656         test_dirname_LDADD.
71657         * modules/linked-list-tests (Makefile.am): New variable
71658         test_linked_list_LDADD.
71659         * modules/linkedhash-list-tests (Makefile.am): New variable
71660         test_linkedhash_list_LDADD.
71661         * modules/rbtree-list-tests (Makefile.am): New variable
71662         test_rbtree_list_LDADD.
71663         * modules/rbtree-oset-tests (Makefile.am): New variable
71664         test_rbtree_oset_LDADD.
71665         * modules/rbtreehash-list-tests (Makefile.am): New variable
71666         test_rbtreehash_list_LDADD.
71667         * modules/xvasprintf-tests (Makefile.am): New variable
71668         test_xvasprintf_LDADD.
71669         Reported by Eric Blake.
71670
71671 2007-04-03  Eric Blake  <ebb9@byu.net>
71672
71673         * DEPENDENCIES: Weaken m4 requirements.
71674
71675 2007-04-03  Bruno Haible  <bruno@clisp.org>
71676
71677         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71678         * modules/isnanl-tests (configure.ac): Likewise.
71679
71680 2007-04-03  Ben Pfaff  <blp@gnu.org>
71681
71682         * modules/iconv_open: Add $(srcdir)/ to source directory
71683         references in Makefile fragments that call gperf, to fix VPATH
71684         builds.
71685
71686 2007-04-03  Bruno Haible  <bruno@clisp.org>
71687
71688         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71689         * lib/ldexpl.c: Undo last change.
71690
71691 2007-04-03  Bruno Haible  <bruno@clisp.org>
71692
71693         * modules/printf-frexpl (Depends-on): Undo last change.
71694         (Files): Add m4/ldexpl.m4.
71695
71696 2007-04-03  Bruno Haible  <bruno@clisp.org>
71697
71698         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71699         * modules/isnanl (Link): New section.
71700
71701         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71702         * modules/frexp (Link): New section.
71703
71704         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71705         * modules/frexpl (Link): New section.
71706
71707         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71708         * modules/ldexpl (Link): New section.
71709
71710 2007-04-03  Bruno Haible  <bruno@clisp.org>
71711
71712         * modules/TEMPLATE-EXTENDED: New file.
71713         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71714
71715 2007-04-03  Bruno Haible  <bruno@clisp.org>
71716
71717         * DEPENDENCIES: New file.
71718         Suggested by Simon Josefsson.
71719
71720 2007-04-03  Bruno Haible  <bruno@clisp.org>
71721
71722         * doc/gnulib.texi: Escape @.
71723
71724 2007-04-03  James Youngman  <jay@gnu.org>
71725         and Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71728         birthtime on all systems that have birthtime, not just those which
71729         use st_birthtimensec rather than st_birthtim.  Putting zero in
71730         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71731         that the birth time is not available for files on an NFS mount.
71732
71733 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71734
71735         * modules/memxor: Move back from crypto/, suggested by Bruno.
71736         * modules/crypto/hmac-sha1: Fix memxor dependency.
71737
71738         * modules/crypto/gc: Moved from ../.
71739
71740 2007-04-02  Eric Blake  <ebb9@byu.net>
71741
71742         * lib/ldexpl.c (includes): Avoid libm.
71743
71744         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71745
71746 2007-04-02  Bruno Haible  <bruno@clisp.org>
71747
71748         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71749         on IRIX.
71750
71751 2007-04-02  Bruno Haible  <bruno@clisp.org>
71752
71753         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71754         x86 or x86_64 platforms running MacOS X.
71755         Reported by Ryan Schmidt <@ryandesign.com>.
71756
71757 2007-04-02  Bruno Haible  <bruno@clisp.org>
71758
71759         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71760         i386.
71761
71762 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71763
71764         * modules/crypto/arcfour: Moved from ../.
71765         * modules/crypto/arcfour-tests: Moved from ../.
71766         * modules/crypto/arctwo: Moved from ../.
71767         * modules/crypto/arctwo-tests: Moved from ../.
71768         * modules/crypto/des: Moved from ../.
71769         * modules/crypto/des-tests: Moved from ../.
71770         * modules/crypto/gc-arcfour: Moved from ../.
71771         * modules/crypto/gc-arcfour-tests: Moved from ../.
71772         * modules/crypto/gc-arctwo: Moved from ../.
71773         * modules/crypto/gc-arctwo-tests: Moved from ../.
71774         * modules/crypto/gc-des: Moved from ../.
71775         * modules/crypto/gc-des-tests: Moved from ../.
71776         * modules/crypto/gc-hmac-md5: Moved from ../.
71777         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71778         * modules/crypto/gc-hmac-sha1: Moved from ../.
71779         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71780         * modules/crypto/gc-md2: Moved from ../.
71781         * modules/crypto/gc-md2-tests: Moved from ../.
71782         * modules/crypto/gc-md4: Moved from ../.
71783         * modules/crypto/gc-md4-tests: Moved from ../.
71784         * modules/crypto/gc-md5: Moved from ../.
71785         * modules/crypto/gc-md5-tests: Moved from ../.
71786         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71787         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71788         * modules/crypto/gc-random: Moved from ../.
71789         * modules/crypto/gc-rijndael: Moved from ../.
71790         * modules/crypto/gc-rijndael-tests: Moved from ../.
71791         * modules/crypto/gc-sha1: Moved from ../.
71792         * modules/crypto/gc-sha1-tests: Moved from ../.
71793         * modules/crypto/gc-tests: Moved from ../.
71794         * modules/crypto/hmac-md5: Moved from ../.
71795         * modules/crypto/hmac-md5-tests: Moved from ../.
71796         * modules/crypto/hmac-sha1: Moved from ../.
71797         * modules/crypto/hmac-sha1-tests: Moved from ../.
71798         * modules/crypto/md2: Moved from ../.
71799         * modules/crypto/md2-tests: Moved from ../.
71800         * modules/crypto/md4: Moved from ../.
71801         * modules/crypto/md4-tests: Moved from ../.
71802         * modules/crypto/md5: Moved from ../.
71803         * modules/crypto/md5-tests: Moved from ../.
71804         * modules/crypto/memxor: Moved from ../.
71805         * modules/crypto/rijndael: Moved from ../.
71806         * modules/crypto/rijndael-tests: Moved from ../.
71807         * modules/crypto/sha1: Moved from ../.
71808
71809 2007-03-30  James Youngman  <jay@gnu.org>
71810
71811         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71812         rename() to change the ctime of a file (because ctime is unaffected
71813         by rename on jfs2 on AIX 5.1).
71814         (main): Start by doing cleanup, in case a previous run failed leaving
71815         test files behind.
71816
71817 2007-03-31  Bruno Haible  <bruno@clisp.org>
71818
71819         Support old proprietary implementations of iconv.
71820         * modules/iconv_open: New file.
71821         * lib/iconv_.h: New file.
71822         * m4/iconv_h.m4: New file.
71823         * lib/iconv_open.c: New file.
71824         * lib/iconv_open-aix.gperf: New file.
71825         * lib/iconv_open-hpux.gperf: New file.
71826         * lib/iconv_open-irix.gperf: New file.
71827         * lib/iconv_open-osf.gperf: New file.
71828         * m4/iconv_open.m4: New file.
71829         * modules/linebreak (Depends-on): Add iconv_open.
71830         * modules/striconv (Depends-on): Likewise.
71831         * modules/striconveh (Depends-on): Likewise.
71832         * modules/unicodeio (Depends-on): Likewise.
71833         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71834         (iconv_t)(-1).
71835         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71836         conversion if cd is (iconv_t)(-1).
71837         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71838         is not possible.
71839
71840 2007-03-31  Bruno Haible  <bruno@clisp.org>
71841
71842         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71843         work on Solaris either. Protect also second use of "autodetect_jp".
71844
71845 2007-03-31  Bruno Haible  <bruno@clisp.org>
71846
71847         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71848         the function is not present.
71849
71850 2007-03-31  Bruno Haible  <bruno@clisp.org>
71851
71852         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71853         the function is not present.
71854
71855 2007-03-31  Bruno Haible  <bruno@clisp.org>
71856
71857         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71858         a bug in HP-UX iconv_open().
71859
71860 2007-03-31  Bruno Haible  <bruno@clisp.org>
71861
71862         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71863         (Mathematics <math.h>): New section, add fpieee.
71864         (Input/output <stdio.h>): Add fseterr.
71865         (Mathematics <math.h>): New section, add printf-frexp.
71866         (Container data structures): Add sublist.
71867         (Core language properties): Add fpucw, inline.
71868         (Functions for greatest-width integer types <inttypes.h>): Add
71869         imaxabs, imaxdiv, inttypes.
71870         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71871         isnanl-nolibm, ldexp.
71872         (Mathematics <math.h>): New section, add printf-frexpl.
71873         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71874         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71875         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71876         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71877         (Unicode string functions): Add unistr/u*-mbtoucr.
71878         (Java): Add javacomp-script, javaexec-script.
71879         (C#): Add csharpcomp-script, csharpexec-script.
71880         (Support for building libraries and executables): Add havelib,
71881         relocatable-*.
71882         (Support for maintaining and releasing projects): Renamed from
71883         'Support for maintaining and release projects'. Add announce-gen.
71884
71885 2007-03-31  Bruno Haible  <bruno@clisp.org>
71886
71887         * README: Talk primarily about git.
71888         (git and CVS): Renamed from CVS.
71889         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71890         gnulib is available through git.
71891         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71892
71893 2007-03-30  Bruno Haible  <bruno@clisp.org>
71894
71895         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71896         * lib/poll_.h: Likewise.
71897         * lib/stat_.h: Likewise.
71898         * lib/sys_time_.h: Likewise.
71899         * lib/sysexit_.h: Likewise.
71900         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71901         * lib/stdbool_.h: Likewise.
71902         * lib/byteswap_.h: Add double-inclusion guard.
71903
71904 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71905
71906         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71907
71908 2007-03-30  Karl Berry  <karl@gnu.org>
71909
71910         * config/srclist-update: double space after USA in the license
71911         substitution, since that's how it's usually (?) written.
71912
71913 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71914
71915         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71916         reported by Bruno Haible.
71917
71918 2007-03-29  Bruno Haible  <bruno@clisp.org>
71919
71920         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71921         a bug in AIX iconv().
71922
71923 2007-03-29  Bruno Haible  <bruno@clisp.org>
71924
71925         * modules/ldexpl-tests: New file.
71926         * tests/test-ldexpl.c: New file.
71927
71928 2007-03-29  Bruno Haible  <bruno@clisp.org>
71929
71930         * lib/ldexpl.c: Include fpucw.h.
71931         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71932         multiplication.
71933         * modules/ldexpl (Depends-on): Add fpucw.
71934
71935 2007-03-29  Bruno Haible  <bruno@clisp.org>
71936
71937         * modules/ldexpl: New file.
71938         * m4/ldexpl.m4: New file.
71939         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71940         set.
71941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71942         REPLACE_LDEXPL.
71943         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71944         REPLACE_LDEXPL.
71945         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71946         gl_FUNC_LDEXPL_WORKS.
71947         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71948         * modules/mathl (Files): Remove lib/ldexpl.c.
71949         (Depends-on): Add ldexpl.
71950
71951 2007-03-29  Bruno Haible  <bruno@clisp.org>
71952
71953         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71954
71955 2007-03-29  Bruno Haible  <bruno@clisp.org>
71956
71957         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71958         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71959         and possibly also HP-UX.
71960         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71961         work on AIX, IRIX, HP-UX, OSF/1.
71962         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71963         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71964         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71965         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71966         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71967         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71968
71969 2007-03-29  Bruno Haible  <bruno@clisp.org>
71970
71971         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71972
71973 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71976         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71977
71978 2007-03-29  Eric Blake  <ebb9@byu.net>
71979
71980         * lib/acl-internal.h: Remove redundant include.
71981         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71982         Cygwin when a file is locked.
71983
71984 2007-03-29  Bruno Haible  <bruno@clisp.org>
71985
71986         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71987         file.
71988         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71989
71990 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71991
71992         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71993         try to remove a parent directory if the child couldn't be removed
71994         (except for the first rmdir, which could fail because the child
71995         doesn't exist).  Problem reported by Jeff Blaine in
71996         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71997
71998 2007-03-28  Bruno Haible  <bruno@clisp.org>
71999
72000         * lib/striconveh.c (utf8conv_carefully): New function.
72001         (mem_cd_iconveh_internal): Invoke it.
72002
72003 2007-03-28  Bruno Haible  <bruno@clisp.org>
72004
72005         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
72006         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
72007         input.
72008         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
72009         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
72010         unistr/u8-uctomb.
72011
72012 2007-03-28  Bruno Haible  <bruno@clisp.org>
72013
72014         * modules/unistr/u8-mbtoucr: New file.
72015         * lib/unistr/u8-mbtoucr.c: New file.
72016         * modules/unistr/u16-mbtoucr: New file.
72017         * lib/unistr/u16-mbtoucr.c: New file.
72018         * modules/unistr/u16-mbtoucr: New file.
72019         * lib/unistr/u16-mbtoucr.c: New file.
72020         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
72021
72022 2007-03-27  Simon Josefsson  <simon@josefsson.org>
72023             Bruno Haible  <bruno@clisp.org>
72024
72025         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
72026         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
72027         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
72028
72029         * m4/stdio_h.m4: Add stubs for vasprintf too.
72030
72031         * modules/stdio: Support vasprintf in sed command.
72032
72033         * modules/vasprintf: Depend on stdio for prototypes.  Remove
72034         vasprintf.h.  Add stdio module indicator.
72035
72036         * lib/stdio_.h: Declare asprintf and vasprintf, based on
72037         vasprintf.h.
72038
72039         * lib/vasprintf.h: File removed.
72040
72041         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
72042         * lib/vasprintf.c: Ditto.
72043         * lib/xvasprintf.c: Ditto.
72044         * tests/test-vasprintf-posix.c: Ditto.
72045         * tests/test-vasprintf.c: Ditto.
72046
72047 2007-03-27  Bruno Haible  <bruno@clisp.org>
72048
72049         Make vasnprintf multithread-safe.
72050         * lib/vasnprintf.c (decimal_point_char): New function.
72051         (VASNPRINTF): Use it.
72052         Suggested by Simon Josefsson.
72053
72054 2007-03-27  Eric Blake  <ebb9@byu.net>
72055
72056         Support sub-second birthtime on cygwin.
72057         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
72058         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
72059         (get_stat_birthtime): Also work with st_birthtim.
72060
72061 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
72062
72063         * lib/stat-time.h (USE_BIRTHTIME): Remove.
72064         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
72065         (get_stat_birthtime_ns): Do not try to use "spare" fields.
72066         (get_stat_birthtime_ns): Simplify compile-time tests.
72067         (get_stat_birthtime): Change the API to look like
72068         get_stat_mtime etc., except return a negative tv_nsec on error.
72069         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
72070         Don't check for "spare" fields.
72071         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
72072         or for struct stat.st_birthtime, as these tests aren't used.
72073         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
72074
72075 2007-03-27  Bruno Haible  <bruno@clisp.org>
72076
72077         * lib/stat-time.h: Include <sys/stat.h>.
72078
72079 2007-03-27  James Youngman  <jay@gnu.org>
72080
72081         * lib/stat-time.h (get_stat_birthtime): New function for
72082           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72083         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72084           and its variants.
72085         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72086         * modules/stat-time-test: New file.
72087         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72088
72089 2007-03-26  Bruno Haible  <bruno@clisp.org>
72090
72091         Better support of signalling NaNs.
72092         * lib/atanl.c: Include isnanl.h.
72093         (atanl): Perform test for NaN at the beginning of the function and
72094         through a call to isnanl.
72095         * lib/cosl.c: Include isnanl.h.
72096         (cosl): Perform test for NaN at the beginning of the function and
72097         through a call to isnanl.
72098         * lib/ldexpl.c: Include isnanl.h.
72099         (ldexpl): Perform test for NaN through a call to isnanl.
72100         * lib/logl.c: Include isnanl.h.
72101         (logl): Perform test for NaN at the beginning of the function and
72102         through a call to isnanl.
72103         * lib/sinl.c: Include isnanl.h.
72104         (sinl): Perform test for NaN at the beginning of the function and
72105         through a call to isnanl.
72106         * lib/sqrtl.c: Include isnanl.h.
72107         (sqrtl): Perform test for NaN at the beginning of the function and
72108         through a call to isnanl.
72109         * lib/tanl.c: Include isnanl.h.
72110         (tanl): Perform test for NaN at the beginning of the function and
72111         through a call to isnanl.
72112         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72113         * modules/mathl (Depends-on): Add isnanl.
72114
72115 2007-03-26  Eric Blake  <ebb9@byu.net>
72116
72117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72118         regression in logic sense of previous patch.
72119
72120 2007-03-26  Bruno Haible  <bruno@clisp.org>
72121
72122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72123         unportable shell command "if ! ...".
72124         Reported by Ralf Wildenhues.
72125
72126 2007-03-25  Bruno Haible  <bruno@clisp.org>
72127
72128         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72129         <sysexits.h> file, and only add EX_CONFIG.
72130         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72131         absolute file name and whether it is sufficient. Substitute also
72132         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72133         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72134         ABSOLUTE_SYSEXITS_H into sysexits.h.
72135
72136 2007-03-25  Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72139         hints is NULL.
72140
72141 2007-03-25  Bruno Haible  <bruno@clisp.org>
72142
72143         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72144         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72145
72146 2007-03-25  Bruno Haible  <bruno@clisp.org>
72147
72148         * lib/vasnprintf.c: Include langinfo.h.
72149         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72150         multithread-safe.
72151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72155         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72157         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72158         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72159         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72160         Reported by Simon Josefsson.
72161
72162 2007-03-25  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72165         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72166         * modules/vasnprintf (Depends-on): Add stdint.
72167
72168 2007-03-25  Bruno Haible  <bruno@clisp.org>
72169
72170         * modules/fpieee: New file.
72171         * m4/fpieee.m4: New file.
72172         * modules/isnan-nolibm (Depends-on): Add fpieee.
72173         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72174         * modules/isnanl (Depends-on): Add fpieee.
72175
72176 2007-03-25  Bruno Haible  <bruno@clisp.org>
72177
72178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72179
72180 2007-03-25  Bruno Haible  <bruno@clisp.org>
72181
72182         Avoid test failures on IRIX 6.5.
72183         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72184         (main): Use it.
72185         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72186         macros.
72187         (main): Use them.
72188
72189 2007-03-25  Bruno Haible  <bruno@clisp.org>
72190
72191         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72192         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72193         exists but doesn't work.
72194         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72195         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72197         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72198         math.h.
72199
72200 2007-03-25  Bruno Haible  <bruno@clisp.org>
72201
72202         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72203         returns inf. Needed on IRIX 6.5.
72204
72205 2007-03-25  Bruno Haible  <bruno@clisp.org>
72206
72207         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72208         (main): Use isnanl instead of x != x idiom.
72209         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72210
72211         * tests/test-frexp.c: Include isnan.h.
72212         (main): Use isnan instead of x != x idiom.
72213         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72214
72215 2007-03-25  Bruno Haible  <bruno@clisp.org>
72216
72217         * tests/test-frexp.c (NaN): New function/macro.
72218         (main): Use it instead of 0.0 / 0.0.
72219         * tests/test-isnan.c (NaN): New function/macro.
72220         (main): Use it instead of 0.0 / 0.0.
72221         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72222         (test_function): Use it instead of 0.0 / 0.0.
72223         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72224         (test_function): Use it instead of 0.0 / 0.0.
72225         * tests/test-snprintf-posix.h (NaN): New function/macro.
72226         (test_function): Use it instead of 0.0 / 0.0.
72227         * tests/test-sprintf-posix.h (NaN): New function/macro.
72228         (test_function): Use it instead of 0.0 / 0.0.
72229         * tests/test-fprintf-posix.h (NaN): New function/macro.
72230         (test_function): Use it instead of 0.0 / 0.0.
72231         * tests/test-printf-posix.h (NaN): New function/macro.
72232         (test_function): Use it instead of 0.0 / 0.0.
72233
72234         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72235
72236 2007-03-25  Bruno Haible  <bruno@clisp.org>
72237
72238         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72239
72240 2007-03-25  Bruno Haible  <bruno@clisp.org>
72241
72242         * lib/regexec.c (merge_state_with_log): Make static.
72243
72244 2007-03-25  Bruno Haible  <bruno@clisp.org>
72245
72246         * lib/trigl.c (kernel_rem_pio2): Make static.
72247
72248 2007-03-25  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/sincosl.c (sincosl_table): Make static.
72251
72252 2007-03-25  Bruno Haible  <bruno@clisp.org>
72253
72254         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72255         if the compiler does not support C99.
72256
72257 2007-03-25  Bruno Haible  <bruno@clisp.org>
72258
72259         * modules/time (Makefile.am): Ensure all rule action lines start with a
72260         tab.
72261
72262 2007-03-24  Bruno Haible  <bruno@clisp.org>
72263
72264         * modules/tsearch-tests: New file.
72265         * tests/test-tsearch.sh: New file.
72266         * tests/test-tsearch.c: New file, mostly copied from glibc.
72267
72268         * modules/search-tests: New file.
72269         * tests/test-search.c: New file.
72270
72271         * modules/search: New file.
72272         * lib/search_.h: New file, incorporating lib/tsearch.h.
72273         * m4/search_h.m4: New file.
72274         * lib/tsearch.h: Remove file.
72275         * lib/tsearch.c: Include search.h instead of tsearch.h.
72276         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72277         HAVE_TSEARCH.
72278         * modules/tsearch (Files): Remove lib/tsearch.h.
72279         (Depends-on): Add search.
72280         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72281         (Include): Change tsearch.h into search.h.
72282
72283 2007-03-24  Bruno Haible  <bruno@clisp.org>
72284
72285         * modules/fpucw: New file.
72286         * lib/fpucw.h: New file.
72287         * lib/frexp.c: Include fpucw.h.
72288         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72289         (FUNC): Use them.
72290         * lib/printf-frexp.c: Include fpucw.h.
72291         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72292         (FUNC): Use them.
72293         * lib/vasnprintf.c: Include fpucw.h.
72294         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72295         'long double' calculations.
72296         * tests/test-frexpl.c: Include fpucw.h.
72297         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72298         * tests/test-printf-frexpl.c: Include fpucw.h.
72299         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72300         * modules/frexpl (Depends-on): Add fpucw.
72301         * modules/printf-frexpl (Depends-on): Likewise.
72302         * modules/fprintf-posix (Depends-on): Likewise.
72303         * modules/snprintf-posix (Depends-on): Likewise.
72304         * modules/sprintf-posix (Depends-on): Likewise.
72305         * modules/vasnprintf-posix (Depends-on): Likewise.
72306         * modules/vasprintf-posix (Depends-on): Likewise.
72307         * modules/vfprintf-posix (Depends-on): Likewise.
72308         * modules/vsnprintf-posix (Depends-on): Likewise.
72309         * modules/vsprintf-posix (Depends-on): Likewise.
72310         * modules/frexpl-tests (Depends-on): Likewise.
72311         * modules/printf-frexpl-tests (Depends-on): Likewise.
72312
72313 2007-03-24  Bruno Haible  <bruno@clisp.org>
72314
72315         * lib/float+.h: New file.
72316         * lib/isnan.c: Include float+.h.
72317         (SIZE): New macro.
72318         (FUNC): Compare only SIZE bytes of the value.
72319         * lib/vasnprintf.c: Include float+.h.
72320         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72321         SIZEOF_LDBL or SIZEOF_DBL bytes.
72322         * modules/isnan-nolibm (Files): Add lib/float+.h.
72323         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72324         * modules/isnanl (Files): Add lib/float+.h.
72325         * modules/vasnprintf (Files): Add lib/float+.h.
72326
72327 2007-03-24  Bruno Haible  <bruno@clisp.org>
72328
72329         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72330         include isnanl-nolibm.h.
72331
72332 2007-03-24  Bruno Haible  <bruno@clisp.org>
72333
72334         * tests/test-read-file.c (main): Don't produce spurious output for
72335         expected situations. Make the test fail if it encountered unexpected
72336         results.
72337
72338 2007-03-24  Bruno Haible  <bruno@clisp.org>
72339
72340         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72341         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72342
72343 2007-03-24  Bruno Haible  <bruno@clisp.org>
72344
72345         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72346
72347 2007-03-24  Bruno Haible  <bruno@clisp.org>
72348
72349         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72350         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72351
72352         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72353         * modules/utf8-ucs4: Turn into a symbolic link to module
72354         unistr/u8-mbtouc.
72355
72356         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72357         utf8-ucs4-unsafe.
72358         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72359         unistr/u8-mbtouc-unsafe.
72360
72361         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72362         * modules/utf16-ucs4: Turn into a symbolic link to module
72363         unistr/u16-mbtouc.
72364
72365         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72366         utf16-ucs4-unsafe.
72367         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72368         unistr/u16-mbtouc-unsafe.
72369
72370         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72371         * modules/ucs4-utf8: Turn into a symbolic link to module
72372         unistr/u8-ubtomb.
72373
72374         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72375         * modules/ucs4-utf16: Turn into a symbolic link to module
72376         unistr/u16-ubtomb.
72377
72378 2007-03-24  Bruno Haible  <bruno@clisp.org>
72379
72380         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72381         Enable the function only if HAVE_INLINE.
72382         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72383         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72384         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72385         Enable the function only if HAVE_INLINE.
72386         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72387         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72388         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72389         Enable the function only if HAVE_INLINE.
72390         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72391         Enable the function only if HAVE_INLINE.
72392         * modules/utf8-ucs4: Update.
72393         * modules/utf8-ucs4-unsafe: Update.
72394         * modules/utf16-ucs4: Update.
72395         * modules/utf16-ucs4-unsafe: Update.
72396         * modules/ucs4-utf8: Update.
72397         * modules/ucs4-utf16: Update.
72398
72399 2007-03-24  Bruno Haible  <bruno@clisp.org>
72400
72401         * lib/utf8-ucs4.h: Remove file.
72402         * lib/utf8-ucs4-unsafe.h: Remove file.
72403         * lib/utf16-ucs4.h: Remove file.
72404         * lib/utf16-ucs4-unsafe.h: Remove file.
72405         * lib/ucs4-utf8.h: Remove file.
72406         * lib/ucs4-utf16.h: Remove file.
72407         * lib/unistr.h: Include their previous contents.
72408         * m4/utf-ucs4.m4: Remove file.
72409         * m4/ucs4-utf.m4: Remove file.
72410         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72411         (Depends-on): Add unistr/base.
72412         (configure.ac): Remove gl_UTF_UCS4.
72413         (Makefile.am): Update.
72414         (Include): Change to unistr.h.
72415         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72416         (Depends-on): Add unistr/base.
72417         (configure.ac): Remove gl_UTF_UCS4.
72418         (Makefile.am): Update.
72419         (Include): Change to unistr.h.
72420         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72421         (Depends-on): Add unistr/base.
72422         (configure.ac): Remove gl_UTF_UCS4.
72423         (Makefile.am): Update.
72424         (Include): Change to unistr.h.
72425         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72426         (Depends-on): Add unistr/base.
72427         (configure.ac): Remove gl_UTF_UCS4.
72428         (Makefile.am): Update.
72429         (Include): Change to unistr.h.
72430         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72431         (Depends-on): Add unistr/base.
72432         (configure.ac): Remove gl_UCS4_UTF.
72433         (Makefile.am): Update.
72434         (Include): Change to unistr.h.
72435         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72436         (Depends-on): Add unistr/base.
72437         (configure.ac): Remove gl_UCS4_UTF.
72438         (Makefile.am): Update.
72439         (Include): Change to unistr.h.
72440         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72441         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72442         utf8-ucs4-unsafe.h.
72443         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72444         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72445         utf16-ucs4-unsafe.h.
72446         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72447         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72448         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72449         * lib/unistr/u8-strchr.c: Likewise.
72450         * lib/unistr/u8-strrchr.c: Likewise.
72451         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72452         * lib/unistr/u16-strchr.c: Likewise.
72453         * lib/unistr/u16-strrchr.c: Likewise.
72454         * lib/striconveh.c: Update.
72455         * lib/linebreak.c: Update.
72456
72457 2007-03-24  Bruno Haible  <bruno@clisp.org>
72458
72459         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72460         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72461
72462 2007-03-22  Bruno Haible  <bruno@clisp.org>
72463
72464         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72465
72466 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         * MODULES.html.sh (File system functions): New module write-any-file.
72469         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72470         * m4/write-any-file.m4: New files.
72471
72472 2007-03-23  Eric Blake  <ebb9@byu.net>
72473
72474         * gnulib-tool: Rearrange space-tab sequences, since some editors
72475         like to eat them.
72476
72477 2007-03-23  Eric Blake  <ebb9@byu.net>
72478
72479         * lib/version-etc.c (version_etc_va): Update license wording to
72480         be more concise.  Recommended by Richard Stallman.
72481
72482 2007-03-22  Bruno Haible  <bruno@clisp.org>
72483
72484         * lib/poll.c (MSG_PEEK): New fallback definition.
72485
72486 2007-03-22  Bruno Haible  <bruno@clisp.org>
72487
72488         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72489         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72490         (main): Update.
72491         Fixes a compilation error on BeOS.
72492
72493 2007-03-22  Bruno Haible  <bruno@clisp.org>
72494
72495         * modules/frexpl-tests: New file.
72496         * tests/test-frexpl.c: New file.
72497
72498         * modules/frexpl: New file.
72499         * m4/frexpl.m4: New file.
72500         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72501         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72503         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72504         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72505         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72506
72507 2007-03-22  Bruno Haible  <bruno@clisp.org>
72508
72509         * lib/frexpl.c: Share code with lib/frexp.c.
72510         * modules/mathl (Files): Add lib/frexp.c.
72511         (Depends-on): Add isnanl-nolibm.
72512
72513 2007-03-22  Bruno Haible  <bruno@clisp.org>
72514
72515         * modules/printf-frexp (Files): Add m4/frexp.m4.
72516         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72517         only if the found frexp function actually works.
72518
72519 2007-03-22  Bruno Haible  <bruno@clisp.org>
72520
72521         * lib/frexp.c: Remove older implementation that uses divisions.
72522
72523 2007-03-21  Bruno Haible  <bruno@clisp.org>
72524
72525         * modules/frexp-tests: New file.
72526         * tests/test-frexp.c: New file.
72527
72528         * modules/frexp: New file.
72529         * lib/frexp.c: New file.
72530         * m4/frexp.m4: New file.
72531         * lib/math_.h (frexp): New declaration.
72532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72533         REPLACE_FREXP.
72534         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72535
72536 2007-03-21  Bruno Haible  <bruno@clisp.org>
72537
72538         * modules/isnanl-tests: New file.
72539         * tests/test-isnanl.c: New file.
72540
72541         * modules/isnanl: New file.
72542         * lib/isnanl.h: New file.
72543         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72544         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72545         gl_FUNC_ISNANL_WORKS.
72546         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72547         New macros.
72548
72549 2007-03-21  Bruno Haible  <bruno@clisp.org>
72550
72551         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72552         lib/isnanl.h.
72553         (Include): Update.
72554         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72555         * lib/vasnprintf.c: Update.
72556         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72557         tests/test-isnanl.h, remove tests/test-isnanl.c.
72558         (Makefile.am): Update.
72559         * tests/test-isnanl-nolibm.c: New file.
72560         * tests/test-isnanl.h: New file.
72561         * tests/test-isnanl.c: Remove file.
72562
72563 2007-03-21  Jim Meyering  <jim@meyering.net>
72564
72565         When trying to open ".", treat ESTALE like EACCES.
72566         * lib/savewd.c (savewd_save): Resort to forking not just upon
72567         failure with EACCES, but also when errno is ESTALE.
72568
72569 2007-03-20  Bruno Haible  <bruno@clisp.org>
72570
72571         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72572         Needed on AIX 5.1. Reported by Matthew Woehlke.
72573
72574 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         Suggestions by Bruno Haible:
72577         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72578         our own.
72579         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72580         * modules/acl (Depends-on): Add gettext.
72581
72582 2007-03-19  Bruno Haible  <bruno@clisp.org>
72583
72584         * modules/iconvme: Remove file.
72585         * lib/iconvme.h: Remove file.
72586         * lib/iconvme.c: Remove file.
72587         * m4/iconvme.m4: Remove file.
72588
72589 2007-03-19  Bruno Haible  <bruno@clisp.org>
72590
72591         * doc/relocatable-maint.texi: Break long shell script line.
72592         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72593
72594 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72595
72596         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72597         handle file_has_acl.
72598         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72599         * lib/acl.c: Move header inclusions and related macro defns into
72600         lib/acl-internal.h.
72601         (S_ISLNK): Remove defn, since that's now done for us.
72602         (file_has_acl): Move to lib/file-has-acl.c.
72603         Call acl_trivial if available.  This is the crucial part of the fix.
72604         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72605         shared within the library.  Rewrite a bit, partly to make it compatible
72606         with the GNU coding style.
72607         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72608         Remove unnecessary double-quotes.
72609         Don't test for acl_to_text; the build will catch that.
72610         Replace acl_entries if it doesn't exist and it is needed.
72611         Check for -lsec and acl_trivial (as used on Solaris 10).
72612         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72613         lib/file-has-acl.c.
72614         (Depends-on): Add sys_stat, for S_ISLNK.
72615
72616 2007-03-19  Ben Pfaff  <blp@gnu.org>
72617
72618         * doc/gnulib.texi: Fix typos.
72619         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72620
72621 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72624         If size is zero here, buf must be zero.
72625
72626 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72627
72628         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72629         <bruno@clisp.org>.
72630
72631 2007-03-18  Bruno Haible  <bruno@clisp.org>
72632
72633         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72634         Suggested by Eric Blake.
72635
72636 2007-03-18  Ben Pfaff  <blp@gnu.org>
72637
72638         * doc/relocatable.texi: Recommend using as prefix a directory
72639         that does not exist and will never be created.  Based on
72640         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72641         and others.
72642
72643 2007-03-17  Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/fchownat.c: Include lchown.h.
72646
72647 2007-03-17  Bruno Haible  <bruno@clisp.org>
72648
72649         Fix endless loop when the given allocated size was > INT_MAX.
72650         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72651         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72652         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72653         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72654         * lib/sprintf.c (sprintf): Likewise.
72655
72656 2007-03-17  Bruno Haible  <bruno@clisp.org>
72657
72658         * tests/test-argp-2.sh (func_compare): Output a context diff.
72659
72660 2007-03-17  Bruno Haible  <bruno@clisp.org>
72661
72662         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72663         locale's decimal-point character.
72664
72665 2007-03-17  Bruno Haible  <bruno@clisp.org>
72666
72667         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72668         before comparing it. Needed because on some platforms (e.g. x86) a
72669         'long double' occupies less bytes than sizeof (long double).
72670
72671 2007-03-17  Bruno Haible  <bruno@clisp.org>
72672
72673         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72674         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72675         * tests/test-getaddrinfo.c (simple): Likewise.
72676         * tests/test-read-file.c (main): Likewise.
72677
72678 2007-03-17  Bruno Haible  <bruno@clisp.org>
72679
72680         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72681
72682 2007-03-17  Bruno Haible  <bruno@clisp.org>
72683
72684         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72685         unused variable.
72686
72687 2007-03-17  Bruno Haible  <bruno@clisp.org>
72688
72689         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72690         * tests/test-c-strncasecmp.c: Likewise.
72691
72692 2007-03-17  Bruno Haible  <bruno@clisp.org>
72693
72694         * modules/stdlib (Depends-on): Add unistd.
72695         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72696         Needed for MacOS X 10.3.
72697
72698 2007-03-17  Bruno Haible  <bruno@clisp.org>
72699
72700         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72701
72702 2007-03-17  Bruno Haible  <bruno@clisp.org>
72703
72704         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72705
72706 2007-03-17  Bruno Haible  <bruno@clisp.org>
72707
72708         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72709         to reflect files copied from gnulib (with or without modifications).
72710         Suggested by Jim Meyering.
72711
72712 2007-03-17  Eric Blake  <ebb9@byu.net>
72713
72714         * NEWS: Document stdlib change from 2007-02-18.
72715
72716 2007-03-17  Jim Meyering  <jim@meyering.net>
72717
72718         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72719         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72720         someone uses a name containing shell meta-characters.
72721         Reported by Alfred M. Szmidt.
72722
72723         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72724
72725 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72726
72727         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72728         and copy gettext configuration files only if configure.ac contains
72729         a use of AM_GNU_GETTEXT_VERSION.
72730
72731 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72732
72733         * build-aux/bootstrap (gnulib_name): New variable.
72734         (gnulib_tool_options): Use it.
72735
72736 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72737
72738         * tests/test-des.c: Use new namespace.
72739
72740 2007-03-15  Bruno Haible  <bruno@clisp.org>
72741
72742         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72743         Reported by James Youngman <jay@gnu.org>.
72744
72745 2007-03-15  Bruno Haible  <bruno@clisp.org>
72746
72747         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72748         declared prototype. Needed with cc on OSF/1 5.1.
72749
72750 2007-03-15  Bruno Haible  <bruno@clisp.org>
72751
72752         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72753         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72754         (struct gl_list_implementation): Add dispose_fn argument to the
72755         'create_empty', 'create' methods.
72756         (struct gl_list_impl_base): Add field 'dispose_fn'.
72757         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72758         argument.
72759         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72760         dispose_fn argument.
72761         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72762         dispose_fn on the dropped values.
72763         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72764         dispose_fn argument.
72765         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72766         dropped values.
72767         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72768         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72769         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72770         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72771         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72772         argument.
72773         (gl_tree_list_free): Call dispose_fn on the dropped values.
72774         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72775         the dropped values.
72776         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72777         Add dispose_fn argument.
72778         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72779         Call dispose_fn on the dropped values.
72780         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72781         Add dispose_fn argument.
72782         (gl_sublist_create): Initialize the 'dispose_fn' field.
72783         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72784         * tests/test-array_list.c (main): Update.
72785         * tests/test-carray_list.c (main): Update.
72786         * tests/test-avltree_list.c (main): Update.
72787         * tests/test-rbtree_list.c (main): Update.
72788         * tests/test-avltreehash_list.c (main): Update.
72789         * tests/test-rbtreehash_list.c (main): Update.
72790         * tests/test-linked_list.c (main): Update.
72791         * tests/test-linkedhash_list.c (main): Update.
72792         * tests/test-array_oset.c (main): Update.
72793
72794 2007-03-15  Bruno Haible  <bruno@clisp.org>
72795
72796         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72797         (gl_oset_create_empty): Add dispose_fn argument.
72798         (struct gl_oset_implementation): Add dispose_fn argument to
72799         'create_empty' method.
72800         (struct gl_oset_impl_base): Add dispose_fn field.
72801         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72802         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72803         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72804         values.
72805         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72806         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72807         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72808         dropped value.
72809         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72810         dropped value.
72811         * tests/test-array_oset.c (main): Update.
72812         * tests/test-avltree_oset.c (main): Update.
72813         * tests/test-rbtree_oset.c (main): Update.
72814         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72815
72816 2007-03-13  Bruno Haible  <bruno@clisp.org>
72817
72818         * tests/test-stdbool.c (i): Update after last patch.
72819
72820 2007-03-12  Bruno Haible  <bruno@clisp.org>
72821
72822         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72823         the iswprint macro. Needed on Solaris 2.5.1.
72824
72825 2007-03-12  Bruno Haible  <bruno@clisp.org>
72826
72827         * tests/test-printf-frexp.c (main): Declare x as volatile.
72828
72829 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72830
72831         * doc/gnulib.texi (Build robot for gnulib): New section.
72832
72833 2007-03-12  Jim Meyering  <jim@meyering.net>
72834
72835         * build-aux/bootstrap: New file.
72836         * build-aux/bootstrap.conf: New file, from coreutils.
72837
72838 2007-03-11  Bruno Haible  <bruno@clisp.org>
72839
72840         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72841
72842 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72843
72844         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72845         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72846         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72847
72848 2007-03-11  Bruno Haible  <bruno@clisp.org>
72849
72850         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72851         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72852
72853 2007-03-11  Bruno Haible  <bruno@clisp.org>
72854
72855         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72856         formula. Needed for SunPRO C 5.0.
72857
72858 2007-03-11  Bruno Haible  <bruno@clisp.org>
72859
72860         * modules/long-options (Depends-on): Add getopt.
72861
72862 2007-03-11  Bruno Haible  <bruno@clisp.org>
72863
72864         * modules/modechange (Depends-on): Add stdbool.
72865
72866 2007-03-11  Bruno Haible  <bruno@clisp.org>
72867
72868         * modules/i-ring (Depends-on): Add stdbool.
72869
72870 2007-03-11  Bruno Haible  <bruno@clisp.org>
72871
72872         * modules/gc-des (Depends-on): Add stdbool.
72873
72874 2007-03-11  Bruno Haible  <bruno@clisp.org>
72875
72876         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72877
72878 2007-03-11  Bruno Haible  <bruno@clisp.org>
72879
72880         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72881
72882 2007-03-11  Bruno Haible  <bruno@clisp.org>
72883
72884         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72885
72886 2007-03-11  Bruno Haible  <bruno@clisp.org>
72887
72888         * lib/vasnprintf.c (sprintf): Undefine.
72889
72890 2007-03-11  Bruno Haible  <bruno@clisp.org>
72891
72892         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72893         initializers in SunPRO C and Compaq C compilers.
72894
72895 2007-03-11  Bruno Haible  <bruno@clisp.org>
72896
72897         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72898         decrementing code ANSI C compliant.
72899
72900 2007-03-11  Bruno Haible  <bruno@clisp.org>
72901
72902         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72903         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72904
72905 2007-03-11  Bruno Haible  <bruno@clisp.org>
72906
72907         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72908         <stdbool.h> substitute doesn't pass.
72909
72910 2007-03-11  Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72913
72914 2007-03-11  Bruno Haible  <bruno@clisp.org>
72915
72916         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72917         script, for submission to autobuild.josefsson.org.
72918
72919 2007-03-10  Bruno Haible  <bruno@clisp.org>
72920
72921         * modules/canonicalize-lgpl-tests: New file.
72922         * tests/test-canonicalize-lgpl.sh: New file.
72923         * tests/test-canonicalize-lgpl.c: New file.
72924
72925         * modules/c-strcase-tests: New file.
72926         * tests/test-c-strcase.sh: New file.
72927         * tests/test-c-strcasecmp.c: New file.
72928         * tests/test-c-strncasecmp.c: New file.
72929
72930         * modules/atexit-tests: New file.
72931         * tests/test-atexit.sh: New file.
72932         * tests/test-atexit.c: New file.
72933
72934 2007-03-10  Bruno Haible  <bruno@clisp.org>
72935
72936         * tests/test-binary-io.sh: Use temporary filenames that are not so
72937         likely to clash with those of other tests (in a parallel make).
72938         * tests/test-binary-io.c: Likewise.
72939
72940 2007-03-10  Bruno Haible  <bruno@clisp.org>
72941
72942         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72943         fallback; use #error instead.
72944         Suggested by Simon Josefsson.
72945
72946 2007-03-10  Bruno Haible  <bruno@clisp.org>
72947
72948         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72949         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72950         first and the last.
72951
72952 2007-03-10  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72955
72956 2007-03-10  Bruno Haible  <bruno@clisp.org>
72957
72958         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72959         "make distcheck".
72960         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72961         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72962         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72963
72964 2007-03-10  Bruno Haible  <bruno@clisp.org>
72965
72966         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72967         variable.
72968         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72969         variable.
72970
72971 2007-03-09  Eric Blake  <ebb9@byu.net>
72972         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72973
72974         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72975         types are not being provided by gnulib.
72976         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72977         types are supported.
72978
72979 2007-03-10  Bruno Haible  <bruno@clisp.org>
72980
72981         * lib/stdio_.h (__attribute__): New macro.
72982         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72983         vsprintf): Specify __attribute__ __format__ for GCC.
72984         Suggested by Eric Blake.
72985
72986 2007-03-09  Bruno Haible  <bruno@clisp.org>
72987
72988         * modules/printf-posix-tests: New file.
72989         * tests/test-printf-posix.sh: New file.
72990         * tests/test-printf-posix.c: New file.
72991
72992         * modules/printf-posix: New file.
72993         * lib/printf.c: New file.
72994         * m4/printf-posix-rpl.m4: New file.
72995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72996         REPLACE_PRINTF.
72997         * lib/stdio_.h (printf): New declaration.
72998         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72999         ____strfmon____): New macros.
73000         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
73001         REPLACE_PRINTF.
73002
73003 2007-03-09  Bruno Haible  <bruno@clisp.org>
73004
73005         * tests/test-vasnprintf-posix2.sh: New file.
73006         * tests/test-vasnprintf-posix2.c: New file.
73007         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
73008         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
73009         (Makefile.am): Activate test-vasnprintf-posix2.sh.
73010
73011         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
73012         a locale dependent decimal point, rather than always '.'.
73013
73014 2007-03-09  Eric Blake  <ebb9@byu.net>
73015
73016         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
73017         spite of platforms like Tandem/NSK that define it to -1.
73018
73019 2007-03-08  Bruno Haible  <bruno@clisp.org>
73020
73021         * modules/vprintf-posix-tests: New file.
73022         * tests/test-vprintf-posix.sh: New file.
73023         * tests/test-vprintf-posix.c: New file.
73024         * tests/test-printf-posix.h: New file.
73025
73026         * modules/vprintf-posix: New file.
73027         * lib/vprintf.c: New file.
73028         * m4/vprintf-posix.m4: New file.
73029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
73030         REPLACE_VPRINTF.
73031         * lib/stdio_.h (vprintf): New declaration.
73032         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
73033         REPLACE_VPRINTF.
73034
73035 2007-03-08  Bruno Haible  <bruno@clisp.org>
73036
73037         * modules/fprintf-posix-tests: New file.
73038         * tests/test-fprintf-posix.sh: New file.
73039         * tests/test-fprintf-posix.c: New file.
73040
73041         * modules/fprintf-posix: New file.
73042         * lib/fprintf.c: New file.
73043         * m4/fprintf-posix.m4: New file.
73044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
73045         REPLACE_FPRINTF.
73046         * lib/stdio_.h (fprintf): New declaration.
73047         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
73048         REPLACE_FPRINTF.
73049
73050 2007-03-08  Bruno Haible  <bruno@clisp.org>
73051
73052         * modules/vfprintf-posix-tests: New file.
73053         * tests/test-vfprintf-posix.sh: New file.
73054         * tests/test-vfprintf-posix.c: New file.
73055         * tests/test-fprintf-posix.h: New file.
73056         * tests/test-fprintf-posix.out: New file.
73057
73058         * modules/vfprintf-posix: New file.
73059         * lib/vfprintf.c: New file.
73060         * m4/vfprintf-posix.m4: New file.
73061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
73062         REPLACE_VFPRINTF.
73063         * lib/stdio_.h (vfprintf): New declaration.
73064         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
73065         REPLACE_VFPRINTF.
73066
73067 2007-03-08  Bruno Haible  <bruno@clisp.org>
73068
73069         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
73070
73071 2007-03-08  Bruno Haible  <bruno@clisp.org>
73072
73073         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
73074         instead of 'expr' invocations.
73075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73079         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73080         Suggested by Paul Eggert.
73081
73082 2007-03-08  Bruno Haible  <bruno@clisp.org>
73083
73084         * modules/fseterr-tests: New file.
73085         * tests/test-fseterr.c: New file.
73086
73087         * modules/fseterr: New file.
73088         * lib/fseterr.h: New file.
73089         * lib/fseterr.c: New file.
73090
73091 2007-03-08  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73094         * lib/getopt_.h: Likewise.
73095         * lib/mbswidth.h: Likewise.
73096         * lib/setenv.h: Likewise.
73097         * lib/vasnprintf.h: Likewise.
73098         * lib/vasprintf.h: Likewise.
73099         * lib/verror.h: Likewise.
73100         * lib/xsetenv.h: Likewise.
73101         * lib/xvasprintf.h: Likewise.
73102
73103 2007-03-08  Jim Meyering  <jim@meyering.net>
73104
73105         * users.txt: Add parted.
73106
73107         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73108
73109 2007-03-07  Bruno Haible  <bruno@clisp.org>
73110
73111         * m4/printf.m4: Make the shell script snippets copy&pastable.
73112
73113 2007-03-02  Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/netinet_in_.h: New file.
73116         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73117         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73118         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73119         (Depends-on): Add absolute-header.
73120         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73121         into netinet/in.h.
73122
73123 2007-03-03  Bruno Haible  <bruno@clisp.org>
73124
73125         * lib/sys_select_.h: New file.
73126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73127         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73128         * modules/sys_select (Files): Add lib/sys_select_.h.
73129         (Depends-on): Add absolute-header.
73130         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73131         into sys/select.h.
73132
73133 2007-03-02  Bruno Haible  <bruno@clisp.org>
73134
73135         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73136         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73137         values.
73138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73139         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73140         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73141         * modules/sys_socket (Depends-on): Add absolute-header.
73142         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73143         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73144         (Include): Remove requirement of inclusion of <sys/types.h>.
73145
73146 2007-03-02  Bruno Haible  <bruno@clisp.org>
73147
73148         * lib/byteswap_.h (bswap_32): Fix formula.
73149
73150 2007-03-06  Bruno Haible  <bruno@clisp.org>
73151
73152         * modules/sprintf-posix-tests: New file.
73153         * tests/test-sprintf-posix.c: New file.
73154
73155         * modules/sprintf-posix: New file.
73156         * lib/sprintf.c: New file.
73157         * m4/sprintf-posix.m4: New file.
73158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73159         REPLACE_SPRINTF.
73160         * lib/stdio_.h (sprintf): New declaration.
73161         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73162         REPLACE_SPRINTF.
73163
73164 2007-03-06  Bruno Haible  <bruno@clisp.org>
73165
73166         * modules/vsprintf-posix-tests: New file.
73167         * tests/test-vsprintf-posix.c: New file.
73168         * tests/test-sprintf-posix.h: New file.
73169
73170         * modules/vsprintf-posix: New file.
73171         * lib/vsprintf.c: New file.
73172         * m4/vsprintf-posix.m4: New file.
73173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73174         REPLACE_VSPRINTF.
73175         * lib/stdio_.h (vsprintf): New declaration.
73176         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73177         REPLACE_VSPRINTF.
73178
73179 2007-03-06  Bruno Haible  <bruno@clisp.org>
73180
73181         * modules/vsnprintf (Depend-on): Remove minmax.
73182
73183 2007-03-06  Bruno Haible  <bruno@clisp.org>
73184
73185         * modules/snprintf-posix-tests: New file.
73186         * tests/test-snprintf-posix.c: New file.
73187
73188         * modules/snprintf-posix: New file.
73189         * m4/snprintf-posix.m4: New file.
73190         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73191         gl_FUNC_SNPRINTF.
73192         (gl_FUNC_SNPRINTF): Invoke it.
73193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73194         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73195         is set.
73196         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73197
73198 2007-03-06  Bruno Haible  <bruno@clisp.org>
73199
73200         * modules/vsnprintf-posix-tests: New file.
73201         * tests/test-vsnprintf-posix.c: New file.
73202         * tests/test-snprintf-posix.h: New file.
73203
73204         * modules/vsnprintf-posix: New file.
73205         * m4/vsnprintf-posix.m4: New file.
73206         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73207         gl_FUNC_VSNPRINTF.
73208         (gl_FUNC_VSNPRINTF): Invoke it.
73209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73210         * lib/stdio_.h (vsnprintf): Define as a replacement if
73211         REPLACE_VSNPRINTF is set.
73212         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73213
73214 2007-03-06  Bruno Haible  <bruno@clisp.org>
73215
73216         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73218
73219 2007-03-06  Bruno Haible  <bruno@clisp.org>
73220
73221         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73222         (asinl): Declare also if HAVE_DECL_ASINL is set.
73223         (atanl): Declare also if HAVE_DECL_ATANL is set.
73224         (ceill): Declare also if HAVE_DECL_CEILL is set.
73225         (cosl): Declare also if HAVE_DECL_COSL is set.
73226         (expl): Declare also if HAVE_DECL_EXPL is set.
73227         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73228         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73229         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73230         (logl): Declare also if HAVE_DECL_LOGL is set.
73231         (sinl): Declare also if HAVE_DECL_SINL is set.
73232         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73233         (tanl): Declare also if HAVE_DECL_TANL is set.
73234         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73236         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73237         declaration of frexpl, ldexpl.
73238         * modules/printf-frexpl (Depends-on): Add math.
73239         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73240
73241 2007-03-05  Bruno Haible  <bruno@clisp.org>
73242
73243         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73244         frexpl and ldexpl are declared.
73245         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73246
73247 2007-03-05  Bruno Haible  <bruno@clisp.org>
73248
73249         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73250         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73251
73252 2007-03-05  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/stdio_.h: Include <stddef.h>.
73255
73256 2007-03-05  Bruno Haible  <bruno@clisp.org>
73257
73258         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73259
73260 2007-03-05  Bruno Haible  <bruno@clisp.org>
73261
73262         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73263         NetBSD 4, from Ralf Wildenhues.
73264
73265 2007-03-04  Bruno Haible  <bruno@clisp.org>
73266
73267         * lib/vasprintf.h: Update #if logic for the case when the functions
73268         exist but are overridden.
73269
73270 2007-03-04  Bruno Haible  <bruno@clisp.org>
73271
73272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73273         implementations: glibc-2.4 and MacOS X 10.3.
73274         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73275         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73276         * tests/test-vasprintf-posix.c (test_function): Likewise.
73277
73278 2007-03-04  Bruno Haible  <bruno@clisp.org>
73279
73280         * modules/vasprintf-posix-tests: New file.
73281         * tests/test-vasprintf-posix.c: New file.
73282
73283         * modules/vasprintf-posix: New file.
73284         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73285         defined.
73286         * m4/vasprintf-posix.m4: New file.
73287         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73288         gl_FUNC_VASPRINTF.
73289         (gl_FUNC_VASPRINTF): Invoke it.
73290         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73291         here.
73292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73293
73294 2007-03-04  Bruno Haible  <bruno@clisp.org>
73295
73296         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73297         REPLACE_GETTIMEOFDAY.
73298         * modules/sys_time (Makefile.am): Likewise.
73299         * m4/sys_time_h.m4: Likewise.
73300         * m4/gettimeofday.m4: Likewise.
73301
73302 2007-03-04  Bruno Haible  <bruno@clisp.org>
73303
73304         * modules/vasnprintf-posix-tests: New file.
73305         * tests/test-vasnprintf-posix.c: New file.
73306
73307         * modules/vasnprintf-posix: New file.
73308         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73309         printf-frexpl.h.
73310         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73311         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73312         REPLACE_VASNPRINTF is defined.
73313         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73314         gl_FUNC_VASNPRINTF.
73315         (gl_FUNC_VASNPRINTF): Invoke it.
73316         * m4/vasnprintf-posix.m4: New file.
73317         * m4/printf.m4: New file.
73318
73319 2007-03-04  Bruno Haible  <bruno@clisp.org>
73320
73321         Compile progreloc.c only if --enable-relocatable is specified.
73322         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73323         if --enable-relocatable was specified.
73324         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73325         lib_SOURCES.
73326
73327 2007-03-04  Jim Meyering  <jim@meyering.net>
73328
73329         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73330         Use it consistently, rather than enumerating errno constants.
73331
73332 2007-03-04  Bruno Haible  <bruno@clisp.org>
73333
73334         * modules/xvasprintf-tests: New file.
73335         * tests/test-xvasprintf.c: New file.
73336
73337         * modules/vasprintf-tests: New file.
73338         * tests/test-vasprintf.c: New file.
73339
73340         * modules/vasnprintf-tests: New file.
73341         * tests/test-vasnprintf.c: New file.
73342
73343         * modules/vsnprintf-tests: New file.
73344         * tests/test-vsnprintf.c: New file.
73345
73346         * modules/snprintf-tests: New file.
73347         * tests/test-snprintf.c: New file.
73348
73349 2007-03-04  Bruno Haible  <bruno@clisp.org>
73350
73351         Compile relocatable.c only if --enable-relocatable is specified.
73352         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73353         gl_RELOCATABLE_LIBRARY.
73354         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73355         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73356         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73357         gl_RELOCATABLE_LIBRARY.
73358         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73359         (Makefile.am): Remove lib_SOURCES.
73360         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73361         gl_RELOCATABLE_LIBRARY.
73362         (Makefile.am): Remove lib_SOURCES.
73363         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73364         always.
73365         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73366         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73367
73368 2007-03-04  Bruno Haible  <bruno@clisp.org>
73369
73370         * modules/argmatch-tests: New file.
73371         * tests/test-argmatch.c: New file.
73372
73373         * tests/test-allocsa.c (main): Halve the number of loop runs.
73374
73375         * modules/alloca-opt-tests: New file.
73376         * tests/test-alloca-opt.c: New file.
73377
73378 2007-03-04  Jim Meyering  <jim@meyering.net>
73379
73380         Work around difference between Linux ACLs and Solaris 10 ZFS.
73381         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73382         for EINVAL.
73383
73384 2007-03-03  Bruno Haible  <bruno@clisp.org>
73385
73386         * modules/relocatable-prog (Depends-on): Add back progreloc's
73387         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73388
73389 2007-03-03  Bruno Haible  <bruno@clisp.org>
73390
73391         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73392         * modules/relocatable-lib: New file.
73393
73394 2007-03-03  Bruno Haible  <bruno@clisp.org>
73395
73396         * modules/relocatable-prog: Renamed from modules/relocatable.
73397         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73398
73399 2007-03-03  Bruno Haible  <bruno@clisp.org>
73400
73401         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73402         m4/relocatable-lib.m4.
73403         (Depends-on): Remove 'relocatable'.
73404         (configure.ac): Add gl_RELOCATABLE_NOP.
73405
73406 2007-03-03  Bruno Haible  <bruno@clisp.org>
73407
73408         * modules/relocatable-prog-wrapper: New file.
73409         * modules/relocatable (Depends-on): Add it. Remove all other
73410         dependencies except progname.
73411         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73412
73413         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73414         (gl_FUNC_STRERROR): Nop.
73415         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73416
73417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73418         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73419
73420         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73421         (gl_FUNC_READLINK): Update.
73422
73423         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73424
73425 2007-03-03  Bruno Haible  <bruno@clisp.org>
73426
73427         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73428         * modules/xreadlink (Depends-on): Add unistd.
73429         * modules/xreadlink-with-size (Depends-on): Likewise.
73430
73431 2007-03-03  Bruno Haible  <bruno@clisp.org>
73432
73433         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73434         extracted from gt_FUNC_SETENV.
73435         (gt_FUNC_SETENV): Remove macro.
73436         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73437         remove gt_FUNC_SETENV.
73438
73439 2007-03-03  Bruno Haible  <bruno@clisp.org>
73440
73441         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73442         ENABLE_RELOCATABLE here.
73443         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73444
73445 2007-03-03  Bruno Haible  <bruno@clisp.org>
73446
73447         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73448         * tests/test-rbtreehash_list.c: Include progname.h.
73449         (main): Call set_program_name.
73450
73451         * modules/rbtree-oset-tests (Depends-on): Add progname.
73452         * tests/test-rbtree_oset.c: Include progname.h.
73453         (main): Call set_program_name.
73454
73455         * modules/rbtree-list-tests (Depends-on): Add progname.
73456         * tests/test-rbtree_list.c: Include progname.h.
73457         (main): Call set_program_name.
73458
73459         * modules/linked-list-tests (Depends-on): Add progname.
73460         * tests/test-linked_list.c: Include progname.h.
73461         (main): Call set_program_name.
73462
73463 2007-03-03  Bruno Haible  <bruno@clisp.org>
73464
73465         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73466         All uses of __restrict changed to _Restrict_.
73467         * lib/glob_.h (__restrict): Remove macro.
73468
73469 2007-03-02  Bruno Haible  <bruno@clisp.org>
73470
73471         * modules/gettext (configure.ac): Require gettext infrastructure
73472         from version 0.16.1.
73473
73474 2007-03-02  Bruno Haible  <bruno@clisp.org>
73475
73476         * modules/linkedhash-list-tests (Depends-on): Add progname.
73477         * tests/test-linkedhash_list.c: Include progname.h.
73478         (main): Call set_program_name.
73479
73480         * modules/carray-list-tests (Depends-on): Add progname.
73481         * tests/test-carray_list.c: Include progname.h.
73482         (main): Call set_program_name.
73483
73484         * modules/avltreehash-list-tests (Depends-on): Add progname.
73485         * tests/test-avltreehash_list.c: Include progname.h.
73486         (main): Call set_program_name.
73487
73488         * modules/avltree-oset-tests (Depends-on): Add progname.
73489         * tests/test-avltree_oset.c: Include progname.h.
73490         (main): Call set_program_name.
73491
73492         * modules/avltree-list-tests (Depends-on): Add progname.
73493         * tests/test-avltree_list.c: Include progname.h.
73494         (main): Call set_program_name.
73495
73496         * modules/array-oset-tests (Depends-on): Add progname.
73497         * tests/test-array_oset.c: Include progname.h.
73498         (main): Call set_program_name.
73499
73500         * modules/array-list-tests (Depends-on): Add progname.
73501         * tests/test-array_list.c: Include progname.h.
73502         (main): Call set_program_name.
73503
73504         * modules/argp-tests (Depends-on): Add progname.
73505         * tests/test-argp.c: Include argp.h first. Include progname.h.
73506         (main): Call set_program_name.
73507
73508 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * doc/gnulib-tool.texi (Initial import): Reword description of
73511         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73512         limited effect even if defined after the first system include.
73513
73514 2007-03-01  Bruno Haible  <bruno@clisp.org>
73515
73516         * build-aux/config.libpath: Update to libtool-1.5.22.
73517         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73518
73519 2007-03-01  Bruno Haible  <bruno@clisp.org>
73520
73521         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73522         foo_CFLAGS.
73523         Reported by Ralf Wildenhues.
73524
73525 2007-03-01  Bruno Haible  <bruno@clisp.org>
73526
73527         * build-aux/install-reloc: Remove object files left over by some
73528         compilers.
73529         Reported by Ralf Wildenhues.
73530
73531 2007-03-01  Bruno Haible  <bruno@clisp.org>
73532
73533         * build-aux/install-reloc: Break long lines.
73534
73535 2007-03-01  Bruno Haible  <bruno@clisp.org>
73536
73537         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73538         Reported by Ralf Wildenhues.
73539
73540 2007-03-01  Bruno Haible  <bruno@clisp.org>
73541
73542         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73543         include ordering constraints.
73544
73545 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73549         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73550         as another example.
73551         * lib/time_.h: Fix misspelling.
73552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73553         Require gl_HEADER_TIME_H_DEFAULTS.
73554         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73555         * m4/time_r.m4 (gl_TIME_R): Likewise.
73556         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73557
73558 2007-03-01  Bruno Haible  <bruno@clisp.org>
73559
73560         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73561         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73562
73563 2007-03-01  Jim Meyering  <jim@meyering.net>
73564
73565         * modules/xreadlink (Maintainer): Add my name.
73566         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73567
73568 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73569             Bruno Haible  <bruno@clisp.org>
73570
73571         * build-aux/install-reloc: Compile also c-ctype.c.
73572         * build-aux/relocatable.sh.in: New file.
73573         * doc/relocatable.texi: New file.
73574         * doc/relocatable-maint.texi: New file.
73575         * doc/gnulib.texi: Include relocatable-maint.texi.
73576         * lib/progreloc.c: Include unistd.h unconditionally.
73577         * lib/relocwrapper.c: Include unistd.h unconditionally.
73578         Include c-ctype.h.
73579         (add_dotbin): Use c_tolower.
73580         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73581         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73582         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73583         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73584         to m4/relocatable-lib.m4.
73585         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73586         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73587         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73588         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73589         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73590         * modules/relocatable: New file.
73591         * modules/relocatable-lib: New file.
73592         * modules/relocatable-script: New file.
73593
73594 2007-02-28  Bruno Haible  <bruno@clisp.org>
73595
73596         Import --enable-relocatable infrastructure.
73597         * build-aux/config.libpath: New file, from GNU gettext.
73598         * build-aux/install-reloc: New file, from GNU gettext.
73599         * build-aux/reloc-ldflags: New file, from GNU gettext.
73600         * lib/relocatable.h: New file, from GNU gettext.
73601         * lib/relocatable.c: New file, from GNU gettext.
73602         * lib/relocwrapper.c: New file, from GNU gettext.
73603         * m4/relocatable.m4: New file, from GNU gettext.
73604
73605 2007-02-28  Bruno Haible  <bruno@clisp.org>
73606
73607         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73608
73609         * modules/xreadlink: New file, from GNU gettext with modifications.
73610         * lib/xreadlink.c: New file, from GNU gettext.
73611         * lib/xreadlink.h: Add comments.
73612         (xreadlink): New declaration.
73613
73614         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73615         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73616         lib/xreadlink-with-size.c.
73617         (configure.ac): Remove gl_XREADLINK invocation.
73618         (Makefile.am): Augment lib_SOURCES.
73619         * m4/xreadlink.m4: Remove file.
73620         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73621         (xreadlink_with_size): Renamed from xreadink.
73622         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73623         * modules/canonicalize (Depends-on): Replace xreadlink with
73624         xreadlink-with-size.
73625         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73626
73627 2007-02-25  Jim Meyering  <jim@meyering.net>
73628
73629         * build-aux/announce-gen: When complaining about excess arguments,
73630         list them.
73631
73632 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         * README: Document signed integer overflow situation more
73635         accurately.
73636
73637 2007-02-25  Bruno Haible  <bruno@clisp.org>
73638
73639         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73640         'a' or 'A' conversion.
73641
73642 2007-02-25  Bruno Haible  <bruno@clisp.org>
73643
73644         * modules/filename: Renamed from modules/pathname.
73645         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73646         lib/concatpath.c with lib/concat-filename.c.
73647         (Makefile.am): Update.
73648         (Include): Replace pathname.h with filename.h.
73649         * lib/filename.h: Renamed from lib/pathname.h.
73650         (concatenated_filename): Renamed from concatenated_pathname.
73651         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73652         (concatenated_filename): Renamed from concatenated_pathname.
73653         * lib/findprog.c: Include filename.h instead of pathname.h.
73654         (find_in_path): Update.
73655         * lib/javacomp.c: Include filename.h instead of pathname.h.
73656         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73657         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73658         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73659         is_oldgcj_14_13_usable, is_javac_usable): Update.
73660         * lib/javaexec.c: Include filename.h instead of pathname.h.
73661         (execute_java_class): Update.
73662         * modules/findprog: Update.
73663         * modules/javacomp: Update.
73664         * modules/javaexec: Update.
73665         * MODULES.html.sh (File system functions): Add 'filename', remove
73666         'pathname'.
73667
73668 2007-02-25  Bruno Haible  <bruno@clisp.org>
73669
73670         * modules/printf-frexpl-tests: New file.
73671         * tests/test-printf-frexpl.c: New file.
73672
73673         * modules/printf-frexpl: New file.
73674         * lib/printf-frexpl.h: New file.
73675         * lib/printf-frexpl.c: New file.
73676         * m4/printf-frexpl.m4: New file.
73677
73678 2007-02-25  Bruno Haible  <bruno@clisp.org>
73679
73680         * modules/printf-frexp-tests: New file.
73681         * tests/test-printf-frexp.c: New file.
73682
73683         * modules/printf-frexp: New file.
73684         * lib/printf-frexp.h: New file.
73685         * lib/printf-frexp.c: New file.
73686         * m4/printf-frexp.m4: New file.
73687
73688 2007-02-25  Bruno Haible  <bruno@clisp.org>
73689
73690         Assume automake >= 1.10 for the tests.
73691         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73692         * modules/arctwo-tests: Likewise.
73693         * modules/argp-tests: Likewise.
73694         * modules/avltree-list-tests: Likewise.
73695         * modules/avltree-oset-tests: Likewise.
73696         * modules/avltreehash-list-tests: Likewise.
73697         * modules/carray-list-tests: Likewise.
73698         * modules/crc-tests: Likewise.
73699         * modules/des-tests: Likewise.
73700         * modules/gc-arcfour-tests: Likewise.
73701         * modules/gc-arctwo-tests: Likewise.
73702         * modules/gc-des-tests: Likewise.
73703         * modules/gc-hmac-md5-tests: Likewise.
73704         * modules/gc-hmac-sha1-tests: Likewise.
73705         * modules/gc-md2-tests: Likewise.
73706         * modules/gc-md4-tests: Likewise.
73707         * modules/gc-md5-tests: Likewise.
73708         * modules/gc-pbkdf2-sha1-tests: Likewise.
73709         * modules/gc-rijndael-tests: Likewise.
73710         * modules/gc-sha1-tests: Likewise.
73711         * modules/gc-tests: Likewise.
73712         * modules/getaddrinfo-tests: Likewise.
73713         * modules/hmac-md5-tests: Likewise.
73714         * modules/hmac-sha1-tests: Likewise.
73715         * modules/linked-list-tests: Likewise.
73716         * modules/linkedhash-list-tests: Likewise.
73717         * modules/lock-tests: Likewise.
73718         * modules/md2-tests: Likewise.
73719         * modules/md4-tests: Likewise.
73720         * modules/md5-tests: Likewise.
73721         * modules/rbtree-list-tests: Likewise.
73722         * modules/rbtree-oset-tests: Likewise.
73723         * modules/rbtreehash-list-tests: Likewise.
73724         * modules/read-file-tests: Likewise.
73725         * modules/rijndael-tests: Likewise.
73726         * modules/stdint-tests: Likewise.
73727         * modules/tls-tests: Likewise.
73728
73729 2007-02-24  Bruno Haible  <bruno@clisp.org>
73730
73731         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73732         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73733         function; instead check whether isnan with a double argument links.
73734         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73735         function; instead check whether isnan with a 'long double' argument
73736         links.
73737         Reported by Eric Blake <ebb9@byu.net>.
73738
73739 2007-02-24  Bruno Haible  <bruno@clisp.org>
73740
73741         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73742         defined.
73743         * lib/isnanl.c: Remove all code. Just include isnan.c.
73744         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73745
73746 2007-02-25  Jim Meyering  <jim@meyering.net>
73747
73748         Avoid conflicting types for 'unsetenv' on FreeBSD.
73749         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73750         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73751         in stdlib.h.
73752
73753 2007-02-24  Bruno Haible  <bruno@clisp.org>
73754
73755         * modules/isnanl-nolibm-tests: New file.
73756         * tests/test-isnanl.c: New file.
73757
73758         * modules/isnanl-nolibm: New file.
73759         * lib/isnanl.h: New file.
73760         * lib/isnanl.c: New file.
73761         * m4/isnanl.m4: New file.
73762
73763 2007-02-24  Bruno Haible  <bruno@clisp.org>
73764
73765         * modules/isnan-nolibm-tests: New file.
73766         * tests/test-isnan.c: New file.
73767
73768         * modules/isnan-nolibm: New file.
73769         * lib/isnan.h: New file.
73770         * lib/isnan.c: New file.
73771         * m4/isnan.m4: New file.
73772
73773 2007-02-24  Bruno Haible  <bruno@clisp.org>
73774
73775         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73776         assume that an exponent fits in 20 bits.
73777
73778 2007-02-24  Jim Meyering  <jim@meyering.net>
73779
73780         * m4/regex.m4: Update the description of the configure-time option,
73781         --without-included-regex, to state accurately what the defaults are,
73782         and perhaps to give people an idea why using this option is risky.
73783
73784 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73785
73786         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73787         loops on small arguments.  This attempts to avoid the problem
73788         Bruno Haible reported for AIX 4.3.2 in
73789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73790
73791 2007-02-23  Bruno Haible  <bruno@clisp.org>
73792
73793         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73794         Needed for help2man.
73795
73796 2007-02-23  Karl Berry  <karl@gnu.org>
73797
73798         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73799         exists, foo.h should be cvs-ignored, not committed.
73800
73801 2007-02-23  Eric Blake  <ebb9@byu.net>
73802
73803         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73804         * lib/stat-time.h (includes): Likewise.
73805         * lib/utimecmp.c (includes): Likewise.
73806         * lib/utimens.h (includes): Likewise.
73807         * lib/getdate.y (includes): Also include "timespec.h" for use
73808         internal to the module.
73809         * modules/utimens (Depends-on): Revert yesterday's patch.
73810         * modules/nanosleep (Depends-on): Add missing dependency.
73811
73812 2007-02-22  Bruno Haible  <bruno@clisp.org>
73813
73814         * lib/glob.c: Don't include getlogin_r.h.
73815
73816 2007-02-22  Jim Meyering  <jim@meyering.net>
73817
73818         * modules/utimens (Depends-on): Add timespec, required for
73819         utimens.h's inclusion of timespec.h.
73820
73821 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73822
73823         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73824         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73825         Schwab in
73826         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73827         I'll try to think of a better way to fix the Solaris problem.
73828
73829         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73830         like glibc; on Solaris 10, it fails with errno == EINVAL.
73831         POSIX says the behavior is unspecified if the first argument is NULL,
73832         so play it safe and never pass NULL to the system getcwd.
73833
73834 2007-02-21  Jim Meyering  <jim@meyering.net>
73835
73836         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73837         of gettimeofday.  It would conflict with the one now always
73838         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73839         an IRIX 6.5 build failure.
73840
73841 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         Minor fixups to port to Solaris 10 with Sun C 5.8.
73844         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73845         * modules/getcwd (Depends-on): Add dirfd.
73846         * lib/putenv.c (putenv): #undef it.
73847         (rpl_putenv): New decl.
73848         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73849
73850 2007-02-20  Bruno Haible  <bruno@clisp.org>
73851
73852         * modules/stdio-tests: New file.
73853         * tests/test-stdio.c: New file.
73854
73855         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73856         (Depends-on): Add stdio.
73857         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73858         (Include): Use <stdio.h> instead of vsnprintf.h.
73859         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73860         HAVE_DECL_VSNPRINTF.
73861         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73862
73863         * modules/snprintf (Files): Remove lib/snprintf.h.
73864         (Depends-on): Add stdio.
73865         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73866         (Include): Use <stdio.h> instead of snprintf.h.
73867         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73868         HAVE_DECL_SNPRINTF.
73869         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73870         * lib/getaddrinfo.c: Likewise.
73871
73872         * modules/stdio: New file.
73873         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73874         * lib/snprintf.h: Remove file.
73875         * lib/vsnprintf.h: Remove file.
73876         * lib/.cppi-disable: Remove snprintf.h.
73877         * m4/stdio_h.m4: New file.
73878         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73879
73880 2007-02-20  Jim Meyering  <jim@meyering.net>
73881
73882         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73883         used by e.g., mingw.  From Bruno Haible.
73884
73885 2007-02-19  Bruno Haible  <bruno@clisp.org>
73886
73887         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73888         warnings.
73889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73890
73891 2007-02-19  Bruno Haible  <bruno@clisp.org>
73892
73893         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73894         from mingw users.
73895
73896 2007-02-19  Bruno Haible  <bruno@clisp.org>
73897
73898         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73899         warnings.
73900         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73901
73902 2007-02-19  Jim Meyering  <jim@meyering.net>
73903
73904         Don't use FD after a successful "fdopendir (fd)".
73905         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73906         Reset it by calling dirfd on the just-obtained DIR*.
73907
73908         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73909         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73910
73911 2007-02-18  Bruno Haible  <bruno@clisp.org>
73912
73913         * lib/readlink.c: Include <unistd.h>.
73914         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73915         HAVE_READLINK.
73916         * modules/readlink (Depends-on): Add unistd.
73917         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73918         (Include): Add <unistd.h>.
73919
73920         * lib/getlogin_r.h: Remove file.
73921         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73922         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73923         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73924         HAVE_DECL_GETLOGIN_R.
73925         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73926         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73927         (Include): Use <unistd.h> instead of getlogin_r.h.
73928
73929         * lib/getcwd.h: Remove file.
73930         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73931         * lib/xgetcwd.c: Likewise.
73932         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73933         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73934         * modules/getcwd (Files): Remove lib/getcwd.h.
73935         (Depends-on): Add unistd.
73936         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73937         (Include): Use <unistd.h> instad of getcwd.h.
73938
73939         * lib/ftruncate.c: Include <unistd.h> first.
73940         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73941         Set HAVE_FTRUNCATE.
73942         * modules/ftruncate (Depends-on): Add unistd.
73943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73944
73945         * lib/fchdir.c: Include <unistd.h> first.
73946         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73948         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73949         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73950         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73951
73952         * lib/dup2.c: Include <unistd.h> first.
73953         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73954         HAVE_DUP2.
73955         * modules/dup2 (Depends-on): Add unistd.
73956         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73957
73958         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73959         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73960         REPLACE_CHOWN. Don't define chown as a macro here.
73961         * modules/chown (Depends-on): Add unistd.
73962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73963
73964         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73965         Add definition for GL_LINK_WARNING.
73966         (chown, dup2): New declarations.
73967         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73968         link warning.
73969         (ftruncate): New declaration.
73970         (getcwd): New declaration, taken from old getcwd.h.
73971         (getlogin_r): New declaration, taken from old getlogin_r.h.
73972         (readlink): New declaration.
73973         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73974         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73975         (gl_PREREQ_UNISTD): Remove macro.
73976         (gl_UNISTD_MODULE_INDICATOR): New macro.
73977         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73978         many new variables. Don't set UNISTD_H.
73979         * modules/unistd (Description): Change.
73980         (Depends-on): Add link-warning.
73981         (configure.ac): Update.
73982         (Makefile.am): Create unistd.h always. Substitute many new variables
73983         into it.
73984
73985 2007-02-18  Bruno Haible  <bruno@clisp.org>
73986
73987         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73988         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73989         HAVE_GETSUBOPT.
73990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73991         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73992         * lib/getsubopt.h: Remove file.
73993         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73994         (Depends-on): Add stdlib.
73995         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73996         (Includes): Use <stdlib.h> instead of getsubopt.h.
73997         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73998         Set HAVE_GETSUBOPT.
73999         * lib/getsubopt.c: Don't include getsubopt.h.
74000
74001 2007-02-18  Bruno Haible  <bruno@clisp.org>
74002
74003         * modules/fchdir (Depends-on): Add dup2.
74004
74005 2007-02-18  Bruno Haible  <bruno@clisp.org>
74006
74007         * lib/stdlib_.h: Handle glibc's special invocation convention
74008         specially.
74009
74010 2007-02-18  Bruno Haible  <bruno@clisp.org>
74011
74012         * modules/stdlib-tests: New file.
74013         * tests/test-stdlib.c: New file.
74014
74015         * modules/mkstemp (Files): Remove lib/mkstemp.h.
74016         (Depends-on): Add stdlib.
74017         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74018         (Includes): Use <stdlib.h> instead of mkstemp.h.
74019         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74020         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
74021         * lib/mkstemp.c: Don't include mkstemp.h.
74022         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
74023         * lib/stdlib--.h: Don't include mkstemp.h.
74024
74025         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
74026         (Depends-on): Add stdlib.
74027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74028         (Includes): Use <stdlib.h> instead of mkdtemp.h.
74029         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74030         HAVE_MKDTEMP.
74031         * lib/mkdtemp.c: Don't include mkdtemp.h.
74032         * lib/clean-temp.c: Don't include mkdtemp.h.
74033
74034         * modules/exit (Files): Remove lib/exit.h.
74035         (Depends-on): Add stdlib.
74036         (Makefile.am): Remove lib_SOURCES.
74037         (Include): Use <stdlib.h> instead of exit.h.
74038         * lib/argmatch.c: Don't include exit.h.
74039         * lib/execute.c: Likewise.
74040         * lib/pagealign_alloc.c: Likewise.
74041         * lib/pipe.c: Likewise.
74042         * lib/wait-process.c: Likewise.
74043         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
74044         * lib/exitfail.c: Likewise.
74045         * lib/savewd.c: Likewise.
74046         * lib/xsetenv.c: Likewise.
74047
74048         * modules/stdlib: New file.
74049         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
74050         and extra comments about mkstemp().
74051         * lib/exit.h: Remove file.
74052         * lib/mkdtemp.h: Remove file.
74053         * lib/mkstemp.h: Remove file.
74054         * m4/stdlib_h.m4: New file.
74055         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
74056
74057 2007-02-18  Bruno Haible  <bruno@clisp.org>
74058
74059         * modules/math-tests: New file.
74060         * tests/test-math.c: New file.
74061
74062         * modules/math: New file.
74063         * modules/mathl (Files): Remove lib/mathl.h.
74064         (Depends-on): Add math.
74065         (Makefile.am): Don't mention mathl.h.
74066         (Include): Use <math.h> instead of mathl.h.
74067         * lib/math_.h: New file.
74068         * lib/mathl.h: Remove file.
74069         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
74070         mathl.h.
74071         * lib/asinl.c: Likewise.
74072         * lib/atanl.c: Likewise.
74073         * lib/ceill.c: Likewise.
74074         * lib/cosl.c: Likewise.
74075         * lib/expl.c: Likewise.
74076         * lib/floorl.c: Likewise.
74077         * lib/frexpl.c: Likewise.
74078         * lib/ldexpl.c: Likewise.
74079         * lib/logl.c: Likewise.
74080         * lib/sincosl.c: Likewise.
74081         * lib/sinl.c: Likewise.
74082         * lib/sqrtl.c: Likewise.
74083         * lib/tanl.c: Likewise.
74084         * lib/trigl.c: Likewise.
74085         * m4/math_h.m4: New file.
74086         * MODULES.html.sh (Mathematics): Add math.
74087
74088 2007-02-17  Bruno Haible  <bruno@clisp.org>
74089
74090         * modules/wctype-tests: New file.
74091         * tests/test-wctype.c: New file.
74092
74093         * modules/wchar-tests: New file.
74094         * tests/test-wchar.c: New file.
74095
74096         * modules/unistd-tests: New file.
74097         * tests/test-unistd.c: New file.
74098
74099         * modules/time-tests: New file.
74100         * tests/test-time.c: New file.
74101
74102         * modules/sysexits-tests: New file.
74103         * tests/test-sysexits.c: New file.
74104
74105         * modules/sys_time-tests: New file.
74106         * tests/test-sys_time.c: New file.
74107
74108         * modules/sys_stat-tests: New file.
74109         * tests/test-sys_stat.c: New file.
74110
74111         * modules/sys_socket-tests: New file.
74112         * tests/test-sys_socket.c: New file.
74113
74114         * modules/sys_select-tests: New file.
74115         * tests/test-sys_select.c: New file.
74116
74117         * modules/string-tests: New file.
74118         * tests/test-string.c: New file.
74119
74120         * modules/stdbool-tests: New file.
74121         * tests/test-stdbool.c: New file.
74122
74123         * modules/netinet_in-tests: New file.
74124         * tests/test-netinet_in.c: New file.
74125
74126         * modules/inttypes-tests: New file.
74127         * tests/test-inttypes.c: New file.
74128
74129         * modules/fcntl-tests: New file.
74130         * tests/test-fcntl.c: New file.
74131
74132         * modules/byteswap-tests: New file.
74133         * tests/test-byteswap.c: New file.
74134
74135         * modules/arpa_inet-tests: New file.
74136         * tests/test-arpa_inet.c: New file.
74137
74138 2007-02-17  Bruno Haible  <bruno@clisp.org>
74139
74140         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74141         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74142         if the corresponding module is not enabled. Emit link warnings if
74143         the function is used nevertheless.
74144         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74145         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74146         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74147         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74148         * modules/inttypes (Depends-on): Add link-warning.
74149         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74150         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74151         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74152         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74153         * modules/imaxdiv (configure.ac): Likewise.
74154         * modules/strtoimax (configure.ac): Likewise.
74155         * modules/strtoumax (configure.ac): Likewise.
74156
74157 2007-02-17  Bruno Haible  <bruno@clisp.org>
74158
74159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74160         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74161         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74162         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74163
74164 2007-02-17  Bruno Haible  <bruno@clisp.org>
74165
74166         * modules/link-warning: New file.
74167         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74168         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74169         * modules/string (Depends-on): Add link-warning.
74170         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74171         string.h.
74172         * MODULES.html.sh (Support for building libraries and executables): Add
74173         link-warning.
74174
74175 2007-02-17  Bruno Haible  <bruno@clisp.org>
74176
74177         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74178         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74179         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74180         long lines.
74181
74182 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74183             Bruno Haible  <bruno@clisp.org>
74184
74185         * modules/tmpfile: New file.
74186         * lib/tmpfile.c: New file.
74187         * m4/tmpfile.m4: New file.
74188         * MODULES.html.sh (func_all_modules): New section "Input/output".
74189
74190 2007-02-15  Bruno Haible  <bruno@clisp.org>
74191
74192         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74193         (supports_delete_on_close): New function.
74194         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74195
74196 2007-02-14  Bruno Haible  <bruno@clisp.org>
74197
74198         * modules/mbspcasecmp-tests: New file.
74199         * tests/test-mbspcasecmp.sh: New file.
74200         * tests/test-mbspcasecmp.c: New file.
74201
74202         New module mbspcasecmp.
74203         * modules/mbspcasecmp: New file.
74204         * lib/mbspcasecmp.c: New file.
74205         * lib/string_.h (strncasecmp): Change warning message.
74206         (mbspcasecmp): New declaration.
74207         * m4/mbspcasecmp.m4: New file.
74208         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74209         GNULIB_MBSPCASECMP.
74210         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74211         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74212
74213 2007-02-14  Bruno Haible  <bruno@clisp.org>
74214
74215         * modules/mbsncasecmp-tests: New file.
74216         * tests/test-mbsncasecmp.sh: New file.
74217         * tests/test-mbsncasecmp.c: New file.
74218
74219         New module mbsncasecmp.
74220         * modules/mbsncasecmp: New file.
74221         * lib/mbsncasecmp.c: New file.
74222         * lib/string_.h (mbsncasecmp): New declaration.
74223         * m4/mbsncasecmp.m4: New file.
74224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74225         GNULIB_MBSNCASECMP.
74226         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74227         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74228
74229 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74230
74231         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74232         Verify that it doesn't overlap with our flags.
74233         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74234         do not have the desired effect in multibyte locales; instead, use
74235         mbscasecmp.
74236         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74237         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74238         we don't require GNU fnmatch ourselves (if our users require it, they
74239         should do so explicitly).
74240
74241         Fix regex code so it doesn't rely on strcasecmp.
74242         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74243         Otherwise, include gnulib's langinfo.h.
74244         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74245         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74246         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74247         * modules/regex (FILES): Remove m4/codeset.m4.
74248         (Depends-on): Add localcharset.  Remove strcase.
74249
74250 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74251
74252         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74253         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74254
74255 2007-02-13  Bruno Haible  <bruno@clisp.org>
74256
74257         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74258         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74259
74260 2007-02-12  Bruno Haible  <bruno@clisp.org>
74261
74262         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74263         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74264         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74265         time warning rather than a link error.
74266
74267 2007-02-12  Bruno Haible  <bruno@clisp.org>
74268
74269         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74271         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74272
74273 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74274
74275         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74276         args, not 2.
74277
74278 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         New module 'time', so that apps can include <time.h> as per
74281         POSIX and GNU instead of separate include files like time_r.h
74282         and timegm.h.  This implementation tries out a simpler approach
74283         for replacing decls in standard include files (as compared to
74284         the string module), somewhat as an experiment.
74285
74286         * config/srclist.txt: Comment out mktime.c for now.
74287         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74288         since it doesn't apply any more.  Use generic wording instead.
74289         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74290         'time'.
74291         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74292         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74293         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74294         Don't include <sys/types.h>; no longer needed since we assume C89.
74295         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74296         * lib/strftime.c: Likewise.
74297         * lib/time_r.c: Likewise.
74298         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74299         * lib/nanosleep.c: Include <time.h> first, to check interface.
74300         * lib/strptime.c: Likewise.
74301         * lib/time_r.c: Likewise.
74302         * lib/timegm.c: Likewise.
74303         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74304         needed.
74305         * lib/timegm.c: Don't include timegm.h; no longer needed.
74306         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74307         time.h now handles any problems in that area.
74308         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74309         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74310         that time.h defines struct timespec.
74311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74312         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74313         handles that.
74314         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74315         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74316         needed.  Set REPLACE_LOCALTIME.
74317         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74318         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74319         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74320         nanosleep; time_h.m4 now does that.  Don't require
74321         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74322         module handles this now.
74323         * modules/getdate (Depends-on): Remove timespec.  Add time.
74324         * modules/nanosleep (Depends-on): Likewise.
74325         * modules/stat-time (Depends-on): Likewise.
74326         * modules/nanosleep (Include): Include time.h, not timespec.h.
74327         * modules/strptime (Files): Remove lib/strptime.h.
74328         (Depends-on): Add extensions, time.
74329         (Include): Include time.h, not strptime.h.
74330         * modules/time_r (Files): Remove lib/time_r.h.
74331         (Depends-on): Add time.
74332         (Include): Include time.h, not time_r.h.
74333         * modules/timegm: Likewise.
74334         * modules/timespec (Description): Now does timespec-related decls
74335         of our own, instead of struct timespec itself.
74336         (Depends-on): Add time; remove extensions.
74337         (Maintainer): Add self.
74338         * modules/utimecmp (Depends-on): Add time; remove timespec.
74339         * modules/utimens (Depends-on): Likewise.
74340         * modules/xnanosleep (Depends-on): Likewise.
74341
74342 2007-02-11  Bruno Haible  <bruno@clisp.org>
74343
74344         * lib/c-strstr.c: Include allocsa.h.
74345         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74346         * lib/c-strcasestr.c: Include allocsa.h.
74347         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74348         * lib/strcasestr.c: Include allocsa.h.
74349         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74350         * lib/mbsstr.c: Include allocsa.h.
74351         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74352         allocsa/freesa instead of malloc/free.
74353         * lib/mbscasestr.c: Include allocsa.h.
74354         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74355         allocsa/freesa instead of malloc/free.
74356         * modules/c-strstr (Depends-on): Add allocsa.
74357         * modules/c-strcasestr (Depends-on): Likewise.
74358         * modules/strcasestr (Depends-on): Likewise.
74359         * modules/mbsstr (Depends-on): Likewise.
74360         * modules/mbscasestr (Depends-on): Likewise.
74361
74362 2007-02-11  Bruno Haible  <bruno@clisp.org>
74363
74364         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74365
74366         * modules/mbsspn-tests: New file.
74367         * tests/test-mbsspn.sh: New file.
74368         * tests/test-mbsspn.c: New file.
74369
74370 2007-02-11  Bruno Haible  <bruno@clisp.org>
74371
74372         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74373
74374         * modules/mbspbrk-tests: New file.
74375         * tests/test-mbspbrk.sh: New file.
74376         * tests/test-mbspbrk.c: New file.
74377
74378 2007-02-11  Bruno Haible  <bruno@clisp.org>
74379
74380         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74381         unneeded cast.
74382
74383         * modules/mbscspn-tests: New file.
74384         * tests/test-mbscspn.sh: New file.
74385         * tests/test-mbscspn.c: New file.
74386
74387 2007-02-11  Bruno Haible  <bruno@clisp.org>
74388
74389         * modules/mbscasecmp-tests: New file.
74390         * tests/test-mbscasecmp.sh: New file.
74391         * tests/test-mbscasecmp.c: New file.
74392
74393 2007-02-11  Bruno Haible  <bruno@clisp.org>
74394
74395         Ensure O(n) worst-case complexity of mbscasestr.
74396         * lib/mbscasestr.c: Include stdbool.h.
74397         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74398         functions.
74399         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74400         the bookkeeping indicates that it's worth it.
74401         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74402
74403         * modules/mbscasestr-tests: New file.
74404         * tests/test-mbscasestr1.c: New file.
74405         * tests/test-mbscasestr2.sh: New file.
74406         * tests/test-mbscasestr2.c: New file.
74407         * tests/test-mbscasestr3.sh: New file.
74408         * tests/test-mbscasestr3.c: New file.
74409         * tests/test-mbscasestr4.sh: New file.
74410         * tests/test-mbscasestr4.c: New file.
74411         * m4/locale-tr.m4: New file.
74412
74413 2007-02-11  Bruno Haible  <bruno@clisp.org>
74414
74415         Ensure O(n) worst-case complexity of mbsstr.
74416         * lib/mbsstr.c: Include stdbool.h.
74417         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74418         functions.
74419         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74420         bookkeeping indicates that it's worth it.
74421         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74422
74423         * modules/mbsstr-tests: New file.
74424         * tests/test-mbsstr1.c: New file.
74425         * tests/test-mbsstr2.sh: New file.
74426         * tests/test-mbsstr2.c: New file.
74427         * tests/test-mbsstr3.sh: New file.
74428         * tests/test-mbsstr3.c: New file.
74429         * m4/locale-fr.m4: New file.
74430
74431 2007-02-11  Bruno Haible  <bruno@clisp.org>
74432
74433         * lib/mbsrchr.c (mbsrchr): Fix bug.
74434
74435         * modules/mbsrchr-tests: New file.
74436         * tests/test-mbsrchr.sh: New file.
74437         * tests/test-mbsrchr.c: New file.
74438
74439 2007-02-11  Bruno Haible  <bruno@clisp.org>
74440
74441         * lib/mbschr.c (mbschr): Fix bug.
74442
74443         * modules/mbschr-tests: New file.
74444         * tests/test-mbschr.sh: New file.
74445         * tests/test-mbschr.c: New file.
74446         * m4/locale-zh.m4: New file.
74447
74448 2007-02-11  Bruno Haible  <bruno@clisp.org>
74449
74450         Support for copying multibyte string iterators.
74451         * lib/mbiter.h: Include <string.h>.
74452         (mbiter_multi_copy): New function.
74453         (mbi_copy): New macro.
74454         * lib/mbuiter.h: Include <string.h>.
74455         (mbuiter_multi_copy): New function.
74456         (mbui_copy): New macro.
74457
74458 2007-02-11  Bruno Haible  <bruno@clisp.org>
74459
74460         New module mbslen.
74461         * modules/mbslen: New file.
74462         * lib/mbslen.c: New file.
74463         * lib/string_.h (mbslen): New declaration.
74464         * m4/mbslen.m4: New file.
74465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74466         GNULIB_MBSLEN.
74467         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74468         * MODULES.html.sh (Internationalization functions): Add mbslen.
74469
74470 2007-02-11  Bruno Haible  <bruno@clisp.org>
74471
74472         Ensure O(n) worst-case complexity of strcasestr substitute.
74473         * lib/strcasestr.c: Include stdbool.h.
74474         (knuth_morris_pratt): New function.
74475         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74476         bookkeeping indicates that it's worth it.
74477         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74478
74479         * modules/strcasestr-tests: New file.
74480         * tests/test-strcasestr.c: New file.
74481
74482 2007-02-11  Bruno Haible  <bruno@clisp.org>
74483
74484         Ensure O(n) worst-case complexity of c_strcasestr.
74485         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74486         (knuth_morris_pratt): New function.
74487         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74488         the bookkeeping indicates that it's worth it.
74489         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74490
74491         * modules/c-strcasestr-tests: New file.
74492         * tests/test-c-strcasestr.c: New file.
74493
74494 2007-02-11  Bruno Haible  <bruno@clisp.org>
74495
74496         Ensure O(n) worst-case complexity of c_strstr.
74497         * lib/c-strstr.c: Include stdbool.h, string.h.
74498         (knuth_morris_pratt): New function.
74499         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74500         bookkeeping indicates that it's worth it.
74501         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74502
74503         * lib/c-strstr.c: Complete rewrite for maintainability.
74504
74505         * modules/c-strstr-tests: New file.
74506         * tests/test-c-strstr.c: New file.
74507
74508 2007-02-11  Bruno Haible  <bruno@clisp.org>
74509
74510         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74511         5.2.1 and earlier, whereby \055 was treated just like the range
74512         delimiter '-'.
74513         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74514
74515 2007-02-08  Bruno Haible  <bruno@clisp.org>
74516
74517         * modules/regex (Depends-on): Add stdbool.
74518         Reported by Dalibor Topic <robilad@kaffe.org>.
74519
74520 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74521
74522         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74523         Prefer returning from main to exiting from it.
74524         Remove unnecessary parens after sizeof.
74525
74526 2007-02-05  Bruno Haible  <bruno@clisp.org>
74527
74528         New module mbssep.
74529         * modules/mbssep: New file.
74530         * lib/mbssep.c: New file.
74531         * lib/string_.h (strsep): Add a conditional link warning.
74532         (mbssep): New declaration.
74533         * m4/mbssep.m4: New file.
74534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74535         GNULIB_MBSSEP.
74536         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74537         * MODULES.html.sh (Internationalization functions): Add mbssep.
74538
74539 2007-02-05  Bruno Haible  <bruno@clisp.org>
74540
74541         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74542         Optimize search in case of 1 delimiter.
74543
74544 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74545
74546         * lib/acl.h: Include sys/types.h before sys/acl.h.
74547
74548 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74549
74550         Merge upstream fix for glibc bugzilla #3957:
74551
74552         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74553
74554         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74555         bit for RE_HAT_LISTS_NOT_NEWLINE.
74556         (build_charclass_op): Remove bogus comment.
74557
74558 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74559
74560         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74561
74562 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74565         * lib/memmem.c [!defined _LIBC]: Include config.h.
74566
74567 2007-02-04  Bruno Haible  <bruno@clisp.org>
74568
74569         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74570         warning message.
74571
74572 2007-02-04  Bruno Haible  <bruno@clisp.org>
74573
74574         New module mbstok_r.
74575         * modules/mbstok_r: New file.
74576         * lib/mbstok_r.c: New file.
74577         * lib/string_.h (strtok_r): Change argument names to match the
74578         comments. Add a conditional link warning.
74579         (mbstok_r): New declaration.
74580         * m4/mbstok_r.m4: New file.
74581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74582         GNULIB_MBSTOK_R.
74583         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74584         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74585
74586 2007-02-04  Bruno Haible  <bruno@clisp.org>
74587
74588         New module mbsspn.
74589         * modules/mbsspn: New file.
74590         * lib/mbsspn.c: New file.
74591         * lib/string_.h (strspn): Add a conditional link warning.
74592         (mbsspn): New declaration.
74593         * m4/mbsspn.m4: New file.
74594         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74595         GNULIB_MBSSPN.
74596         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74597         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74598
74599 2007-02-04  Bruno Haible  <bruno@clisp.org>
74600
74601         New module mbspbrk.
74602         * modules/mbspbrk: New file.
74603         * lib/mbspbrk.c: New file.
74604         * lib/string_.h (strpbrk): Add a conditional link warning.
74605         (mbspbrk): New declaration.
74606         * m4/mbspbrk.m4: New file.
74607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74608         GNULIB_MBSPBRK.
74609         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74610         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74611
74612 2007-02-04  Bruno Haible  <bruno@clisp.org>
74613
74614         New module mbscspn.
74615         * modules/mbscspn: New file.
74616         * lib/mbscspn.c: New file.
74617         * lib/string_.h (strcspn): Add a conditional link warning.
74618         (mbscspn): New declaration.
74619         * m4/mbscspn.m4: New file.
74620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74621         GNULIB_MBSCSPN.
74622         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74623         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74624
74625 2007-02-04  Bruno Haible  <bruno@clisp.org>
74626
74627         New module mbscasestr, reduced goal of strcasestr.
74628         * modules/mbscasestr: New file.
74629         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74630         (mbscasestr): Renamed from strcasestr.
74631         * lib/strcasestr.c: Don't include mbuiter.h.
74632         (strcasestr): Remove support for multibyte locales.
74633         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74634         Change the conditional link warning.
74635         (mbscasestr): New declaration.
74636         * m4/mbscasestr.m4: New file.
74637         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74638         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74639         REPLACE_STRCASESTR.
74640         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74642         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74643         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74644         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74645         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74646         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74647         (Depends-on): Remove mbuiter.
74648         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74649
74650 2007-02-04  Bruno Haible  <bruno@clisp.org>
74651
74652         Simplify handling of strncasecmp.
74653         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74654         the conditional link warning.
74655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74656         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74657         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74658         * modules/strcase (configure.ac): Don't invoke
74659         gl_STRING_MODULE_INDICATOR.
74660         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74661
74662 2007-02-04  Bruno Haible  <bruno@clisp.org>
74663
74664         New module mbscasecmp, reduced goal of strcasecmp.
74665         * modules/mbscasecmp: New file.
74666         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74667         (mbscasecmp): Renamed from strcasecmp.
74668         * lib/strcasecmp.c: Don't include mbuiter.h.
74669         (strcasecmp): Remove support for multibyte locales.
74670         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74671         Change the conditional link warning.
74672         (mbscasecmp): New declaration.
74673         * m4/mbscasecmp.m4: New file.
74674         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74675         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74676         REPLACE_STRCASECMP.
74677         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74679         GNULIB_MBSCASECMP.
74680         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74681         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74682         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74683         (Depends-on): Remove mbuiter.
74684         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74685
74686 2007-02-04  Bruno Haible  <bruno@clisp.org>
74687
74688         New module mbsstr. Remove module strstr.
74689         * modules/mbsstr: New file.
74690         * modules/strstr: Remove file.
74691         * lib/mbsstr.c: Renamed from lib/strstr.c.
74692         (mbsstr): Renamed from strstr.
74693         * lib/string_.h (strstr): Remove declaration. Change the conditional
74694         link warning.
74695         (mbsstr): New declaration.
74696         * m4/mbsstr.m4: New file.
74697         * m4/strstr.m4: Remove file.
74698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74699         REPLACE_STRSTR.
74700         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74701         Don't initialize GNULIB_STRSTR.
74702         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74703         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74704         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74705         (Support for systems lacking ANSI C 89): Remove strstr.
74706
74707 2007-02-04  Bruno Haible  <bruno@clisp.org>
74708
74709         New module mbsrchr.
74710         * modules/mbsrchr: New file.
74711         * lib/mbsrchr.c: New file.
74712         * lib/string_.h (strrchr): Add a conditional link warning.
74713         (mbsrchr): New declaration.
74714         * m4/mbsrchr.m4: New file.
74715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74716         GNULIB_MBSRCHR.
74717         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74718         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74719
74720 2007-02-04  Bruno Haible  <bruno@clisp.org>
74721
74722         New module mbschr.
74723         * modules/mbschr: New file.
74724         * lib/mbschr.c: New file.
74725         * lib/string_.h (strchr): Add a conditional link warning.
74726         (mbschr): New declaration.
74727         * m4/mbschr.m4: New file.
74728         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74729         GNULIB_MBSCHR.
74730         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74731         * MODULES.html.sh (Internationalization functions): Add mbschr.
74732
74733 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74734
74735         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74736
74737         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74738
74739 2007-02-04  Bruno Haible  <bruno@clisp.org>
74740
74741         New module description section 'configure.ac-early'.
74742         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74743         (func_get_autoconf_early_snippet): New function.
74744         (func_import, func_create_testdir): Use it. Remove special cases for
74745         modules 'extensions' and 'lock'.
74746         * modules/extensions (configure.ac-early): Require
74747         gl_USE_SYSTEM_EXTENSIONS.
74748         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74749
74750 2007-02-04  Bruno Haible  <bruno@clisp.org>
74751
74752         Make use of gcj-4.3's -fsource and -ftarget option.
74753         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74754         and if so try the options -fsource and -ftarget.
74755         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74756         source_version, ftarget_option, target_version arguments.
74757         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74758         (is_envjavac_oldgcj_14_14_usable): Renamed from
74759         is_envjavac_gcj_14_14_usable.
74760         (is_envjavac_oldgcj_14_13_usable): Renamed from
74761         is_envjavac_gcj_14_13_usable.
74762         (is_gcj_present): Update.
74763         (is_gcj_43, is_gcj43_usable): New functions.
74764         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74765         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74766         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74767         try the options -fsource and -ftarget.
74768
74769 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74770
74771         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74772         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74773         larger value.
74774
74775 2007-02-03  Jim Meyering  <jim@meyering.net>
74776
74777         Give tools a better chance to allocate space for very large buffers.
74778         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74779
74780         Make pwd and readlink work also when run with an unreadable parent dir
74781         on systems with openat support.
74782         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74783         provided getcwd function, even when we have openat support.
74784         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74785
74786 2007-02-02  Bruno Haible  <bruno@clisp.org>
74787
74788         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74789         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74790         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74791         portability problems if one of these functions is only used on specific
74792         platforms.
74793         Reported by Paul Eggert.
74794
74795 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74796
74797         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74798         is causing more trouble than it's curing.
74799         * lib/regex_internal.h (__mempcpy): Remove.
74800         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74801         (and make the code a tad smaller to boot).
74802         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74803
74804 2007-02-02  Jim Meyering  <jim@meyering.net>
74805
74806         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74807         section, not in the Makefile.am: one.
74808
74809 2007-02-02  Eric Blake  <ebb9@byu.net>
74810
74811         * lib/strchrnul.c: Always include config.h first.
74812
74813         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74814         gnulib strstr is not necessary here.
74815
74816 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74817
74818         * m4/socklen.m4: Fix typo.
74819
74820 2007-02-02  Eric Blake  <ebb9@byu.net>
74821
74822         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74823         * modules/netinet_in (Makefile.am): Likewise.
74824
74825 2007-02-01  Bruno Haible  <bruno@clisp.org>
74826
74827         * lib/string_.h (GL_LINK_WARNING): New macro.
74828         (strcasecmp, strstr, strcasestr): If provided by the system,
74829         conditionally define as a macro that leads to a warning instead of to
74830         an error.
74831         (strncasecmp): Conditionally define as a macro that leads to a warning.
74832
74833 2007-02-01  Karl Berry  <karl@gnu.org>
74834
74835         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74836
74837 2007-02-01  Bruno Haible  <bruno@clisp.org>
74838
74839         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74840         renamings.
74841
74842 2007-02-01  Eric Blake  <ebb9@byu.net>
74843
74844         * modules/regex (Depends-on): Revert dependence on mempcpy.
74845         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74846         module's definition of mempcpy.
74847         Reported by Paul Eggert.
74848
74849 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74850
74851         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74852         the symbol XYZ before redefining it.  This fixes a problem with
74853         programs that don't use XYZ, when compiled on systems that define
74854         XYZ to something else.
74855
74856 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74859         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74860         writeable to group or other and (2) is intended to have a special
74861         mode bit that is set or cleared.  In such a case, the directory
74862         should be neither group- nor other-writeable until the special
74863         mode bits are right.
74864
74865 2007-01-31  Eric Blake  <ebb9@byu.net>
74866
74867         * modules/mountlist (Depends-on): Add strstr.
74868
74869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74870         bug.
74871         * modules/string (Makefile.am): Remove redundant replacement.
74872         * modules/regex (Depends-on): Add mempcpy.
74873
74874 2007-01-31  Bruno Haible  <bruno@clisp.org>
74875
74876         New module description field 'Link'.
74877         * gnulib-tool (func_usage): Document --extract-link-directive.
74878         (sed_extract_prog): Recognize 'Link' directive.
74879         (func_get_link_directive): New function.
74880         (func_import): Show summary of link directives.
74881         Handle --extract-link-directive option.
74882         * modules/acl (Link): New section.
74883         * modules/clock-time (Link): New section.
74884         * modules/euidaccess (Link): New section.
74885         * modules/gettext (Link): New section.
74886         * modules/iconv (Link): New section.
74887         * modules/lock (Link): New section.
74888         * modules/nanosleep (Link): New section.
74889         * modules/readline (Link): New section.
74890
74891 2007-01-27  Bruno Haible  <bruno@clisp.org>
74892
74893         Enforce the use of gnulib modules for unportable <string.h> functions.
74894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74895         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74896         (gl_HEADER_STRING_H_BODY): Require it.
74897         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74898         the symbol XYZ to one that gives a link error.
74899         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74900         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74901         * modules/mempcpy (configure.ac): Likewise.
74902         * modules/memrchr (configure.ac): Likewise.
74903         * modules/stpcpy (configure.ac): Likewise.
74904         * modules/stpncpy (configure.ac): Likewise.
74905         * modules/strcase (configure.ac): Likewise.
74906         * modules/strcasestr (configure.ac): Likewise.
74907         * modules/strchrnul (configure.ac): Likewise.
74908         * modules/strdup (configure.ac): Likewise.
74909         * modules/strndup (configure.ac): Likewise.
74910         * modules/strnlen (configure.ac): Likewise.
74911         * modules/strpbrk (configure.ac): Likewise.
74912         * modules/strsep (configure.ac): Likewise.
74913         * modules/strstr (configure.ac): Likewise.
74914         * modules/strtok_r (configure.ac): Likewise.
74915
74916 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74917
74918         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74919
74920 2007-01-30  Jim Meyering  <jim@meyering.net>
74921
74922         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74923
74924 2007-01-29  Bruno Haible  <bruno@clisp.org>
74925
74926         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74927         * lib/execute.c: Likewise.
74928         * lib/pipe.c: Likewise.
74929         * lib/printf-args.h: Likewise.
74930         * lib/printf-args.c: Likewise.
74931         * lib/printf-parse.c: Likewise.
74932         * lib/vasnprintf.c: Likewise.
74933
74934 2007-01-29  Eric Blake  <ebb9@byu.net>
74935
74936         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74937         declaration.
74938
74939 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * lib/strptime.h (strptime): Use 'restrict' for args where
74942         POSIX requires this.
74943         * lib/strptime.c (strptime): Likewise.
74944         Change license notice from LGPL to GPL, since gnulib-tool will
74945         change this as needed.
74946         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74947         defined.
74948         Include "strptime.h" first, to check interface.
74949         Do not #undef _LIBC and _NL_CURRENT.
74950         Do not include <stdlib.h>; no longer needed.
74951         Include "time_r.h" and declare ptime_locale_status
74952         only if _LIBC is not defined.
74953         (__P): Remove unused macro.
74954         (match_string): Bring back glibc version, but use it only if _LIBC
74955         is defined.
74956         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74957         Remove unnecessary assertion and abort() call.
74958         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74959         * m4/strptime.m4: Fix serial number comment.
74960         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74961         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74962         (Depends-on): Add time_r.
74963
74964 2007-01-29  Bruno Haible  <bruno@clisp.org>
74965
74966         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74967         strptime.
74968         * modules/strptime (Depends-on): Add stdbool.
74969         * lib/strptime.h: Include <time.h> always. Add comments.
74970
74971 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74972
74973         * modules/strptime: New file.
74974         * lib/strptime.h: New file.
74975         * lib/strptime.c: New file.
74976         * m4/strptime.m4: New file.
74977
74978 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74979
74980         * MODULES.html.sh: New module mpsort.
74981         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74982
74983         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74984         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74986         All uses changed.
74987         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74988         All uses changed.
74989         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74990         to _Restrict_.
74991         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74992         the parameter matches the prototype.
74993
74994 2007-01-28  Jim Meyering  <jim@meyering.net>
74995
74996         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74997         sys/time.h here, reverting that part of the previous patch:
74998         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74999
75000 2007-01-28  Bruno Haible  <bruno@clisp.org>
75001
75002         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
75003         value of $(SYS_TIME_H).
75004         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
75005         remove it conditionally, too. [added by Jim Meyering]
75006         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
75007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75008         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
75009         GETTIMEOFDAY_REPLACEMENT to 1.
75010
75011 2007-01-28  Bruno Haible  <bruno@clisp.org>
75012
75013         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
75014         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
75015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
75016         Set UNISTD_H instead of UNISTD_H2.
75017         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
75018
75019 2007-01-28  Bruno Haible  <bruno@clisp.org>
75020
75021         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
75022         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
75023
75024 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75025
75026         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
75027         (func_create_testdir): Ensure C locale for `grep' and `tr'
75028         character ranges.
75029         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
75030         ACLOCAL_AMFLAGS parsing state machine.
75031
75032 2007-01-27  Bruno Haible  <bruno@clisp.org>
75033
75034         * modules/unistr/base: Update.
75035
75036 2007-01-27  Bruno Haible  <bruno@clisp.org>
75037
75038         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
75039         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
75040         * modules/unistr/u32-mbtouc-unsafe: Renamed from
75041         modules/unistr/u32-mbtouc.
75042         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
75043         * lib/unistr.h: Update.
75044         * lib/linebreak.c: Update.
75045         * modules/unistr/u32-mbtouc: Renamed from
75046         modules/unistr/u32-mbtouc-safe.
75047         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
75048         * lib/unistr.h: Update.
75049         * lib/unistr/u32-to-u8.c: Update.
75050         * lib/unistr/u32-to-u16.c: Update.
75051
75052 2007-01-27  Bruno Haible  <bruno@clisp.org>
75053
75054         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75055         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
75056         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
75057         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
75058         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
75059         * modules/unistr/u16-mbtouc-unsafe: Renamed from
75060         modules/unistr/u16-mbtouc.
75061         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
75062         * lib/unistr.h: Update.
75063         * lib/linebreak.c: Update.
75064         * modules/linebreak: Update.
75065         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
75066         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
75067         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75068         * modules/unistr/u16-mbtouc: Renamed from
75069         modules/unistr/u16-mbtouc-safe.
75070         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
75071         * lib/unistr.h: Update.
75072         * lib/unistr/u16-to-u8.c: Update.
75073         * modules/unistr/u16-to-u8: Update.
75074         * lib/unistr/u16-to-u32.c: Update.
75075         * modules/unistr/u16-to-u32: Update.
75076
75077 2007-01-27  Bruno Haible  <bruno@clisp.org>
75078
75079         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75080         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75081         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75082         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75083         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75084         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75085         modules/unistr/u8-mbtouc.
75086         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75087         * lib/unistr.h: Update.
75088         * lib/striconveh.c: Update.
75089         * modules/striconveh: Update.
75090         * lib/linebreak.c: Update.
75091         * modules/linebreak: Update.
75092         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75093         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75094         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75095         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75096         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75097         * lib/unistr.h: Update.
75098         * lib/striconveh.c: Update.
75099         * modules/striconveh: Update.
75100         * lib/unistr/u8-to-u16.c: Update.
75101         * modules/unistr/u8-to-u16: Update.
75102         * lib/unistr/u8-to-u32.c: Update.
75103         * modules/unistr/u8-to-u32: Update.
75104
75105 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75106
75107         Sync from Libtool.
75108         * lib/argz.c: Do not include strings.h nor memory.h, include
75109         string.h unconditionally.  Patch by Simon Josefsson.
75110
75111 2007-01-27  Bruno Haible  <bruno@clisp.org>
75112
75113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75114         from gl_HEADER_STRING_H_BODY.
75115         (gl_HEADER_STRING_H_BODY): Require it.
75116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75117         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75118         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75119         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75121         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75123         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75124         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75125         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75126         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75127         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75128         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75129         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75130         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75131
75132 2007-01-27  Bruno Haible  <bruno@clisp.org>
75133
75134         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75135         check_PROGRAMS into noinst_PROGRAMS.
75136         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75137         check_PROGRAMS in this case.
75138         (func_import): Set for_test to false.
75139         (func_create_testdir): Set for_test to true.
75140
75141 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75142             Bruno Haible  <bruno@clisp.org>
75143
75144         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75145         (Depends-on): Add string.
75146         (Includes): Use <string.h> instead of strcasestr.h.
75147         * modules/string (Makefile.am): Also substitute the value of
75148         REPLACE_STRCASESTR.
75149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75150         assume strcasestr is declared in <string.h> not <strings.h>. Also
75151         set REPLACE_STRCASESTR.
75152         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75153         REPLACE_STRCASESTR.
75154         * lib/strcasestr.h: Remove file.
75155         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75156         * lib/string_.h (strcasestr): New declaration.
75157
75158 2007-01-27  Bruno Haible  <bruno@clisp.org>
75159
75160         * lib/string_.h: Use 'extern'.
75161
75162 2007-01-27  Jim Meyering  <jim@meyering.net>
75163
75164         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75165         of set-but-not-used local, "q".
75166
75167         * lib/mempcpy.c: Include <config.h> before <string.h>.
75168         This fixes a compilation error on HP-UX, due to the system's
75169         "restrict"-using mempcpy prototype.
75170
75171 2007-01-26  Bruno Haible  <bruno@clisp.org>
75172
75173         Small optimization.
75174         * lib/javacomp.c: Include c-strstr.h.
75175          (is_envjavac_gcj): Use c_strstr instead of strstr.
75176         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75177
75178 2007-01-26  Bruno Haible  <bruno@clisp.org>
75179
75180         * MODULES.html.sh (Unicode string functions): Add the new modules.
75181
75182         * modules/uniconv/u32-strconv-to-locale: New file.
75183         * lib/uniconv/u32-strconv-to-locale.c: New file.
75184
75185         * modules/uniconv/u16-strconv-to-locale: New file.
75186         * lib/uniconv/u16-strconv-to-locale.c: New file.
75187
75188         * modules/uniconv/u8-strconv-to-locale: New file.
75189         * lib/uniconv/u8-strconv-to-locale.c: New file.
75190
75191         * modules/uniconv/u32-strconv-from-locale: New file.
75192         * lib/uniconv/u32-strconv-from-locale.c: New file.
75193
75194         * modules/uniconv/u16-strconv-from-locale: New file.
75195         * lib/uniconv/u16-strconv-from-locale.c: New file.
75196
75197         * modules/uniconv/u8-strconv-from-locale: New file.
75198         * lib/uniconv/u8-strconv-from-locale.c: New file.
75199
75200         * modules/uniconv/u32-strconv-to-enc: New file.
75201         * lib/uniconv/u32-strconv-to-enc.c: New file.
75202         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75203         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75204
75205         * modules/uniconv/u16-strconv-to-enc: New file.
75206         * lib/uniconv/u16-strconv-to-enc.c: New file.
75207         * lib/uniconv/u-strconv-to-enc.h: New file.
75208         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75209         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75210
75211         * modules/uniconv/u8-strconv-to-enc: New file.
75212         * lib/uniconv/u8-strconv-to-enc.c: New file.
75213         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75214         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75215
75216         * modules/uniconv/u32-strconv-from-enc: New file.
75217         * lib/uniconv/u32-strconv-from-enc.c: New file.
75218         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75219         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75220
75221         * modules/uniconv/u16-strconv-from-enc: New file.
75222         * lib/uniconv/u16-strconv-from-enc.c: New file.
75223         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75224         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75225
75226         * modules/uniconv/u8-strconv-from-enc: New file.
75227         * lib/uniconv/u8-strconv-from-enc.c: New file.
75228         * lib/uniconv/u-strconv-from-enc.h: New file.
75229         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75230         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75231
75232         * modules/uniconv/u32-conv-from-enc: New file.
75233         * lib/uniconv/u32-conv-from-enc.c: New file.
75234         * modules/uniconv/u32-conv-from-enc-tests: New file.
75235         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75236
75237         * modules/uniconv/u16-conv-from-enc: New file.
75238         * lib/uniconv/u16-conv-from-enc.c: New file.
75239         * lib/uniconv/u-conv-from-enc.h: New file.
75240         * modules/uniconv/u16-conv-from-enc-tests: New file.
75241         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75242
75243         * modules/uniconv/u8-conv-from-enc: New file.
75244         * lib/uniconv/u8-conv-from-enc.c: New file.
75245         * modules/uniconv/u8-conv-from-enc-tests: New file.
75246         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75247
75248         * modules/uniconv/base: New file.
75249         * lib/uniconv.h: New file.
75250
75251 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * doc/gnulib-tool.texi (Initial import): Update to match current
75254         behavior with strdup module.
75255         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75256         * lib/memmem.h: Remove; all uses removed.  This is now done
75257         by <string.h>.
75258         * lib/mempcpy.h: Likewise.
75259         * lib/memrchr.h: Likewise.
75260         * lib/stpcpy.h: Likewise.
75261         * lib/stpncpy.h: Likewise.
75262         * lib/strcase.h: Likewise.
75263         * lib/strchrnul.h: Likewise.
75264         * lib/strdup.h: Likewise.
75265         * lib/strndup.h: Likewise.
75266         * lib/strnlen.h: Likewise.
75267         * lib/strpbrk.h: Likewise.
75268         * lib/strsep.h: Likewise.
75269         * lib/strstr.h: Likewise.
75270         * lib/strtok_r.h: Likewise.
75271         * lib/string_.h: New file.
75272         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75273         Rely on <string.h> instead.
75274         * lib/canon-host.c: Likewise.
75275         * lib/chdir-long.c: Likewise.
75276         * lib/concatpath.c: Likewise.
75277         * lib/exclude.c: Likewise.
75278         * lib/fchdir.c: Likewise.
75279         * lib/getaddrinfo.c: Likewise.
75280         * lib/getcwd.c: Likewise.
75281         * lib/getsubopt.c: Likewise.
75282         * lib/glob.c: Likewise.
75283         * lib/hard-locale.c: Likewise.
75284         * lib/iconvme.c: Likewise.
75285         * lib/javacomp.c: Likewise.
75286         * lib/mempcpy.c: Likewise.
75287         * lib/memrchr.c: Likewise.
75288         * lib/regex_internal.h: Likewise.
75289         * lib/stpncpy.c: Likewise.
75290         * lib/strcasecmp.c: Likewise.
75291         * lib/strchrnul.c: Likewise.
75292         * lib/strdup.c: Likewise.
75293         * lib/striconv.c: Likewise.
75294         * lib/striconveh.c: Likewise.
75295         * lib/striconveha.c: Likewise.
75296         * lib/strncasecmp.c: Likewise.
75297         * lib/strndup.c: Likewise.
75298         * lib/strnlen.c: Likewise.
75299         * lib/strsep.c: Likewise.
75300         * lib/strstr.c: Likewise.
75301         * lib/strtok_r.c: Likewise.
75302         * lib/userspec.c: Likewise.
75303         * lib/w32spawn.h: Likewise.
75304         * lib/xstrndup.c: Likewise.
75305         * lib/mountlist.c (strstr): Remove decl.
75306         * m4/string_h.m4: New file.
75307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75308         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75309         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75310         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75311         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75312         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75313         Set REPLACE_STRCASECMP if necessary.
75314         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75315         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75316         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75317         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75318         HAVE_DECL_STRDUP if necessary.
75319         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75320         since gl_FUNC_STRNDUP does that now.
75321         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75322         Check for decl here...
75323         (gl_PREREQ_STRNLEN): ... not here.
75324         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75325         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75326         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75327         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75328         necessary.
75329         * modules/string: New file.
75330         * modules/memmem (Files): Remove special-purpose include file.
75331         (Depends-on): Add string.
75332         (Include): Include <string.h>, not the removed file.
75333         * modules/mempcpy: Likewise.
75334         * modules/memrchr: Likewise.
75335         * modules/stpcpy: Likewise.
75336         * modules/stpncpy: Likewise.
75337         * modules/strcase: Likewise.
75338         * modules/strchrnul: Likewise.
75339         * modules/strdup: Likewise.
75340         * modules/strndup: Likewise.
75341         * modules/strnlen: Likewise.
75342         * modules/strpbrk: Likewise.
75343         * modules/strsep: Likewise.
75344         * modules/strstr: Likewise.
75345         * modules/strtok_r: Likewise.
75346         * tests/test-dirname.c: Don't include "strdup.h", since
75347         <string.h> now suffices.
75348         * tests/test-memmem.c: Don't include "memmem.h", since
75349         <string.h> now suffices.
75350
75351 2007-01-25  Bruno Haible  <bruno@clisp.org>
75352
75353         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75354         *resultp is 0.
75355
75356         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75357         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75358         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75359         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75360
75361         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75362         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75363         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75364         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75365         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75366         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75367
75368 2007-01-24  Bruno Haible  <bruno@clisp.org>
75369
75370         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75372         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75373         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75374         gl_FUNC_FTS_CORE.
75375         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75376         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75377         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75378         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75379         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75380         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75381         gl_FUNC_FCHOWNAT.
75382         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75383         gl_FUNC_STRFTIME.
75384         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75385         Reported by Ralf Wildenhues.
75386
75387 2007-01-24  Bruno Haible  <bruno@clisp.org>
75388
75389         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75390         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75391         gl_GETADDRINFO.
75392         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75393         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75394         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75395
75396 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75399         Don't use 'exit'; just return from 'main'.
75400         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75401
75402         * lib/fnmatch_.h: Readjust white space and comments to match
75403         glibc, to avoid spurious diffs.
75404
75405 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75408         2004-12-01 change by Jakub Jelinek, since this code won't compile
75409         if !LIBC.  Problem reported by Bob Proulx.
75410
75411 2007-01-23  Bruno Haible  <bruno@clisp.org>
75412
75413         * lib/striconveh.c: Include c-strcaseeq.h.
75414         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75415         * modules/striconveh (Depends-on): Add c-strcaseeq.
75416
75417 2007-01-23  Bruno Haible  <bruno@clisp.org>
75418
75419         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75420
75421         * modules/c-strcaseeq: New file.
75422         * lib/c-strcaseeq.h: New file.
75423
75424         * modules/streq: New file.
75425         * lib/streq.h: New file.
75426
75427 2007-01-23  Bruno Haible  <bruno@clisp.org>
75428
75429         * modules/striconveha-tests: New file.
75430         * tests/test-striconveha.c: New file.
75431
75432         * lib/striconveha.h: Include <stdbool.h>.
75433         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75434         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75435         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75436         (mem_iconveha): New function.
75437         (str_iconveha_notranslit): Renamed from str_iconveha.
75438         (str_iconveha): New function.
75439         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75440         c-strcase.
75441
75442 2007-01-23  Bruno Haible  <bruno@clisp.org>
75443
75444         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75445         encodings without forgiving before trying any encoding with handler.
75446         (str_iconveha): Try all encodings without forgiving before trying any
75447         encoding with handler.
75448
75449 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         Import the following changes from libc.
75452
75453         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75454
75455         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75456
75457         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75458
75459         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75460         normal_bracket label.
75461
75462         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75463
75464         [BZ #361]
75465         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75466         to normal_bracket after fetching the next character.
75467
75468 2007-01-22  Bruno Haible  <bruno@clisp.org>
75469
75470         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75471         argument.
75472         * lib/striconveh.c (iconv_carefully_1): New function.
75473         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75474         argument.
75475         (str_cd_iconveh): Update.
75476         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75477         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75478         * tests/test-striconveh.c (MAGIC): New macro.
75479         (new_offsets): New function.
75480         (main): Test call with and without offsets.
75481
75482 2007-01-22  Bruno Haible  <bruno@clisp.org>
75483
75484         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75485         * modules/sys_select (Makefile.am): Likewise.
75486         * modules/sys_socket (Makefile.am): Likewise.
75487         * modules/sys_time (Makefile.am): Likewise.
75488
75489 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         * modules/gettimeofday (License): Change from GPL to LGPL, since
75492         gettimeofday is a library function.
75493
75494 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75495
75496         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75497
75498 2007-01-21  Bruno Haible  <bruno@clisp.org>
75499
75500         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75501
75502 2007-01-21  Bruno Haible  <bruno@clisp.org>
75503
75504         * modules/striconveha: New file.
75505         * lib/striconveha.h: New file.
75506         * lib/striconveha.c: New file.
75507         * MODULES.html.sh (Internationalization functions): Add striconveha.
75508         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75509         string.
75510         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75511
75512 2007-01-21  Bruno Haible  <bruno@clisp.org>
75513
75514         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75515         * lib/striconveh.c (str_iconveh): Likewise.
75516
75517 2007-01-21  Bruno Haible  <bruno@clisp.org>
75518
75519         * lib/striconveh.h (mem_iconveh): New declaration.
75520         * lib/striconveh.c (mem_iconveh): New function.
75521         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75522
75523 2007-01-21  Bruno Haible  <bruno@clisp.org>
75524
75525         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75526
75527         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75528         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75529         original result buffer.
75530         (str_cd_iconveh): Update.
75531         * tests/test-striconveh.c (main): Update.
75532
75533         * lib/striconv.h (mem_cd_iconv): Change specification.
75534         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75535         result buffer.
75536         (str_cd_iconv): Update.
75537         * tests/test-striconv.c (main): Update.
75538
75539 2007-01-21  Bruno Haible  <bruno@clisp.org>
75540
75541         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75542
75543 2007-01-20  Jim Meyering  <jim@meyering.net>
75544
75545         * lib/userspec.c (parse_with_separator): If a user or group string
75546         starts with "+", skip the corresponding name-to-ID look-up, since
75547         such a look-up must fail: user and group names may not include "+".
75548
75549 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75550
75551         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75552         since we now assume the sys_time module.
75553         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75554         check for sys/time.h; no longer needed.
75555         * modules/poll (Depends-on): Depend on sys_time.
75556
75557 2007-01-18  Bruno Haible  <bruno@clisp.org>
75558
75559         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75560         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75561
75562         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75563         gettimeofday.
75564
75565         * tests/test-gettimeofday.c: Include <time.h>.
75566         (dummy): Remove variable.
75567
75568         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75569         gl_HEADER_SYS_TIME_H.
75570         (gl_HEADER_SYS_TIME_H): New macro.
75571
75572         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75573         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75574         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75575         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75576         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75577         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75578         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75579         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75580         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75581         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75582         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75583
75584         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75585         last change; it caused a compilation error when cross-compiling to
75586         Cygwin.
75587
75588 2007-01-18  Jim Meyering  <jim@meyering.net>
75589
75590         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75591         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75592         than the race-prone "test -d sys || mkdir sys".
75593         (configure.ac): Use AC_PROG_MKDIR_P.
75594         * modules/sys_select: Likewise.
75595         * modules/sys_socket: Likewise.
75596         * modules/sys_time: Likewise.
75597
75598 2007-01-18  Eric Blake  <ebb9@byu.net>
75599
75600         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75601         replace gettimeofday.
75602         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75603         name, to avoid infinite recursion.
75604
75605 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75608         module sys_time.
75609         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75610         assume timespec.h defines struct timeval.
75611         * lib/settime.c: Likewise.
75612         * lib/utimens.c: Likewise.
75613         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75614         since we now assume the gettimeofday module.
75615         * lib/tempname.c (__gen_tempname): Likewise.
75616         * lib/gettimeofday.h: Remove.
75617         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75618         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75619         Include <time.h>, for 'time()'.
75620         (localtime_buffer_addr): Also use this workaround if
75621         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75622         to simplify the uses.  All uses changed.
75623         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75624         that #undef is inside {}, and 'const' follows type name consistently.
75625         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75626         (gettimeofday): Do not use the maximum possible value for
75627         tv->tv_usec, since that might break usages other than ls.c.
75628         Instead, we'll leave ls.c alone.  This undoes today's patch
75629         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75630         we've never observed the problem but might as well keep the
75631         canary.
75632         * lib/nanosleep.c: Include timespec.h first, for interface check.
75633         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75634         now assume the sys_time module.
75635         * lib/tempname.c: Likewise.
75636         * lib/timespec.h: Likewise.
75637         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75638         needed.
75639         * lib/strftime.c: Likewise.
75640         * lib/timespec.h: Likewise.
75641         * lib/posixtm.c: Include posixtm.h first, for interface check.
75642         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75643         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75644         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75645         * lib/sys_time_.h: New file.
75646         * lib/timespec.h (struct timespec): Use long int, not long.
75647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75648         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75649         Remove obsolescent call to AC_HEADER_TIME.
75650         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75652         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75653         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75654         Likewise.
75655         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75656         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75657         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75658         into the sys_time module.  Check for gettimeofday just once.
75659         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75660         for gettimeofday signature to just check the signature.  Merely
75661         compile it, since linking doesn't test signature.  Improve test for
75662         whether gettimeofday.o is actually needed.
75663         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75664         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75665         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75666         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75667         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75668         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75669         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75670         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75671         than worrying about sys/time.h.
75672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75673         Don't bother worrying about TIME_WITH_SYS_TIME.
75674         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75675         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75676         * m4/sys_time_h.m4: New file.
75677         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75678         Don't include sys/time.h.  Return from main rather than exiting.
75679         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75680         all uses changed.
75681         * modules/gethrxtime (Depends-on): Add sys_time.
75682         * modules/gettime (Depends-on): Likewise.
75683         * modules/gettimeofday (Depends-on): Likewise.
75684         * modules/nanosleep (Depends-on): Likewise.
75685         * modules/settime (Depends-on): Likewise.
75686         * modules/tempname (Depends-on): Likewise.
75687         * modules/utimens (Depends-on): Likewise.
75688         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75689         (Include): Change back to <sys/time.h>.
75690         (Maintainer): Add self.
75691         * modules/sys_time: New file.
75692         * modules/tempname (Depends-on): Add gettimeofday.
75693         * tests/test-gettimeofday.c: Include <sys/time.h>
75694         rather than gettimeofday.h.
75695
75696 2007-01-17  Bruno Haible  <bruno@clisp.org>
75697
75698         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75699         the license default to GPL.
75700         (func_create_testdir): Don't complain if a module is LGPL and its
75701         tests module depends on GPLed modules.
75702
75703 2007-01-17  Bruno Haible  <bruno@clisp.org>
75704
75705         * lib/gettimeofday.c (gettimeofday): Add code for the case
75706         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75707         maximum possible value for tv->tv_usec, rather than the minimum one.
75708
75709 2005-10-08  Martin Lambers  <marlam@marlam.de>
75710 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75711 2007-01-16  Bruno Haible  <bruno@clisp.org>
75712
75713         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75714         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75715         gl_FUNC_GETTIMEOFDAY.
75716         (Include): Add gettimeofday.h.
75717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75718         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75719         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75720         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75721         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75722         * lib/gettimeofday.h: New file.
75723         * lib/gettimeofday.c: Include <sys/timeb.h>.
75724         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75725         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75726         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75727         fall back on time().
75728
75729         * tests/test-gettimeofday.c: New file.
75730         * modules/gettimeofday-tests: New file.
75731
75732 2007-01-16  Eric Blake  <ebb9@byu.net>
75733
75734         * modules/fnmatch (Depends-on): Depend on wchar.
75735         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75736         * m4/fnmatch.m4: Likewise.
75737         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75738         * m4/mbchar.m4: Likewise.
75739         * modules/mbswidth (Depends-on): Depend on wchar.
75740         * lib/mbswidth.c: Assume <wchar.h>.
75741         * m4/mbswidth.m4: Likewise.
75742         * modules/quotearg (Depends-on): Depend on wchar.
75743         * lib/quotearg.c: Assume <wchar.h>.
75744         * m4/quotearg.m4: Likewise.
75745         * modules/regex (Depends-on): Depend on wchar.
75746         * lib/regex_internal.h: Assume <wchar.h>.
75747         * m4/regex.m4: Likewise.
75748         * modules/stdint (Depends-on): Depend on wchar.
75749         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75750         * m4/stdint.m4: Likewise.
75751         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75752         * modules/strftime (Depends-on): Depend on wchar.
75753         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75754         * modules/strtol (Depends-on): Depend on wchar.
75755         * lib/strtol.c: Assume <wchar.h>.
75756         * modules/wcwidth (Depends-on): Depend on wchar.
75757         * lib/wcwidth.h: Assume <wchar.h>.
75758         * m4/wcwidth.m4: Likewise.
75759
75760 2007-01-16  Bruno Haible  <bruno@clisp.org>
75761
75762         * modules/csharpexec-script: New, created from...
75763         * modules/csharpexec: ... this.
75764
75765 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75766
75767         * modules/javaexec-script: New, created from...
75768         * modules/javaexec: ... this.
75769
75770 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75771
75772         * modules/poll (Dependencies): Add sys_select.
75773
75774 2007-01-15  Jim Meyering  <jim@meyering.net>
75775
75776         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75777         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75778         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75779         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75780
75781 2007-01-15  Bruno Haible  <bruno@clisp.org>
75782
75783         * modules/striconveh: New file.
75784         * lib/striconveh.h: New file.
75785         * lib/striconveh.c: New file.
75786         * MODULES.html.sh (Internationalization functions): Add striconveh.
75787
75788         * modules/striconveh-tests: New file.
75789         * tests/test-striconveh.c: New file.
75790
75791 2007-01-15  Bruno Haible  <bruno@clisp.org>
75792
75793         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75794         not from GNU libiconv or GNU libc.
75795
75796 2007-01-15  Bruno Haible  <bruno@clisp.org>
75797
75798         * doc/gnulib-intro.texi (Copyright): Explain the different license
75799         terms for module descriptions, autoconf macros, tests, documentation.
75800
75801 2007-01-14  Bruno Haible  <bruno@clisp.org>
75802
75803         * modules/striconv-tests: New file.
75804         * tests/test-striconv.c: New file.
75805
75806 2007-01-14  Bruno Haible  <bruno@clisp.org>
75807
75808         * modules/iconv-tests: New file.
75809         * tests/test-iconv.c: New file.
75810
75811 2007-01-14  Bruno Haible  <bruno@clisp.org>
75812
75813         * gnulib-tool (func_get_license): For test modules, use the license of
75814         the main module.
75815
75816 2007-01-14  Bruno Haible  <bruno@clisp.org>
75817
75818         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75819         if iconv is found to exist.
75820
75821 2007-01-14  Bruno Haible  <bruno@clisp.org>
75822
75823         * modules/c-ctype-tests: New file.
75824         * tests/test-c-ctype.c: New file.
75825
75826 2007-01-14  Bruno Haible  <bruno@clisp.org>
75827
75828         * modules/binary-io-tests: New file.
75829         * tests/test-binary-io.sh: New file.
75830         * tests/test-binary-io.c: New file.
75831
75832 2007-01-14  Bruno Haible  <bruno@clisp.org>
75833
75834         * modules/array-oset-tests: New file.
75835         * tests/test-array_oset.c: New file.
75836
75837 2007-01-14  Bruno Haible  <bruno@clisp.org>
75838
75839         * modules/array-list-tests: New file.
75840         * tests/test-array_list.c: New file.
75841
75842 2007-01-14  Bruno Haible  <bruno@clisp.org>
75843
75844         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75845         and make.
75846         Reported by Simon Josefsson in
75847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75848
75849 2007-01-14  Bruno Haible  <bruno@clisp.org>
75850
75851         * modules/allocsa-tests: New file.
75852         * tests/test-allocsa.c: New file.
75853
75854 2007-01-14  Bruno Haible  <bruno@clisp.org>
75855
75856         * modules/fchdir (Depends-on): Add absolute-header.
75857         * modules/unistd (Depends-on): Likewise.
75858
75859 2006-12-30  Bruno Haible  <bruno@clisp.org>
75860
75861         * modules/fchdir: New file.
75862         * modules/unistd (Files): Add lib/unistd_.h.
75863         (Makefile.am): Generate unistd.h from unistd_.h.
75864         * lib/fchdir.c: New file.
75865         * lib/dirent_.h: New file.
75866         * lib/unistd_.h: New file.
75867         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75868         * m4/fchdir.m4: New file.
75869         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75870         (gl_HEADER_UNISTD): Invoke it.
75871         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75872         function.
75873         * lib/backupfile.c (opendir, closedir): Undefine.
75874         * lib/chown.c (open, close): Undefine.
75875         * lib/clean-temp.c (open, close): Undefine.
75876         * lib/copy-file.c (open, close): Undefine.
75877         * lib/execute.c (open, close): Undefine.
75878         * lib/fsusage.c (open, close): Undefine.
75879         * lib/gc-gnulib.c (open, close): Undefine.
75880         * lib/getcwd.c (opendir, closedir): Undefine.
75881         * lib/glob.c (opendir, closedir): Undefine.
75882         * lib/javacomp.c (open, close): Undefine.
75883         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75884         * lib/openat-proc.c (open, close): Undefine.
75885         * lib/pagealign_alloc.c (open, close): Undefine.
75886         * lib/pipe.c (open, close): Undefine.
75887         * lib/progreloc.c (open, close): Undefine.
75888         * lib/savedir.c (opendir, closedir): Undefine.
75889         * lib/utime.c (open, close): Undefine.
75890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75891
75892 2007-01-10  Bruno Haible  <bruno@clisp.org>
75893
75894         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75895
75896 2007-01-12  Eric Blake  <ebb9@byu.net>
75897
75898         Provide a robust <wchar.h>.  Further simplifications are now
75899         possible in other modules, but not included here.
75900         * modules/wchar: New module.
75901         * m4/wchar.m4: New file.
75902         * lib/wchar_.h: Likewise.
75903         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75904         of the new module.
75905         * MODULES.html.sh (Extended multibyte and wide character utilities):
75906         New section.
75907
75908 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75909
75910         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75911         to a reasonable default for memory allocation.
75912         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75913         file system that reports garbage st_size values for symlinks.
75914         Problem reported by Liyang Hu.
75915
75916 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75917
75918         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75919         Emacs .#* auto-save files).
75920
75921 2007-01-11  Bruno Haible  <bruno@clisp.org>
75922
75923         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75924         directory.
75925
75926 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         Use @...@ consistently in lib/wctype_.h.
75929         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75930         on it being set to 1 or 0.
75931         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75932         go back to AC_SUBSTing it.
75933         * modules/wctype (Makefile.am): Undo previous change.
75934
75935 2007-01-10  Eric Blake  <ebb9@byu.net>
75936
75937         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75938         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75939         * modules/wctype (Makefile.am): Likewise.
75940         Reported by Chris McGuire.
75941
75942 2007-01-10  Jim Meyering  <jim@meyering.net>
75943
75944         fts.c: a small readability/maintainability improvement
75945         * lib/fts.c (fts_read): Make this code slightly more readable and
75946         maintainable by hoisting the "sp->fts_cur = p" assignments to
75947         immediately follow the statements that set P.  Derived from
75948         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75949
75950 2007-01-10  Eric Blake  <ebb9@byu.net>
75951
75952         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75953         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75955         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75956         Reported by Chris McGuire.
75957
75958 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75959
75960         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75961         in sed script.
75962
75963 2007-01-09  Bruno Haible  <bruno@clisp.org>
75964
75965         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75966         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75967         variables.
75968         (func_module): Use them.
75969
75970 2007-01-09  Bruno Haible  <bruno@clisp.org>
75971
75972         * modules/unistr/base: New file.
75973         * lib/unistr.h: New file.
75974
75975         * modules/unistr/u8-to-u16: New file.
75976         * lib/unistr/u8-to-u16.c: New file.
75977
75978         * modules/unistr/u8-to-u32: New file.
75979         * lib/unistr/u8-to-u32.c: New file.
75980
75981         * modules/unistr/u16-to-u8: New file.
75982         * lib/unistr/u16-to-u8.c: New file.
75983
75984         * modules/unistr/u16-to-u32: New file.
75985         * lib/unistr/u16-to-u32.c: New file.
75986
75987         * modules/unistr/u32-to-u8: New file.
75988         * lib/unistr/u32-to-u8.c: New file.
75989
75990         * modules/unistr/u32-to-u16: New file.
75991         * lib/unistr/u32-to-u16.c: New file.
75992
75993         * modules/unistr/u8-check: New file.
75994         * modules/unistr/u16-check: New file.
75995         * modules/unistr/u32-check: New file.
75996         * lib/unistr/u8-check.c: New file.
75997         * lib/unistr/u16-check.c: New file.
75998         * lib/unistr/u32-check.c: New file.
75999
76000         * modules/unistr/u8-chr: New file.
76001         * modules/unistr/u16-chr: New file.
76002         * modules/unistr/u32-chr: New file.
76003         * lib/unistr/u8-chr.c: New file.
76004         * lib/unistr/u16-chr.c: New file.
76005         * lib/unistr/u32-chr.c: New file.
76006
76007         * modules/unistr/u8-cmp: New file.
76008         * modules/unistr/u16-cmp: New file.
76009         * modules/unistr/u32-cmp: New file.
76010         * lib/unistr/u8-cmp.c: New file.
76011         * lib/unistr/u16-cmp.c: New file.
76012         * lib/unistr/u32-cmp.c: New file.
76013
76014         * modules/unistr/u8-cpy: New file.
76015         * modules/unistr/u16-cpy: New file.
76016         * modules/unistr/u32-cpy: New file.
76017         * lib/unistr/u8-cpy.c: New file.
76018         * lib/unistr/u16-cpy.c: New file.
76019         * lib/unistr/u32-cpy.c: New file.
76020         * lib/unistr/u-cpy.h: New file.
76021
76022         * modules/unistr/u8-cpy-alloc: New file.
76023         * modules/unistr/u16-cpy-alloc: New file.
76024         * modules/unistr/u32-cpy-alloc: New file.
76025         * lib/unistr/u8-cpy-alloc.c: New file.
76026         * lib/unistr/u16-cpy-alloc.c: New file.
76027         * lib/unistr/u32-cpy-alloc.c: New file.
76028         * lib/unistr/u-cpy-alloc.h: New file.
76029
76030         * modules/unistr/u8-endswith: New file.
76031         * modules/unistr/u16-endswith: New file.
76032         * modules/unistr/u32-endswith: New file.
76033         * lib/unistr/u8-endswith.c: New file.
76034         * lib/unistr/u16-endswith.c: New file.
76035         * lib/unistr/u32-endswith.c: New file.
76036         * lib/unistr/u-endswith.h: New file.
76037
76038         * modules/unistr/u8-mblen: New file.
76039         * modules/unistr/u16-mblen: New file.
76040         * modules/unistr/u32-mblen: New file.
76041         * lib/unistr/u8-mblen.c: New file.
76042         * lib/unistr/u16-mblen.c: New file.
76043         * lib/unistr/u32-mblen.c: New file.
76044
76045         * modules/unistr/u8-mbtouc: New file.
76046         * modules/unistr/u16-mbtouc: New file.
76047         * modules/unistr/u32-mbtouc: New file.
76048         * lib/unistr/u8-mbtouc.c: New file.
76049         * lib/unistr/u16-mbtouc.c: New file.
76050         * lib/unistr/u32-mbtouc.c: New file.
76051
76052         * modules/unistr/u8-mbtouc-safe: New file.
76053         * modules/unistr/u16-mbtouc-safe: New file.
76054         * modules/unistr/u32-mbtouc-safe: New file.
76055         * lib/unistr/u8-mbtouc-safe.c: New file.
76056         * lib/unistr/u16-mbtouc-safe.c: New file.
76057         * lib/unistr/u32-mbtouc-safe.c: New file.
76058
76059         * modules/unistr/u8-move: New file.
76060         * modules/unistr/u16-move: New file.
76061         * modules/unistr/u32-move: New file.
76062         * lib/unistr/u8-move.c: New file.
76063         * lib/unistr/u16-move.c: New file.
76064         * lib/unistr/u32-move.c: New file.
76065         * lib/unistr/u-move.h: New file.
76066
76067         * modules/unistr/u8-next: New file.
76068         * modules/unistr/u16-next: New file.
76069         * modules/unistr/u32-next: New file.
76070         * lib/unistr/u8-next.c: New file.
76071         * lib/unistr/u16-next.c: New file.
76072         * lib/unistr/u32-next.c: New file.
76073
76074         * modules/unistr/u8-prev: New file.
76075         * modules/unistr/u16-prev: New file.
76076         * modules/unistr/u32-prev: New file.
76077         * lib/unistr/u8-prev.c: New file.
76078         * lib/unistr/u16-prev.c: New file.
76079         * lib/unistr/u32-prev.c: New file.
76080
76081         * modules/unistr/u8-set: New file.
76082         * modules/unistr/u16-set: New file.
76083         * modules/unistr/u32-set: New file.
76084         * lib/unistr/u8-set.c: New file.
76085         * lib/unistr/u16-set.c: New file.
76086         * lib/unistr/u32-set.c: New file.
76087         * lib/unistr/u-set.h: New file.
76088
76089         * modules/unistr/u8-startswith: New file.
76090         * modules/unistr/u16-startswith: New file.
76091         * modules/unistr/u32-startswith: New file.
76092         * lib/unistr/u8-startswith.c: New file.
76093         * lib/unistr/u16-startswith.c: New file.
76094         * lib/unistr/u32-startswith.c: New file.
76095         * lib/unistr/u-startswith.h: New file.
76096
76097         * modules/unistr/u8-stpcpy: New file.
76098         * modules/unistr/u16-stpcpy: New file.
76099         * modules/unistr/u32-stpcpy: New file.
76100         * lib/unistr/u8-stpcpy.c: New file.
76101         * lib/unistr/u16-stpcpy.c: New file.
76102         * lib/unistr/u32-stpcpy.c: New file.
76103         * lib/unistr/u-stpcpy.h: New file.
76104
76105         * modules/unistr/u8-stpncpy: New file.
76106         * modules/unistr/u16-stpncpy: New file.
76107         * modules/unistr/u32-stpncpy: New file.
76108         * lib/unistr/u8-stpncpy.c: New file.
76109         * lib/unistr/u16-stpncpy.c: New file.
76110         * lib/unistr/u32-stpncpy.c: New file.
76111         * lib/unistr/u-stpncpy.h: New file.
76112
76113         * modules/unistr/u8-strcat: New file.
76114         * modules/unistr/u16-strcat: New file.
76115         * modules/unistr/u32-strcat: New file.
76116         * lib/unistr/u8-strcat.c: New file.
76117         * lib/unistr/u16-strcat.c: New file.
76118         * lib/unistr/u32-strcat.c: New file.
76119         * lib/unistr/u-strcat.h: New file.
76120
76121         * modules/unistr/u8-strchr: New file.
76122         * modules/unistr/u16-strchr: New file.
76123         * modules/unistr/u32-strchr: New file.
76124         * lib/unistr/u8-strchr.c: New file.
76125         * lib/unistr/u16-strchr.c: New file.
76126         * lib/unistr/u32-strchr.c: New file.
76127
76128         * modules/unistr/u8-strcmp: New file.
76129         * modules/unistr/u16-strcmp: New file.
76130         * modules/unistr/u32-strcmp: New file.
76131         * lib/unistr/u8-strcmp.c: New file.
76132         * lib/unistr/u16-strcmp.c: New file.
76133         * lib/unistr/u32-strcmp.c: New file.
76134
76135         * modules/unistr/u8-strcpy: New file.
76136         * modules/unistr/u16-strcpy: New file.
76137         * modules/unistr/u32-strcpy: New file.
76138         * lib/unistr/u8-strcpy.c: New file.
76139         * lib/unistr/u16-strcpy.c: New file.
76140         * lib/unistr/u32-strcpy.c: New file.
76141         * lib/unistr/u-strcpy.h: New file.
76142
76143         * modules/unistr/u8-strcspn: New file.
76144         * modules/unistr/u16-strcspn: New file.
76145         * modules/unistr/u32-strcspn: New file.
76146         * lib/unistr/u8-strcspn.c: New file.
76147         * lib/unistr/u16-strcspn.c: New file.
76148         * lib/unistr/u32-strcspn.c: New file.
76149         * lib/unistr/u-strcspn.h: New file.
76150
76151         * modules/unistr/u8-strdup: New file.
76152         * modules/unistr/u16-strdup: New file.
76153         * modules/unistr/u32-strdup: New file.
76154         * lib/unistr/u8-strdup.c: New file.
76155         * lib/unistr/u16-strdup.c: New file.
76156         * lib/unistr/u32-strdup.c: New file.
76157         * lib/unistr/u-strdup.h: New file.
76158
76159         * modules/unistr/u8-strlen: New file.
76160         * modules/unistr/u16-strlen: New file.
76161         * modules/unistr/u32-strlen: New file.
76162         * lib/unistr/u8-strlen.c: New file.
76163         * lib/unistr/u16-strlen.c: New file.
76164         * lib/unistr/u32-strlen.c: New file.
76165         * lib/unistr/u-strlen.h: New file.
76166
76167         * modules/unistr/u8-strmblen: New file.
76168         * modules/unistr/u16-strmblen: New file.
76169         * modules/unistr/u32-strmblen: New file.
76170         * lib/unistr/u8-strmblen.c: New file.
76171         * lib/unistr/u16-strmblen.c: New file.
76172         * lib/unistr/u32-strmblen.c: New file.
76173
76174         * modules/unistr/u8-strmbtouc: New file.
76175         * modules/unistr/u16-strmbtouc: New file.
76176         * modules/unistr/u32-strmbtouc: New file.
76177         * lib/unistr/u8-strmbtouc.c: New file.
76178         * lib/unistr/u16-strmbtouc.c: New file.
76179         * lib/unistr/u32-strmbtouc.c: New file.
76180
76181         * modules/unistr/u8-strncat: New file.
76182         * modules/unistr/u16-strncat: New file.
76183         * modules/unistr/u32-strncat: New file.
76184         * lib/unistr/u8-strncat.c: New file.
76185         * lib/unistr/u16-strncat.c: New file.
76186         * lib/unistr/u32-strncat.c: New file.
76187         * lib/unistr/u-strncat.h: New file.
76188
76189         * modules/unistr/u8-strncmp: New file.
76190         * modules/unistr/u16-strncmp: New file.
76191         * modules/unistr/u32-strncmp: New file.
76192         * lib/unistr/u8-strncmp.c: New file.
76193         * lib/unistr/u16-strncmp.c: New file.
76194         * lib/unistr/u32-strncmp.c: New file.
76195
76196         * modules/unistr/u8-strncpy: New file.
76197         * modules/unistr/u16-strncpy: New file.
76198         * modules/unistr/u32-strncpy: New file.
76199         * lib/unistr/u8-strncpy.c: New file.
76200         * lib/unistr/u16-strncpy.c: New file.
76201         * lib/unistr/u32-strncpy.c: New file.
76202         * lib/unistr/u-strncpy.h: New file.
76203
76204         * modules/unistr/u8-strnlen: New file.
76205         * modules/unistr/u16-strnlen: New file.
76206         * modules/unistr/u32-strnlen: New file.
76207         * lib/unistr/u8-strnlen.c: New file.
76208         * lib/unistr/u16-strnlen.c: New file.
76209         * lib/unistr/u32-strnlen.c: New file.
76210         * lib/unistr/u-strnlen.h: New file.
76211
76212         * modules/unistr/u8-strpbrk: New file.
76213         * modules/unistr/u16-strpbrk: New file.
76214         * modules/unistr/u32-strpbrk: New file.
76215         * lib/unistr/u8-strpbrk.c: New file.
76216         * lib/unistr/u16-strpbrk.c: New file.
76217         * lib/unistr/u32-strpbrk.c: New file.
76218         * lib/unistr/u-strpbrk.h: New file.
76219
76220         * modules/unistr/u8-strrchr: New file.
76221         * modules/unistr/u16-strrchr: New file.
76222         * modules/unistr/u32-strrchr: New file.
76223         * lib/unistr/u8-strrchr.c: New file.
76224         * lib/unistr/u16-strrchr.c: New file.
76225         * lib/unistr/u32-strrchr.c: New file.
76226
76227         * modules/unistr/u8-strspn: New file.
76228         * modules/unistr/u16-strspn: New file.
76229         * modules/unistr/u32-strspn: New file.
76230         * lib/unistr/u8-strspn.c: New file.
76231         * lib/unistr/u16-strspn.c: New file.
76232         * lib/unistr/u32-strspn.c: New file.
76233         * lib/unistr/u-strspn.h: New file.
76234
76235         * modules/unistr/u8-strstr: New file.
76236         * modules/unistr/u16-strstr: New file.
76237         * modules/unistr/u32-strstr: New file.
76238         * lib/unistr/u8-strstr.c: New file.
76239         * lib/unistr/u16-strstr.c: New file.
76240         * lib/unistr/u32-strstr.c: New file.
76241         * lib/unistr/u-strstr.h: New file.
76242
76243         * modules/unistr/u8-strtok: New file.
76244         * modules/unistr/u16-strtok: New file.
76245         * modules/unistr/u32-strtok: New file.
76246         * lib/unistr/u8-strtok.c: New file.
76247         * lib/unistr/u16-strtok.c: New file.
76248         * lib/unistr/u32-strtok.c: New file.
76249         * lib/unistr/u-strtok.h: New file.
76250
76251         * modules/unistr/u8-uctomb: New file.
76252         * modules/unistr/u16-uctomb: New file.
76253         * modules/unistr/u32-uctomb: New file.
76254         * lib/unistr/u8-uctomb.c: New file.
76255         * lib/unistr/u16-uctomb.c: New file.
76256         * lib/unistr/u32-uctomb.c: New file.
76257
76258         * MODULES.html.sh (Unicode string functions): Add the new modules.
76259
76260 2007-01-08  Bruno Haible  <bruno@clisp.org>
76261
76262         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76263         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76264         subdirectories.
76265
76266 2007-01-08  Karl Berry  <karl@gnu.org>
76267
76268         * doc/error.texi: mention that main() fns must set program_name
76269         when progname is used.
76270
76271 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76272
76273         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76274         WCTYPE_H is empty, for the benefit of builds from non-distclean
76275         directories.  Problem reported by Eric Blake in
76276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76277
76278 2007-01-08  Bruno Haible  <bruno@clisp.org>
76279
76280         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76281         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76282         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76283         PROVIDE_CANONICALIZE_FILENAME_MODE.
76284         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76285
76286 2007-01-08  Bruno Haible  <bruno@clisp.org>
76287
76288         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76289         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76290         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76291         * lib/fts.c: Likewise.
76292         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76293
76294 2006-12-25  Bruno Haible  <bruno@clisp.org>
76295
76296         * modules/utf8-ucs4-safe: New file.
76297         * lib/utf8-ucs4-safe.h: New file.
76298         * lib/unistr/utf8-ucs4-safe.c: New file.
76299
76300         * modules/utf16-ucs4-safe: New file.
76301         * lib/utf16-ucs4-safe.h: New file.
76302         * lib/unistr/utf16-ucs4-safe.c: New file.
76303
76304         * MODULES.html.sh (Unicode string functions): Add the new modules.
76305
76306 2007-01-08  Bruno Haible  <bruno@clisp.org>
76307
76308         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76309         (Depends-on): Add unitypes.
76310         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76311         (u8_mbtouc_aux): Move out to separate file.
76312         (u8_mbtouc): Use ucs4_t, uint8_t types.
76313         * lib/unistr/utf8-ucs4.c: New file.
76314
76315         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76316         (Depends-on): Add unitypes.
76317         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76318         (u16_mbtouc_aux): Move out to separate file.
76319         (u16_mbtouc): Use ucs4_t, uint16_t types.
76320         * lib/unistr/utf16-ucs4.c: New file.
76321
76322         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76323         (Depends-on): Add unitypes.
76324         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76325         (u8_uctomb_aux): Move out to separate file.
76326         (u8_uctomb): Use ucs4_t, uint8_t types.
76327         * lib/unistr/ucs4-utf8.c: New file.
76328
76329         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76330         (Depends-on): Add unitypes.
76331         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76332         (u16_uctomb_aux): Move out to separate file.
76333         (u16_uctomb): Use ucs4_t, uint16_t types.
76334         * lib/unistr/ucs4-utf16.c: New file.
76335
76336 2006-12-25  Bruno Haible  <bruno@clisp.org>
76337
76338         * modules/unitypes: New file.
76339         * lib/unitypes.h: New file.
76340         * MODULES.html.sh (func_all_modules): New section "Unicode string
76341         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76342         this section. Add unitypes.
76343
76344 2007-01-08  Bruno Haible  <bruno@clisp.org>
76345
76346         Avoid variable names that conflict with those from libtool.
76347         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76348         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76349         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76350         library_names_spec to acl_library_names_spec, hardcode_* to
76351         acl_hardcode_*.
76352         Reported by Ralf Wildenhues.
76353
76354 2007-01-08  Bruno Haible  <bruno@clisp.org>
76355
76356         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76357         definition.
76358         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76359         definition.
76360         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76361         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76362         definition.
76363         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76364         definition.
76365         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76366         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76367         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76368         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76369         definition.
76370         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76371         definition.
76372         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76373         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76374         GC_USE_<algorithm>.
76375         * lib/gc-libgcrypt.c: Likewise.
76376         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76377         * modules/gc-arctwo (configure.ac): Likewise.
76378         * modules/gc-des (configure.ac): Likewise.
76379         * modules/gc-hmac-md5 (configure.ac): Likewise.
76380         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76381         * modules/gc-md2 (configure.ac): Likewise.
76382         * modules/gc-md4 (configure.ac): Likewise.
76383         * modules/gc-md5 (configure.ac): Likewise.
76384         * modules/gc-random (configure.ac): Likewise.
76385         * modules/gc-rijndael (configure.ac): Likewise.
76386         * modules/gc-sha1 (configure.ac): Likewise.
76387
76388 2007-01-08  Bruno Haible  <bruno@clisp.org>
76389
76390         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76391         macro definition.
76392         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76393         definition.
76394         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76395         definition.
76396         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76397         * modules/fcntl-safer (configure.ac): Likewise.
76398         * modules/fopen-safer (configure.ac): Likewise.
76399         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76400         GNULIB_FWRITEERROR macro definition.
76401
76402 2007-01-08  Bruno Haible  <bruno@clisp.org>
76403
76404         * m4/gnulib-common.m4: New file.
76405         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76406         (func_get_filelist): Add m4/gnulib-common.m4.
76407
76408 2007-01-08  Bruno Haible  <bruno@clisp.org>
76409
76410         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76411         command.
76412
76413 2007-01-08  Jim Meyering  <jim@meyering.net>
76414
76415         Use a more robust test for a "can't happen" condition.
76416         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76417         narrowed the st_size value.  Presuming the "can't happen" condition
76418         is true, that narrowing could conceivably convert an invalid st_size
76419         value into a valid one.  Instead, use a change based on Matthew
76420         Woehlke's original patch.
76421
76422         Slight readability improvement: use an assert-like macro
76423         in place of literal "abort ()" uses.
76424         * lib/fts.c (fts_assert): Define.
76425         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76426         Use this macro instead of a bare 'abort'.
76427
76428 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76429
76430         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76431         simply work around them.
76432         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76433         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76434         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76435         declaring.
76436         Don't bother to define as macros, since the standard doesn't require it.
76437         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76438         longer worry about IRIX 5.3.
76439         (HAVE_WCTYPE_CTMP_BUG): Remove.
76440
76441 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76444         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76445         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76446         Problems reported by Georg Schwarz for IRIX 5.3.
76447
76448         * gnulib-tool (autoconf_minversion): Take the maximum version number
76449         found, not the minimum.  Problem reported by James Youngman.
76450
76451 2007-01-03  Karl Berry  <karl@gnu.org>
76452
76453         * doc/error.texi: new file, explaining interaction with progname.
76454         * doc/gnulib.texi: include it.  Update copyright.
76455
76456 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76457
76458         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76459         AC_CANONICAL_HOST, to improve autobuild outputs.
76460
76461 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76462             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76463
76464         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76465         sockets, server sockets, and other file descriptors.  Count errors
76466         to compute the return value.  Reorder the code a bit to be easier
76467         to follow.  Don't set event bits that were not requested (except
76468         POLLERR and POLLHUP).
76469
76470 2007-01-01  Bruno Haible  <bruno@clisp.org>
76471
76472         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76473
76474 2007-01-03  Jim Meyering  <jim@meyering.net>
76475
76476         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76477
76478 2007-01-02  Bruno Haible  <bruno@clisp.org>
76479
76480         * modules/settime (Include): Require timespec.h.
76481         * modules/nanosleep (Include): Likewise.
76482
76483 2007-01-01  Bruno Haible  <bruno@clisp.org>
76484
76485         * gnulib-tool (func_emit_copyright_notice): Bump year.
76486         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76487
76488 2007-01-01  Bruno Haible  <bruno@clisp.org>
76489
76490         Improve support for OpenBSD.
76491         * build-aux/config.rpath (libname_spec): Export.
76492         (library_names_spec): New variable. Export.
76493         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76494         library_names_spec from the config.rpath output. Locate shared library
76495         through the name pattern in library_names_spec.
76496
76497 2007-01-01  Eric Blake  <ebb9@byu.net>
76498
76499         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76500
76501 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76504         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76505         assume the C locale, and avoid an "eval" that could cause trouble.
76506         Problem with SORT reported by Bob Proulx.
76507
76508         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76509         Define.  Trivial patch from Henning Nielsen Lund, originally
76510         sent to bug-grep@gnu.org today.
76511
76512 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76513
76514         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76515         struct stat.  Problem reported by Henning Nielsen Lund.
76516         * lib/acl.c: Include acl.h first, to check interface.  Don't
76517         bother to include sys/types.h and sys/stat.h again.
76518
76519 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         Import the following change from libc; problem reported by
76522         Sven Verdoolaege.
76523
76524         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76525
76526         [BZ #1373]
76527         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76528
76529 2006-12-28  Jim Meyering  <jim@meyering.net>
76530
76531         * build-aux/announce-gen: Do not assume that the package
76532         builds any of tar.gz, tar.bz2, and .xdelta files.
76533         Suggestion from Simon Josefsson.
76534
76535 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76536
76537         * modules/announce-gen: New file.
76538
76539 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76542         handles its gotchas now.
76543         * lib/mbswidth.c: Likewise.
76544         * lib/wcwidth.h: Likewise.
76545         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76546         and iswcntrl; the wctype module does this stuff now.
76547         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76549         * modules/mbchar (Depends-on): Add wctype.
76550         * modules/mbswidth (Depends-on): Likewise.
76551         * modules/wcwidth (Depends-on): Likewise.
76552
76553 2006-12-27  Eric Blake  <ebb9@byu.net>
76554
76555         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76556         module uses more than what <wctype.h> is required to provide.
76557
76558 2006-12-26  Eric Blake  <ebb9@byu.net>
76559
76560         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76561
76562 2006-12-26  Eric Blake  <ebb9@byu.net>
76563
76564         * modules/absolute-header: New module.
76565         * modules/fcntl (Depends-on): Depend on it.
76566         * modules/inttypes (Depends-on): Likewise.
76567         * modules/stdint (Depends-on): Likewise.
76568         * modules/sys_stat (Depends-on): Likewise.
76569         * modules/wctype (Depends-on): Likewise.
76570         * MODULES.html.sh (Support for building libraries and
76571         executables): Document it.
76572
76573 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         * gnulib-tool (SED): Remove, undoing previous change.
76576         The problem was that it broke coreutils on Solaris, because
76577         "sed --posix" leaked into a makefile.
76578         (sed): New alias, if 'alias' and GNU sed.
76579
76580 2006-12-24  Jim Meyering  <jim@meyering.net>
76581
76582         Work around an fchownat bug in glibc-2.4:
76583         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76584         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76585         in spite of the -P option.
76586         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76587         New macros.
76588         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76589         * modules/openat (Files): Add lib/fchownat.c.
76590         * lib/openat.c (fchownat): Don't define here.  Move to...
76591         * lib/fchownat.c: ...this new file.
76592
76593 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         Fix bug reported by Bruno Haible in
76596         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76597         where quotearg.c didn't compile on Mac OS X 10.2 because it
76598         lacks <wchar.h> and wint_t.
76599         * lib/wctype_.h (__wctype_wint_t): New type.
76600         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76601         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76602         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76603         Arg is now of type __wctype_wint_t, not wint_t.
76604         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76605         substitute HAVE_WINT_T.
76606         * modules/wctype (Files): Add m4/wint_t.m4.
76607         (wctype.h): Substitute HAVE_WINT_T.
76608
76609 2006-12-23  Bruno Haible  <bruno@clisp.org>
76610
76611         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76612
76613 2006-12-23  Bruno Haible  <bruno@clisp.org>
76614
76615         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76616         S_ISLNK.
76617         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76618         mingw.
76619
76620 2006-12-22  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/copy-file.c: Include acl.h.
76623         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76624         Close the file descriptors only after being done with copy_acl.
76625         * modules/copy-file (Depends-on): Add acl.
76626
76627 2006-12-22  Bruno Haible  <bruno@clisp.org>
76628
76629         * gnulib-tool (SED): New variable.
76630         Use $SED instead of sed everywhere.
76631
76632 2006-12-22  Bruno Haible  <bruno@clisp.org>
76633
76634         * modules/no-c++: New file.
76635         * m4/no-c++.m4: New file.
76636         * MODULES.html.sh (Support for building libraries and executables):
76637         Add no-c++.
76638
76639 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76642         Include <limits.h>, and use its INT_MAX to rewrite the
76643         j loop so that it does not overflow 'int'.  Problem reported by
76644         Ralf Wildenhues in
76645         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76646         Play it safe by shifting left by 1 rather than multiplying by 2,
76647         as GCC is less likely to optimize this away when the value
76648         is signed (when it assumes overflow leads to undefined behavior).
76649         Also, don't assume time_t uses two's complement.
76650
76651 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76652
76653         * MODULES.html.sh: New module wctype.
76654         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76655         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76656         <wctype.h>, since the new wctype module should fix this.
76657         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76658         the wctype module should arrange for it.
76659         * lib/regex_internal.h: Likewise.
76660         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76661         since the wctype module should handle this now.
76662         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76663         * modules/fnmatch (Depends-on): Add wctype.
76664         * modules/quotearg (Depends-on): Likewise.
76665         * modules/regex (Depends-on): Likewise.
76666
76667 2006-12-19  Bruno Haible  <bruno@clisp.org>
76668
76669         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76670         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76671
76672 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76673
76674         * modules/savewd (Depends-on): Fix dependency on fcntl.
76675
76676 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76679         conforms to C99, rather than relying on the user's environment
76680         setting of STDINT_H.
76681
76682 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76683         and Eric Blake  <ebb9@byu.net>
76684
76685         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76686         This is more consistent with the other defines here.
76687         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76688         Port to z/OS.  Problem reported by Paul Gilmartin.
76689         Change local vars to use gl_ prefix rather than ac_.
76690         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76691         with other defines.
76692         * modules/double-slash-root: New module.
76693         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76694         (Depends-on): Add double-slash-root.
76695         * MODULES.html.sh (File system functions): Mention new module.
76696
76697 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76698
76699         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76700         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76701         This is for the benefit of gzip, which doesn't do i18n.
76702
76703 2006-12-12  Jim Meyering  <jim@meyering.net>
76704
76705         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76706         Reported by Andreas Schwab <schwab@suse.de>.
76707
76708 2006-12-12  Bruno Haible  <bruno@clisp.org>
76709
76710         Merge these changes.
76711         2006-09-05  Bruno Haible  <bruno@clisp.org>
76712         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76713         iconv_alloc succeeded.
76714         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76715         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76716         test for " && dest " at the end - dest is always != NULL there. Call
76717         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76718         with 2xNULL arguments, also to flush the state storage. Handle the
76719         IRIX iconv behaviour. Realloc the final result, to throw away unused
76720         memory.
76721
76722 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76725         and fchmodat unconditionally, since glibc 2.4 has them.
76726         Problem reported by Arkadiusz Miskiewicz.
76727
76728 2006-12-10  Bruno Haible  <bruno@clisp.org>
76729
76730         * gnulib-tool (func_import): Show the include files only for those
76731         modules that are copied and specified.
76732         Reported by Karl Berry.
76733
76734 2006-12-08  Jim Meyering  <jim@meyering.net>
76735
76736         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76737         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76738
76739         * build-aux/announce-gen: Add two new options, both optional:
76740         --bootstrap-tools=TOOL_LIST
76741               a comma-separated list of tools, e.g.,
76742               autoconf,automake,bison,gnulib
76743         --gnulib-snapshot-date=DATE
76744               if gnulib is in the bootstrap tool list,
76745               then report this as the snapshot date.
76746               If not specified, use the current date/time.
76747               If you specify a date here, be sure it's UTC.
76748
76749 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76750
76751         * tests/test-argp-2.sh: Fix test to match actual output.
76752         (func_compare): Fix sed script to be portable.
76753
76754 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76757         workaround for this case.  It is not autoconfigured now; offhand
76758         it's hard to see how to autoconfigure it.
76759
76760 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76761
76762         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76763         a directory that is about to be chowned.  Such a directory's
76764         initial file permissions should permit the owner only and this
76765         should not be changed until after the chown, since the group and
76766         other bits would be incorrect if they granted permission before
76767         the chown.
76768
76769         Fix porting problem for iswctype reported by Georg Schwarz in:
76770         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76771         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76772         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76773         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76774         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76775
76776 2006-12-03  Jim Meyering  <jim@meyering.net>
76777
76778         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76779         p->fts_statp may not yet be defined.
76780         (fts_read): Instead, set it in the caller, once p->fts_statp is
76781         sure to be defined, and corresponds to a top-level directory.
76782         This bug made du -x fail.  Here's the coreutils test case:
76783         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76784         Reported by Mike Frysinger.
76785
76786 2006-12-01  Jim Meyering  <jim@meyering.net>
76787
76788         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76789         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76790         Reported by Simon Josefsson.
76791
76792 2006-11-30  Jim Meyering  <jim@meyering.net>
76793
76794         * m4/warning.m4: Use the all-permissive copyright notice
76795         recommended by RMS (rather than LGPL).
76796         * m4/vararrays.m4: Likewise.
76797         * m4/flexmember.m4: Likewise.
76798
76799 2006-11-29  Bruno Haible  <bruno@clisp.org>
76800
76801         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76802         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76803         using +=.
76804         Reported by Simon Josefsson <simon@josefsson.org>.
76805
76806 2006-11-28  James Youngman <jay@gnu.org>
76807
76808         * README: Advise users that they might find the bug-gnulib@gnu.org
76809         and autotools-announce@gnu.org mailing lists useful.
76810
76811 2006-11-28  Bruno Haible  <bruno@clisp.org>
76812
76813         * m4/ptrdiff_max.m4: Remove file.
76814
76815 2006-11-21  Bruno Haible  <bruno@clisp.org>
76816
76817         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76818         _AC_COMPUTE_INT.
76819         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76820         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76821         _AC_COMPUTE_INT.
76822         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76823         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76824         _AC_COMPUTE_INT.
76825         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76826
76827 2006-11-28  Jim Meyering  <jim@meyering.net>
76828
76829         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76830         warning from "gcc -Wshadow" about shadowing the builtin.
76831
76832 2006-11-27  Bruno Haible  <bruno@clisp.org>
76833
76834         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76835         _AC_COMPUTE_INT.
76836         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76837
76838 2006-11-27  Bruno Haible  <bruno@clisp.org>
76839             Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76842
76843 2006-11-26  Bruno Haible  <bruno@clisp.org>
76844
76845         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76846         noinst_LTLIBRARIES.
76847
76848 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76849             Bruno Haible  <bruno@clisp.org>
76850
76851         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76852         if compiling with "gcc -ansi".
76853
76854 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76855
76856         Fix some incompatibilities with gcc -ansi -pedantic.
76857         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76858         if compiling pedantically with GCC, unless it's C99 or later.
76859         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76860         it mishandles gcc -ansi -pedantic as well.
76861         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76862         if gcc -pedantic.
76863         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76864         initializers for struct if -pedantic, unless it's C99 or later.
76865
76866 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76867
76868         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76869         Don't close an fd more than once. Identical atimes indicate
76870         success, not failure.
76871
76872 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76873
76874         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76875
76876 2006-11-23  Jim Meyering  <jim@meyering.net>
76877
76878         * build-aux/announce-gen: New file.  From coreutils.
76879
76880 2006-11-22  Jim Meyering  <jim@meyering.net>
76881
76882         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76883         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76884         (fts_read): Use a temporary to narrow the overused st_size member
76885         before using it in a switch statement.  Reported by Matthew Woehlke.
76886
76887         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76888         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76889
76890 2006-11-20  Bruno Haible  <bruno@clisp.org>
76891
76892         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76893         changequote instead of pairs of brackets.
76894         Reported by Andreas Schwab <schwab@suse.de>.
76895
76896 2006-11-21  Jim Meyering  <jim@meyering.net>
76897
76898         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76899         so as to remain compatible with older compilers.
76900         Patch from Michael Deutschmann.
76901
76902 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76903
76904         * MODULES.html.sh (File system functions): Add openat.
76905
76906         * lib/openat.h (rpl_fstatat): New macro, if
76907         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76908         (fstatat): Define to rpl_fstatat under the same conditions,
76909         unless COMPILING_FSTATAT.
76910         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76911         seems to have the bug.
76912         * lib/fstatat.c: New file.
76913         * modules/openat (Files): Add it.
76914
76915 2006-11-20  Bruno Haible  <bruno@clisp.org>
76916
76917         * Makefile: New file.
76918
76919 2006-11-20  Jim Meyering  <jim@meyering.net>
76920
76921         The beginnings of syntax-related checks for gnulib.
76922         * lib/Makefile: New file.
76923         * lib/t-idcache: New script.  Ensure that the two halves of
76924         idcache.c stay in sync.
76925
76926         * lib/idcache.c: Adjust comments in user- and group- portions to
76927         be more accurate, and to be consistent with one another.
76928
76929 2006-11-20  Jim Meyering  <jim@meyering.net>
76930
76931         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76932         continue using the flexible array member (thus, this module performs
76933         half as many malloc calls), with the addition that...
76934         (getgroup, getuser): Consistently record a non-match via an empty
76935         "name" string, and map an empty string match to a NULL return value.
76936         * modules/idcache (Depends-on): Re-add flexmember.
76937
76938         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76939         (getuidbyname, getgroup, getgidbyname): Likewise.
76940
76941         Use cleaner syntax: NULL rather than 0.
76942         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76943
76944 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76945
76946         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76947         It mishandled the case where the group was missing.
76948         Problem reported by Greg Schafer.
76949         * modules/idcache: Likewise.
76950
76951 2006-11-18  Jim Meyering  <jim@meyering.net>
76952
76953         * check-module (%exempt_header): Add exception for some
76954         conditionally-included headers.
76955
76956         * modules/i-ring (Depends-on): Add verify.
76957         (License): Change to LGPL.
76958
76959 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76962         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76963         and inttostr.h.  Use snprintf rather than uinttostr, so that
76964         LGPLed code doesn't depend on GPLed.
76965
76966 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * modules/inline (License): Change from GPL to LGPL.
76969
76970 2006-11-17  Jim Meyering  <jim@meyering.net>
76971
76972         * modules/d-type (License): Switch to LGPL.
76973
76974 2006-11-15  Bruno Haible  <bruno@clisp.org>
76975
76976         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76977
76978 2006-11-15  Eric Blake  <ebb9@byu.net>
76979
76980         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76981         the module dependency.
76982
76983 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76984             Bruno Haible  <bruno@clisp.org>
76985
76986         * gnulib-tool (func_create_testdir): Add license consistency check.
76987
76988 2006-11-15  Eric Blake  <ebb9@byu.net>
76989
76990         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76991         random "(cached)" in configure output.
76992
76993 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76994
76995         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76996         test for conforming inttypes.h is both announced and cached.
76997
76998         * MODULES.html.sh (seen_modules, seen_files): New variables.
76999         (func_module): Rewrite to use a few less gnulib-tool and sed
77000         invocations.  Avoid a couple of quadratic algorithms for ...
77001         (missed_modules, missed_files): ... these, with ...
77002         (func_append, func_tmpdir): ... these new functions, from
77003         gnulib-tool.  Analogously, install traps for cleanup.
77004
77005         * tests/test-gc.c (main): Remove unused variables.
77006         * tests/test-read-file.c: Include stdlib.h, for 'free'.
77007
77008 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         * modules/inttostr (License): Change to LGPL.
77011
77012 2006-11-14  Eric Blake  <ebb9@byu.net>
77013
77014         * modules/tempname (License): Change to LGPL.
77015
77016 2006-11-14  Eric Blake  <ebb9@byu.net>
77017
77018         * doc/functions.texi (Function Portability): *printf functions on
77019         Cygwin now understand all POSIX size specifiers.
77020
77021 2006-11-14  Bruno Haible  <bruno@clisp.org>
77022
77023         * modules/c-ctype (License): Change to LGPL.
77024
77025 2006-11-12  Bruno Haible  <bruno@clisp.org>
77026
77027         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77028         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
77029         for GNOME libraries, for which the include files are installed in
77030         subdirectories of $prefix/include.
77031
77032 2006-11-12  Bruno Haible  <bruno@clisp.org>
77033
77034         * m4/lib-link.m4: Require at least autoconf-2.54.
77035         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
77036         name to underscores for the --with option.
77037
77038 2006-11-13  Bruno Haible  <bruno@clisp.org>
77039
77040         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
77041         the tests directory.
77042         Reported by Ralf Wildenhues.
77043
77044 2006-11-13  Bruno Haible  <bruno@clisp.org>
77045
77046         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
77047         (func_emit_initmacro_end): Undo the override here.
77048         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
77049         Works around the famous automake error in coreutils.
77050
77051 2006-11-13  Eric Blake  <ebb9@byu.net>
77052
77053         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
77054         element, not its node.
77055
77056 2006-11-12  Bruno Haible  <bruno@clisp.org>
77057
77058         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
77059         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
77060
77061 2006-11-12  Bruno Haible  <bruno@clisp.org>
77062
77063         * gnulib-tool: New option --local-symlink.
77064         (func_usage): Document it.
77065         (lsymbolic): New variable.
77066         (func_import, func_create_testdir): If --symlink was not specified,
77067         test whether --local-symlink was specified and the file comes from
77068         the local_gnulib_dir.
77069
77070 2006-11-12  Bruno Haible  <bruno@clisp.org>
77071
77072         * gnulib-tool (func_ln): New function.
77073         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
77074
77075 2006-11-12  Bruno Haible  <bruno@clisp.org>
77076
77077         Finish support for source files in subdirectories.
77078         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77079         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77080         AUTOMAKE_OPTIONS.
77081         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77082
77083 2006-11-12  Bruno Haible  <bruno@clisp.org>
77084
77085         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77086         EXTRA_lib_SOURCES augmentation.
77087         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77088
77089 2006-11-12  Jim Meyering  <jim@meyering.net>
77090
77091         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77092         file descriptors.  This also averts a failure on systems with
77093         native openat support when a traversed directory lacks "x" access.
77094         * lib/fts_.h: Include "i-ring.h"
77095         (struct FTS) [fts_fd_ring]: New member.
77096         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77097         (FCHDIR): Add parentheses.
77098         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77099         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77100         When descending, rather than simply closing the previous
77101         fts_cwd_fd value, push that file descriptor onto the ring.
77102         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77103         (fts_open): Initialize the new fd_ring member.
77104         (fts_close): Clear the ring.
77105         (fts_safe_changedir): When possible, use our new fd_ring to skip
77106         the diropen and fstat and dev/ino comparison that would normally
77107         accompany a virtual `chdir ("..")'.
77108
77109         * modules/fts (Depends-on): Add i-ring.
77110         * modules/i-ring: New module.
77111         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77112         * m4/i-ring.m4: New file.
77113
77114 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77115
77116         * gnulib-tool (func_create_testdir): Fix replacement of
77117         `build-aux' in configure.ac.  Run autotools in gltests
77118         subdirectory.
77119         (func_create_testdir, func_create_megatestdir, test): There is
77120         no need for '--force' in most autotool invocations in a new
77121         tree.  Actually fail the whole test if any of the tools, or the
77122         configure or make stages fail.
77123
77124         Sync from Automake.
77125         * build-aux/gnupload: Revert last change.  Add pointer to upload
77126         instructions of the GNU Maintenance Instructions.
77127         Suggestion by Karl Berry.
77128
77129 2006-11-10  Jim Meyering  <jim@meyering.net>
77130
77131         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77132
77133 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77136         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77137         (bind_textdomain_codeset) [! ENABLE_NLS]:
77138         Evaluate all the arguments.  That way, callers get compatible behavior
77139         if the arguments have side effects.  Also, it avoids some GCC
77140         diagnostics in some cases; Joel E. Denny reported problems when Bison
77141         was configured with --enable-gcc-warnigs.
77142
77143 2006-11-10  Jim Meyering  <jim@meyering.net>
77144
77145         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77146         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77147         account.
77148
77149 2006-11-10  Jim Meyering  <jim@meyering.net>
77150
77151         * modules/inline: New file/module.
77152         * modules/xalloc (Files): Remove m4/inline.m4.
77153         (Depends-on): Add inline, instead.
77154         * modules/oset: Likewise.
77155         * modules/list: Likewise.
77156
77157 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77158
77159         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77160         Problem reported by Matthew Woehlke.
77161
77162 2006-11-09  Bruno Haible  <bruno@clisp.org>
77163
77164         * lib/tempname.c (gen_tempname): Remove variant that invokes
77165         __gen_tempname.
77166         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77167         __gen_tempname.
77168
77169 2006-11-08  Bruno Haible  <bruno@clisp.org>
77170
77171         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77172         to 'yes' instead of 'cross-compiling'.
77173
77174 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77175
77176         * lib/quotearg.h (quotearg_free): New decl.
77177         * lib/quotearg.c (quotearg_free): New function.
77178         (slot0, nslots, slotvec0, slotvec):
77179         Now file-scope so that quotearg_free can get at them.
77180
77181 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77182
77183         Sync from Automake.
77184         * build-aux/gnupload: Add missing 'gnu' to example URL.
77185         Report by Karl Berry.
77186
77187 2006-11-08  Bruno Haible  <bruno@clisp.org>
77188
77189         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77190         Suggested by Paul Eggert.
77191
77192 2006-11-08  Jim Meyering  <jim@meyering.net>
77193
77194         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77195         It's already included if !_LIBC.
77196         (fts_safe_changedir): Add a comment.
77197
77198 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77201         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77202         Matthew Woehlke.
77203
77204         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77205         definitions up, to avoid colliding with change below.
77206         (static_inline) [HAVE_INLINE]: New macro.
77207         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77208         Provide extern decls when !HAVE_INLINE.  Do not define unless
77209         static_inline is defined, either by us or by xmalloc.c.  Use
77210         static_inline rather than static inline.
77211         (XCALLOC): Optimize sizeof(T) = 1 case.
77212         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77213
77214 2006-11-07  Bruno Haible  <bruno@clisp.org>
77215
77216         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77217         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77218         AC_C_INLINE.
77219         * modules/xalloc (Files): Add m4/inline.m4.
77220
77221 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77222
77223         * README: Fix typo.
77224         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77225         (Miscellanous Notes): ...from this.
77226
77227 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77230         Mention that offsetof should be used instead of sizeof.
77231         From Bruno Haible.
77232
77233 2006-11-07  Bruno Haible  <bruno@clisp.org>
77234
77235         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77236
77237 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77240         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77241         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77242         (gl_tree_add_before, gl_tree_add_after):
77243         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77244         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77245         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77246         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77247         (gl_linked_add_after, gl_linked_add_at): Likewise.
77248         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77249         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77250         (gl_tree_add_before, gl_tree_add_after): Likewise.
77251         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77252         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77253         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77254
77255 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77256
77257         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77258
77259 2006-11-06  Bruno Haible  <bruno@clisp.org>
77260
77261         * m4/inline.m4: New file.
77262         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77263         * modules/list (Files): Add m4/inline.m4.
77264         * modules/oset (Files): Likewise.
77265
77266 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77267
77268         * lib/idcache.c: Include <stddef.h>, for offsetof.
77269         (struct userid.name): Change from char * to a flexible array member.
77270         All uses changed.
77271         * modules/idcache (Depends-on): Add flexmember.
77272
77273         * MODULES.html.sh (Core language properties): New module flexmember.
77274         * modules/flexmember, m4/flexmember.m4: New files.
77275
77276         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77277         inline functions that are identical with the old xnmalloc_inline,
77278         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77279         that we can avoid some unnecessary integer multiplications and
77280         divisions in the common case where the element size is known at
77281         compile time.
77282         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77283         needed.
77284         (xnboundedmalloc): Remove.
77285         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77286         arguments, for consistency with rest of this header.
77287         (xcharalloc): Rewrite using XNMALLOC.
77288         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77289         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77290         versions have been moved to lib/xalloc.h and renamed to be the
77291         non-*_inline versions.
77292         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77293         and xnrealloc functions, since those functions are now inline and
77294         now call us.
77295         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77296         renaming described above.
77297         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77298         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77299         captures the dependency in AC_C_INLINE.
77300
77301         New module canonicalize-lgpl, proposed by Charles Wilson in
77302         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77303         with a few small changes afterwards.
77304         * MODULES.html.sh (File system functions): New module
77305         canonicalize-lgpl.
77306         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77307         and canonicalize_file_name.
77308         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77309         * modules/canonicalize-lgpl: New files.
77310
77311 2006-11-05  Bruno Haible  <bruno@clisp.org>
77312
77313         * gnulib-tool (func_import, func_create_testdir): Create directories
77314         also for files in subdirectories of lib/.
77315
77316 2006-11-05  Bruno Haible  <bruno@clisp.org>
77317
77318         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77319         ANSI C compliant.
77320
77321 2006-11-03  Bruno Haible  <bruno@clisp.org>
77322
77323         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77324         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77325         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77326         (xnboundedmalloc): New inline function.
77327         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77328         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77329         xmalloc.
77330         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77331         xmalloc.
77332         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77333         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77334         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77335         xmalloc.
77336         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77337         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77338         xmalloc.
77339         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77340         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77341         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77342         xmalloc.
77343         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77344         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77345         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77346         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77347         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77348         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77349         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77350
77351 2006-11-03  Bruno Haible  <bruno@clisp.org>
77352
77353         * lib/c-ctype.h [C++]: Define functions without name mangling.
77354         * lib/fwriteerror.h [C++]: Likewise.
77355         * lib/gcd.h [C++]: Likewise.
77356         * lib/linebreak.h [C++]: Likewise.
77357
77358 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77361         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77362         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77363         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77364         Check for functions and headers just once.
77365         Check for declaration of canonicalize_file_name.
77366         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77367
77368 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77369
77370         * gnulib-tool (func_import): Fix typo in actioncmd.
77371
77372 2006-11-02  Bruno Haible  <bruno@clisp.org>
77373
77374         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77375         newline sequence in the Makefile.am snippet as a space, like "make"
77376         does.
77377         Reported by Roger Persson <perrog@gmail.com>.
77378
77379 2006-11-01  Bruno Haible  <bruno@clisp.org>
77380
77381         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77382         already declared in <string.h>.
77383         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77384
77385 2006-11-01  Bruno Haible  <bruno@clisp.org>
77386
77387         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77388         * lib/strcase.h: Include <string.h>.
77389         (strcasecmp): Define to rpl_strcasecmp here.
77390
77391 2006-11-01  Bruno Haible  <bruno@clisp.org>
77392
77393         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77394
77395 2006-11-01  Eric Blake  <ebb9@byu.net>
77396
77397         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77398
77399         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77400
77401 2006-10-29  Bruno Haible  <bruno@clisp.org>
77402
77403         Make it compile in C++ mode.
77404         * lib/full-write.c (full_rw): Add a cast.
77405
77406 2006-11-01  Bruno Haible  <bruno@clisp.org>
77407
77408         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77409         be POSIX compliant.
77410         Reported by Roger Persson <perrog@gmail.com>.
77411
77412 2006-11-01  Eric Blake  <ebb9@byu.net>
77413
77414         * lib/getopt_.h: Fix comments.
77415
77416 2006-10-31  Eric Blake  <ebb9@byu.net>
77417
77418         * modules/tmpdir (Depends-on): Add sys_stat.
77419         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77420         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77421         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77422         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77423         tempname.
77424
77425 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         Avoid some C++ diagnostics reported by Bruno Haible.
77428         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77429         xmalloc.
77430         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77431         (struct slotvec): Move to top level.
77432         (quotearg_n_options): Rewrite to avoid xmalloc.
77433         * lib/xalloc.h (xcharalloc): New function.
77434         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77435         [defined __cplusplus]: Add function template that provides result
77436         type propagation.  This part of the change is from Bruno Haible.
77437
77438 2006-10-29  Bruno Haible  <bruno@clisp.org>
77439
77440         Make it compile in C++ mode.
77441         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77442         * lib/strnlen1.c (strnlen1): Cast memchr result.
77443         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77444         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77445         (create_temp_dir): Rename local variable 'template'.
77446         (compile_csharp_using_sscli): Add cast.
77447         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77448         * lib/findprog.c (find_in_path): Likewise.
77449         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77450         * lib/wait-process.c (register_slave_subprocess): Likewise.
77451
77452 2006-10-22  Bruno Haible  <bruno@clisp.org>
77453
77454         * modules/tsearch: New file.
77455         * lib/tsearch.h: New file.
77456         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77457         * m4/tsearch.m4: New file.
77458         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77459
77460 2006-10-29  Eric Blake  <ebb9@byu.net>
77461
77462         * lib/arcfour.c: Assume config.h.
77463         * lib/arctwo.c: Likewise.
77464         * lib/base64.c: Likewise.
77465         * lib/check-version.c: Likewise.
77466         * lib/crc.c: Likewise.
77467         * lib/des.c: Likewise.
77468         * lib/gc-gnulib.c: Likewise.
77469         * lib/gc-libgcrypt.c: Likewise.
77470         * lib/gc-pbkdf2-sha1.c: Likewise.
77471         * lib/getaddrinfo.c: Likewise.
77472         * lib/getdelim.c: Likewise.
77473         * lib/getline.c: Likewise.
77474         * lib/hmac-md5.c: Likewise.
77475         * lib/hmac-sha1.c: Likewise.
77476         * lib/iconvme.c: Likewise.
77477         * lib/md2.c: Likewise.
77478         * lib/md4.c: Likewise.
77479         * lib/memxor.c: Likewise.
77480         * lib/read-file.c: Likewise.
77481         * lib/readline.c: Likewise.
77482         * lib/rijndael-alg-fst.c: Likewise.
77483         * lib/rijndael-api-fst.c: Likewise.
77484         * lib/xgetdomainname.c: Likewise.
77485
77486 2006-10-28  Eric Blake  <ebb9@byu.net>
77487
77488         * lib/xstrndup.c: Assume config.h.
77489
77490 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77491
77492         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77493         stat-macros.h is now for our own macros, whereas stat_h is for
77494         macros in the <sys/stat.h> name space.
77495         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77496         (STAT_MACROS_H): Remove.
77497         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77498         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77499         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77500         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77501         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77502         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77503         Move these macros to ...
77504         * lib/stat_.h: here.  Don't include stat-macros.h.
77505         * lib/canonicalize.c: Don't include stat-macros.h.
77506         * lib/chown.c: Likewise.
77507         * lib/euidaccess.c: Likewise.
77508         * lib/file-type.c: Likewise.
77509         * lib/filemode.c: Likewise.
77510         * lib/glob.c: Likewise.
77511         * lib/isapipe.c: Likewise.
77512         * lib/lchown.c: Likewise.
77513         * lib/lstat.c: Likewise.
77514         * lib/mkdir-p.c: Likewise.
77515         * lib/rmdir.c: Likewise.
77516         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77518         unless mkdir isn't declared, to speed up 'configure'.
77519         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77520         would define all the S_* symbols.
77521         * modules/canonicalize (Depends-on):
77522         Depend on sys_stat, not stat-macros.
77523         * modules/chown: Likewise.
77524         * modules/euidaccess: Likewise.
77525         * modules/filemode: Likewise.
77526         * modules/file-type: Likewise.
77527         * modules/glob: Likewise.
77528         * modules/isapipe: Likewise.
77529         * modules/lchown: Likewise.
77530         * modules/lstat: Likewise.
77531         * modules/mkancesdirs: Likewise.
77532         * modules/rmdir: Likewise.
77533         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77534         * modules/modechange: Likewise.
77535         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77536         (configure.ac): Remove gl_STAT_MACROS.
77537         * modules/sys_stat (Depends-on): Remove stat-macros.
77538
77539 2006-10-27  Bruno Haible  <bruno@clisp.org>
77540
77541         * m4/signed.m4: Remove file.
77542         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77543         invocation.
77544         * modules/vasnprintf (Files): Remove m4/signed.m4.
77545
77546 2006-10-27  Bruno Haible  <bruno@clisp.org>
77547
77548         Update to GNU gettext 0.16.
77549         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77550         m4/inttypes-h.m4, m4/signed.m4.
77551         * m4/gettext.m4: Update to GNU gettext 0.16.
77552         * m4/intl.m4: New file, from GNU gettext.
77553         * m4/intldir.m4: New file, from GNU gettext.
77554         * config/srclist.txt: Update
77555
77556 2006-10-27  Eric Blake  <ebb9@byu.net>
77557
77558         * MODULES.html.sh: Document tempname.
77559         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77560         dependencies.
77561         (Files): Move lib/tempname.c...
77562         * modules/tempname: ...to this new module.
77563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77564         (gl_PREREQ_TEMPNAME): Move...
77565         * m4/tempname.m4: ...to this new file.
77566         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77567         * modules/sys_stat (Depends-on): Add stat-macros.
77568         * lib/stat_.h (includes): Pick up stat macros.
77569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77570         if stat macros are broken.
77571         * lib/tempname.c (includes): No need to include "stat-macros.h".
77572         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77573         (direxists, __path_search) [!_LIBC]: Don't compile these in
77574         gnulib; the tmpdir module covers that.
77575         * lib/tempname.h: New file.
77576
77577 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * COPYING: Explain how gnulib-tool converts licence headers.
77580         Almost all wording by Eric Blake.
77581
77582 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * lib/mbchar.h (is_basic_table): Make read-only.
77585         * lib/mbchar.c (is_basic_table): Likewise.
77586         Reported by John Darrington.
77587
77588 2006-10-25  Bruno Haible  <bruno@clisp.org>
77589
77590         * lib/progname.h (set_program_name): Undefine before defining.
77591
77592 2006-10-25  Bruno Haible  <bruno@clisp.org>
77593
77594         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77595         false for non-gcc C++ compilers.
77596         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77597
77598 2006-10-24  Bruno Haible  <bruno@clisp.org>
77599
77600         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77601         iconv implementations like Irix iconv.
77602
77603 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77604
77605         * modules/vararrays: New file.
77606         * m4/vararrays.m4: New file, taken from diffutils.
77607         * MODULES.html.sh: New module vararrays.
77608
77609 2006-10-24  Karl Berry  <karl@gnu.org>
77610
77611         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77612         Don't call GNU Unix.
77613
77614 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77615
77616         * users.txt: Add Libtool.
77617
77618         Sync from Libtool:
77619
77620         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77621
77622         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77623         to gnulib's policy of including config.h unconditionally.
77624
77625 2006-10-24  Bruno Haible  <bruno@clisp.org>
77626
77627         * modules/wcwidth (Files): Add m4/wint_t.m4.
77628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77629         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77630
77631 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77632
77633         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77634         to pacify GCC with some -W flags enabled.  Problem reported by
77635         Bruno Haible.
77636
77637 2006-10-24  Jim Meyering  <jim@meyering.net>
77638
77639         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77640         Reported by Karl Berry.
77641
77642 2006-10-23  Bruno Haible  <bruno@clisp.org>
77643
77644         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77645
77646 2006-10-24  Bruno Haible  <bruno@clisp.org>
77647
77648         * lib/gl_list.h: Use C comment style, not C++ comment style.
77649
77650 2006-10-23  Eric Blake  <ebb9@byu.net>
77651
77652         * lib/getaddrinfo.c (includes): Add missing include.
77653
77654 2006-10-23  Bruno Haible  <bruno@clisp.org>
77655             Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         Ability to rename obstack_free.
77658         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77659         obstack_free.
77660         (obstack_free): Invoke the __obstack_free macro.
77661         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77662
77663 2006-10-23  Bruno Haible  <bruno@clisp.org>
77664             Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77667         __argc, __argv from the declaration. (They are defined as macros on
77668         mingw.)
77669
77670 2006-10-22  Bruno Haible  <bruno@clisp.org>
77671
77672         * doc/gnulib-intro.texi: New file.
77673         * doc/gnulib.texi: Include it.
77674
77675 2006-10-21  Bruno Haible  <bruno@clisp.org>
77676
77677         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77678         "Introduction", "Miscellanous Notes", "Particular Modules".
77679
77680 2006-10-21  Bruno Haible  <bruno@clisp.org>
77681
77682         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77683         Change mostlyclean-local rule to avoid sh syntax error from bash
77684         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77685
77686 2006-10-23  Jim Meyering  <jim@meyering.net>
77687
77688         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77689         in place of snprintf.
77690
77691         * modules/inttostr (Files): Add lib/uinttostr.c.
77692         * lib/uinttostr.c (inttostr): New file/function.
77693         * lib/inttostr.h (uinttostr): Declare.
77694         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77695         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77696         Add uinttostr.
77697         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77698
77699 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         * lib/canonicalize.c (ELOOP): Define if not already defined.
77702         Problem reported by Bruno Haible in
77703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77704
77705 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77706
77707         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77708         Problem reported by Perry Smith and Ville Laurikari.
77709
77710         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77711         uses.
77712
77713 2006-10-19  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77716         for mingw.
77717
77718 2006-10-19  Bruno Haible  <bruno@clisp.org>
77719
77720         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77721         Needed for mingw.
77722
77723 2006-10-19  Bruno Haible  <bruno@clisp.org>
77724
77725         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77726
77727 2006-10-19  Bruno Haible  <bruno@clisp.org>
77728
77729         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77730         it.
77731
77732 2006-10-19  Bruno Haible  <bruno@clisp.org>
77733
77734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77735         invocation.
77736
77737 2006-10-19  Bruno Haible  <bruno@clisp.org>
77738
77739         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77740         mountlist by default.
77741
77742 2006-10-16  Bruno Haible  <bruno@clisp.org>
77743
77744         * lib/c-strstr.c: Include c-strstr.h.
77745
77746 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77747
77748         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77749         in a slash.
77750
77751 2006-10-18  Bruno Haible  <bruno@clisp.org>
77752
77753         * lib/lock.h [C++]: Wrap definitions in extern "C".
77754
77755 2006-10-18  Bruno Haible  <bruno@clisp.org>
77756
77757         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77758         gl_LIBOBJS list.
77759
77760 2006-10-18  Bruno Haible  <bruno@clisp.org>
77761
77762         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77763
77764 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77765
77766         * lib/xstrtol.h: Include gettext.h.
77767         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77768         Problem reported by Eric Blake.
77769         * modules/xstrtol (Depends-on): Add gettext-h.
77770
77771 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77772
77773         * lib/strftime.c (advance): New macro.
77774         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77775         incomplete type, so you can't add 0 to it.  Problem and patch
77776         reported by Eelco Dolstra for dietlibc.
77777
77778 2006-10-18  Jim Meyering  <jim@meyering.net>
77779
77780         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77781         type for a local, and rename it: s/up/user_proc/.
77782
77783 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77784
77785         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77786         READ_UTMP_USER_PROCESS.
77787         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77788
77789 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77790
77791         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77792         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77793
77794 2006-10-17  Eric Blake  <ebb9@byu.net>
77795
77796         * lib/sigprocmask.c (sigprocmask): Fix typo.
77797
77798         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77799
77800         * modules/clean-temp (Makefile.am): Don't add to make output...
77801         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77802         config.h.
77803
77804 2006-10-17  Bruno Haible  <bruno@clisp.org>
77805
77806         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77807         differently if DEFAULT_TEXT_DOMAIN is set.
77808
77809 2006-10-16  Bruno Haible  <bruno@clisp.org>
77810
77811         * lib/clean-temp.c: Include fwriteerror.h.
77812
77813 2006-10-16  Bruno Haible  <bruno@clisp.org>
77814
77815         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77816
77817 2006-10-16  Bruno Haible  <bruno@clisp.org>
77818
77819         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77820         * lib/sigprocmask.h: Include <sys/types.h>.
77821         (sigset_t): Use the system's definition if present.
77822
77823 2006-10-17  Eric Blake  <ebb9@byu.net>
77824
77825         * lib/xvasprintf.c (includes): Assume config.h.
77826         * lib/xasprintf.c (includes): Likewise.
77827
77828 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77831         at least as wide as intmax_t.
77832
77833 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77834
77835         (Imported from Automake.)
77836         * build-aux/gnupload: Update to version 1.1 of directive file.
77837
77838 2006-10-16  Eric Blake  <ebb9@byu.net>
77839
77840         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77841         match Automake 1.10a.
77842
77843 2006-10-14  Bruno Haible  <bruno@clisp.org>
77844
77845         * modules/sigprocmask: New file.
77846         * lib/sigprocmask.h: New file.
77847         * lib/sigprocmask.c: New file.
77848         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77849         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77850         request sigprocmask.o.
77851         (gl_PREREQ_SIGPROCMASK): New macro.
77852         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77853         (Depends-on): Add sigprocmask.
77854         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77855         gt_SIGNALBLOCKING. Test for 'raise' only once.
77856         * lib/fatal-signal.c: Include sigprocmask.h.
77857         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77858         unblock_fatal_signals): Define always.
77859         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77860         sigprocmask.
77861
77862 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         Sync from Automake.
77865         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77866         which incorrectly sets the mode of an existing destination
77867         directory.  In some cases the unpatched install-sh could do the
77868         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77869         system.  We hope this is rare in practice, but it's clearly worth
77870         fixing.  Problem reported by Alex Unleashed in
77871         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77872         Also, don't bother to check for -m bugs unless we're using -m;
77873         suggested by Stepan Kasal.
77874
77875 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77876
77877         Sync from Automake.
77878         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77879         `-c' flag, so they appear at the same position as in %FASTDEP%
77880         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77881         which ignores unknown options only after the first non-option.
77882         Bug report against M4 by Nelson H. F. Beebe.
77883
77884 2006-10-13  Jim Meyering  <jim@meyering.net>
77885
77886         Fix a bug in yesterday's change.
77887         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77888         p->fts_statp->st_dev would be used uninitialized.
77889         Ensures that we always call fts_stat on the very first entry.
77890         Miklos Szeredi reported that find -xdev stopped working.
77891
77892 2006-10-12  Bruno Haible  <bruno@clisp.org>
77893
77894         * gnulib-tool (func_get_automake_snippet): Append an automatically
77895         computed EXTRA_DIST augmentation.
77896         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77897         * modules/alloca-opt (Makefile.am): Likewise.
77898         * modules/allocsa (Makefile.am): Likewise.
77899         * modules/arcfour (Makefile.am): Likewise.
77900         * modules/arctwo (Makefile.am): Likewise.
77901         * modules/argmatch (Makefile.am): Likewise.
77902         * modules/argz (Makefile.am): Likewise.
77903         * modules/atexit (Makefile.am): Likewise.
77904         * modules/backupfile (Makefile.am): Likewise.
77905         * modules/byteswap (Makefile.am): Likewise.
77906         * modules/c-strtod (Makefile.am): Likewise.
77907         * modules/c-strtold (Makefile.am): Likewise.
77908         * modules/calloc (Makefile.am): Likewise.
77909         * modules/canon-host (Makefile.am): Likewise.
77910         * modules/canonicalize (Makefile.am): Likewise.
77911         * modules/chdir-long (Makefile.am): Likewise.
77912         * modules/chdir-safer (Makefile.am): Likewise.
77913         * modules/check-version (Makefile.am): Likewise.
77914         * modules/chown (Makefile.am): Likewise.
77915         * modules/cloexec (Makefile.am): Likewise.
77916         * modules/close-stream (Makefile.am): Likewise.
77917         * modules/closeout (Makefile.am): Likewise.
77918         * modules/crc (Makefile.am): Likewise.
77919         * modules/csharpexec (Makefile.am): Likewise.
77920         * modules/cycle-check (Makefile.am): Likewise.
77921         * modules/des (Makefile.am): Likewise.
77922         * modules/dev-ino (Makefile.am): Likewise.
77923         * modules/dirfd (Makefile.am): Likewise.
77924         * modules/dirname (Makefile.am): Likewise.
77925         * modules/dup2 (Makefile.am): Likewise.
77926         * modules/eealloc (Makefile.am): Likewise.
77927         * modules/error (Makefile.am): Likewise.
77928         * modules/euidaccess (Makefile.am): Likewise.
77929         * modules/exclude (Makefile.am): Likewise.
77930         * modules/exitfail (Makefile.am): Likewise.
77931         * modules/fcntl-safer (Makefile.am): Likewise.
77932         * modules/fcntl (Makefile.am): Likewise.
77933         * modules/file-type (Makefile.am): Likewise.
77934         * modules/fileblocks (Makefile.am): Likewise.
77935         * modules/filemode (Makefile.am): Likewise.
77936         * modules/filenamecat (Makefile.am): Likewise.
77937         * modules/fnmatch (Makefile.am): Likewise.
77938         * modules/fopen-safer (Makefile.am): Likewise.
77939         * modules/fpending (Makefile.am): Likewise.
77940         * modules/fprintftime (Makefile.am): Likewise.
77941         * modules/free (Makefile.am): Likewise.
77942         * modules/fsusage (Makefile.am): Likewise.
77943         * modules/ftruncate (Makefile.am): Likewise.
77944         * modules/fts (Makefile.am): Likewise.
77945         * modules/gc-arcfour (Makefile.am): Likewise.
77946         * modules/gc-des (Makefile.am): Likewise.
77947         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77948         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77949         * modules/gc-md4 (Makefile.am): Likewise.
77950         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77951         * modules/gc-sha1 (Makefile.am): Likewise.
77952         * modules/gc (Makefile.am): Likewise.
77953         * modules/getaddrinfo (Makefile.am): Likewise.
77954         * modules/getcwd (Makefile.am): Likewise.
77955         * modules/getdelim (Makefile.am): Likewise.
77956         * modules/getdomainname (Makefile.am): Likewise.
77957         * modules/getgroups (Makefile.am): Likewise.
77958         * modules/gethostname (Makefile.am): Likewise.
77959         * modules/gethrxtime (Makefile.am): Likewise.
77960         * modules/getline (Makefile.am): Likewise.
77961         * modules/getloadavg (Makefile.am): Likewise.
77962         * modules/getlogin_r (Makefile.am): Likewise.
77963         * modules/getndelim2 (Makefile.am): Likewise.
77964         * modules/getopt (Makefile.am): Likewise.
77965         * modules/getpagesize (Makefile.am): Likewise.
77966         * modules/getpass-gnu (Makefile.am): Likewise.
77967         * modules/getpass (Makefile.am): Likewise.
77968         * modules/getsubopt (Makefile.am): Likewise.
77969         * modules/gettime (Makefile.am): Likewise.
77970         * modules/gettimeofday (Makefile.am): Likewise.
77971         * modules/getugroups (Makefile.am): Likewise.
77972         * modules/getusershell (Makefile.am): Likewise.
77973         * modules/glob (Makefile.am): Likewise.
77974         * modules/group-member (Makefile.am): Likewise.
77975         * modules/hard-locale (Makefile.am): Likewise.
77976         * modules/hash (Makefile.am): Likewise.
77977         * modules/hmac-md5 (Makefile.am): Likewise.
77978         * modules/hmac-sha1 (Makefile.am): Likewise.
77979         * modules/human (Makefile.am): Likewise.
77980         * modules/idcache (Makefile.am): Likewise.
77981         * modules/imaxabs (Makefile.am): Likewise.
77982         * modules/imaxdiv (Makefile.am): Likewise.
77983         * modules/inet_ntop (Makefile.am): Likewise.
77984         * modules/inet_pton (Makefile.am): Likewise.
77985         * modules/intprops (Makefile.am): Likewise.
77986         * modules/inttostr (Makefile.am): Likewise.
77987         * modules/inttypes (Makefile.am): Likewise.
77988         * modules/isapipe (Makefile.am): Likewise.
77989         * modules/javaversion (Makefile.am): Likewise.
77990         * modules/lchmod (Makefile.am): Likewise.
77991         * modules/lchown (Makefile.am): Likewise.
77992         * modules/localcharset (Makefile.am): Likewise.
77993         * modules/long-options (Makefile.am): Likewise.
77994         * modules/lstat (Makefile.am): Likewise.
77995         * modules/malloc (Makefile.am): Likewise.
77996         * modules/mathl (Makefile.am): Likewise.
77997         * modules/mbchar (Makefile.am): Likewise.
77998         * modules/md2 (Makefile.am): Likewise.
77999         * modules/md4 (Makefile.am): Likewise.
78000         * modules/md5 (Makefile.am): Likewise.
78001         * modules/memcasecmp (Makefile.am): Likewise.
78002         * modules/memchr (Makefile.am): Likewise.
78003         * modules/memcmp (Makefile.am): Likewise.
78004         * modules/memcoll (Makefile.am): Likewise.
78005         * modules/memcpy (Makefile.am): Likewise.
78006         * modules/memmem (Makefile.am): Likewise.
78007         * modules/memmove (Makefile.am): Likewise.
78008         * modules/mempcpy (Makefile.am): Likewise.
78009         * modules/memrchr (Makefile.am): Likewise.
78010         * modules/memset (Makefile.am): Likewise.
78011         * modules/memxor (Makefile.am): Likewise.
78012         * modules/mkancesdirs (Makefile.am): Likewise.
78013         * modules/mkdir-p (Makefile.am): Likewise.
78014         * modules/mkdir (Makefile.am): Likewise.
78015         * modules/mkdtemp (Makefile.am): Likewise.
78016         * modules/mkstemp (Makefile.am): Likewise.
78017         * modules/mktime (Makefile.am): Likewise.
78018         * modules/modechange (Makefile.am): Likewise.
78019         * modules/mountlist (Makefile.am): Likewise.
78020         * modules/nanosleep (Makefile.am): Likewise.
78021         * modules/obstack (Makefile.am): Likewise.
78022         * modules/openat (Makefile.am): Likewise.
78023         * modules/pagealign_alloc (Makefile.am): Likewise.
78024         * modules/pathmax (Makefile.am): Likewise.
78025         * modules/physmem (Makefile.am): Likewise.
78026         * modules/poll (Makefile.am): Likewise.
78027         * modules/posixtm (Makefile.am): Likewise.
78028         * modules/posixver (Makefile.am): Likewise.
78029         * modules/putenv (Makefile.am): Likewise.
78030         * modules/quote (Makefile.am): Likewise.
78031         * modules/quotearg (Makefile.am): Likewise.
78032         * modules/raise (Makefile.am): Likewise.
78033         * modules/read-file (Makefile.am): Likewise.
78034         * modules/readline (Makefile.am): Likewise.
78035         * modules/readlink (Makefile.am): Likewise.
78036         * modules/readtokens (Makefile.am): Likewise.
78037         * modules/readutmp (Makefile.am): Likewise.
78038         * modules/realloc (Makefile.am): Likewise.
78039         * modules/regex (Makefile.am): Likewise.
78040         * modules/rename-dest-slash (Makefile.am): Likewise.
78041         * modules/rename (Makefile.am): Likewise.
78042         * modules/rijndael (Makefile.am): Likewise.
78043         * modules/rmdir (Makefile.am): Likewise.
78044         * modules/rpmatch (Makefile.am): Likewise.
78045         * modules/safe-read (Makefile.am): Likewise.
78046         * modules/safe-write (Makefile.am): Likewise.
78047         * modules/same-inode (Makefile.am): Likewise.
78048         * modules/same (Makefile.am): Likewise.
78049         * modules/save-cwd (Makefile.am): Likewise.
78050         * modules/savedir (Makefile.am): Likewise.
78051         * modules/setenv (Makefile.am): Likewise.
78052         * modules/settime (Makefile.am): Likewise.
78053         * modules/sha1 (Makefile.am): Likewise.
78054         * modules/sig2str (Makefile.am): Likewise.
78055         * modules/snprintf (Makefile.am): Likewise.
78056         * modules/stat-macros (Makefile.am): Likewise.
78057         * modules/stat-time (Makefile.am): Likewise.
78058         * modules/stdbool (Makefile.am): Likewise.
78059         * modules/stdint (Makefile.am): Likewise.
78060         * modules/stdlib-safer (Makefile.am): Likewise.
78061         * modules/stpcpy (Makefile.am): Likewise.
78062         * modules/stpncpy (Makefile.am): Likewise.
78063         * modules/strcase (Makefile.am): Likewise.
78064         * modules/strcasestr (Makefile.am): Likewise.
78065         * modules/strchrnul (Makefile.am): Likewise.
78066         * modules/strcspn (Makefile.am): Likewise.
78067         * modules/strdup (Makefile.am): Likewise.
78068         * modules/strerror (Makefile.am): Likewise.
78069         * modules/strftime (Makefile.am): Likewise.
78070         * modules/strndup (Makefile.am): Likewise.
78071         * modules/strnlen (Makefile.am): Likewise.
78072         * modules/strpbrk (Makefile.am): Likewise.
78073         * modules/strsep (Makefile.am): Likewise.
78074         * modules/strstr (Makefile.am): Likewise.
78075         * modules/strtod (Makefile.am): Likewise.
78076         * modules/strtoimax (Makefile.am): Likewise.
78077         * modules/strtok_r (Makefile.am): Likewise.
78078         * modules/strtol (Makefile.am): Likewise.
78079         * modules/strtoll (Makefile.am): Likewise.
78080         * modules/strtoul (Makefile.am): Likewise.
78081         * modules/strtoull (Makefile.am): Likewise.
78082         * modules/strtoumax (Makefile.am): Likewise.
78083         * modules/strverscmp (Makefile.am): Likewise.
78084         * modules/sys_socket (Makefile.am): Likewise.
78085         * modules/sys_stat (Makefile.am): Likewise.
78086         * modules/sysexits (Makefile.am): Likewise.
78087         * modules/time_r (Makefile.am): Likewise.
78088         * modules/timegm (Makefile.am): Likewise.
78089         * modules/timespec (Makefile.am): Likewise.
78090         * modules/tmpfile-safer (Makefile.am): Likewise.
78091         * modules/trim (Makefile.am): Likewise.
78092         * modules/unistd-safer (Makefile.am): Likewise.
78093         * modules/unlinkdir (Makefile.am): Likewise.
78094         * modules/unlocked-io (Makefile.am): Likewise.
78095         * modules/userspec (Makefile.am): Likewise.
78096         * modules/utime (Makefile.am): Likewise.
78097         * modules/utimecmp (Makefile.am): Likewise.
78098         * modules/utimens (Makefile.am): Likewise.
78099         * modules/vasnprintf (Makefile.am): Likewise.
78100         * modules/vasprintf (Makefile.am): Likewise.
78101         * modules/vsnprintf (Makefile.am): Likewise.
78102         * modules/xalloc (Makefile.am): Likewise.
78103         * modules/xgetcwd (Makefile.am): Likewise.
78104         * modules/xnanosleep (Makefile.am): Likewise.
78105         * modules/xreadlink (Makefile.am): Likewise.
78106         * modules/xstrtod (Makefile.am): Likewise.
78107         * modules/xstrtol (Makefile.am): Likewise.
78108         * modules/xstrtold (Makefile.am): Likewise.
78109         * modules/yesno (Makefile.am): Likewise.
78110         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78111
78112 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * modules/error (Makefile.am): Distribute files through
78115         EXTRA_DIST, not lib_SOURCES.
78116
78117 2006-10-12  Eric Blake  <ebb9@byu.net>
78118
78119         * modules/error (Makefile.am): Distribute files in /lib.
78120         * modules/obstack (Makefile.am): Likewise.
78121
78122 2006-10-12  Bruno Haible  <bruno@clisp.org>
78123
78124         * modules/acl (Makefile.am): Distribute all files in lib/ through
78125         EXTRA_DIST.
78126         * modules/arcfour (Makefile.am): Likewise.
78127         * modules/arctwo (Makefile.am): Likewise.
78128         * modules/argmatch (Makefile.am): Likewise.
78129         * modules/argz (Makefile.am): Likewise.
78130         * modules/atexit (Makefile.am): Likewise.
78131         * modules/backupfile (Makefile.am): Likewise.
78132         * modules/c-strtod (Makefile.am): Likewise.
78133         * modules/c-strtold (Makefile.am): Likewise.
78134         * modules/calloc (Makefile.am): Likewise.
78135         * modules/canon-host (Makefile.am): Likewise.
78136         * modules/canonicalize (Makefile.am): Likewise.
78137         * modules/chdir-long (Makefile.am): Likewise.
78138         * modules/chdir-safer (Makefile.am): Likewise.
78139         * modules/check-version (Makefile.am): Likewise.
78140         * modules/chown (Makefile.am): Likewise.
78141         * modules/cloexec (Makefile.am): Likewise.
78142         * modules/close-stream (Makefile.am): Likewise.
78143         * modules/closeout (Makefile.am): Likewise.
78144         * modules/crc (Makefile.am): Likewise.
78145         * modules/cycle-check (Makefile.am): Likewise.
78146         * modules/des (Makefile.am): Likewise.
78147         * modules/dirfd (Makefile.am): Likewise.
78148         * modules/dirname (Makefile.am): Likewise.
78149         * modules/dup2 (Makefile.am): Likewise.
78150         * modules/euidaccess (Makefile.am): Likewise.
78151         * modules/exclude (Makefile.am): Likewise.
78152         * modules/exitfail (Makefile.am): Likewise.
78153         * modules/fcntl-safer (Makefile.am): Likewise.
78154         * modules/file-type (Makefile.am): Likewise.
78155         * modules/fileblocks (Makefile.am): Likewise.
78156         * modules/filemode (Makefile.am): Likewise.
78157         * modules/filenamecat (Makefile.am): Likewise.
78158         * modules/fnmatch (Makefile.am): Likewise.
78159         * modules/fopen-safer (Makefile.am): Likewise.
78160         * modules/fpending (Makefile.am): Likewise.
78161         * modules/fprintftime (Makefile.am): Likewise.
78162         * modules/free (Makefile.am): Likewise.
78163         * modules/fsusage (Makefile.am): Likewise.
78164         * modules/ftruncate (Makefile.am): Likewise.
78165         * modules/fts (Makefile.am): Likewise.
78166         * modules/gc (Makefile.am): Likewise.
78167         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78168         * modules/getaddrinfo (Makefile.am): Likewise.
78169         * modules/getcwd (Makefile.am): Likewise.
78170         * modules/getdelim (Makefile.am): Likewise.
78171         * modules/getdomainname (Makefile.am): Likewise.
78172         * modules/getgroups (Makefile.am): Likewise.
78173         * modules/gethostname (Makefile.am): Likewise.
78174         * modules/gethrxtime (Makefile.am): Likewise.
78175         * modules/getline (Makefile.am): Likewise.
78176         * modules/getloadavg (Makefile.am): Likewise.
78177         * modules/getlogin_r (Makefile.am): Likewise.
78178         * modules/getopt (Makefile.am): Likewise.
78179         * modules/getpass (Makefile.am): Likewise.
78180         * modules/getpass-gnu (Makefile.am): Likewise.
78181         * modules/getsubopt (Makefile.am): Likewise.
78182         * modules/gettime (Makefile.am): Likewise.
78183         * modules/gettimeofday (Makefile.am): Likewise.
78184         * modules/getugroups (Makefile.am): Likewise.
78185         * modules/getusershell (Makefile.am): Likewise.
78186         * modules/glob (Makefile.am): Likewise.
78187         * modules/group-member (Makefile.am): Likewise.
78188         * modules/hard-locale (Makefile.am): Likewise.
78189         * modules/hash (Makefile.am): Likewise.
78190         * modules/hmac-md5 (Makefile.am): Likewise.
78191         * modules/hmac-sha1 (Makefile.am): Likewise.
78192         * modules/human (Makefile.am): Likewise.
78193         * modules/idcache (Makefile.am): Likewise.
78194         * modules/imaxabs (Makefile.am): Likewise.
78195         * modules/imaxdiv (Makefile.am): Likewise.
78196         * modules/inet_ntop (Makefile.am): Likewise.
78197         * modules/inet_pton (Makefile.am): Likewise.
78198         * modules/inttostr (Makefile.am): Likewise.
78199         * modules/isapipe (Makefile.am): Likewise.
78200         * modules/lchown (Makefile.am): Likewise.
78201         * modules/long-options (Makefile.am): Likewise.
78202         * modules/lstat (Makefile.am): Likewise.
78203         * modules/malloc (Makefile.am): Likewise.
78204         * modules/mathl (Makefile.am): Likewise.
78205         * modules/mbchar (Makefile.am): Likewise.
78206         * modules/md2 (Makefile.am): Likewise.
78207         * modules/md4 (Makefile.am): Likewise.
78208         * modules/md5 (Makefile.am): Likewise.
78209         * modules/memcasecmp (Makefile.am): Likewise.
78210         * modules/memchr (Makefile.am): Likewise.
78211         * modules/memcmp (Makefile.am): Likewise.
78212         * modules/memcoll (Makefile.am): Likewise.
78213         * modules/memcpy (Makefile.am): Likewise.
78214         * modules/memmem (Makefile.am): Likewise.
78215         * modules/memmove (Makefile.am): Likewise.
78216         * modules/mempcpy (Makefile.am): Likewise.
78217         * modules/memrchr (Makefile.am): Likewise.
78218         * modules/memset (Makefile.am): Likewise.
78219         * modules/memxor (Makefile.am): Likewise.
78220         * modules/mkancesdirs (Makefile.am): Likewise.
78221         * modules/mkdir (Makefile.am): Likewise.
78222         * modules/mkdir-p (Makefile.am): Likewise.
78223         * modules/mkdtemp (Makefile.am): Likewise.
78224         * modules/mkstemp (Makefile.am): Likewise.
78225         * modules/mktime (Makefile.am): Likewise.
78226         * modules/modechange (Makefile.am): Likewise.
78227         * modules/mountlist (Makefile.am): Likewise.
78228         * modules/nanosleep (Makefile.am): Likewise.
78229         * modules/openat (Makefile.am): Likewise.
78230         * modules/pagealign_alloc (Makefile.am): Likewise.
78231         * modules/physmem (Makefile.am): Likewise.
78232         * modules/poll (Makefile.am): Likewise.
78233         * modules/posixtm (Makefile.am): Likewise.
78234         * modules/posixver (Makefile.am): Likewise.
78235         * modules/putenv (Makefile.am): Likewise.
78236         * modules/quote (Makefile.am): Likewise.
78237         * modules/quotearg (Makefile.am): Likewise.
78238         * modules/raise (Makefile.am): Likewise.
78239         * modules/read-file (Makefile.am): Likewise.
78240         * modules/readline (Makefile.am): Likewise.
78241         * modules/readlink (Makefile.am): Likewise.
78242         * modules/readtokens (Makefile.am): Likewise.
78243         * modules/readutmp (Makefile.am): Likewise.
78244         * modules/realloc (Makefile.am): Likewise.
78245         * modules/regex (Makefile.am): Likewise.
78246         * modules/rename (Makefile.am): Likewise.
78247         * modules/rename-dest-slash (Makefile.am): Likewise.
78248         * modules/rijndael (Makefile.am): Likewise.
78249         * modules/rmdir (Makefile.am): Likewise.
78250         * modules/rpmatch (Makefile.am): Likewise.
78251         * modules/safe-read (Makefile.am): Likewise.
78252         * modules/safe-write (Makefile.am): Likewise.
78253         * modules/same (Makefile.am): Likewise.
78254         * modules/save-cwd (Makefile.am): Likewise.
78255         * modules/savedir (Makefile.am): Likewise.
78256         * modules/setenv (Makefile.am): Likewise.
78257         * modules/settime (Makefile.am): Likewise.
78258         * modules/sha1 (Makefile.am): Likewise.
78259         * modules/sig2str (Makefile.am): Likewise.
78260         * modules/snprintf (Makefile.am): Likewise.
78261         * modules/stdlib-safer (Makefile.am): Likewise.
78262         * modules/stpcpy (Makefile.am): Likewise.
78263         * modules/stpncpy (Makefile.am): Likewise.
78264         * modules/strcase (Makefile.am): Likewise.
78265         * modules/strcasestr (Makefile.am): Likewise.
78266         * modules/strchrnul (Makefile.am): Likewise.
78267         * modules/strcspn (Makefile.am): Likewise.
78268         * modules/strdup (Makefile.am): Likewise.
78269         * modules/strerror (Makefile.am): Likewise.
78270         * modules/strftime (Makefile.am): Likewise.
78271         * modules/strndup (Makefile.am): Likewise.
78272         * modules/strnlen (Makefile.am): Likewise.
78273         * modules/strpbrk (Makefile.am): Likewise.
78274         * modules/strsep (Makefile.am): Likewise.
78275         * modules/strstr (Makefile.am): Likewise.
78276         * modules/strtod (Makefile.am): Likewise.
78277         * modules/strtoimax (Makefile.am): Likewise.
78278         * modules/strtok_r (Makefile.am): Likewise.
78279         * modules/strtol (Makefile.am): Likewise.
78280         * modules/strtoll (Makefile.am): Likewise.
78281         * modules/strtoul (Makefile.am): Likewise.
78282         * modules/strtoull (Makefile.am): Likewise.
78283         * modules/strtoumax (Makefile.am): Likewise.
78284         * modules/strverscmp (Makefile.am): Likewise.
78285         * modules/time_r (Makefile.am): Likewise.
78286         * modules/timegm (Makefile.am): Likewise.
78287         * modules/tmpfile-safer (Makefile.am): Likewise.
78288         * modules/unistd-safer (Makefile.am): Likewise.
78289         * modules/unlinkdir (Makefile.am): Likewise.
78290         * modules/userspec (Makefile.am): Likewise.
78291         * modules/utime (Makefile.am): Likewise.
78292         * modules/utimecmp (Makefile.am): Likewise.
78293         * modules/utimens (Makefile.am): Likewise.
78294         * modules/vasnprintf (Makefile.am): Likewise.
78295         * modules/vasprintf (Makefile.am): Likewise.
78296         * modules/vsnprintf (Makefile.am): Likewise.
78297         * modules/xalloc (Makefile.am): Likewise.
78298         * modules/xgetcwd (Makefile.am): Likewise.
78299         * modules/xnanosleep (Makefile.am): Likewise.
78300         * modules/xreadlink (Makefile.am): Likewise.
78301         * modules/xstrtod (Makefile.am): Likewise.
78302         * modules/xstrtol (Makefile.am): Likewise.
78303         * modules/xstrtold (Makefile.am): Likewise.
78304         * modules/yesno (Makefile.am): Likewise.
78305
78306 2006-10-12  Jim Meyering  <jim@meyering.net>
78307
78308         * m4/getloadavg.m4: Revert the change below.
78309
78310         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78311         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78312         fail with a symlink, which is what coreutils' ./bootstrap now
78313         creates by default.
78314
78315 2006-10-12  Bruno Haible  <bruno@clisp.org>
78316
78317         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78318         mingw.
78319         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78320         MSVC and mingw explicitly.
78321
78322 2006-10-11  Simon Josefsson  <jas@extundo.com>
78323             Bruno Haible  <bruno@clisp.org>
78324
78325         Add support for multiple gnulib-tool invocations in the scope of a
78326         single configure.ac file.
78327         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78328         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78329         with the same contents as the _LIBADD variable.
78330         (func_emit_initmacro_start, func_emit_initmacro_end,
78331         func_emit_initmacro_done): New functions.
78332         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78333         gl_LIBOBJS and gl_LTLIBOBJS.
78334
78335 2006-10-11  Bruno Haible  <bruno@clisp.org>
78336
78337         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78338         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78339         autoreconf. Instead, invoke autopoint explicitly but move back the
78340         *.m4 files from gnulib.
78341
78342 2006-10-11  Bruno Haible  <bruno@clisp.org>
78343
78344         * gnulib-tool (func_usage): Make module names after --create-testdir
78345         optional.
78346         (func_create_testdir): If no module was specified, use nearly all
78347         modules.
78348
78349 2006-10-12  Jim Meyering  <jim@meyering.net>
78350
78351         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78352         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78353         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78354         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78355         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78356         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78357         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78358         (fts_set_stat_required): New function.
78359         (fts_open): Defer the calls to fts_stat, if possible or requested.
78360         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78361         into fts_stat itself.
78362         (fts_read): Perform any required (deferred) fts_stat call.
78363         (fts_build): Likewise, for the directory we're about to open and read.
78364         In the readdir loop, carefully decide whether each entry will require
78365         an eventual call to fts_stat, using dirent.d_type info if available.
78366         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78367         a command line argument into this function.  Update all callers.
78368         Map a return value of FTS_DOT to FTS_D for a command line argument.
78369         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78370         Thanks to Miklos Szeredi for his tenacity and for the initial
78371         bug report about "find" failing on a FUSE-based file system.
78372
78373         * lib/fts.c (fts_open): Use consistent indentation.
78374
78375 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78376
78377         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78378         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78379         reported by Jim Meyering.  All uses of cache variables renamed
78380         to match Autoconf's.
78381         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78382         the other one.
78383
78384         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78385         Fix misspelling in diagnostic.
78386
78387 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78388
78389         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78390         defined.  Problem reported by Matthew Woehlke.
78391
78392         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78393         Add support for Tandem NonStop R series.
78394         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78395         Use new macro.
78396
78397         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78398         (has_trailing_slash): Omit size arg; all callers changed.
78399         Omit 'inline', since it doesn't help performance and we'd
78400         need to configure it.
78401         Don't count //, ///, etc. as having a trailing slash.
78402         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78403         (rpl_rename_dest_slash): On failure, use rename's errno rather
78404         than (in some cases) an incorrect or junk errno.
78405         Simplify code by removing need to compute length; this does
78406         cause it to make two passes instead of one over the file name,
78407         but it's worth it.
78408
78409         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78410         change, since Autoconf's version may no longer be appropriate now
78411         that we are using CVS Autoconf's version.  Add support for Tandem.
78412
78413 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78414             Bruno Haible  <bruno@clisp.org>
78415
78416         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78417         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78418         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78419         gl_AC_TYPE_LONG_LONG.
78420
78421         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78422         instead of HAVE_LONG_LONG.
78423         * lib/printf-args.c (printf_fetchargs): Likewise.
78424         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78425         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78426         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78427         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78428         gl_AC_TYPE_LONG_LONG.
78429
78430 2006-10-11  Bruno Haible  <bruno@clisp.org>
78431
78432         * m4/longlong.m4: Add comments.
78433         * m4/ulonglong.m4: Likewise.
78434
78435 2006-10-10  Bruno Haible  <bruno@clisp.org>
78436
78437         Make it possible to #define stpcpy, strdup to aliases.
78438         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78439         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78440
78441 2006-10-10  Bruno Haible  <bruno@clisp.org>
78442
78443         Make it possible to #define gcd to an alias.
78444         * lib/gcd.c: Include config.h.
78445
78446 2006-10-10  Bruno Haible  <bruno@clisp.org>
78447
78448         Make it possible to #define c_isascii to an alias.
78449         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78450         defined. Undefine the macros before defining them, to avoid gcc
78451         warnings.
78452         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78453         define NO_C_CTYPE_MACROS early.
78454
78455 2006-10-10  Bruno Haible  <bruno@clisp.org>
78456
78457         Make it possible to #define set_program_name to an alias.
78458         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78459         ENABLE_RELOCATABLE early.
78460
78461 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78464         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78465         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78466         More generally, don't assume that 64-bit signed int is available
78467         if unsigned int is, and vice versa.
78468         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78469         unsigned symbols, not on their signed counterparts.
78470         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78471         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78472         (UINT64_C, UINTMAX_C):
78473         Likewise.
78474         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78475         unsigned counterparts.
78476         (Have_long_long, Unsigned): New macros.
78477         (Int): Renamed from INT.
78478         (strtoimax): Use the new macros.
78479         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78480         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78481         * modules/inttypes (inttypes.h): Substitute
78482         HAVE_UNSIGNED_LONG_LONG_INT.
78483         * modules/stdint (stdint.h): Likewise.
78484         (Files): Add m4/ulonglong.m4.
78485
78486 2006-10-10  Bruno Haible  <bruno@clisp.org>
78487
78488         Fix a gcc -Wshadow warning.
78489         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78490         to 'bucket'.
78491         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78492         gl_linked_indexof_from_to): Likewise.
78493         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78494         Likewise.
78495         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78496         Likewise.
78497         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78498         Reported by Eric Blake.
78499
78500 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78503         for NetBSD.  Problem reported by Bruno Haible.
78504
78505 2006-10-09  Jim Meyering  <jim@meyering.net>
78506
78507         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78508         Patch from Bruno Haible.
78509
78510 2006-10-09  Jim Meyering  <jim@meyering.net>
78511
78512         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78513         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78514         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78515
78516 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         Don't include <config.h> twice; this doesn't work in some cases,
78519         e.g., when config.h has "#define intmax_t long long int" and
78520         we include <config.h>, <inttypes.h>, <config.h> in that order.
78521         Problem reported by Matthew Woehlke in:
78522         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78523         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78524         * lib/fts-cycle.c: Don't include config.h.
78525         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78526         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78527         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78528         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78529         inttypes.h.
78530         * lib/xstrtoumax.c: Likewise.
78531         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78532         __strtol and the like, so that this module is more like its siblings.
78533         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78534         Remove; no longer needed now that we assume gnulib inttypes.h.
78535
78536 2006-10-08  Bruno Haible  <bruno@clisp.org>
78537
78538         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78539         option.
78540
78541 2006-10-07  Jim Meyering  <jim@meyering.net>
78542
78543         * modules/inttypes (inttypes.h): Revert what seems to have been
78544         an inadvertent part of today's change: use "|", not "/" in the
78545         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78546
78547 2006-10-07  Bruno Haible  <bruno@clisp.org>
78548
78549         * modules/sublist: New file.
78550
78551 2006-10-07  Bruno Haible  <bruno@clisp.org>
78552
78553         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78554         * modules/argz (argz.h): Likewise.
78555         * modules/arpa_inet (arpa/inet.h): Likewise.
78556         * modules/byteswap (byteswap.h): Likewise.
78557         * modules/configmake (configmake.h): Likewise.
78558         * modules/fcntl (fcntl.h): Likewise.
78559         * modules/fnmatch (fnmatch.h): Likewise.
78560         * modules/getopt (getopt.h): Likewise.
78561         * modules/glob (glob.h): Likewise.
78562         * modules/inttypes (inttypes.h): Likewise.
78563         * modules/netinet_in (netinet/in.h): Likewise.
78564         * modules/poll (poll.h): Likewise.
78565         * modules/stdbool (stdbool.h): Likewise.
78566         * modules/stdint (stdint.h): Likewise.
78567         * modules/sys_select (sys/select.h): Likewise.
78568         * modules/sys_socket (sys/socket.h): Likewise.
78569         * modules/sys_stat (sys/stat.h): Likewise.
78570         * modules/sysexits (sysexits.h): Likewise.
78571         * modules/unistd (unistd.h): Likewise.
78572         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78573         Add a "DO NOT EDIT" comment to the generated file.
78574         (func_import): Likewise for gnulib-comp.m4.
78575
78576 2006-10-07  Bruno Haible  <bruno@clisp.org>
78577
78578         * lib/gl_sublist.h: New file.
78579         * lib/gl_sublist.c: New file.
78580
78581 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78584         name (relative to the original working directory) and the file
78585         name component (relative to the temporary working directory).  All
78586         callers changed.
78587         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78588         * lib/mkdir-p.c (make_dir_parents): Likewise.
78589         * lib/mkdir-p.h (make_dir_parents): Likewise.
78590
78591 2006-10-06  Eric Blake  <ebb9@byu.net>
78592
78593         Define several macros for use by the clean-temp module.
78594         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78596         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78597
78598         * lib/clean-temp.h (close_stream_temp): New declaration.
78599         * lib/clean-temp.c (includes): Pull in headers according to what
78600         other modules are in use.
78601         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78602
78603 2006-10-06  Bruno Haible  <bruno@clisp.org>
78604
78605         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78606         instead of fopen, fwriteerror.
78607
78608 2006-10-06  Bruno Haible  <bruno@clisp.org>
78609
78610         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78611         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78612         int.
78613         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78614         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78615         Return an error indicator.
78616         Suggested by Eric Blake.
78617
78618 2006-10-06  Bruno Haible  <bruno@clisp.org>
78619
78620         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78621         Reported by Eric Blake.
78622
78623 2006-10-06  Bruno Haible  <bruno@clisp.org>
78624
78625         * modules/closeout (Description): Mention stderr too.
78626
78627 2006-10-06  Bruno Haible  <bruno@clisp.org>
78628         and Paul Eggert  <eggert@cs.ucla.edu>
78629
78630         * lib/closeout.c (close_stdout): Also close stderr.
78631         * lib/closeout.h: Update comment.
78632
78633 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78636         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78637         * lib/dirchownmod.c: Include lchown.h.
78638         * lib/lchown.c: Don't include files that lchown.h now includes.
78639         Don't declare chown, since lchown.h now does that.
78640         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78641         (lchown): Define to rpl_chown if lchown is declared but
78642         does not exist.  Declare using a prototype if lchown is not
78643         declared.  Add a copyright notice.
78644         * lib/mkstemp.h: Include <unistd.h>.
78645         * lib/openat.c: Include lchown.h.
78646
78647         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78648         we now test for that separately.
78649         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78650         rather than O_NOFOLLOW, when testing whether it's possible to
78651         avoid a race condition reliably.
78652         * lib/savewd.c (savewd_chdir): Likewise.
78653
78654         Remove macros that are no longer needed now that stdint.h is
78655         reliable.
78656         * lib/fsusage.c (UINTMAX_MAX): Remove.
78657         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78658         * lib/utimecmp.c (SIZE_MAX): Remove.
78659
78660         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78661
78662         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78663         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78664         O_NOATIME works.
78665
78666 2006-10-05  Bruno Haible  <bruno@clisp.org>
78667
78668         * lib/gl_list.h (gl_sortedlist_search_from_to,
78669         gl_sortedlist_indexof_from_to): New declarations.
78670         (gl_list_implementation): New fields sortedlist_search_from_to,
78671         sortedlist_indexof_from_to.
78672         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78673         inline functions.
78674         * lib/gl_list.c (gl_sortedlist_search_from_to,
78675         gl_sortedlist_indexof_from_to): New functions.
78676         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78677         function.
78678         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78679         (gl_array_sortedlist_search_from_to): New function.
78680         (gl_array_list_implementation): Update.
78681         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78682         function.
78683         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78684         (gl_carray_sortedlist_search_from_to): New function.
78685         (gl_carray_list_implementation): Update.
78686         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78687         gl_linked_sortedlist_indexof_from_to): New functions.
78688         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78689         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78690         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78691         gl_tree_sortedlist_indexof_from_to): New functions.
78692         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78693         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78694         Update.
78695         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78696         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78697         Update.
78698
78699 2006-10-05  Bruno Haible  <bruno@clisp.org>
78700
78701         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78702         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78703         (struct gl_list_implementation): Add fields search_from_to,
78704         indexof_from_to. Remove fields search, indexof.
78705         (gl_list_search): Use the search_from_to method.
78706         (gl_list_search_from, gl_list_search_from_to): New functions.
78707         (gl_list_indexof): Use the indexof_from_to method.
78708         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78709         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78710         (gl_list_search_from, gl_list_search_from_to): New functions.
78711         (gl_list_indexof): Use the indexof_from_to method.
78712         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78713         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78714         gl_array_indexof. Add start_index, end_index arguments.
78715         (gl_array_search_from_to): Renamed from gl_array_search. Add
78716         start_index, end_index arguments.
78717         (gl_array_remove, gl_array_list_implementation): Update.
78718         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78719         gl_carray_indexof. Add start_index, end_index arguments.
78720         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78721         start_index, end_index arguments.
78722         (gl_carray_remove, gl_carray_list_implementation): Update.
78723         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78724         gl_linked_search. Add start_index, end_index arguments.
78725         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78726         start_index, end_index arguments.
78727         (gl_linked_remove): Update.
78728         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78729         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78730         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78731         field to 'size_t'.
78732         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78733         gl_tree_search. Add start_index, end_index arguments.
78734         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78735         start_index, end_index arguments.
78736         (gl_tree_remove): Update.
78737         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78738         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78739         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78740         function.
78741         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78742         gl_tree_search. Add start_index, end_index arguments.
78743         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78744         start_index, end_index arguments.
78745         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78746         Update.
78747         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78748
78749 2006-10-05  Bruno Haible  <bruno@clisp.org>
78750
78751         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78752
78753         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78754         fwriteerror_temp): New declarations.
78755         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78756         (descriptors): New variable.
78757         (cleanup): First, close the descriptors.
78758         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78759         fclose_temp, fwriteerror_temp): New functions.
78760
78761 2006-10-04  Jim Meyering  <jim@meyering.net>
78762
78763         * lib/fts.c (fts_open): Tiny comment change.
78764
78765 2006-10-04  Bruno Haible  <bruno@clisp.org>
78766
78767         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78768         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78769         gl_LOCK_BODY.
78770         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78771         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78772         gl_LOCK_EARLY_BODY.
78773         (gl_LOCK): Require gl_LOCK_BODY.
78774
78775 2006-10-04  Bruno Haible  <bruno@clisp.org>
78776
78777         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78778         (gl_oset_search_atleast): New declaration.
78779         (struct gl_oset_implementation): Add field 'search_atleast'.
78780         (gl_oset_search_atleast): New inline function.
78781         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78782         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78783         (gl_array_oset_implementation): Update.
78784         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78785         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78786         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78787
78788 2006-10-04  Bruno Haible  <bruno@clisp.org>
78789
78790         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78791
78792 2006-10-03  Bruno Haible  <bruno@clisp.org>
78793
78794         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78795         from gl_avltreehash_list_implementation.
78796
78797 2006-10-03  Bruno Haible  <bruno@clisp.org>
78798
78799         * lib/gl_oset.c (gl_oset_add): Fix return type.
78800
78801 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78802
78803         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78804
78805 2006-10-02  Eric Blake  <ebb9@byu.net>
78806
78807         * modules/strnlen (Depends-on): Add extensions.
78808
78809 2006-10-02  Eric Blake  <ebb9@byu.net>
78810
78811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78812         definition in 2.60+.
78813
78814 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78815
78816         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78817         checks.
78818
78819 2006-10-02  Bruno Haible  <bruno@clisp.org>
78820
78821         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78822         to the AUTOMAKE_OPTIONS.
78823         Reported by Jim Meyering.
78824
78825 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         Work around bug in Solaris 10 /proc file system:
78828         /proc/self/fd/NNN/.. isn't the parent directory of
78829         the directory whose file descriptor is NNN.  This needs to
78830         be worked around at run time, not compile time, since a
78831         program might be built on Solaris 8, where things work, and
78832         run on Solaris 10.
78833         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78834         to use the following interface instead:
78835         (OPENAT_BUFFER_SIZE): New macro.
78836         (openat_proc_name): New function.
78837         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78838         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78839         Likewise.
78840         * lib/openat-proc.c: New file.
78841         * modules/openat (Files): Add lib/openat-proc.c.
78842         (Depends-on): Add same-inode, stdbool.
78843         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78844
78845 2006-09-29  Bruno Haible  <bruno@clisp.org>
78846
78847         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78848         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78849         argument. Set stdout_closed before testing for ferror, not after.
78850         (fwriteerror, fwriteerror_no_ebadf): New functions.
78851
78852 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78853
78854         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78855
78856 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78857
78858         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78859         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78860
78861 2006-09-28  Jim Meyering  <jim@meyering.net>
78862
78863         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78864         Include <unistd.h>.
78865
78866 2006-09-28  Bruno Haible  <bruno@clisp.org>
78867
78868         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78869         * modules/linkedhash-list (Depends-on): Likewise.
78870         * modules/rbtreehash-list (Depends-on): Likewise.
78871
78872 2006-09-28  Bruno Haible  <bruno@clisp.org>
78873
78874         * lib/strndup.h: Simplify the redefinition of strndup.
78875         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78877
78878 2006-09-28  Bruno Haible  <bruno@clisp.org>
78879
78880         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78881         * lib/gl_linkedhash_list.c: Likewise.
78882         * lib/gl_rbtreehash_list.c: Likewise.
78883
78884 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78887         getaddrinfo.
78888
78889         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78890         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78891         it causes <stdio_ext.h> to cause a compile-time error.
78892         Problem reported by Nelson H. F. Beebe.
78893         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78894         of HAVE_DECL___PENDING.
78895
78896         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78897         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78898         declaration.
78899
78900 2006-09-27  Jim Meyering  <jim@meyering.net>
78901
78902         This file could end up with a definition for a function
78903         named __strndup, rather than rpl_strndup on a system with
78904         incomplete weak_alias support.
78905         * lib/strndup.c (strndup): Rename from __strndup.
78906         Remove #defines that used to map __strndup to strndup.
78907         Don't use K&R prototypes.
78908         Remove LIBC-related code, since this file is not sync'd with glibc.
78909         * lib/strndup.h: Revamp, accordingly.
78910         * m4/strndup.m4: Modernize.
78911
78912 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         * modules/savewd (Depends-on): Add 'raise'.
78915         * lib/savewd.c: Include <signal.h>, for 'raise'.
78916
78917 2006-09-26  Jim Meyering  <jim@meyering.net>
78918
78919         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78920         when we detect Darwin 8.7.0's acl_get_file bug.
78921         Rearrange to perform the new (below) run-test while $LIBS
78922         contains any acl-related library.  Set USE_ACL at the end.
78923         (gl_ACL_GET_FILE): New function.
78924
78925 2006-09-26  Eric Blake  <ebb9@byu.net>
78926
78927         * lib/verror.c: Include <config.h> unconditionally.
78928
78929 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78930
78931         * modules/clock-time (Maintainer): Add self.
78932         * modules/getlogin_r (Depends-on): Add extensions.
78933
78934 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78935
78936         * modules/clock-time: New module.
78937         * modules/nanosleep (Depends-on): Add clock-time.
78938         * modules/gethrxtime (Depends-on): Likewise.
78939         * modules/gettime (Depends-on): Likewise.
78940         * modules/settime (Depends-on): Likewise.
78941
78942         * modules/fts-lgpl: Depend on openat.
78943         * modules/mkancesdirs: Depend on savewd.
78944         * modules/mkdir-p: Likewise.
78945
78946 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78947
78948         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78949
78950         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78951         `gl_have_arbitrary_file_name_length_limit' to
78952         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78953         actually works between configure runs.
78954
78955 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78956             Bruno Haible  <bruno@clisp.org>
78957
78958         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78959
78960 2006-09-25  Jim Meyering  <jim@meyering.net>
78961
78962         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78963         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78964
78965 2006-09-25  Eric Blake  <ebb9@byu.net>
78966
78967         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78968         exec's in 2006-09-18 patch when shuffling fds.
78969
78970 2006-09-25  Bruno Haible  <bruno@clisp.org>
78971
78972         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78973         Reported by Jim Meyering.
78974
78975 2006-09-24  Jim Meyering  <jim@meyering.net>
78976
78977         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78978         compare a pointer against a literal "0".  That caused failures with
78979         at least HP-UX's hpcc.
78980
78981 2006-09-22  Simon Josefsson  <jas@extundo.com>
78982
78983         * modules/gc-sha1:
78984         * modules/gc-md4:
78985         * modules/gc-hmac-sha1:
78986         * modules/gc-hmac-md5:
78987         * modules/gc-des:
78988         * modules/gc-arcfour: Distribute more files.
78989
78990 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78991
78992         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78993         (gl_linked_iterator_from_to): Initialize struct completely.
78994         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78995         (gl_tree_iterator_from_to): Likewise
78996         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78997         * lib/gl_array_list.c [lint] (gl_array_iterator)
78998         (gl_array_iterator_from_to): Likewise.
78999         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
79000         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
79001         (gl_carray_iterator_from_to): Likewise.
79002
79003         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
79004         * lib/md4.c (md4_process_block): Remove unused variable.
79005         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
79006         parentheses for clarity.
79007
79008 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79009
79010         * modules/bison-i18n (Depends-on): Add gettext.
79011
79012 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79013
79014         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
79015         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79016         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
79017         also add missing comma that caused broken test.
79018         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
79019         stdlib.h, for `abort'.
79020         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
79021         variables.
79022         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
79023         include unistd.h if present, for `rmdir'.
79024         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
79025         variables.
79026         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
79027         in the process include standard headers for prototypes.
79028         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
79029         gets declared on GNU/Linux.
79030         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
79031         unistd.h, for `rmdir'.
79032         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
79033
79034         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
79035         always true.
79036         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
79037
79038         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
79039
79040 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79041
79042         * gnulib-tool (func_version): Create output all at once.  This
79043         may help avoid triggering unnecessary SIGPIPEs, and at any
79044         rate it doesn't hurt.
79045
79046 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79047             Bruno Haible  <bruno@clisp.org>
79048
79049         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
79050         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79051         * m4/signed.m4 (bh_C_SIGNED): Likewise.
79052
79053         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
79054         (gl_FUNC_VASPRINTF): Invoke it.
79055
79056 2006-09-22  Bruno Haible  <bruno@clisp.org>
79057
79058         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
79059         getloadavg.c as first argument.
79060
79061 2006-09-22  Bruno Haible  <bruno@clisp.org>
79062
79063         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
79064         at the beginning of the gl_INIT macro.
79065         * modules/getloadavg (configure.ac): Pass $gl_source_base to
79066         gl_GETLOADAVG.
79067
79068 2006-09-22  Bruno Haible  <bruno@clisp.org>
79069
79070         * gnulib-tool (func_create_megatestdir): Don't include the config-h
79071         module.
79072         Suggested by Ralf Wildenhues.
79073
79074 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79075
79076         Import this patch from libc:
79077
79078         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79079
79080         * lib/regex_internal.c (re_string_reconstruct): Handle
79081         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79082         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79083         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79084         re_string_context_at.
79085
79086         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79087         now requires it.
79088         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79089         gl_REGEX now does it for us.
79090         (gl_REGEX): Add test taken from
79091         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79092
79093         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79094         Check that large offsets work.  Modernize Autoconf usages.
79095         Prefer "yes" to mean a good thing rather than a bad.
79096         Don't put "#define mkstemp" in config.h, as this might interfere
79097         with standard system headers that "#define mkstemp mkstemp64".
79098
79099         * modules/mkstemp (Depends-on): Add extensions, so that
79100         mkstemp is visible on some platforms.
79101         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79102         (Include): Change to "mkstemp.h" from <stdlib.h>.
79103         (Files): Add mkstemp.h.
79104
79105         * lib/mkstemp.h: New file, since some standard headers
79106         #define mkstemp.
79107         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79108         Include "mkstemp.h".
79109         Make the _LIBC code resemble glibc original more,
79110         e.g., use K&R style.
79111         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79112         (mkstemp): Remove, since mkstemp.h does this for us.
79113         * lib/stdlib--.h: Include mkstemp.h.
79114
79115         Import this patch from libc:
79116
79117         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79118
79119         * lib/tempname.c (__gen_tempname): Change attempts_min
79120         into a macro.  Use preprocessor to decide how to initialize
79121         attempts [Coverity CID 67].
79122
79123 2006-09-20  Bruno Haible  <bruno@clisp.org>
79124
79125         * lib/mkdtemp.c: Import from libc.
79126         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79127                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79128                 attempts_min into a macro.  Use preprocessor to decide how to
79129                 initialize attempts [Coverity CID 67].
79130         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79131                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79132                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79133
79134 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79135
79136         * gnulib-tool (func_exit): New function, to allow to pass the
79137         exit status portably through the trap.  Use everywhere.
79138         (--help, --version): Signal a write error.
79139         (trap): catch SIGPIPE, for write errors.
79140         Exit at the end of the trap, with the correct exit status.
79141
79142 2006-09-19  Karl Berry  <karl@gnu.org>
79143
79144         * doc/gnulib.texi: note about the license texinfo files.
79145
79146 2006-09-19  Eric Blake  <ebb9@byu.net>
79147
79148         * gnulib-tool: Avoid space-tab.
79149
79150 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79151
79152         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79153         that prevented coreutils 6.1 from building.  Problem reported
79154         by Petter Reinholdtsen.
79155
79156 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * gnulib-tool (avoidlist): Fix typo that broke options like
79159         --avoid=lock that are used by coreutils bootstrap.
79160
79161 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79162
79163         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79164         more systematically.
79165
79166 2006-09-18  Jim Meyering  <jim@meyering.net>
79167
79168         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79169
79170 2006-09-18  Bruno Haible  <bruno@clisp.org>
79171
79172         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79173
79174 2006-09-18  Bruno Haible  <bruno@clisp.org>
79175
79176         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79177         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79178         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79179         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79180         * m4/gettext.m4: Require autoconf >= 2.52.
79181         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79182         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79183         of gl_cv_header_inttypes_h.
79184
79185 2006-09-18  Bruno Haible  <bruno@clisp.org>
79186
79187         * lib/javaversion.c: Include configmake.h.
79188
79189 2006-09-18  Bruno Haible  <bruno@clisp.org>
79190
79191         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79192         avoid that the while loops be executed in a subshell.
79193
79194 2006-09-18  Bruno Haible  <bruno@clisp.org>
79195
79196         * MODULES.html.sh (func_module): Break long lines.
79197         Suggested by Bruce Korb <bkorb@gnu.org>.
79198
79199 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79200
79201         Speed up by a factor of 1.12.
79202         * gnulib-tool (nl): New variable.
79203         (func_import): Rewrite include directive extraction to only read each
79204         directive once.
79205
79206 2006-09-17  Bruno Haible  <bruno@clisp.org>
79207
79208         * modules/javaversion (Makefile.am): Remove DEFS setting.
79209         (Depends-on): Add configmake, for PKGDATADIR definition.
79210
79211 2006-09-17  Bruno Haible  <bruno@clisp.org>
79212
79213         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79214
79215 2006-09-17  Bruno Haible  <bruno@clisp.org>
79216
79217         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79218         (func_modules_transitive_closure, func_modules_add_dummy,
79219         func_modules_to_filelist, func_import, func_create_testdir,
79220         func_create_megatestdir, ...): Use it wherever possible.
79221         Suggested by Ralf Wildenhues.
79222
79223 2006-09-16  Karl Berry  <karl@gnu.org>
79224
79225         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79226         to avoid sectioning errors.
79227         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79228         [ifinfo]: blank line after @center-ed titles.
79229         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79230         Spell FSF address consistently with others.
79231         (These changes approved by rms.)
79232
79233 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79234
79235         Speed up by a factor of 1.61.
79236         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79237         already checked module names again.
79238
79239 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79240
79241         Speed up by a factor of 1.13.
79242         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79243         for new_files, and the input to func_add_or_update.
79244
79245 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79246
79247         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79248         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79249
79250 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * modules/mkancesdirs (Depends-on): Add fcntl.
79253         * modules/savewd: New file.
79254         * MODULES.html.sh (File system functions): Add savewd.
79255
79256         * modules/configmake (Makefile.am): Add support for the
79257         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79258
79259 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79260
79261         * m4/savewd.m4: New file.
79262
79263 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79266         (dirchownmod): New arg FD.  All callers changed.
79267         Use FD rather than opening the directory ourself, as opening is
79268         now the caller's responsibility.
79269         * lib/dirchownmod.h: Likewise.
79270         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79271         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79272         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79273         (test_dir): Remove.
79274         (mkancesdirs): Return length of prefix of FILE that has already
79275         been made, or -2 if there is a child doing the work.  Redo
79276         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79277         ".", and treat ".." specially since it might stray back into
79278         already-created areas.  Use a subprocess if necessary.  New arg
79279         WD; all users changed.  MAKE_DIR function should now return 1
79280         if it creates a directory that is not readable.  Return -2 if
79281         a child process is spun off.
79282         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79283         Adjust signature to match code.
79284         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79285         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79286         all users changed.
79287         * lib/savewd.c, lib/savewd.h: New files.
79288
79289 2006-09-15  Jim Meyering  <jim@meyering.net>
79290
79291         * modules/rename-dest-slash: New module.
79292         * MODULES.html.sh (posix_compat): Add it here.
79293
79294         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79295
79296 2006-09-15  Jim Meyering  <jim@meyering.net>
79297
79298         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79299         file.
79300
79301         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79302
79303 2006-09-15  Jim Meyering  <jim@meyering.net>
79304
79305         * lib/rename-dest-slash.c (has_trailing_slash): Use
79306         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79307         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79308         test before testing whether SRC is a directory.
79309         Suggestions from Bruno Haible.
79310
79311         Avoid a warning about an unused variable.
79312         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79313         into the #ifdef block where it's used.
79314
79315         * lib/rename-dest-slash.c: New file.
79316
79317 2006-09-14  Bruno Haible  <bruno@clisp.org>
79318
79319         * lib/allocsa.c: Include <config.h> unconditionally.
79320         * lib/asnprintf.c: Likewise.
79321         * lib/asprintf.c: Likewise.
79322         * lib/c-strcasecmp.c: Likewise.
79323         * lib/c-strcasestr.c: Likewise.
79324         * lib/c-strncasecmp.c: Likewise.
79325         * lib/c-strstr.c: Likewise.
79326         * lib/classpath.c: Likewise.
79327         * lib/clean-temp.c: Likewise.
79328         * lib/concatpath.c: Likewise.
79329         * lib/copy-file.c: Likewise.
79330         * lib/csharpcomp.c: Likewise.
79331         * lib/csharpexec.c: Likewise.
79332         * lib/execute.c: Likewise.
79333         * lib/fatal-signal.c: Likewise.
79334         * lib/findprog.c: Likewise.
79335         * lib/fwriteerror.c: Likewise.
79336         * lib/gl_array_list.c: Likewise.
79337         * lib/gl_array_oset.c: Likewise.
79338         * lib/gl_avltree_list.c: Likewise.
79339         * lib/gl_avltree_oset.c: Likewise.
79340         * lib/gl_avltreehash_list.c: Likewise.
79341         * lib/gl_carray_list.c: Likewise.
79342         * lib/gl_linked_list.c: Likewise.
79343         * lib/gl_linkedhash_list.c: Likewise.
79344         * lib/gl_list.c: Likewise.
79345         * lib/gl_oset.c: Likewise.
79346         * lib/gl_rbtree_list.c: Likewise.
79347         * lib/gl_rbtree_oset.c: Likewise.
79348         * lib/gl_rbtreehash_list.c: Likewise.
79349         * lib/imaxabs.c: Likewise.
79350         * lib/imaxdiv.c: Likewise.
79351         * lib/javacomp.c: Likewise.
79352         * lib/javaexec.c: Likewise.
79353         * lib/javaversion.c: Likewise.
79354         * lib/linebreak.c: Likewise.
79355         * lib/localcharset.c: Likewise.
79356         * lib/lock.c: Likewise.
79357         * lib/mbchar.c: Likewise.
79358         * lib/mbswidth.c: Likewise.
79359         * lib/mkdtemp.c: Likewise.
79360         * lib/pipe.c: Likewise.
79361         * lib/printf-args.c: Likewise.
79362         * lib/printf-parse.c: Likewise.
79363         * lib/progname.c: Likewise.
79364         * lib/progreloc.c: Likewise.
79365         * lib/readlink.c: Likewise.
79366         * lib/sh-quote.c: Likewise.
79367         * lib/stpcpy.c: Likewise.
79368         * lib/stpncpy.c: Likewise.
79369         * lib/strcasecmp.c: Likewise.
79370         * lib/strcasestr.c: Likewise.
79371         * lib/strcspn.c: Likewise.
79372         * lib/striconv.c: Likewise.
79373         * lib/strncasecmp.c: Likewise.
79374         * lib/strnlen1.c: Likewise.
79375         * lib/strstr.c: Likewise.
79376         * lib/strtok_r.c: Likewise.
79377         * lib/tls.c: Likewise.
79378         * lib/tmpdir.c: Likewise.
79379         * lib/unicodeio.c: Likewise.
79380         * lib/unsetenv.c: Likewise.
79381         * lib/vasnprintf.c: Likewise.
79382         * lib/vasprintf.c: Likewise.
79383         * lib/wait-process.c: Likewise.
79384         * lib/xallocsa.c: Likewise.
79385         * lib/xsetenv.c: Likewise.
79386         * lib/xstriconv.c: Likewise.
79387
79388 2006-09-13  Simon Josefsson  <jas@extundo.com>
79389
79390         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79391         that internally, suggested by Ralf Wildenhues
79392         <Ralf.Wildenhues@gmx.de>.
79393
79394 2006-09-13  Simon Josefsson  <jas@extundo.com>
79395
79396         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79397         @LIBOBJS@.
79398         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79399
79400 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79401
79402         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79403         longer worry about uses that don't define HAVE_CONFIG_H.
79404         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79405         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79406         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79407         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79408         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79409         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79410         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79411         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79412         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79413         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79414         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79415         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79416         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79417         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79418         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79419         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79420         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79421         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79422         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79423         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79424         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79425         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79426         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79427         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79428         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79429         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79430         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79431         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79432         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79433         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79434         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79435         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79436         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79437         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79438         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79439         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79440         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79441         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79442         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79443         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79444         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79445         Likewise.
79446
79447 2006-09-13  Eric Blake  <ebb9@byu.net>
79448
79449         * lib/getopt.c: Fix typo in last commit.
79450
79451 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79452
79453         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79454         dgettext.
79455
79456 2006-09-12  Jim Meyering  <jim@meyering.net>
79457
79458         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79459         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79460         Reported by Nelson H. F. Beebe.
79461
79462 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79463
79464         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79465         program_invocation_name and program_invocation_short_name are
79466         initialized.
79467         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79468         and program_invocation_short_name to argp.h, so they are visible
79469         to user programs.
79470         * lib/argp.h: Likewise
79471
79472 2006-09-10  Bruno Haible  <bruno@clisp.org>
79473
79474         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79475         m4/inttypes_h.m4, m4/uintmax_t.m4.
79476
79477 2006-09-10  Bruno Haible  <bruno@clisp.org>
79478
79479         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79480         gl_AC_TYPE_UINTMAX_T.
79481
79482 2006-09-10  Bruno Haible  <bruno@clisp.org>
79483
79484         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79485
79486 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79487
79488         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79489         convention.  Text proposed by Bruno Haible.
79490         (struct argp_option): Document the use of N_() wrappers.
79491
79492         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79493         '\v', and translate the two parts separately, instead of feeding
79494         the whole string to gettext.  This allows to exclude
79495         '\v' from the strings visible to the translator by writing doc
79496         strings as N_("..") "\v" N_("..").
79497
79498 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * config/srclist.txt: Undo latest change; the bug was fixed.
79501
79502 2006-09-09  Bruno Haible  <bruno@clisp.org>
79503
79504         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79505         assignments if building a library without libtool.
79506         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79507         in func_emit_lib_Makefile_am.
79508         (func_import): When building a static library libfoo.a, arrange to
79509         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79510         (func_create_testdir): Likewise.
79511         * modules/gc (configure.ac, Makefile.am): If building statically,
79512         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79513         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79514         * modules/striconv (configure.ac, Makefile.am): Likewise.
79515         Based on a suggestion by Ralf Wildenhues.
79516
79517 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79520         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79521         Also:
79522
79523         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79524         Add year_2050_test to catch glibc bug 2821
79525         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79526
79527         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79528         Prefer #ifdef to #if.
79529
79530         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79531         Return from 'main' instead of calling 'exit'.
79532
79533 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79534
79535         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79536         returned the maximum time_t value rather than (time_t) -1.
79537         Problem originally reported by William Bardwell
79538         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79539
79540         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79541         Moved to here ...
79542         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79543         ... from here.
79544
79545 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79548         2821 is fixed.
79549
79550 2006-09-08  Jim Meyering  <jim@meyering.net>
79551
79552         Don't make generated files read-only.  That would bother too many
79553         people.  However, do retain the ability to work when targets are
79554         read-only: remove the destination and temporary files before writing
79555         them (when generated via sed or echo), or by using the -f option for
79556         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79557         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79558         * modules/byteswap, modules/configmake, modules/fcntl:
79559         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79560         * modules/localcharset, modules/netinet_in, modules/poll:
79561         * modules/stdbool, modules/stdint, modules/sys_select:
79562         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79563
79564 2006-09-08  Jim Meyering  <jim@meyering.net>
79565
79566         Avoid new build failure on FreeBSD 6.0.
79567         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79568         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79569         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79570
79571 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79572
79573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79574
79575 2006-09-07  Jim Meyering  <jim@meyering.net>
79576
79577         Fix global typo in last change: use chmod u-w, not chmod u-x.
79578         Spotted by Paul Eggert and Bruce Korb.
79579         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79580         * modules/byteswap, modules/configmake, modules/fcntl:
79581         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79582         * modules/localcharset, modules/netinet_in, modules/poll:
79583         * modules/stdbool, modules/stdint, modules/sys_select:
79584         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79585
79586 2006-09-06  Jim Meyering  <jim@meyering.net>
79587
79588         Make generated files be read-only.
79589         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79590         Ensure that each generated file is now read-only.
79591         * modules/argz: Likewise.
79592         * modules/arpa_inet: Likewise.
79593         * modules/byteswap: Likewise.
79594         * modules/configmake: Likewise.
79595         * modules/fcntl: Likewise.
79596         * modules/fnmatch: Likewise.
79597         * modules/getopt: Likewise.
79598         * modules/glob: Likewise.
79599         * modules/inttypes: Likewise.
79600         * modules/netinet_in: Likewise.
79601         * modules/poll: Likewise.
79602         * modules/stdbool: Likewise.
79603         * modules/stdint: Likewise.
79604         * modules/sys_select: Likewise.
79605         * modules/sys_socket: Likewise.
79606         * modules/sys_stat: Likewise.
79607         * modules/sysexits: Likewise.
79608         * modules/localcharset: Same as above, but continue using temporary
79609         file named "t-$@" (why different?) rather than the "$@-t" used
79610         everywhere else.
79611
79612         * modules/sysexits (Makefile.am): Replace literal occurrences
79613         of "sysexit.h" more readable, and more consistent, "$@".
79614
79615 2006-09-06  Bruno Haible  <bruno@clisp.org>
79616
79617         * modules/striconv: New file.
79618         * modules/xstriconv: New file.
79619         * MODULES.html.sh (Internationalization functions): Add striconv,
79620         xstriconv.
79621
79622 2006-09-06  Bruno Haible  <bruno@clisp.org>
79623
79624         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79625         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79626         not using libtool correctly.
79627
79628 2006-09-06  Bruno Haible  <bruno@clisp.org>
79629
79630         * lib/striconv.h: New file.
79631         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79632         iconvstring.c.
79633         * lib/xstriconv.h: New file.
79634         * lib/xstriconv.c: New file.
79635
79636 2006-09-06  Bruno Haible  <bruno@clisp.org>
79637
79638         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79639         lib_..._LDFLAGS.
79640
79641 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79642
79643         * lib/argz_.h: Sync from Libtool.
79644
79645         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79646                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79647
79648         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79649
79650 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79651
79652         * modules/trim: New file.
79653
79654 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79655
79656         * lib/trim.h: New file.
79657         * lib/trim.c: New file.
79658
79659 2006-09-05  Bruno Haible  <bruno@clisp.org>
79660
79661         * MODULES.html.sh (String handling): Add trim.
79662
79663 2006-09-04  Karl Berry  <karl@gnu.org>
79664
79665         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79666         until next release.
79667
79668 2006-09-03  Bruno Haible  <bruno@clisp.org>
79669
79670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79671         correctly.
79672
79673 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79674
79675         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79676         not gl_GETLOADAVG.  Omit unneeded semicolons.
79677         Problems reported by Ralf Wildenhues in
79678         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79679         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79680         at the end, which is the usual gnulib style.
79681
79682         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79683         of doing all the work ourselves.
79684         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79685         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79686
79687 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79690         Problem reported by Ralf Wildenhues in
79691         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79692
79693         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79694         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79695
79696 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79697
79698         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79699         yesterday's patch by changing test -n to test -z.
79700
79701 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79704         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79705         the former is now obsolescent.
79706
79707         * modules/chdir-long (Depends-on): Add fcntl.
79708
79709 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79710
79711         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79712         obsolescent, and programs should use gnulib instead.
79713         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79714         but with prefixes changed.
79715
79716 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79719         or stdbool.h, because they might not exist while configuring.
79720
79721         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79722         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79723         does that for us.
79724         (O_DIRECTORY): Remove.
79725
79726 2006-08-31  Eric Blake  <ebb9@byu.net>
79727
79728         * gnulib-tool: Don't let emacs change spaces to TAB.
79729
79730 2006-08-31  Bruno Haible  <bruno@clisp.org>
79731
79732         * gnulib-tool: When calling func_import more than once, do it in a
79733         subshell.
79734         Reported by Eric Blake <ebb9@byu.net>.
79735
79736 2006-08-31  Bruno Haible  <bruno@clisp.org>
79737
79738         * gnulib-tool (nl): Remove variable.
79739         (sed_transform_lib_file): Use more robust test for config-h module.
79740         (func_import): Fix typo in 2006-08-25 patch.
79741
79742 2006-08-31  Bruno Haible  <bruno@clisp.org>
79743
79744         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79745         specified, augment Makefile.am variables instead of assigning them.
79746
79747 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         Work around a bug in both the Linux and SunOS 64-bit kernels:
79750         nanosleep mishandles sleeps for longer than 2**31 seconds.
79751         Problem reported by Frank v Waveren in
79752         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79754         Check for nanosleep bug.
79755         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79756
79757 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79758
79759         Work around a bug in both the Linux and SunOS 64-bit kernels:
79760         nanosleep mishandles sleeps for longer than 2**31 seconds.
79761         Problem reported by Frank v Waveren in
79762         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79763         * lib/nanosleep.c (BILLION): New constant.
79764         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79765         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79766         implementation.
79767
79768 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * modules/nanosleep (Depends-on): Add gettime.
79771
79772 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79773         and Simon Josefsson  <jas@extundo.com>
79774         and Oskar Liljeblad  <oskar@osk.mine.nu>
79775
79776         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79777         * gnulib-tool (func_import): New license type 'unmodifiable license
79778         text'.
79779         * modules/fdl: Use it.  Longer description.
79780         * module/gpl, module/lgpl: New files.
79781
79782 2006-08-30  Jim Meyering  <jim@meyering.net>
79783
79784         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79785         shadowing the parameter.
79786
79787 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79788
79789         Sync from Libtool:
79790
79791         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79792
79793         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79794         sharing with gnulib.  Report by Eric Blake.
79795
79796 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * modules/isapipe: New file.
79799         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79800
79801 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79802
79803         * modules/configmake (Makefile.am): Add a comment, and omit
79804         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79805         by Bruno Haible.
79806
79807 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         * m4/isapipe.m4: New file.
79810
79811 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         * lib/isapipe.c, lib/isapipe.h: New files.
79814
79815 2006-08-29  Jim Meyering  <jim@meyering.net>
79816
79817         * modules/configmake (Makefile.am): Make configmake.h depend on
79818         Makefile.  Otherwise, a stale configmake.h could hang around.
79819
79820 2006-08-29  Eric Blake  <ebb9@byu.net>
79821
79822         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79823         resolution of upstream bug 3044.
79824
79825 2006-08-29  Bruno Haible  <bruno@clisp.org>
79826
79827         * modules/localcharset (Depends-on): Add configmake.
79828         (Makefile.am): Remove setting of LIBDIR through DEFS.
79829
79830 2006-08-29  Bruno Haible  <bruno@clisp.org>
79831
79832         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79833         defined.
79834
79835 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79836
79837         * modules/fcntl: New file.
79838         * modules/chdir-safer (Depends-on): Add fcntl.
79839         * modules/fts: Likewise.
79840         * modules/mkdir-p: Likewise.
79841
79842         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79843         This undoes the most recent change, since we're now addressing the
79844         problem in a different way.
79845
79846         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79847         into output, since the output might be called Makefile.am even
79848         if $makefile_name is something different.
79849         (func_import): Use $makefile_am rather than
79850         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79851         empty.
79852
79853         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79854
79855 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79856
79857         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79858         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79859         recent change to stdint.m4, since we're now addressing the problem in a
79860         different way.
79861
79862 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79863
79864         * m4/fcntl_h.m4: New file.
79865
79866 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79867
79868         * lib/fcntl_.h: New file.
79869         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79870         the fcntl module.
79871         * lib/dirchownmod.c: Likewise.
79872         * lib/fts.c: Likewise.
79873
79874         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79875         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79876         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79877         just before including <inttypes.h>, to avoid circular inclusion.
79878
79879 2006-08-28  Jim Meyering  <jim@meyering.net>
79880
79881         * doc/visibility.texi: Actually read and correct the grammar of the
79882         sentence affected by yesterday's change.
79883
79884 2006-08-28  Eric Blake  <ebb9@byu.net>
79885
79886         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79887         needs wrapper.
79888
79889 2006-08-28  Eric Blake  <ebb9@byu.net>
79890
79891         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79892
79893 2006-08-28  Eric Blake  <ebb9@byu.net>
79894
79895         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79896
79897 2006-08-28  Bruno Haible  <bruno@clisp.org>
79898
79899         * modules/c-strstr: New file, from GNU gettext.
79900         * MODULES.html.sh (String handling): Add c-strstr.
79901
79902 2006-08-28  Bruno Haible  <bruno@clisp.org>
79903
79904         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79905         macros.
79906         Reported by Eric Blake.
79907
79908 2006-08-28  Bruno Haible  <bruno@clisp.org>
79909
79910         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79911         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79912         * lib/vasprintf.c: Include errno.h, limits.h.
79913         (EOVERFLOW): New fallback definition.
79914         (vasprintf): Test here whether the string length is > INT_MAX.
79915         * lib/vsnprintf.c: Include errno.h, limits.h.
79916         (EOVERFLOW): New fallback definition.
79917         (vsnprintf): Fix bug when generated string was too long for the buffer.
79918         Test here whether the string length is > INT_MAX.
79919
79920 2006-08-28  Bruno Haible  <bruno@clisp.org>
79921
79922         * lib/inttypes_.h (SCNX*): Remove definitions.
79923         Reported by Eric Blake.
79924
79925 2006-08-28  Bruno Haible  <bruno@clisp.org>
79926
79927         * lib/c-strstr.h: New file, from GNU gettext.
79928         * lib/c-strstr.c: New file, from GNU gettext.
79929
79930 2006-08-28  Bruno Haible  <bruno@clisp.org>
79931
79932         * gnulib-tool: Reorder some statements.
79933
79934 2006-08-28  Bruno Haible  <bruno@clisp.org>
79935
79936         * gnulib-tool: New option --makefile-name.
79937         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79938         $makefile_name.
79939         (func_import): Write $makefile_name to the cache file, and read it from
79940         there unless explicitly specified. Use $makefile_name as file name
79941         instead of Makefile.am. Adjust the recommendations accordingly.
79942
79943 2006-08-28  Bruno Haible  <bruno@clisp.org>
79944
79945         * gnulib-tool (func_verify_module): Check against misapplying patch.
79946
79947 2006-08-28  Bruno Haible  <bruno@clisp.org>
79948
79949         * gnulib-tool (func_relativize, func_relconcat): New functions.
79950         Give an error if --local-dir is given with --update.
79951         Remove trailing slashes from $local_gnulib_dir.
79952         (func_import): Store the relativized $local_gnulib_dir in
79953         gnulib-cache.m4, and read it from there if not specified explicitly.
79954
79955 2006-08-28  Bruno Haible  <bruno@clisp.org>
79956
79957         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79958         is the current directory. Respect also $local_gnulib_dir.
79959
79960 2006-08-28  Bruno Haible  <bruno@clisp.org>
79961             Simon Josefsson  <jas@extundo.com>
79962
79963         BeOS portability.
79964         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79965
79966 2006-08-27  Jim Meyering  <jim@meyering.net>
79967
79968         * doc/visibility.texi: Remove duplicate word: "pointer".
79969
79970 2006-08-26  Bruno Haible  <bruno@clisp.org>
79971
79972         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79973         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79974         (Makefile.am): Create inttypes.h from inttypes_.h.
79975         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79976
79977         * modules/imaxabs: New file.
79978
79979         * modules/imaxdiv: New file.
79980
79981 2006-08-26  Bruno Haible  <bruno@clisp.org>
79982
79983         * m4/inttypes.m4: New file.
79984         * m4/_inttypes_h.m4: Remove file.
79985         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79986         PRI_MACROS_BROKEN.
79987         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79988
79989         * m4/imaxabs.m4: New file.
79990
79991         * m4/imaxdiv.m4: New file.
79992
79993 2006-08-26  Bruno Haible  <bruno@clisp.org>
79994
79995         * lib/inttypes_.h: New file.
79996         * lib/inttypes.h: Remove file.
79997         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79998
79999         * lib/imaxabs.c: New file.
80000
80001         * lib/imaxdiv.c: New file.
80002
80003 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         New config-h module, so that "make" output needn't be cluttered
80006         by -DHAVE_CONFIG_H.
80007         * MODULES.html.sh (Support for building libraries and executables):
80008         Add config-h.
80009         * modules/config-h: New file.
80010         * gnulib-tool (nl, sed_transform_lib_file): New vars.
80011         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
80012         the config-h module is used.
80013
80014         New configmake module, so that "make" output needn't be cluttered
80015         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
80016         * MODULES.html.sh (Support for building libraries and executables):
80017         Add configmake.
80018         * modules/configmake: New file.
80019
80020 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         * m4/config-h.m4: New file.
80023
80024 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80025
80026         * config/srclist.txt: Add elisp-comp.
80027
80028 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80029
80030         * MODULES.html.sh (Support for building libraries and executables):
80031         Add elisp-comp.
80032         * build-aux/elisp-comp: New file.
80033         * modules/elisp-comp: New file.
80034
80035 2006-08-24  Bruno Haible  <bruno@clisp.org>
80036
80037         * gnulib-tool (func_create_testdir): Use non-default values of
80038         sourcebase and m4base.
80039
80040 2006-08-24  Bruno Haible  <bruno@clisp.org>
80041
80042         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
80043         HTML structure.
80044
80045 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         * modules/openat (Depends-on): Add lchown.
80048
80049 2006-08-23  Bruno Haible  <bruno@clisp.org>
80050
80051         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
80052         of gl_LOCK_EARLY instead of gl_LOCK.
80053
80054 2006-08-23  Bruno Haible  <bruno@clisp.org>
80055
80056         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
80057         on OSF/1 to no.
80058         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
80059
80060 2006-08-23  Bruno Haible  <bruno@clisp.org>
80061
80062         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
80063         as unusable.
80064
80065         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
80066         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
80067         (gl_LOCK): New macro.
80068
80069 2006-08-22  Simon Josefsson  <jas@extundo.com>
80070
80071         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
80072         to md5 module.
80073
80074 2006-08-22  Simon Josefsson  <jas@extundo.com>
80075
80076         * MODULES.html.sh: Add "Support for maintaining and release
80077         projects".
80078
80079         * build-aux/gnupload: New file, from coreutils.
80080
80081 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         Avoid the need for AC_LIBSOURCES in m4 macros.
80084         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80085         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80086         * modules/check-version (EXTRA_DIST): Add check-version.h.
80087         * modules/crc (EXTRA_DIST): Add crc.h.
80088         * modules/des (EXTRA_DIST): Add des.h.
80089         * modules/gc (EXTRA_DIST): Add gc.h.
80090         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80091         * modules/getline (EXTRA_DIST): Add getline.h.
80092         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80093         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80094         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80095         * modules/md2 (EXTRA_DIST): Add md2.h.
80096         * modules/md4 (EXTRA_DIST): Add md4.h.
80097         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80098         * modules/read-file (EXTRA_DIST): Add read-file.h.
80099         * modules/readline (EXTRA_DIST): Add readline.h.
80100         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80101         rijndael-api-fst.h.
80102
80103 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         * m4/rijndael.m4 (gl_ARCFOUR):
80106         * m4/arctwo.m4 (gl_ARCTWO):
80107         * m4/check-version.m4 (gl_CHECK_VERSION):
80108         * m4/crc.m4 (gl_CRC):
80109         * m4/des.m4 (gl_DES):
80110         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80111         * m4/gc.m4 (gl_GC):
80112         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80113         * m4/getline.m4 (gl_FUNC_GETLINE):
80114         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80115         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80116         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80117         * m4/md2.m4 (gl_MD2):
80118         * m4/md4.m4 (gl_MD4):
80119         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80120         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80121         * m4/readline.m4 (gl_FUNC_READLINE):
80122         * m4/rijndael.m4 (gl_RIJNDAEL):
80123         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80124         to get the necessary .h files and whatnot.
80125
80126 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80127
80128         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80129         gnulib rather than the other way around.
80130         * config/srclistvars.sh (COREUTILS): Remove.
80131
80132 2006-08-22  Jim Meyering  <jim@meyering.net>
80133
80134         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80135
80136         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80137
80138 2006-08-22  Eric Blake  <ebb9@byu.net>
80139
80140         * modules/regexprops-generic: New file.
80141         * MODULES.html.sh (Support for building documentation): List it.
80142
80143 2006-08-22  Eric Blake  <ebb9@byu.net>
80144
80145         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80146         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80148         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80149
80150 2006-08-22  Bruno Haible  <bruno@clisp.org>
80151
80152         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80153         and lib_LTLIBRARIES like the other lib_* variables.
80154
80155 2006-08-22  Bruno Haible  <bruno@clisp.org>
80156
80157         * build-aux/x-to-1.in: New file, from GNU gettext.
80158
80159 2006-08-22  Bruno Haible  <bruno@clisp.org>
80160
80161         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80162         <utmpx.h> exists.
80163
80164 2006-08-22  Bruno Haible  <bruno@clisp.org>
80165
80166         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80167         <utmpx.h> exists.
80168
80169 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         BeOS portability.
80172         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80173         exist.
80174         Problem reported by Bruno Haible.
80175
80176 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80177
80178         Avoid the need for AC_LIBSOURCES in m4 macros.
80179         * modules/acl (EXTRA_DIST): Add acl.h.
80180         * modules/argmatch (Files): Add m4/argmatch.m4.
80181         (configure.ac): Add gl_ARGMATCH.
80182         (EXTRA_DIST): Renamed from lib_SOURCES, for
80183         consistency with the other modules.  Remove argmatch.c.
80184         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80185         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80186         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80187         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80188         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80189         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80190         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80191         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80192         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80193         * modules/closeout (EXTRA_DIST): Add closeout.h.
80194         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80195         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80196         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80197         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80198         dirname.h; remove basename.c and stripslash.c.
80199         * modules/exclude (EXTRA_DIST): Add exclude.h.
80200         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80201         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80202         * modules/file-type (EXTRA_DIST): Add file-type.h.
80203         * modules/filemode (EXTRA_DIST): Add filemode.h.
80204         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80205         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80206         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80207         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80208         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80209         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80210         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80211         * modules/getdate (EXTRA_DIST): Add getdate.c.
80212         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80213         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80214         * modules/getpass (EXTRA_DIST): Add getpass.h.
80215         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80216         * modules/group-member (EXTRA_DIST): Add group-member.h.
80217         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80218         * modules/hash (EXTRA_DIST): Add hash.h.
80219         * modules/human (EXTRA_DIST): Add human.h.
80220         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80221         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80222         * modules/lchown (EXTRA_DIST): Add lchown.h.
80223         * modules/long-options (EXTRA_DIST): Add long-options.h.
80224         * modules/lstat (EXTRA_DIST): Add lstat.h.
80225         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80226         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80227         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80228         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80229         * modules/memxor (EXTRA_DIST): Add memxor.h.
80230         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80231         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80232         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80233         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80234         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80235         * modules/physmem (EXTRA_DIST): Add physmem.h.
80236         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80237         * modules/posixver (EXTRA_DIST): Add posixver.h.
80238         * modules/quote (EXTRA_DIST): Add quote.h.
80239         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80240         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80241         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80242         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80243         regex_internal.h regexec.c.
80244         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80245         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80246         * modules/same (EXTRA_DIST): Add same.h.
80247         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80248         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80249         * modules/savedir (EXTRA_DIST): Add savedir.h.
80250         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80251         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80252         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80253         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80254         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80255         * modules/strdup (EXTRA_DIST): Add strdup.h.
80256         * modules/strftime (EXTRA_DIST): Add strftime.h.
80257         * modules/strndup (EXTRA_DIST): Add strndup.h.
80258         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80259         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80260         * modules/time_r (EXTRA_DIST): Add time_r.h.
80261         * modules/timespec (EXTRA_DIST): Add timespec.h.
80262         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80263         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80264         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80265         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80266         * modules/userspec (EXTRA_DIST): Add userspec.h.
80267         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80268         * modules/utimens (EXTRA_DIST): Add utimens.h.
80269         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80270         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80271         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80272         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80273         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80274         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80275         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80276         * modules/yesno (EXTRA_DIST): Add yesno.h.
80277
80278 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80279
80280         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80281
80282         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80283         * m4/dev-ino.m4, same-inode.m4: Remove.
80284
80285         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80286         * m4/acl.m4 (AC_FUNC_ACL):
80287         * m4/backupfile.m4 (gl_BACKUPFILE):
80288         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80289         * m4/canon-host.m4 (gl_CANON_HOST):
80290         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80292         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80293         * m4/cloexec.m4 (gl_CLOEXEC):
80294         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80295         * m4/closeout.m4 (gl_CLOSEOUT):
80296         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80297         * m4/dirname.m4 (gl_DIRNAME):
80298         * m4/exclude.m4 (gl_EXCLUDE):
80299         * m4/exitfail.m4 (gl_EXITFAIL):
80300         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80301         * m4/file-type.m4 (gl_FILE_TYPE):
80302         * m4/filemode.m4 (gl_FILEMODE):
80303         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80304         * m4/fpending.m4 (gl_FUNC_FPENDING):
80305         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80306         * m4/fts.m4 (gl_FUNC_FTS):
80307         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80308         * m4/getdate.m4 (gl_GETDATE):
80309         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80310         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80311         * m4/getpass.m4 (gl_FUNC_GETPASS):
80312         * m4/gettime.m4 (gl_GETTIME):
80313         * m4/getugroups.m4 (gl_GETUGROUPS):
80314         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80315         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80316         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80317         * m4/hash.m4 (gl_HASH):
80318         * m4/idcache.m4 (gl_IDCACHE):
80319         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80320         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80321         * m4/long-options.m4 (gl_LONG_OPTIONS):
80322         * m4/lstat.m4 (gl_FUNC_LSTAT):
80323         * m4/md5.m4 (gl_MD5):
80324         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80325         * m4/memcoll.m4 (gl_MEMCOLL):
80326         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80327         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80328         * m4/memxor.m4 (gl_MEMXOR):
80329         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80330         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80331         * m4/modechange.m4 (gl_MODECHANGE):
80332         * m4/mountlist.m4 (gl_MOUNTLIST):
80333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80334         * m4/openat.m4 (gl_FUNC_OPENAT):
80335         * m4/pathmax.m4 (gl_PATHMAX):
80336         * m4/physmem.m4 (gl_PHYSMEM):
80337         * m4/posixtm.m4 (gl_POSIXTM):
80338         * m4/posixver.m4 (gl_POSIXVER):
80339         * m4/quote.m4 (gl_QUOTE):
80340         * m4/quotearg.m4 (gl_QUOTEARG):
80341         * m4/readtokens.m4 (gl_READTOKENS):
80342         * m4/readutmp.m4 (gl_READUTMP):
80343         * m4/regex.m4 (gl_REGEX):
80344         * m4/safe-read.m4 (gl_SAFE_READ):
80345         * m4/safe-write.m4 (gl_SAFE_WRITE):
80346         * m4/same.m4 (gl_SAME):
80347         * m4/save-cwd.m4 (gl_SAVE_CWD):
80348         * m4/savedir.m4 (gl_SAVEDIR):
80349         * m4/settime.m4 (gl_SETTIME):
80350         * m4/sha1.m4 (gl_SHA1):
80351         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80352         * m4/stat-macros.m4 (gl_STAT_MACROS):
80353         * m4/stat-time.m4 (gl_STAT_TIME):
80354         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80355         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80356         * m4/strdup.m4 (gl_FUNC_STRDUP):
80357         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80358         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80359         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80360         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80361         * m4/time_r.m4 (gl_TIME_R):
80362         * m4/timespec.m4 (gl_TIMESPEC):
80363         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80364         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80365         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80366         * m4/userspec.m4 (gl_USERSPEC):
80367         * m4/utimecmp.m4 (gl_UTIMECMP):
80368         * m4/utimens.m4 (gl_UTIMENS):
80369         * m4/xalloc.m4 (gl_XALLOC):
80370         * m4/xgetcwd.m4 (gl_XGETCWD):
80371         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80372         * m4/xreadlink.m4 (gl_XREADLINK):
80373         * m4/xstrtod.m4 (gl_XSTRTOD):
80374         * m4/yesno.m4 (gl_YESNO):
80375         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80376         to get the necessary .h files and whatnot.
80377
80378 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80379             Bruno Haible  <bruno@clisp.org>
80380
80381         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80382         /bin/sh understanding of '!' conditional negation.
80383
80384 2006-08-21  Jim Meyering  <jim@meyering.net>
80385
80386         * modules/openat (Depends-on): Really alphabetize.
80387
80388         * modules/acl (Depends-on): Add error and quote.
80389
80390         * check-module (find_included_lib_files): Add at-func.c to the
80391         ok-to-include-more-than-once white list.
80392
80393         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80394
80395 2006-08-21  Bruno Haible  <bruno@clisp.org>
80396
80397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80398         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80399         Reported by Martin Lambers <marlam@marlam.de>.
80400
80401 2006-08-21  Bruno Haible  <bruno@clisp.org>
80402
80403         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80404         specify an installation location, don't emit a noinst_LIBRARIES or
80405         noinst_LTLIBRARIES assignment.
80406
80407 2006-08-21  Bruno Haible  <bruno@clisp.org>
80408
80409         BeOS portability.
80410         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80411         BeOS has mbrtowc() but no <wctype.h>.
80412
80413 2006-08-21  Bruno Haible  <bruno@clisp.org>
80414
80415         BeOS portability.
80416         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80417         exist.
80418
80419 2006-08-21  Bruno Haible  <bruno@clisp.org>
80420
80421         BeOS portability.
80422         * lib/mbchar.h: Include <wctype.h> only if it exists.
80423
80424 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80425
80426         Remove files that are no longer needed by their respective modules.
80427         * m4/obstack.m4: Remove.
80428         * m4/strerror_r.m4: Remove.
80429         * m4/uint32_t.m4: Remove.
80430         * m4/uintptr_t.m4: Remove.
80431         * m4/ullong_max.m4: Remove.
80432         * m4/xstrtoimax.m4: Remove.
80433         * m4/xstrtoumax.m4: Remove.
80434
80435         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80436         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80437         dependencies now capture this.
80438
80439         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80440         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80441         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80442         * m4/human.m4 (gl_HUMAN): Likewise.
80443         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80444         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80445
80446         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80447
80448         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80449         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80450         stdint.
80451         * m4/human.m4 (gl_HUMAN): Likewise.
80452         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80453         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80454         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80455         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80456         * m4/xstrtol (gl_XSTRTOL): Likewise.
80457
80458         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80459         AC_TYPE_LONG_LONG_INT.
80460         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80461         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80462         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80463         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80464
80465         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80466         on stdbool.
80467
80468         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80469         (gl_PREREQ_XSTRTOUL): Remove.
80470
80471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80472
80473         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80474         mode.
80475
80476 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80477
80478         Add and change modules to make it easier for coreutils to use
80479         gnulib-tool.
80480         * modules/backupfile (Files): Remove m4/d-ino.m4.
80481         (Depends-on): Add d-ino.
80482         * modules/cycle-check (Depends-on): Add stdint.
80483         (lib_SOURCES): Add cycle-check.h.
80484         * modules/d-ino: New module.
80485         * modules/d-type: New module.
80486         * modules/error (Files): Remove m4/strerror_r.m4.
80487         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80488         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80489         m4/inttypes_h.m4, m4/uintmax_t.m4.
80490         (Depends-on): Add stdint.
80491         (lib_SOURCES): Add fsusage.h.
80492         * modules/getcwd (Files): Remove d-ino.m4.
80493         (Depends-on): Add d-ino.
80494         * modules/getndelim2 (Depends-on): Add stdint.
80495         * modules/glob (Files): Remove m4/d-type.m4.
80496         (Depends-on): Add d-type.
80497         * modules/host-os: New module.
80498         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80499         m4/inttypes_h.m4, m4/uintmax_t.m4.
80500         * Depends-on: Add stdint.
80501         (lib_SOURCES): Add human.h.
80502         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80503         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80504         m4/uintmax_t.m4, m4/ulonglong.m4.
80505         (Depends-on): Add stdint.
80506         (EXTRA_DIST): Add inttostr.h.
80507         * modules/lchmod: New module.
80508         * modules/link-follow: New module.
80509         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80510         (Depends-on): Add lchmod.
80511         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80512         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80513         (Depends-on): Add stdint.
80514         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80515         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80516         (Depends-on): Add stdint.
80517         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80518         * modules/perl: New module.
80519         * modules/regex (Depends-on): Add stdint.
80520         * modules/rmdir-errno: New module.
80521         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80522         m4/intmax_t.m4.
80523         (Depends-on): Add stdint.
80524         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80525         m4/uintmax_t.m4.
80526         (Depends-on): Add stdint.
80527         * modules/unlink-busy: New module.
80528         * modules/utimecmp (Depends-on): Add stdint.
80529         * modules/uptime: New module.
80530         * modules/winsz-ioctl: New module.
80531         * modules/winsz-termios: New module.
80532         * modules/xnanosleep (Depends-on): Add nanosleep.
80533         * modules/ullong_max: Remove.
80534         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80535         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80536         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80537         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80538         (Depends-on): Add inttypes.
80539         (lib_SOURCES): Add xstrtol.h.
80540         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80541         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80542         * MODULES.html.sh: Move 'assert' into the assert section.
80543         Move 'dummy' into the linking section.
80544         Remove ullong_max.
80545         Add section for compatibility checks for POSIX:2001 functions,
80546         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80547         winsz-ioctl, and winsz-termios into it.
80548         Add lchmod.
80549         Add top-level Misc section and put host-os, perl, and uptime
80550         into it.
80551
80552 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80553
80554         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80555         now assume the stdint module.  Do not include inttypes.h.
80556         * lib/fsusage.h: Likewise.
80557         * lib/getndelim2.c: Likewise.
80558         * lib/human.h: Likewise.
80559         * lib/inttostr.h: Likewise.
80560         * lib/obstack.c: Likewise.
80561         * lib/regex_internal.h: Likewise.
80562         * lib/tempname.c: Likewise.
80563         * lib/utimecmp.c: Likewise.
80564         * lib/xstrtol.h: Likewise.
80565
80566         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80567
80568         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80569         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80570         * lib/xtime.h: Likewise.
80571
80572 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * modules/openat (Files): Add lib/fchmodat.c.
80575         Fixes problem reported by Jay Youngman.
80576
80577 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80578
80579         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80580         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80581
80582 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80583             Bruno Haible  <bruno@clisp.org>
80584
80585         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80586         and is a script that invokes bison. Tighten the code. Add comments.
80587
80588 2006-08-18  Jim Meyering  <jim@meyering.net>
80589
80590         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80591         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80592         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80593         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80594
80595 2006-08-18  Bruno Haible  <bruno@clisp.org>
80596
80597         * modules/bison-i18n: New file.
80598         * MODULES.html.sh (Internationalization functions): Add it.
80599
80600 2006-08-18  Bruno Haible  <bruno@clisp.org>
80601
80602         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80603         sys/statvfs.h. When getmntinfo was found, check its declaration and
80604         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80605
80606 2006-08-18  Bruno Haible  <bruno@clisp.org>
80607
80608         * m4/bison-i18n.m4: New file, from bison.
80609
80610 2006-08-18  Bruno Haible  <bruno@clisp.org>
80611
80612         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80613         (ME_DUMMY): Treat "kernfs" as a dummy.
80614         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80615
80616 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80617
80618         Update from coreutils.
80619
80620         2006-08-15  Jim Meyering  <jim@meyering.net>
80621
80622         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80623
80624         2006-01-17  Jim Meyering  <jim@meyering.net>
80625
80626         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80627
80628         2006-01-11  Jim Meyering  <jim@meyering.net>
80629
80630         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80631         Check for the lchmod function.
80632
80633 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80634
80635         Update from coreutils.
80636
80637         * lib/__fpending.h: Add copyright notice.
80638         * lib/fprintftime.h: Likewise.
80639         * lib/savedir.c: Use (C) in copyright notice.
80640         * lib/savedir.h: Likewise.
80641
80642         2006-08-15  Jim Meyering  <jim@meyering.net>
80643
80644         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80645         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80646         in support of the EXPECTED_ERRNO macro.
80647         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80648         definitions.  Instead, define the appropriate symbols and include
80649         "at-func.c".
80650         * lib/mkdirat.c (mkdirat): Likewise.
80651         * lib/fchmodat.c (fchmodat): Likewise.
80652         (ENOSYS): Remove definition.
80653         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80654         it.  Don't include "unistd--.h" -- it wasn't ever used.
80655
80656         2006-01-17  Jim Meyering  <jim@meyering.net>
80657
80658         Rewrite fts.c not to change the current working directory,
80659         by using openat, fstatat, fdopendir, etc..
80660
80661         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80662         (HAVE_OPENAT_SUPPORT): Define.
80663         [_LIBC] (fchdir): Don't undef or define; no longer used.
80664         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80665         Now, this `function' always succeeds, and consumes its file descriptor
80666         parameter -- so callers must not close such FDs.  Update callers.
80667         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80668         (diropen): Add parameter, SP.  Adjust all callers.
80669         Implement using diropen_fd, rather than open.
80670         (fts_open): Initialize new member, fts_cwd_fd.
80671         Remove fts_rft-setting code.
80672         (fts_close): Close fts_cwd_fd, if necessary.
80673         (__opendir2): Define in terms of opendir or opendirat,
80674         depending on whether the FST_NOCHDIR flag is set.
80675         (fts_build): Since fts_safe_changedir consumes its FD, and since
80676         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80677         and close the dup'd file descriptor upon failure.
80678         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80679         (fts_safe_changedir): Tweak semantics to reflect that this function
80680         now calls cwd_advance_fd and hence consumes its FD argument.
80681         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80682         [struct FTS] (fts_rft): Remove now-unused member.
80683         [struct FTS] (fts_cycle.state): Improve comment.
80684
80685         * lib/openat.c (openat_needs_fchdir): New function.
80686         * lib/openat.h (openat_needs_fchdir): Declare it.
80687
80688 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80689
80690         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80691         Problem and fix reported by Pádraig Brady in
80692         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80693
80694 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80697
80698 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80699
80700         * lib/memcoll.c (memcoll): Optimize for the common case where the
80701         arguments are bytewise equal.
80702
80703 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         * doc/regexprops-generic.texi: Add a copyright notice.
80706
80707 2006-08-15  Bruno Haible  <bruno@clisp.org>
80708
80709         * modules/tmpdir (License): Change to LGPL.
80710
80711 2006-08-15  Bruno Haible  <bruno@clisp.org>
80712
80713         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80714         module.
80715
80716 2006-08-14  Simon Josefsson  <jas@extundo.com>
80717
80718         * config/srclist.txt: Add gnupload.
80719
80720 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80721
80722         Change copyright notice from LGPL 2 to GPL 2, since that's the
80723         standard form used in the gnulib repository.
80724         * tests/test-lock.c: Likewise.
80725         * tests/test-stdint.c: Likewise.
80726         * tests/test-tls.c: Likewise.
80727
80728         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80729         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80730         Add copyright notice.
80731
80732         * check-module: Add copyright notice.  Output a copyright
80733         notice if "--version" is specified.
80734         * modules/COPYING: New file.
80735         * tests/test-getaddrinfo.c: Add copyright notice.
80736         * tests/test-verify.c: Likewise.
80737
80738 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80739
80740         Change copyright notice from LGPL 2 to GPL 2, since that's the
80741         standard form used in the gnulib repository.
80742         * lib/lock.c: LGPL -> GPL.
80743         * lib/lock.h: Likewise.
80744         * lib/strnlen1.c: Likewise.
80745         * lib/strnlen1.h: Likewise.
80746         * lib/tls.c: Likewise.
80747         * lib/tls.h: Likewise.
80748         * lib/tmpdir.c: Likewise.
80749
80750         * lib/TODO: Remove; this belongs only in coreutils.
80751
80752 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80753
80754         Add copyright notices to long-enough files that lack them, since
80755         otherwise the files aren't clearly free.  Use the same notice that
80756         getdate.texi already uses.
80757         * doc/alloca-opt.texi: Add copyright notice.
80758         * doc/alloca.texi: Likewise.
80759         * doc/ctime.texi: Likewise.
80760         * doc/functions.texi: Likewise.
80761         * doc/gcd.texi: Likewise.
80762         * doc/gnulib-tool.texi: Likewise.
80763         * doc/inet_ntoa.texi: Likewise.
80764         * doc/visibility.texi: Likewise.
80765
80766         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80767         * doc/quote.texi: Add copyright notice.
80768
80769         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80770         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80771         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80772         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80773         is now obsolete, and give a pointer to the Sun list.
80774         Add copyright notice.
80775
80776 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * config/srclistvars.sh: Add copyright notice.
80779
80780 2006-08-14  Eric Blake  <ebb9@byu.net>
80781
80782         Import the following change from libc:
80783
80784         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80785
80786         Upstream bug 2997.
80787         * lib/misc/error.c: Add space between program name and message if file
80788         name is missing.
80789
80790 2006-08-12  Karl Berry  <karl@gnu.org>
80791
80792         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80793         remove, these originate in gnulib now.
80794
80795 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80796
80797         * doc/Makefile (standards.info standards.html standards.dvi):
80798         Also depend on make-stds.texi.
80799
80800 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80801
80802         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80803         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80804
80805         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80806         in wchar_t.  Problem reported by Eric Blake.
80807
80808         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80809         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80810         Also, help the compiler to keep LEN in a register.
80811
80812 2006-08-11  Eric Blake  <ebb9@byu.net>
80813
80814         * users.txt: Sort.  Add tar.
80815
80816 2006-08-11  Bruno Haible  <bruno@clisp.org>
80817
80818         * users.txt: New file.
80819
80820 2006-08-11  Bruno Haible  <bruno@clisp.org>
80821
80822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80823         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80824
80825 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80826
80827         * modules/snprintf (Depends-on): Remove minmax.
80828         (Maintainer): Add self and Bruno.
80829
80830 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80831
80832         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80833         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80834         (EOVERFLOW): Define if the system does not.
80835         Do not include "minmax.h"; it wasn't used.
80836         (snprintf): Don't assume size_t promotes to an unsigned type.
80837         Fix bug when generated string was too long for the buffer: the
80838         buffer's contents are supposed to be the initial prefix of the
80839         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80840         exceeds INT_MAX; do the check ourselves.
80841
80842         Import the following changes from libc:
80843
80844         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80845
80846         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80847         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80848         set wc to the byte which couldn't be converted.
80849         (re_string_reconstruct): Don't clear valid_raw_len before calling
80850         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80851         tip_context using re_string_context_at.
80852
80853         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80854
80855         * lib/posix/regex.h: g++ still cannot handled [restrict].
80856
80857         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80858
80859         * lib/posix/regex.h: Remove special handling for VMS.
80860
80861 2006-08-10  Jim Meyering  <jim@meyering.net>
80862
80863         * modules/same-inode: New module.
80864         * modules/dev-ino: New module.
80865         * modules/cycle-check: Depend on these modules, rather than simply
80866         including their .h files.
80867         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80868         required via m4/cycle-check.m4.
80869         * modules/same: Depend on new same-inode module, rather than
80870         including same-inode.h.
80871         * modules/chdir-safer: New file.
80872
80873         * modules/chown (Depends-on): Add stat-macros.
80874
80875 2006-08-10  Jim Meyering  <jim@meyering.net>
80876
80877         * m4/cycle-check.m4: New file.
80878         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80879         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80880
80881 2006-08-10  Eric Blake  <ebb9@byu.net>
80882
80883         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80884         in from original proposal.
80885
80886 2006-08-10  Eric Blake  <ebb9@byu.net>
80887         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80888
80889         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80890         namespace.
80891
80892 2006-08-10  Bruno Haible  <bruno@clisp.org>
80893
80894         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80895         as well.
80896
80897 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80898
80899         Sync from coreutils.
80900
80901         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80902
80903         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80904         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80905
80906 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80907
80908         * modules/restrict: Remove; no longer needed now that we assume
80909         Autoconf 2.59 or later.
80910         * MODULES.html.sh: Remove 'restrict'.
80911         * modules/argp (Depends-on): Remove 'restrict'.
80912         * modules/base64 (Depends-on): Likewise.
80913         * modules/gc (Depends-on): Likewise.
80914         * modules/getaddrinfo (Depends-on): Likewise.
80915         * modules/glob (Depends-on): Likewise.
80916         * modules/inet_ntop (Depends-on): Likewise.
80917         * modules/inet_pton (Depends-on): Likewise.
80918         * modules/memxor (Depends-on): Likewise.
80919         * modules/regex (Depends-on): Likewise.
80920         * modules/strtok_r (Depends-on): Likewise.
80921         * modules/time_r (Depends-on): Likewise.
80922
80923 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80924
80925         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80926         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80927         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80928         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80929         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80930         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80931         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80932         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80933
80934         Merge from coreutils.
80935         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80936         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80937         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80938         * m4/time_r.m4 (gl_TIME_R): Likewise.
80939
80940 2006-08-09  Karl Berry  <karl@gnu.org>
80941
80942         * config/srclist.txt: no more gettext-tools, per Bruno.
80943
80944 2006-08-08  Eric Blake  <ebb9@byu.net>
80945
80946         * modules/verror: New module.
80947         * MODULES.html.sh: Document it.
80948
80949 2006-08-08  Eric Blake  <ebb9@byu.net>
80950
80951         * lib/verror.h, lib/verror.c: New files.
80952
80953 2006-08-08  Eric Blake  <ebb9@byu.net>
80954
80955         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80956         verror_at_line output complies with GNU Coding Standards even when
80957         file is NULL.
80958
80959 2006-08-07  Bruno Haible  <bruno@clisp.org>
80960
80961         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80962         versions of AIX.
80963         Reported by Ralf Wildenhues.
80964
80965 2006-08-07  Bruno Haible  <bruno@clisp.org>
80966
80967         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80968         in an AC_DEFUN. Needed so that the autoconf snippets can use
80969         AC_REQUIRE.
80970
80971 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80972
80973         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80974         Initialize pkgdata_DATA.
80975         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80976         overriding it.
80977
80978 2006-08-06  Eric Blake  <ebb9@byu.net>
80979
80980         * lib/error.h: Fold in some upstream changes from glibc.
80981         * lib/error.c: Likewise.
80982
80983 2006-08-04  Bruno Haible  <bruno@clisp.org>
80984
80985         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80986         Make the mostlyclean-local rule depend on mostlyclean-generic.
80987         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80988
80989 2006-07-31  Bruno Haible  <bruno@clisp.org>
80990
80991         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80992         <stdlib.h>, <string.h>.
80993
80994 2006-07-30  Bruno Haible  <bruno@clisp.org>
80995
80996         * modules/readlink (License): Change to LGPL.
80997
80998 2006-07-30  Bruno Haible  <bruno@clisp.org>
80999
81000         * modules/javaversion (Makefile.am): Distribute javaversion.java and
81001         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
81002         set PKGDATADIR to point to it.
81003
81004 2006-07-30  Bruno Haible  <bruno@clisp.org>
81005
81006         * modules/csharpexec (configure.ac): Comment out macro invocation.
81007         * modules/javaexec (configure.ac): Likewise.
81008         * modules/javacomp-script (configure.ac): Likewise.
81009
81010         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
81011
81012 2006-07-30  Bruno Haible  <bruno@clisp.org>
81013
81014         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
81015         linked-list.
81016
81017 2006-07-30  Bruno Haible  <bruno@clisp.org>
81018
81019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
81020
81021 2006-07-30  Bruno Haible  <bruno@clisp.org>
81022
81023         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81024         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
81025         get removed.
81026
81027 2006-07-29  Bruno Haible  <bruno@clisp.org>
81028
81029         Make it possible for gnulib-tool to work with locally modified or
81030         augmented gnulib repositories.
81031         * gnulib-tool (func_usage): Document --local-dir option.
81032         (local_gnulib_dir): New variable.
81033         Handle --local-dir option.
81034         (func_lookup_file): New function.
81035         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
81036         (func_get_description, func_get_filelist, func_get_description,
81037         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
81038         func_get_automake_snippet, func_get_include_directive,
81039         func_get_license, func_get_maintainer): Use func_lookup_file.
81040         (func_import, func_create_testdir): Use func_lookup_file.
81041
81042 2006-07-29  Bruno Haible  <bruno@clisp.org>
81043
81044         * modules/setenv (Depends-on): Add unistd.
81045
81046 2006-07-29  Bruno Haible  <bruno@clisp.org>
81047
81048         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
81049
81050 2006-07-29  Bruno Haible  <bruno@clisp.org>
81051
81052         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
81053
81054 2006-07-29  Bruno Haible  <bruno@clisp.org>
81055
81056         * gnulib-tool (import, update): If there is no Makefile.am, look at
81057         aclocal.m4, instead of bailing out.
81058
81059 2006-07-29  Bruno Haible  <bruno@clisp.org>
81060
81061         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
81062         Categorize the options by when they are useful.
81063
81064 2006-07-29  Bruno Haible  <bruno@clisp.org>
81065
81066         * gnulib-tool (func_usage): Document option --no-libtool.
81067         Handle option --no-libtool.
81068         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
81069         for changed semantics of $libtool variable.
81070         (func_import): Likewise. If libtool is not used, show this through
81071         an option --no-libtool.
81072         (func_create_testdir): Update.
81073
81074 2006-07-29  Bruno Haible  <bruno@clisp.org>
81075
81076         * gnulib-tool (func_import): Extend error message about missing
81077         --doc-base.
81078
81079 2006-07-29  Bruno Haible  <bruno@clisp.org>
81080
81081         * gnulib-tool (func_import): Don't create the $docbase directory if
81082         there is no file to store there.
81083
81084 2006-07-29  Bruno Haible  <bruno@clisp.org>
81085
81086         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81087         relevant, look for configure.ac there, not in the current directory.
81088         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81089
81090 2006-07-29  Bruno Haible  <bruno@clisp.org>
81091
81092         * gnulib-tool (SORT): New variable.
81093         (func_usage): Undocument --assume-autoconf option.
81094         Remove --assume-autoconf option handling.
81095         (autoconf_minversion): Determine from the contents of configure.ac.
81096         (func_import): Remove autoconf_minversion handling.
81097         Suggested by Eric Blake.
81098
81099 2006-07-29  Bruno Haible  <bruno@clisp.org>
81100
81101         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81102
81103 2006-07-29  Bruno Haible  <bruno@clisp.org>
81104
81105         * config/srclist.txt (*setenv.[ch]): Remove rules.
81106
81107 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81108
81109         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81110
81111 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81112
81113         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81114         arpa/inet.h.
81115
81116 2006-07-28  Simon Josefsson  <jas@extundo.com>
81117
81118         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81119         * modules/inet_pton (Depends-on): Likewise.
81120
81121 2006-07-28  Simon Josefsson  <jas@extundo.com>
81122
81123         * m4/netinet_in_h.m4: New file.
81124
81125 2006-07-28  Simon Josefsson  <jas@extundo.com>
81126
81127         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81128         #include's.
81129
81130 2006-07-28  Simon Josefsson  <jas@extundo.com>
81131
81132         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81133         #include's.
81134
81135 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81138         setgid on directories only if they set these bits.
81139         * lib/modechange.h: Remove obsolete comment about masks.
81140
81141 2006-07-28  Eric Blake  <ebb9@byu.net>
81142
81143         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81144         macro expansion.
81145
81146 2006-07-28  Bruno Haible  <bruno@clisp.org>
81147
81148         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81149
81150 2006-07-28  Bruno Haible  <bruno@clisp.org>
81151
81152         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81153
81154 2006-07-28  Bruno Haible  <bruno@clisp.org>
81155
81156         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81157         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81158         Define fallbacks.
81159         Avoids link error on FreeBSD 4.x.
81160         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81161
81162         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81163         encoding.
81164         * lib/mbswidth.c (iswcntrl): Likewise.
81165
81166 2006-07-27  Bruno Haible  <bruno@clisp.org>
81167
81168         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81169         test.
81170
81171 2006-07-27  Bruno Haible  <bruno@clisp.org>
81172
81173         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81174         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81175         defined.
81176
81177 2006-07-26  Eric Blake  <ebb9@byu.net>
81178
81179         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81180
81181 2006-07-26  Eric Blake  <ebb9@byu.net>
81182
81183         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81184         like mingw that lack mkstemp.
81185         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81186         avoid compilation warning on mingw.
81187
81188 2006-07-26  Bruno Haible  <bruno@clisp.org>
81189
81190         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81191         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81192         INT_FAST*_MIN, INTPTR_MIN.
81193
81194 2006-07-25  Bruno Haible  <bruno@clisp.org>
81195
81196         * modules/version-etc (Depends-on): Add stdarg.
81197
81198 2006-07-25  Bruno Haible  <bruno@clisp.org>
81199
81200         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81201         complex commands.
81202
81203 2006-07-25  Bruno Haible  <bruno@clisp.org>
81204
81205         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81206         defined in <stdarg.h> or config.h.
81207
81208 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81209
81210         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81211         (gl_STDIO_SAFER): Remove.
81212
81213 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81214
81215         * MODULES.html.sh (File stream based Input/Output):
81216         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81217         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81218         * modules/fopen-safer, modules/tmpfile-safer: New files.
81219         * modules/stdio-safer: Remove.
81220
81221 2006-07-24  Bruno Haible  <bruno@clisp.org>
81222
81223         * modules/tmpdir: New file.
81224         * MODULES.html.sh (File system functions): Add it.
81225
81226 2006-07-24  Bruno Haible  <bruno@clisp.org>
81227
81228         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81229         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81230
81231 2006-07-24  Bruno Haible  <bruno@clisp.org>
81232
81233         * modules/clean-temp: New file.
81234
81235 2006-07-24  Bruno Haible  <bruno@clisp.org>
81236
81237         * m4/tmpdir.m4: New file, from GNU gettext.
81238
81239 2006-07-24  Bruno Haible  <bruno@clisp.org>
81240
81241         * lib/tmpdir.h: New file, from GNU gettext.
81242         * lib/tmpdir.c: New file, from GNU gettext.
81243
81244 2006-07-24  Bruno Haible  <bruno@clisp.org>
81245
81246         * lib/clean-temp.h: New file, from GNU gettext.
81247         * lib/clean-temp.c: New file, from GNU gettext.
81248
81249 2006-07-23  Eric Blake  <ebb9@byu.net>
81250
81251         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81252         (Depends-on): Add binary-io.
81253
81254 2006-07-23  Eric Blake  <ebb9@byu.net>
81255
81256         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81257
81258 2006-07-23  Eric Blake  <ebb9@byu.net>
81259
81260         * lib/tmpfile-safer.c: New file.
81261         * lib/stdio-safer.h (fopen_safer): Add prototype.
81262         * lib/stdio--.h (tmpfile): Make safer.
81263
81264 2006-07-23  Bruno Haible  <bruno@clisp.org>
81265
81266         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81267         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81268         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81269         gl_linked_remove_at): Use it.
81270
81271 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81272         and Simon Josefsson <jas@extundo.com>
81273
81274         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81275
81276         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81277
81278 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81279
81280         * modules/close-stream: New file.
81281         * modules/closeout (Description): Make it clear that it exits
81282         with a diagnostic on error.
81283         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81284         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81285
81286 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81287
81288         * m4/close-stream.m4: New file.
81289
81290 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * lib/close-stream.c, lib/close-stream.h: New files.
81293
81294 2006-07-22  Bruno Haible  <bruno@clisp.org>
81295
81296         Merge from GNU gettext 0.15.
81297
81298         2006-05-01  Bruno Haible  <bruno@clisp.org>
81299
81300                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81301
81302         2006-07-22  Bruno Haible  <bruno@clisp.org>
81303
81304                 * modules/javaversion: New file.
81305                 * MODULES.html.sh (Java): Add javaversion.
81306
81307         2006-03-12  Bruno Haible  <bruno@clisp.org>
81308
81309                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81310
81311         2005-12-04  Bruno Haible  <bruno@clisp.org>
81312
81313                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81314                 (untested).
81315
81316         2006-06-21  Bruno Haible  <bruno@clisp.org>
81317
81318                 Avoid warnings from recent versions of mcs.
81319                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81320                 -o, -L, -r any more. Use options documented since mcs-1.0
81321                 instead. Similarly for -g.
81322
81323         2005-12-04  Bruno Haible  <bruno@clisp.org>
81324
81325                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81326                 .resources, not .resource.
81327
81328         2005-07-09  Bruno Haible  <bruno@clisp.org>
81329
81330                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81331                 add a .dll suffix.
81332                 Reported by Mark Junker <mjscod@gmx.de>.
81333
81334         2006-07-22  Bruno Haible  <bruno@clisp.org>
81335
81336                 * modules/gettext: Upgrade to gettext-0.15.
81337                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81338                 m4/visibility.m4.
81339                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81340
81341 2006-07-22  Bruno Haible  <bruno@clisp.org>
81342
81343         Merge from GNU gettext 0.15.
81344
81345         2006-03-25  Bruno Haible  <bruno@clisp.org>
81346
81347                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81348
81349         2006-07-21  Bruno Haible  <bruno@clisp.org>
81350
81351                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81352                 "1.1".
81353
81354         2006-05-09  Bruno Haible  <bruno@clisp.org>
81355
81356                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81357                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81358                 for the conftestver execution.
81359
81360         2006-05-01  Bruno Haible  <bruno@clisp.org>
81361
81362                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81363                 optional target-version argument. Verify that the compiler
81364                 groks source of the specified source-version, or add -source
81365                 option as necessary. Verify that the compiler produces
81366                 bytecode in the specified target-version, or add -target and
81367                 -source options as necessary. Make the result of the test
81368                 available as variable CONF_JAVAC. Also log error output in
81369                 config.log.
81370
81371         2006-03-11  Bruno Haible  <bruno@clisp.org>
81372
81373                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81374
81375         2006-05-09  Bruno Haible  <bruno@clisp.org>
81376
81377                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81378                 CLASSPATH_SEPARATOR to a semicolon.
81379
81380         2006-03-12  Bruno Haible  <bruno@clisp.org>
81381
81382                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81383                 available as variable CONF_JAVA, for subsequent autoconf
81384                 tests. Also log error output in config.log.
81385
81386         2006-07-19  Bruno Haible  <bruno@clisp.org>
81387
81388                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81389                 that getline works on glibc2 systems. Needed to avoid trouble
81390                 in relocatable.c.
81391                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81392
81393         2005-12-04  Bruno Haible  <bruno@clisp.org>
81394
81395                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81396                 launcher (untested).
81397
81398         2005-12-04  Bruno Haible  <bruno@clisp.org>
81399
81400                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81401
81402         2006-07-22  Bruno Haible  <bruno@clisp.org>
81403
81404                 * gettext.m4: Update from GNU gettext-0.15.
81405                 * nls.m4: Likewise.
81406                 * po.m4: Likewise.
81407                 * inttypes-pri.m4: Likewise.
81408                 * inttypes-h.m4: Renamed from inttypes.m4.
81409                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81410
81411 2006-07-22  Bruno Haible  <bruno@clisp.org>
81412
81413         Merge from GNU gettext 0.15.
81414
81415         2005-07-05  Bruno Haible  <bruno@clisp.org>
81416
81417                 * printf-args.c (printf_fetchargs): Work around broken
81418                 definition of wint_t on mingw.
81419
81420         2005-02-12  Bruno Haible  <bruno@clisp.org>
81421
81422                 * xallocsa.h: Add extern "C" for C++.
81423
81424         2006-05-17  Bruno Haible  <bruno@clisp.org>
81425
81426                 Cygwin portability.
81427                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81428
81429         2006-04-30  Bruno Haible  <bruno@clisp.org>
81430
81431                 * progreloc.c: Include <mach-o/dyld.h> if available.
81432                 (find_executable): Use _NSGetExecutablePath when possible.
81433
81434         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81435
81436                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81437                 function.
81438
81439         2005-12-29  Bruno Haible  <bruno@clisp.org>
81440
81441                 * progreloc.c (set_program_name_and_installdir): Fix
81442                 compilation error.
81443
81444         2005-12-04  Bruno Haible  <bruno@clisp.org>
81445
81446                 Cygwin portability.
81447                 * progreloc.c: Include <windows.h> also on Cygwin.
81448                 (find_executable): Add support for Cygwin.
81449                 (set_program_name_and_installdir): Handle also platforms with
81450                 nonempty EXEEXT.
81451
81452         2006-07-11  Bruno Haible  <bruno@clisp.org>
81453
81454                 * javacomp.c: Fix a comment.
81455                 Reported by Jim Meyering.
81456
81457         2006-04-30  Bruno Haible  <bruno@clisp.org>
81458
81459                 * javacomp.h (compile_java_class): Add source_version,
81460                 target_version arguments.
81461                 * javacomp.c: Rewritten to choose only a compiler that
81462                 respects the specified source_version and target_version.
81463
81464         2006-06-27  Bruno Haible  <bruno@clisp.org>
81465
81466                 Assume correct S_ISDIR macro.
81467                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81468
81469         2006-07-22  Bruno Haible  <bruno@clisp.org>
81470
81471                 * javaversion.h: New file, from GNU gettext.
81472                 * javaversion.c: New file, from GNU gettext.
81473                 * javaversion.java: New file, from GNU gettext.
81474                 * javaversion.class: New file, from GNU gettext.
81475
81476         2006-05-17  Bruno Haible  <bruno@clisp.org>
81477
81478                 Cygwin portability.
81479                 * javaexec.c (execute_java_class): Test for jview program
81480                 also on Cygwin.
81481
81482         2006-04-09  Bruno Haible  <bruno@clisp.org>
81483
81484                 * fatal-signal.c: Don't include string.h.
81485                 (at_fatal_signal): Use a copying loop instead of memcpy.
81486
81487         2005-12-04  Bruno Haible  <bruno@clisp.org>
81488
81489                 * csharpexec.c: Add support for 'clix' launcher (untested).
81490                 (execute_csharp_using_sscli): New function.
81491                 (execute_csharp_program): Call it.
81492
81493         2006-06-21  Bruno Haible  <bruno@clisp.org>
81494
81495                 Avoid warnings from recent versions of mcs.
81496                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81497                 -o, -L, -r any more. Use options documented since mcs-1.0
81498                 instead. Similarly for -g.
81499
81500         2005-07-09  Bruno Haible  <bruno@clisp.org>
81501
81502                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81503                 add a .dll suffix.
81504                 Reported by Mark Junker <mjscod@gmx.de>.
81505
81506         2006-06-17  Bruno Haible  <bruno@clisp.org>
81507
81508                 * config.charset: Update for NetBSD 3.0.
81509
81510         2006-05-17  Bruno Haible  <bruno@clisp.org>
81511
81512                 Cygwin portability.
81513                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81514
81515         2006-05-16  Bruno Haible  <bruno@clisp.org>
81516
81517                 * localcharset.c [CYGWIN]: Include <windows.h>.
81518                 (get_charset_aliases): For Cygwin, return the same CPxxx
81519                 aliases list as under WIN32.
81520                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81521                 the environment variables. Fall back to GetACP().
81522
81523         2006-04-05  Bruno Haible  <bruno@clisp.org>
81524
81525                 * config.charset: Update Juan Manuel Guerrero's address.
81526
81527         2005-02-12  Bruno Haible  <bruno@clisp.org>
81528
81529                 * allocsa.h: Add extern "C" for C++.
81530
81531         2005-02-10  Bruno Haible  <bruno@clisp.org>
81532
81533                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81534                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81535
81536         2006-07-22  Bruno Haible  <bruno@clisp.org>
81537
81538                 * gettext.h: Update to GNU gettext-0.15.
81539
81540 2006-07-22  Bruno Haible  <bruno@clisp.org>
81541
81542         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81543         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81544         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81545
81546 2006-07-21  Eric Blake  <ebb9@byu.net>
81547
81548         * modules/stdlib-safer: New file.
81549         * MODULES.html.sh (File stream based Input/Output): Add
81550         stdlib-safer.
81551
81552 2006-07-21  Eric Blake  <ebb9@byu.net>
81553
81554         * lib/stdlib-safer.h: New file from coreutils, required by
81555         stdlib--.h.
81556
81557 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81558
81559         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81560
81561 2006-07-20  Bruno Haible  <bruno@clisp.org>
81562
81563         * gnulib-tool: Recognize new option --assume-autoconf.
81564         (autoconf_minversion): New variable.
81565         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81566
81567 2006-07-20  Bruno Haible  <bruno@clisp.org>
81568
81569         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81570
81571 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81572
81573         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81574         Reindent and repaginate.
81575
81576 2006-07-19  Derek Price  <derek@ximbiot.com>
81577
81578         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81579         Correct grammar.
81580
81581 2006-07-17  Bruno Haible  <bruno@clisp.org>
81582
81583         * modules/list: New file.
81584         * modules/array-list: New file.
81585         * modules/carray-list, modules/carray-list-tests: New files.
81586         * modules/linked-list, modules/linked-list-tests: New files.
81587         * modules/avltree-list, modules/avltree-list-tests: New files.
81588         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81589         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81590         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81591         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81592         * modules/oset: New file.
81593         * modules/array-oset: New file.
81594         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81595         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81596         * tests/test-carray_list.c: New file.
81597         * tests/test-linked_list.c: New file.
81598         * tests/test-avltree_list.c: New file.
81599         * tests/test-rbtree_list.c: New file.
81600         * tests/test-linkedhash_list.c: New file.
81601         * tests/test-avltreehash_list.c: New file.
81602         * tests/test-rbtreehash_list.c: New file.
81603         * tests/test-avltree_oset.c: New file.
81604         * tests/test-rbtree_oset.c: New file.
81605         * MODULES.html.sh (Container data structures): New section.
81606
81607 2006-07-17  Bruno Haible  <bruno@clisp.org>
81608
81609         * m4/gl_list.m4: New file.
81610
81611 2006-07-17  Bruno Haible  <bruno@clisp.org>
81612
81613         * lib/gl_list.h: New file.
81614         * lib/gl_list.c: New file.
81615         * lib/gl_array_list.h: New file.
81616         * lib/gl_array_list.c: New file.
81617         * lib/gl_carray_list.h: New file.
81618         * lib/gl_carray_list.c: New file.
81619         * lib/gl_linked_list.h: New file.
81620         * lib/gl_linked_list.c: New file.
81621         * lib/gl_anylinked_list1.h: New file.
81622         * lib/gl_anylinked_list2.h: New file.
81623         * lib/gl_avltree_list.h: New file.
81624         * lib/gl_avltree_list.c: New file.
81625         * lib/gl_anyavltree_list1.h: New file.
81626         * lib/gl_anyavltree_list2.h: New file.
81627         * lib/gl_rbtree_list.h: New file.
81628         * lib/gl_rbtree_list.c: New file.
81629         * lib/gl_anyrbtree_list1.h: New file.
81630         * lib/gl_anyrbtree_list2.h: New file.
81631         * lib/gl_anytree_list1.h: New file.
81632         * lib/gl_anytree_list2.h: New file.
81633         * lib/gl_linkedhash_list.h: New file.
81634         * lib/gl_linkedhash_list.c: New file.
81635         * lib/gl_anyhash_list1.h: New file.
81636         * lib/gl_anyhash_list2.h: New file.
81637         * lib/gl_avltreehash_list.h: New file.
81638         * lib/gl_avltreehash_list.c: New file.
81639         * lib/gl_rbtreehash_list.h: New file.
81640         * lib/gl_rbtreehash_list.c: New file.
81641         * lib/gl_anytreehash_list1.h: New file.
81642         * lib/gl_anytreehash_list2.h: New file.
81643
81644         * lib/gl_oset.h: New file.
81645         * lib/gl_oset.c: New file.
81646         * lib/gl_array_oset.h: New file.
81647         * lib/gl_array_oset.c: New file.
81648         * lib/gl_avltree_oset.h: New file.
81649         * lib/gl_avltree_oset.c: New file.
81650         * lib/gl_rbtree_oset.h: New file.
81651         * lib/gl_rbtree_oset.c: New file.
81652         * lib/gl_anytree_oset.h: New file.
81653
81654 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81655
81656         * m4/mkancesdirs.m4: New file.
81657         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81658         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81659         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81660         it.
81661
81662 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81665         * lib/mkancesdirs.h: New files.
81666         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81667         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81668         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81669         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81670         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81671         callers changed.  Revamp internals significantly, by not
81672         attempting to create directories that are temporarily more
81673         permissive than the final results.  Do not attempt to use
81674         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81675         This removes some race conditions, fixes some bugs, and simplifies
81676         things.  Use new dirchownmod function to do owner and mode changes.
81677         * lib/mkdir-p.h: Likewise.
81678         * lib/modechange.c (octal_to_mode): New function.
81679         (struct mode_change): New member mentioned.
81680         (make_node_op_equals): New arg mentioned.  All callers changed.
81681         (mode_compile): Keep track of which mode bits the user has explicitly
81682         mentioned.
81683         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81684         New arg PMODE_BITS, to keep track of which mode bits the user
81685         mentioned; it treats S_ISUID and S_ISGID speciall.
81686         All callers changed.
81687         * lib/modechange.h: Likewise.
81688
81689 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81690
81691         * MODULES.html.sh: Add mkancestors.
81692         * modules/mkancesdirs: New module.
81693         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81694         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81695         The chdir-safer and afs files are now orphans; I'll remove them
81696         unless someone speaks up.
81697         Add lib/dirchownmod.c, lib/dirchownmod.h.
81698         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81699         Add lchown, mkancesdirs.
81700         (Maintainer): Add self.
81701
81702 2006-07-15  Karl Berry  <karl@gnu.org>
81703
81704         * gnulib-tool: help message wording/arrangement.
81705
81706 2006-07-14  Simon Josefsson  <jas@extundo.com>
81707
81708         * doc/gnulib.texi (Libtool and Windows): New section.
81709
81710 2006-07-12  Simon Josefsson  <jas@extundo.com>
81711
81712         * modules/gendocs (License): Fix license, approved by Karl.
81713
81714 2006-07-12  Eric Blake  <ebb9@byu.net>
81715
81716         * MODULES.html.sh: Add gendocs.
81717
81718 2006-07-11  Eric Blake  <ebb9@byu.net>
81719
81720         * modules/fdl: New module, to install doc/fdl.texi.
81721         * MODULES.html.sh: Add new section for documentation modules.
81722         * gnulib-tool: Avoid space-tab.
81723         (--doc-base): New option, to manage files from doc.
81724
81725 2006-07-11  Eric Blake  <ebb9@byu.net>
81726
81727         * m4/absolute-header.m4: Fix comments to match recent change.
81728
81729 2006-07-11  Eric Blake  <ebb9@byu.net>
81730
81731         * gnulib-tool: List --doc-base before --tests-base.
81732
81733 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81734
81735         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81736
81737 2006-07-11  Bruno Haible  <bruno@clisp.org>
81738
81739         * README: Mention where to put documentation.
81740
81741 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81742
81743         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81744
81745 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81746
81747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81748         to stdint.m4.
81749
81750 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81751
81752         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81753         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81754         "no/such/file/stdint.h" when there is no such file, so that
81755         the resulting C code can be parsed by dodgy compilers.
81756         Problems reported by Bob Proulx.
81757
81758 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81759
81760         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81761         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81762         macros into the GNU _D_EXACT_NAMLEN.
81763         * lib/savedir.c:  Likewise.
81764         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81765
81766 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81767         and Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81770         * m4/savedir.m4:
81771         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81772         macros into the GNU _D_EXACT_NAMLEN.
81773
81774 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81775
81776         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81777         around the absolute name, to work around a problem with the HP-UX
81778         11.23 native C compiler, reported by Bob Proulx.
81779
81780 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81781
81782         * doc/maintain.texi, make-stds.texi: Sync from
81783         <http://savannah.gnu.org/projects/gnustandards>.
81784
81785 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81788
81789 2006-07-09  Jim Meyering  <jim@meyering.net>
81790
81791         * m4/glob.m4: Remove a doubled word in a comment.
81792
81793 2006-07-09  Jim Meyering  <jim@meyering.net>
81794
81795         * lib/argp-pv.c: Remove a doubled word in a comment.
81796         * lib/check-version.c (check_version): Likewise.
81797         * lib/javacomp.c (compile_java_class): Likewise.
81798
81799 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81800
81801         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81802         for the benefit of people using Autoconf 2.60.  If you want to
81803         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81804         (or m4/onceonly.m4, if pre-2.57) manually.
81805
81806 2006-07-08  Jim Meyering  <jim@meyering.net>
81807
81808         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81809         comment.
81810         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81811         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81812         comment.
81813
81814 2006-07-08  Jim Meyering  <jim@meyering.net>
81815
81816         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81817
81818 2006-07-07  Simon Josefsson  <jas@extundo.com>
81819
81820         * tests/test-crc.c: Change expected crc value, the test vector
81821         were probably computed using the old broken crc.c?
81822
81823 2006-07-06  Simon Josefsson  <jas@extundo.com>
81824
81825         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81826         now the canonical place for the M4 file).
81827
81828         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81829         from the sys_socket dependency now.
81830
81831         * modules/inet_pton (Files): Ditto.
81832
81833         * modules/inet_ntop (Files): Ditto.
81834
81835 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81836
81837         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81838         not gl_PREREQ_GETUSERSHELL.
81839
81840 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81841
81842         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81843         with only one argument, for Autoconf 2.60.
81844         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81845         expand to nothing, so add a shell command to avoid syntax error.
81846         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81847
81848 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81849
81850         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81851
81852 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81855         no longer needed.  Check for isblank decl.
81856         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81857         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81858         of existence.
81859
81860 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81861
81862         * lib/getloadavg.c: Use __VMS, not VMS.
81863         * lib/getopt.c: Likewise.
81864         * lib/getpagesize.h: Likewise.
81865         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81866         and probably does not work.
81867
81868 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         * lib/.cppi-disable: Add wcwidth.
81871         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81872         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81873         (ISGRAPH): Remove.  All uses changed to isgraph.
81874         (FOLD) [!defined _LIBC]: Remove special case.
81875         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81876         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81877         HAVE_ISBLANK.
81878         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81879         case.
81880
81881 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81882
81883         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81884         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81885         brackets.  Other minor changes to suppress some compiler
81886         warnings.
81887
81888 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81889         and Paul Eggert  <eggert@cs.ucla.edu>
81890
81891         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81892         of invoking obsolescent AC_HEADER_DIRENT macro.
81893         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81894         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81895         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81896         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81897         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81898         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81899         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81900         * m4/readdir.m4: Remove; no longer needed.
81901
81902 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81903         and Paul Eggert  <eggert@cs.ucla.edu>
81904
81905         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81906         Don't worry about this obsolete case any more.
81907         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81908         directories.
81909         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81910         worry about this obsolete case any more.
81911         * lib/fts.c: Likewise.
81912         * lib/getcwd.c: Likewise.
81913         * lib/glob.h: Likewise.
81914         * lib/savedir.c: Likewise.
81915
81916 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81917
81918         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81919         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81920         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81921         needed.
81922         All uses removed.
81923         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81924         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81925         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81926         needed.
81927         * m4/getdate.m4 (gl_GETDATE): Likewise.
81928         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81929         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81930         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81931         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81932         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81933         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81934         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81935         needed.
81936
81937 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81938
81939         * lib/memcasecmp.c: Include <limits.h>.
81940         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81941         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81942         Don't assume isdigit succeeds only on '0' through '9'.
81943
81944 2006-07-05  Eric Blake  <ebb9@byu.net>
81945
81946         * modules/getaddrinfo (Depends-on): Add snprintf.
81947
81948 2006-07-05  Eric Blake  <ebb9@byu.net>
81949
81950         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81951         to avoid 'header present but could not be compiled' on cygwin.
81952
81953 2006-07-05  Eric Blake  <ebb9@byu.net>
81954
81955         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81956         missing from netdb.h.
81957         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81958
81959 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81960
81961         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81962         no longer needed.
81963         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81964         * m4/getdate.m4 (gl_GETDATE): Likewise.
81965         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81966         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81967         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81968         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81969         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81970
81971 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81972
81973         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81974         All uses of is_space replaced by isspace.
81975         * lib/exit.h: Don't talk about STDC_HEADERS.
81976         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81977         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81978         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81979         replaced by isprint etc.
81980         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81981         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81982         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81983         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81984         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81985         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81986
81987 2006-07-05  Bruno Haible  <bruno@clisp.org>
81988
81989         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81990         the function exists, before testing against AIX.
81991         Reported by Martin Lambers <marlam@marlam.de>.
81992
81993 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81994
81995         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81996         From Mark D. Baushke.
81997
81998 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81999
82000         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
82001         to the absolute name, not just one, to bypass Sun C 5.8's
82002         "warning: #include of /usr/include/... may be non-portable".
82003
82004 2006-07-04  Eric Blake  <ebb9@byu.net>
82005
82006         * modules/dirname-tests: New test module.
82007         * tests/test-dirname.c: New file, replacing dirname.c
82008         TEST_DIRNAME section that was recently deleted.
82009
82010 2006-07-04  Bruno Haible  <bruno@clisp.org>
82011
82012         Assume ANSI C header files and <ctype.h> functions.
82013         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
82014         (mbsnwidth): Use isprint, iscntrl instead.
82015
82016 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82017
82018         Merge from coreutils.
82019         * MODULES.html.sh: Add xstrtold.
82020         * modules/xstrtold: New file.
82021         * modules/cycle-check (Files): Add lib/same-inode.h.
82022         * modules/dirname (Files): Add m4/double-slash-root.m4.
82023         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
82024         * modules/mkdir-p (Files): Add lib/same-inode.h.
82025         * modules/same (Files): Add lib/same-inode.h.
82026
82027 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82028
82029         * m4/absolute-header.m4: Renamed from full-header-path.m4.
82030         This is to keep the terminology clean; POSIX talks about
82031         "absolute pathnames", not "full pathnames", but the GNU
82032         Coding Standards say to use "path" for something else;
82033         so use "absolute" to keep both sides happy.
82034         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
82035         Set gl_absolute_header, not gl_full_header_path.
82036         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
82037         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
82038         All uses changed.
82039
82040         Merge from coreutils.
82041
82042         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
82045         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
82046         want to require the building of c-strtod.o.
82047         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
82048         needs -lm directly.
82049         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
82050
82051         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82052
82053         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
82054         --as-needed option if available.  Problem reported by Albert Chin in
82055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
82056         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
82057         cc merely issues a bunch of annoying warnings for --as-needed
82058         (this problem was reported by Bob Proulx).  Also, try linking with
82059         -lm to detect a bug in binutils 2.16 (this problem was reported
82060         by Ralf Wildenhues).
82061
82062         2006-06-18  Jim Meyering  <jim@meyering.net>
82063
82064         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
82065         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
82066         macro.
82067         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
82068         also check for glibc-2.4's abort-inducing bug.
82069
82070         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
82071         Low-probability clean-up should be to use rmdir to get rid of
82072         the just-created directory, not unlink.
82073
82074         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
82075         configure fail, and request a bug report to inform us about it.
82076         Add a comment that, barring reports to the contrary, in 2007 we'll
82077         assume ftruncate is universally available.
82078
82079         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82082
82083         2006-03-12  Jim Meyering  <jim@meyering.net>
82084
82085         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82086         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82087         * m4/same.m4 (gl_SAME): Likewise.
82088         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82089
82090         2006-03-11  Eric Blake  <ebb9@byu.net>
82091
82092         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82093         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82094         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82095         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82096
82097 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82098
82099         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82100         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82101         reported by Mark D. Baushke, one in
82102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82103
82104         Merge from coreutils.
82105
82106         * lib/.cppi-disable: Add stdint_.h.
82107         * lib/.cvsignore: Add stdint.h.
82108
82109         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82112         both double and long double versions.
82113         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82114         * lib/xstrtold.c: New file.
82115         * lib/xstrtod.h (xstrtold): New decl.
82116
82117         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82118
82119         * lib/filemode.c (setst): Remove.
82120         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82121         (arguably) clearer, and the generated code is a bit smaller on my
82122         Debian GNU/Linux stable x86 host.
82123
82124         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82125
82126         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82127         Assume that filemode.h includes sys/types.h and sys/stat.h.
82128         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82129         (ftypelet): Reorder to put common cases first, for efficiency.
82130         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82131         to do 'M'.
82132         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82133         of 10, for compatibility with FreeBSD.  All callers changed.
82134         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82135         types that can't be deduced solely from st_mode.  First arg is now a
82136         const pointer.
82137         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82138         (strmode): Renamed from mode_string.
82139         (filemodestring): New decl.
82140         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82141         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82142         needed.
82143         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82144
82145         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82146
82147         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82148         fsusage.h now does that.  Include fsusage.h first, to test interface.
82149         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82150         at most one method (the old code could have generated decls that
82151         didn't conform to C89, not that this was ever exercised).
82152         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82153
82154         2006-03-19  Jim Meyering  <jim@meyering.net>
82155
82156         Work even in a chroot where d_ino values for entries in "/"
82157         don't match the stat.st_ino values for the same names.
82158         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82159         number, iterate through all entries again, using lstat instead.
82160         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82161         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82162
82163         * lib/getcwd.c (__getcwd): Clarify a comment.
82164         Use memcpy in place of a call to strcpy.
82165
82166         2006-03-12  Jim Meyering  <jim@meyering.net>
82167
82168         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82169         matches that of the current directory (which we're about to chdir ".."
82170         out of), then save the dev-ino of the parent, instead.
82171
82172         * lib/same-inode.h (SAME_INODE): New file/macro.
82173         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82174         Include "same-inode.h", instead.
82175         * lib/same.c: Likewise.
82176         * lib/cycle-check.h: Include "same-inode.h".
82177         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82178         * lib/cycle-check.c (SAME_INODE): Remove definition.
82179         * lib/root-dev-ino.h: Include "same-inode.h".
82180
82181         2006-03-11  Eric Blake  <ebb9@byu.net>
82182
82183         * lib/same.c (same_name): s/base_name/last_component/
82184         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82185         * lib/filenamecat.c (file_name_concat): Likewise.
82186
82187         2006-03-11  Eric Blake  <ebb9@byu.net>,
82188                     Paul Eggert  <eggert@cs.ucla.edu>
82189
82190         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82191         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82192         drive prefix.
82193         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82194         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82195         (last_component): New method.
82196         * lib/dirname.c (dir_len): Determine when drive letters need a
82197         subsequent slash.  Preserve // when it is special.
82198         (dir_name): Don't append dot when drive letter is absolute.
82199         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82200         * lib/basename.c (base_name): New semantics - malloc the result.
82201         Preserve // when it is special.  Preserve relative files that look
82202         like drive letters.
82203         (base_len): Preserve // when it is special.
82204         (last_component): New method, similar to old base_name semantics.
82205         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82206         base_name.  Strip redundant slashes from ///.
82207
82208 2006-07-03  Jim Meyering  <jim@meyering.net>
82209
82210         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82211         macro is used before the first cycle_check call.
82212
82213 2006-07-03  Eric Blake  <ebb9@byu.net>
82214
82215         * modules/dirname (Depends-on): Add xstrndup.
82216
82217 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82218
82219         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82220         test cases, so that config.log is a bit easier to follow.
82221
82222 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82223
82224         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82225         both are 64 bits, since this seems to be the tradition, and this
82226         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82227         we ever run into a host that prefers long long to long in this
82228         case, we'll need another configure-time test.  Problem reported by
82229         Jim Meyering.
82230
82231 2006-07-02  Eric Blake  <ebb9@byu.net>
82232
82233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82234
82235 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82236
82237         * modules/inttypes (Depends-on): No longer depends on stdint.
82238         * modules/stdint (Description): Say more about assumptions.
82239         Say that the fast types might differ.  Say macros are used.
82240         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82241         (Makefile.am): Revise list of substituted symbols to match
82242         new stdint.m4.
82243         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82244         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82245         * tests/test-stdint.c (verify_same_types)
82246         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82247         the code conforms to C99/C89.
82248         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82249         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82250
82251 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82252
82253         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82254         but fix a bug, by requiring at least 64 bits.
82255         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82256         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82257         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82258         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82259
82260         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82261         changes.  Make 2.59 a prerequisite.  Check and substitute for
82262         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82263         inttypes.h.  Do not use special include files; just use the
82264         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82265         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82266         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82267         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82268         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82269         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82270         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82271         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82272         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82273         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82274         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82275         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82276         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82277         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82278         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82279         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82280         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82281         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82282         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82283         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82284         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82285         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82286         not check for things that C99 does not require, e.g., int8_t.  If
82287         a test isn't needed unless <stdint.h> isn't working, and is
82288         unlikely to be needed for any other reason, then don't do it
82289         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82290         size_t, since we assume C89 freestanding at least.  Do not check
82291         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82292         the right thing even if the types are not defined.  Instead use:
82293         (gl_STDINT_TYPE_PROPERTIES): New macro.
82294         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82295         testing whether <sys/types.h> clashes, as Autoconf does this for
82296         us now.  All uses removed.
82297         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82298         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82299         (gl_CHECK_TYPE_SAME):
82300         Remove; no longer needed.
82301         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82302         exists, since we'll return 0 anyway in that case.
82303         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82304
82305 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82308         possible collision with system files.
82309         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82310         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82311         WCHAR_MIN and WCHAR_MAX in this case.
82312         (<stddef.h>): Do not include; no longer needed.
82313         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82314         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82315         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82316         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82317         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82318         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82319         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82320         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82321         !defined(__c99))]: Include in this case too, since it's harmless
82322         now.
82323         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82324         dangerous to do so.
82325         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82326         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82327         (_STDINT_MIN, _STDINT_MAX): New macros.
82328         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82329         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82330         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82331         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82332         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82333         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82334         macros, not typedefs; this simplifies things quite a bit.
82335         Use long int for all types narrower than int64_t.
82336         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82337         Define in terms of long long int or int64_t or long int,
82338         not int64_t or int32_t.  This saves some compile-time testing.
82339         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82340         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82341         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82342         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82343         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82344         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82345         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82346         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82347         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82348         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82349         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82350         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82351         undef any previous version and define our own version, for
82352         simplicity and consistency with the new macros for types.
82353         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82354         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82355         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82356         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82357         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82358         @WINT_T_SUFFIX@ to keep things simple here.
82359         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82360         Simplify by assuming typical 8/16/32/64 host, since we're
82361         already doing that elsewhere anyway.
82362         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82363         and assume long long int is 64 bits if available.  This
82364         speeds up 'configure'.
82365
82366 2006-07-01  Eric Blake  <ebb9@byu.net>
82367
82368         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82369         Reported by Andreas Buening.
82370
82371 2006-07-01  Eric Blake  <ebb9@byu.net>
82372
82373         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82374
82375 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82376
82377         * lib/getaddrinfo.c: fixed typo
82378
82379 2006-06-29  Jim Meyering  <jim@meyering.net>
82380
82381         * modules/strftime (Maintainer): Add my name, since with the
82382         FPRINTFTIME changes strftime.c has forked from glibc.
82383
82384 2006-06-29  Eric Blake  <ebb9@byu.net>
82385
82386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82387
82388 2006-06-29  Eric Blake  <ebb9@byu.net>
82389
82390         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82391
82392 2006-06-29  Eric Blake  <ebb9@byu.net>
82393
82394         * lib/stat_.h: New file.
82395
82396 2006-06-29  Eric Blake  <ebb9@byu.net>
82397
82398         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82399         unused static function.
82400
82401 2006-06-29  Eric Blake  <ebb9@byu.net>
82402
82403         * doc/functions.texi (Function Portability): Document missing lstat
82404         on mingw.
82405
82406 2006-06-29  Eric Blake  <ebb9@byu.net>
82407
82408         * MODULES.html.sh: Add sys_stat.
82409         * modules/sys_stat: New module.
82410         * modules/mkstemp (Depends-on): Add sys_stat.
82411
82412 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82413
82414         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82415
82416 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82417
82418         * m4/c-bs-a.m4: Removed.
82419
82420 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82421
82422         * lib/strftime.c: Assume strftime() exists.
82423
82424 2006-06-29  Derek Price  <derek@ximbiot.com>
82425
82426         * modules/c-bs-a: Removed - \a is C89.
82427         * MODULES.html.sh: Remove c-bs-a.
82428
82429 2006-06-29  Bruno Haible  <bruno@clisp.org>
82430
82431         * modules/wcwidth (License): Change to LGPL.
82432
82433 2006-06-28  Simon Josefsson  <jas@extundo.com>
82434
82435         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82436         on _WIN32.
82437
82438         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82439         getnameinfo.
82440
82441 2006-06-28  Simon Josefsson  <jas@extundo.com>
82442
82443         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82444
82445 2006-06-28  Simon Josefsson  <jas@extundo.com>
82446
82447         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82448         functions there.  It will succeed on Windows XP, but on Windows
82449         2000 and (presumably) earlier, it will fail, and use the internal
82450         re-implementation.
82451         (use_win32_p): New function.
82452         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82453         Support AI_NUMERICSERV to disable getservbyname.
82454         (getnameinfo): New function, only supports
82455         NI_NUMERICHOST|NI_NUMERICSERV for now.
82456
82457         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82458         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82459         getnameinfo.
82460
82461 2006-06-28  Eric Blake  <ebb9@byu.net>
82462
82463         * modules/wcwidth: New file.
82464         * modules/mbchar (Depends-on): Add wcwidth.
82465         * modules/mbswidth (Depends-on): Add wcwidth.
82466         * MODULES.html.sh: Add wcwidth.
82467
82468 2006-06-28  Eric Blake  <ebb9@byu.net>
82469
82470         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82472
82473 2006-06-28  Eric Blake  <ebb9@byu.net>
82474
82475         * lib/xvasprintf.h: Fix comments.
82476
82477 2006-06-28  Eric Blake  <ebb9@byu.net>
82478
82479         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82480         * lib/mbswidth.c (wcwidth): Move from here...
82481         * lib/wcwidth.h: ...to this new file.
82482
82483 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82484
82485         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82486
82487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82488         it's obsolete.
82489         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82490
82491 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82492
82493         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82494         Autoconf 2.60 says this stuff was obsolete.
82495
82496 2006-06-28  Bruno Haible  <bruno@clisp.org>
82497
82498         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82499
82500 2006-06-28  Bruno Haible  <bruno@clisp.org>
82501
82502         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82503         gt_TYPE_WCHAR_T.
82504
82505 2006-06-28  Bruno Haible  <bruno@clisp.org>
82506
82507         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82508         declaration for wcwidth.
82509         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82510
82511 2006-06-28  Bruno Haible  <bruno@clisp.org>
82512
82513         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82514         (mkdir): Define using _mkdir.
82515
82516 2006-06-28  Bruno Haible  <bruno@clisp.org>
82517
82518         * lib/getaddrinfo.h: Fix POSIX URL.
82519         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82520         _WIN32.
82521         (use_win32_p): Make static.
82522         (getaddrinfo): Reject service name if it is empty or does not consist
82523         solely of decimal digits, or if its value is > 65535.
82524         (getnameinfo): Remove useless casts.
82525
82526 2006-06-27  Simon Josefsson  <jas@extundo.com>
82527
82528         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82529         Eggert and Martin Lambers.
82530
82531 2006-06-27  Simon Josefsson  <jas@extundo.com>
82532
82533         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82534         Eggert and Martin Lambers.
82535
82536 2006-06-27  Bruno Haible  <bruno@clisp.org>
82537
82538         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82539         result to 0, not to empty.
82540         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82541
82542 2006-06-27  Bruno Haible  <bruno@clisp.org>
82543
82544         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82545
82546 2006-06-26  Simon Josefsson  <jas@extundo.com>
82547
82548         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82549         present.
82550
82551 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82552
82553         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82554         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82555         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82556
82557 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82558
82559         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82560
82561 2006-06-26  Bruno Haible  <bruno@clisp.org>
82562
82563         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82564
82565 2006-06-26  Bruno Haible  <bruno@clisp.org>
82566
82567         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82568
82569 2006-06-26  Bruno Haible  <bruno@clisp.org>
82570
82571         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82572         SGI C compiler in pre-C99 mode.
82573         Suggested by Mark D. Baushke and Larry Jones.
82574
82575 2006-06-26  Bruno Haible  <bruno@clisp.org>
82576
82577         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82578         WCHAR_MAX.
82579         Reported by Mark D. Baushke and Larry Jones.
82580
82581 2006-06-26  Bruno Haible  <bruno@clisp.org>
82582
82583         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82584         in pre-C99 mode.
82585         Suggested by Mark D. Baushke and Larry Jones.
82586
82587 2006-06-23  Simon Josefsson  <jas@extundo.com>
82588             Bruno Haible  <bruno@clisp.org>
82589
82590         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82591         Emit mostlyclean-local rule.
82592         (func_emit_tests_Makefile_am): Likewise.
82593         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82594
82595 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82596
82597         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82598
82599 2006-06-23  Bruno Haible  <bruno@clisp.org>
82600
82601         * tests/test-stdint.c: Update to match ISO C 99 Technical
82602         Corrigendum 1.
82603
82604 2006-06-23  Bruno Haible  <bruno@clisp.org>
82605
82606         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82607
82608 2006-06-23  Bruno Haible  <bruno@clisp.org>
82609
82610         * lib/stdint_.h: Treat IRIX like OpenBSD.
82611
82612 2006-06-23  Bruno Haible  <bruno@clisp.org>
82613
82614         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82615         ISO C 99 Technical Corrigendum 1.
82616
82617 2006-06-22  Simon Josefsson  <jas@extundo.com>
82618
82619         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82620         MinGW.
82621
82622 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82623
82624         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82625         needed.  Some compiler complained about some of them.  Problem reported
82626         by Larry Jones in
82627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82628
82629 2006-06-21  Simon Josefsson  <jas@extundo.com>
82630
82631         * tests/test-getaddrinfo.c: New file.
82632
82633         * modules/getaddrinfo-tests: New file.
82634
82635         * MODULES.html.sh: Add inet_pton.
82636
82637         * modules/inet_pton: New file.
82638
82639 2006-06-21  Simon Josefsson  <jas@extundo.com>
82640
82641         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82642         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82643         of using the (limited) gnulib implementation on Windows XP.
82644
82645         * m4/inet_pton.m4: New file.
82646
82647 2006-06-21  Simon Josefsson  <jas@extundo.com>
82648
82649         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82650         variable.
82651
82652         * lib/socket_.h: Don't define WINVER.
82653
82654         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82655         slightly modified to work in gnulib.
82656
82657 2006-06-21  Simon Josefsson  <jas@extundo.com>
82658
82659         * doc/gnulib.texi (Windows sockets): Add.
82660
82661 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82662
82663         * lib/read-file.c (fread_file): Start with buffer allocation of
82664         0 bytes rather than 1 byte; this simplifies the code.
82665         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82666         code to free buffer and save/restore errno.
82667         (internal_read_file): Remove unused local.
82668
82669 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82670
82671         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82672         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82673         Problem reported by Denis Excoffier in
82674         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82675
82676 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82677
82678         * modules/sys_socket, modules/socklen: Include sys/types since
82679         FreeBSD 4.x's sys/socket.h needs it.
82680
82681 2006-06-19  Simon Josefsson  <jas@extundo.com>
82682
82683         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82684
82685 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82686
82687         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82688
82689 2006-06-19  Bruno Haible  <bruno@clisp.org>
82690
82691         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82692         and FULL_PATH_INTTYPES_H in angle brackets.
82693         Reported by Mark D. Baushke <mdb@gnu.org>.
82694
82695 2006-06-17  Eric Blake  <ebb9@byu.net>
82696
82697         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82698         errno.
82699
82700 2006-06-17  Bruno Haible  <bruno@clisp.org>
82701
82702         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82703         <sys/inttypes.h>.
82704
82705 2006-06-17  Bruno Haible  <bruno@clisp.org>
82706
82707         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82708         whether errno is declared. Assume <errno.h> declares errno.
82709
82710 2006-06-17  Bruno Haible  <bruno@clisp.org>
82711
82712         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82713
82714 2006-06-17  Bruno Haible  <bruno@clisp.org>
82715
82716         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82717         problem on Solaris 2.5.1.
82718
82719 2006-06-16  Eric Blake  <ebb9@byu.net>
82720
82721         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82722         * lib/unicodeio.c [!defined errno]: Likewise.
82723         * lib/strtol.c [!defined errno]: Likewise.
82724         * lib/strtod.c [!defined errno]: Likewise.
82725
82726 2006-06-15  Eric Blake  <ebb9@byu.net>
82727
82728         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82729
82730 2006-06-15  Eric Blake  <ebb9@byu.net>
82731
82732         * config/srclist.txt (ssize_t.m4): Lose sync.
82733
82734 2006-06-15  Bruno Haible  <bruno@clisp.org>
82735
82736         * modules/stdint (Files): Include m4/full-header-path.m4,
82737         m4/size_max.m4, m4/wchar_t.m4.
82738         (Makefile.am): Many more substitutions.
82739         * modules/stdint-tests: New file.
82740         * tests/test-stdint.c: New file.
82741
82742 2006-06-15  Bruno Haible  <bruno@clisp.org>
82743
82744         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82745         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82746         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82747         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82748         gl_CHECK_TYPE_SAME): New macros.
82749
82750 2006-06-15  Bruno Haible  <bruno@clisp.org>
82751
82752         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82753
82754 2006-06-15  Bruno Haible  <bruno@clisp.org>
82755
82756         * lib/stdint_.h: Rewritten to be fully auto-configured.
82757         Fixes bug on HP-UX/IA64.
82758
82759 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82760
82761         * lib/getdate.y (__attribute__): Don't define if already defined.
82762         Problem reported by Larry Jones.
82763         * lib/utimens.c (__attribute__): Likewise.
82764
82765 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82766
82767         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82768         reported by Andreas Schwab.
82769
82770 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82771             Bruno Haible  <bruno@clisp.org>
82772
82773         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82774         check for the declaration of strnlen and a run test that exposes the
82775         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82776         rpl_strndup.
82777
82778 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82779             Bruno Haible  <bruno@clisp.org>
82780
82781         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82782
82783 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82784
82785         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82786         compile test, for Tru64 4.0D.
82787
82788 2006-05-28  Karl Berry  <karl@gnu.org>
82789
82790         * config/srclist.txt (printf-args.c): lose sync.
82791
82792 2006-05-26  Martin Lambers  <marlam@marlam.de>
82793
82794         * lib/getpass.c: Updates the test for the native W32 API, and adds
82795         missing includes, thus fixing compilation warnings.
82796
82797 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82798
82799         * lib/exclude.c (exclude_fnmatch): New function.
82800         (excluded_file_name): Call exclude_fnmatch.
82801         * lib/exclude.h (excluded_file_name): New prototype
82802
82803 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82804
82805         * lib/tempname.c (small_open, large_open): New macros.
82806         (__open, __open64) [!_LIBC]: Remove.
82807         (__gen_tempname): Use small_open and large_open instead of __open
82808         and __open64.  This fixes a portability bug on HP-UX 11.11i
82809         reported by Simon Wing-Tang in
82810         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82811
82812 2006-05-24  Bruno Haible  <bruno@clisp.org>
82813
82814         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82815         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82816         Reported by Thorsten Maerz <torte@netztorte.de> via
82817         Aaron Stone <aaron@serendipity.cx>.
82818
82819 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82822         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82823         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82824         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82825         not really conditional on the cache.
82826         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82827
82828 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82829
82830         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82831         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82832         (my_usleep): Don't mishandle maximum value.
82833
82834 2006-05-19  Jim Meyering  <jim@meyering.net>
82835
82836         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82837
82838 2006-05-17  Bruno Haible  <bruno@clisp.org>
82839
82840         Cygwin portability.
82841         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82842
82843 2006-05-17  Bruno Haible  <bruno@clisp.org>
82844
82845         * lib/stdint_.h: Fix recognition of Cygwin.
82846
82847 2006-05-15  Bruno Haible  <bruno@clisp.org>
82848
82849         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82850         on libtool patch by Ralf Wildenhues.
82851
82852 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82855         test for C99 conformance; (bool) 0.5 is an integer constant
82856         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82857         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82858
82859 2006-05-11  Simon Josefsson  <jas@extundo.com>
82860
82861         * m4/xvasprintf.m4: Fix obvious typo.
82862
82863 2006-05-11  Jim Meyering  <jim@meyering.net>
82864
82865         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82866         James Lemley.
82867
82868 2006-05-10  Simon Josefsson  <jas@extundo.com>
82869
82870         * lib/md4.c: Typo fix, update copyright years.
82871         (K1, K2): Don't use L because it turn computations into 64-bit on
82872         64-bit platforms.
82873
82874 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82875
82876         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82877         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82878         unwanted sign propagation, e.g., on hosts with 64-bit int.
82879         There still are some problems with reeelly weird theoretical hosts
82880         (e.g., 33-bit int) but it's not worth worrying about now.
82881         * lib/sha1.c (rol): Likewise.
82882         (K1, K2, K3, K4): Remove unnecessary L suffix.
82883
82884 2006-05-10  Bruno Haible  <bruno@clisp.org>
82885
82886         * lib/des.c: Cast to avoid warnings.
82887
82888 2006-05-09  Bruno Haible  <bruno@clisp.org>
82889
82890         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82891         (Depends-on): Depend also on xsize, stdarg.
82892         (configure.ac): Add gl_XVASPRINTF.
82893
82894 2006-05-09  Bruno Haible  <bruno@clisp.org>
82895
82896         * m4/xvasprintf.m4: New file.
82897
82898 2006-05-09  Bruno Haible  <bruno@clisp.org>
82899
82900         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82901         (EOVERFLOW): Define fallback value.
82902         (xstrcat): New function.
82903         (xvasprintf): Recognize the special case of a string concatenation.
82904
82905 2006-05-08  Eric Blake  <ebb9@byu.net>
82906
82907         * gnulib-tool (func_version): Base copyright year on CVS date.
82908         (func_emit_copyright_notice): New function.
82909         (func_emit_lib_Makefile_am): Use it.
82910         (func_emit_tests_Makefile_am): Likewise.
82911         (func_import): Likewise.
82912
82913 2006-05-08  Bruno Haible  <bruno@clisp.org>
82914
82915         * modules/stdarg: New file.
82916         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82917
82918 2006-05-08  Bruno Haible  <bruno@clisp.org>
82919
82920         * m4/stdarg.m4: New file, from GNU gettext.
82921
82922 2006-05-08  Bruno Haible  <bruno@clisp.org>
82923
82924         * config/srclist.txt (build-aux/config.rpath): different from latest
82925         release.
82926
82927 2006-05-08  Bruno Haible  <bruno@clisp.org>
82928
82929         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82930
82931 2006-05-05  Jim Meyering  <jim@meyering.net>
82932
82933         * m4/warning.m4: New file, derived from bison's file by the same name.
82934
82935 2006-05-03  Bruno Haible  <bruno@clisp.org>
82936
82937         * lib/stdint_.h: Shorter URL.
82938         * lib/inttypes.h: Likewise.
82939
82940 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82941
82942         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82943
82944 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82945
82946         * lib/verify.h: Document the internals better.  Most of this change
82947         was written by Bruno Haible.
82948
82949 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82950
82951         * doc/verify.texi: New file, partly based on a proposal by
82952         Bruno Haible.
82953
82954 2006-05-02  Bruno Haible  <bruno@clisp.org>
82955
82956         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82957         test from here...
82958         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82959
82960 2006-04-29  Bruno Haible  <bruno@clisp.org>
82961
82962         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82963         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82964
82965 2006-04-29  Bruno Haible  <bruno@clisp.org>
82966
82967         * gnulib-tool: Make --update option actually work.
82968
82969 2006-04-29  Bruno Haible  <bruno@clisp.org>
82970
82971         * doc/gcd.texi: New file.
82972         * doc/gnulib.texi: Include it.
82973
82974 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82975
82976         * lib/getdate.y (get_date): When adding relative date, start with the
82977         initial time, not with the result of the first mktime call.
82978
82979 2006-04-25  Bruno Haible  <bruno@clisp.org>
82980
82981         * gnulib-tool (func_import): Output the include directives in three
82982         blocks, sorted separately.
82983         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82984
82985 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82986
82987         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82988         to define main with arguments, for C++.  Reported by Eric Blake.
82989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82990         Prefer 'int main ()' to 'int main (void)', for C++.
82991         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82992         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82993         for 'main', for C99 and C++.
82994
82995 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82996
82997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82998         Don't assume that exit status -1 is valid.
82999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83000         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
83001         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
83002         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
83003         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
83004         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
83005         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
83006         functions can be used without declaring them, or that you can
83007         exit with status -1.
83008         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
83009
83010 2006-04-24  Karl Berry  <karl@gnu.org>
83011
83012         * config/srclist.txt (longdouble.m4): sync lost.
83013
83014 2006-04-24  Eric Blake  <ebb9@byu.net>
83015
83016         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
83017
83018 2006-04-24  Bruno Haible  <bruno@clisp.org>
83019
83020         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
83021         poll() implementation in AIX.
83022         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83023
83024 2006-04-24  Bruno Haible  <bruno@clisp.org>
83025
83026         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
83027         assigned exactly once.
83028
83029 2006-04-23  Claudio Fontana  <claudio@gnu.org>
83030             Bruno Haible  <bruno@clisp.org>
83031
83032         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
83033         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
83034         for AM_CPPFLAGS.
83035
83036 2006-04-23  Bruno Haible  <bruno@clisp.org>
83037
83038         * modules/copy-file: Depend on unistd.
83039         * modules/execute: Likewise.
83040         * modules/fatal-signal: Likewise.
83041         * modules/findprog: Likewise.
83042         * modules/mkdtemp : Likewise.
83043         * modules/pipe: Likewise.
83044         * modules/wait-process: Likewise.
83045
83046 2006-04-23  Bruno Haible  <bruno@clisp.org>
83047
83048         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
83049         condition was already detected.
83050         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83051
83052 2006-04-23  Bruno Haible  <bruno@clisp.org>
83053
83054         * lib/copy-file.c: Include <unistd.h> unconditionally.
83055         * lib/execute.c: Likewise.
83056         * lib/fatal-signal.c: Likewise.
83057         * lib/findprog.c: Likewise.
83058         * lib/mkdtemp.c: Likewise.
83059         * lib/pipe.h: Likewise.
83060         * lib/pipe.c: Likewise.
83061         * lib/wait-process.h: Likewise.
83062
83063 2006-04-23  Bruno Haible  <bruno@clisp.org>
83064
83065         * gnulib-tool (func_usage): Fix --import description. Document
83066         --update.
83067         (func_import): Create temporary file in a temporary directory, if
83068         --dry-run is specified. Silence errors from 'grep' when there are no
83069         m4 files in $m4dir.
83070         (func_create_testdir): Silence errors from 'grep' when there are no
83071         m4 files in $m4dir.
83072         Reported by Karl Berry <karl@freefriends.org>.
83073
83074 2006-04-20  Bruno Haible  <bruno@clisp.org>
83075
83076         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83077         one argument, so that the code will be portable to Autoconf 2.60.
83078         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83079         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83080         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83081
83082 2006-04-19  Derek Price  <derek@ximbiot.com>
83083             Eric Blake  <ebb9@byu.net>
83084
83085         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83086         rather than "/full/path.h".  Update comment to match.  Shorten &
83087         generalize m4_translit call via AS_TR_CPP.
83088
83089 2006-04-19  Derek Price  <derek@ximbiot.com>
83090             Eric Blake  <ebb9@byu.net>
83091
83092         * lib/inttypes.h: Correct grammar in comment.
83093
83094 2006-04-18  Derek Price  <derek@ximbiot.com>
83095             Paul Eggert  <eggert@cs.ucla.edu>
83096
83097         * modules/inttypes: New file.
83098         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83099
83100 2006-04-18  Derek Price  <derek@ximbiot.com>
83101             Paul Eggert  <eggert@cs.ucla.edu>
83102
83103         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83104         New files.
83105
83106 2006-04-18  Derek Price  <derek@ximbiot.com>
83107             Paul Eggert  <eggert@cs.ucla.edu>
83108
83109         * lib/inttypes.h: New file.
83110         * lib/strtoimax.c: Assume <inttypes.h>.
83111
83112 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83113
83114         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83115         isn't mounted.  Problem reported by Kir Kolyshkin.
83116
83117 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83118
83119         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83120         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83121         Derek R. Price.
83122         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83123         implementation.
83124
83125 2006-04-12  Eric Blake  <ebb9@byu.net>
83126
83127         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83128         is now done automatically by the corresponding Autoconf macro.
83129
83130 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83131
83132         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83133         time_r.h.
83134
83135 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83136
83137         Merge regex changes from libc, removing some of our
83138         POSIX-conformance changes that were rejected and redoing them in a
83139         less-intrusive way.
83140
83141         * lib/regcomp.c (re_compile_internal, init_dfa):
83142         Length arg is now size_t, not Idx.  All uses changed.
83143         (peek_token): Forward decl now says internal_function.
83144         (__re_error_msgid, __re_error_msgid_idx):
83145         Now static rather than extern with attribute_hidden.
83146         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83147         For some reason libc prefers K&R style defns for external functions.
83148         (regerror) [!defined _LIBC]: Likewise.
83149         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83150         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83151         (build_range_exp, build_collating_symbol):
83152         Use K&R-style defn.
83153         (re_compile_fastmap): Use '\0' to memset, not 0.
83154         (utf8_sb_map): Make the calculations more obvious.
83155         (init_dfa, parse_bracket_exp, build_charclass_op):
83156         Call calloc and cast result, as glibc does.
83157         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83158         (build_range_exp, build_collating_symbol):
83159         Now internal functions.
83160
83161         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83162
83163         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83164         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83165         Don't depend on VMS; depend on __VMS instead, for POSIX
83166         namespace cleanness.
83167         (regoff_t): Define to ssize_t, not long int.
83168
83169         Remove the REG_ macros named below.  Instead, make the old names
83170         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83171         __USE_GNU_REGEX.
83172         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83173         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83174         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83175         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83176         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83177         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83178         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83179         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83180         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83181         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83182         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83183         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83184         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83185         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83186         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83187         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83188         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83189         (REG_NREGS):
83190         Remove.  All uses replaced by the old RE_* names.
83191         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83192         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83193         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83194         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83195         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83196         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83197         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83198         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83199         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83200         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83201         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83202         Don't bother having these macros be independent of each others'
83203         values, since they no longer exist in the POSIX name space.
83204
83205         Rename the following member names back to their old names,
83206         unless !__USE_GNU_REGEX.  All uses changed back.
83207         (buffer): Renamed from re_buffer.
83208         (allocated): Renamed from re_allocated.
83209         (used): Renamed from re_used.
83210         (syntax): Renamed from re_syntax.
83211         (fastmap): Renamed from re_fastmap.
83212         (translate): Renamed from re_translate.
83213         (can_be_null): Renamed from re_can_be_null.
83214         (regs_allocated): Renamed from re_regs_allocated.
83215         (fastmap_accurate): Renamed from re_fastmap_accurate.
83216         (no_sub): Renamed from re_no_sub.
83217         (not_bol): Renamed from re_not_bol.
83218         (not_eol): Renamed from re_not_eol.
83219         (newline_anchor): Renamed from re_newline_anchor.
83220         (num_regs): Renamed from rm_num_regs.
83221         (start): Renamed from rm_start.
83222         (end): Renamed from rm_end.
83223
83224         (free_state): Move up a bit.
83225
83226         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83227         #define to be empty.
83228         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83229         when that is what is intended.
83230         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83231         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83232         (MAX): New macro.
83233         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83234         All uses changed back to re_malloc, etc.  It's now the caller's
83235         responsibility to check for overflow; all callers changed.
83236         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83237         (re_x2nrealloc): Remove.
83238         (free_state): Remove decl.
83239
83240         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83241         (re_set_registers, re_exec):
83242         Use K&R-style defn.
83243
83244         2006-01-31  Roland McGrath  <roland@redhat.com>
83245
83246         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83247         Reported by Mike Frysinger <vapier@gentoo.org>.
83248
83249         2006-01-15  Andreas Jaeger  <aj@suse.de>
83250
83251         [BZ #1950]
83252         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83253         build_wcs_upper_buffer change.
83254         (build_wcs_upper_buffer): Change return type.
83255
83256         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83257
83258         * lib/regex_internal.h: Include <stdint.h> if available.
83259
83260         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83261
83262         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83263
83264         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83265
83266         * lib/regcomp.c: Adjust for changed secondary hash function.
83267
83268         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83269
83270         * lib/regex.h: Pretty printing.
83271         Clean up namespace a bit.
83272
83273         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83274
83275         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83276         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83277
83278         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83279                     Ulrich Drepper  <drepper@redhat.com>
83280
83281         [BZ #1302]
83282         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83283         changed.
83284         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83285
83286         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83287
83288         [BZ #281]
83289         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83290         * lib/regcomp.c: Remove unnecessary uses of
83291         unsigned RE_TRANSLATE_TYPE.
83292         * lib/regex_internal.h: Likewise.
83293         * lib/regex_internal.c: Likewise.
83294         * lib/regexec.c: Likewise.
83295         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83296
83297         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83298
83299         * lib/regexec.c (find_recover_state): Remove unnecessary
83300         initialization.
83301         (transit_state_bkref): Make DFA a const pointer.
83302         (get_subexp): Likewise.
83303         (check_arrival): Likewise.
83304         (update_cur_sifted_state): Likewise.
83305         (re_search_internal): Likewise.
83306         (prune_impossible_nodes): Likewise.
83307         (acquire_init_state_context): Likewise.
83308         (proceed_next_node): Likewise.
83309         (set_regs): Likewise.
83310         (free_fail_stack_return): Likewise.
83311         (check_arrival_expand_ecl): Mark DFA parameter as const.
83312         (check_arrival_expand_ecl_sub): Likewise.
83313         (check_subexp_limits): Likewise.
83314         (sub_epsilon_src_nodes):  Likewise.
83315         (add_epsilon_src_nodes):  Likewise.
83316         (merge_state_array): Likewise.
83317         (update_regs): Likewise.
83318         (build_trtable): Likewise.
83319         (sift_states_backward): Mark MCTX parameter as const.
83320         (build_sifted_states): Likewise.
83321         (update_cur_sifted_state): Likewise.
83322         (sift_states_mkref): Likewise.
83323         (check_arrival_expand_ecl): Mark eclosure as const.
83324         (check_dst_limits_calc_pos_1): Likewise.
83325         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83326         pointer.
83327
83328         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83329
83330         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83331         (transit_state_sb): Likewise.
83332         (transit_state_mb): Likewise.
83333         (sift_states_iter_mb): Likewise.
83334         (check_arrival_add_next_nodes): Likewise.
83335         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83336         [_LIBC] (re_search_2_stub): Use mempcpy.
83337
83338         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83339         mbrtowc for very simple UTF-8 case.
83340
83341         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83342         a pointer-to-const.
83343         (re_acquire_state_context): Likewise.
83344         * lib/regex_internal.h: Adjust prototypes.
83345
83346         * lib/regex.c: Prevent using C++ compilers.
83347
83348         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83349         (re_acquire_state_context): Likewise.
83350
83351 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * modules/regex (Depends-on): Add ssize_t.
83354
83355 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83356
83357         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83358         translation table.
83359
83360 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83361
83362         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83363
83364 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83365             Bruno Haible  <bruno@clisp.org>
83366
83367         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83368         <sys/types.h> and <inttypes.h>.
83369
83370 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83371
83372         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83373         `__error_t_defined', so argp.h will not typedef the former.
83374
83375 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83376
83377         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83378         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83379         glibc names.  Even if glibc is changed to conform to POSIX, the
83380         traditional names will be available anyway, since regex depends on
83381         the extensions module.  Also, fix a longstanding typo in the
83382         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83383         reported by Emanuele Giaquinta.  Also, change sense of cached
83384         variable, so that the message makes sense.
83385
83386 2006-03-24  Simon Josefsson  <jas@extundo.com>
83387
83388         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83389         including some doc fixes.
83390         (base64_encode_alloc): Fix +1 bug on allocation failures.
83391
83392 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83393
83394         * lib/base64.c (base64_encode): Do not read past end of array with
83395         unsanitized input on systems with CHAR_BIT > 8.
83396
83397 2006-03-24  Eric Blake  <ebb9@byu.net>
83398
83399         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83400
83401 2006-03-22  Karl Berry  <karl@gnu.org>
83402
83403         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83404         * config/srclistvars.sh (COREUTILS): new var.
83405
83406 2006-03-17  Jim Meyering  <jim@meyering.net>
83407
83408         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83409         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83410
83411 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83412
83413         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83414         no longer needs it.  Instead, check that regoff_t is as least
83415         as wide as ptrdiff_t.
83416
83417         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83418         so that our regex.h stays compatible with the installed regex.
83419         This is helpful for installers who configure --without-included-regex.
83420         Problem reported by Emanuele Giaquinta.
83421
83422 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83423
83424         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83425         Typedef to long int, not to off_, as POSIX will likely change
83426         in that direction.
83427
83428 2006-03-15  Eric Blake  <ebb9@byu.net>
83429
83430         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83431
83432 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83433
83434         * lib/argp-help.c (validate_uparams): Fix typo
83435         * lib/argp-parse.c (argp_default_options): Consistently begin help
83436         messages with a lowercase letter.
83437
83438 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83439
83440         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83441         overrun buffers and shouldn't be used (much as gets shouldn't be
83442         used).
83443         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83444
83445 2006-03-08  Simon Josefsson  <jas@extundo.com>
83446
83447         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83448         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83449
83450 2006-03-08  Simon Josefsson  <jas@extundo.com>
83451
83452         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83453         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83454
83455 2006-03-08  Simon Josefsson  <jas@extundo.com>
83456
83457         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83458         signal that configure disabled the device.
83459
83460 2006-03-08  Simon Josefsson  <jas@extundo.com>
83461
83462         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83463         languages.
83464
83465 2006-03-07  Simon Josefsson  <jas@extundo.com>
83466
83467         * modules/getopt (Depends-on): Add unistd.
83468
83469         * modules/unistd: New file.
83470
83471 2006-03-07  Simon Josefsson  <jas@extundo.com>
83472
83473         * modules/gc-random: New file.
83474
83475 2006-03-07  Simon Josefsson  <jas@extundo.com>
83476
83477         * m4/unistd_h.m4: New file.
83478
83479 2006-03-07  Simon Josefsson  <jas@extundo.com>
83480
83481         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83482         test to be side-effect free by storing the result in the cache
83483         variable gl_cv_lib_readline, and moving the assignment of
83484         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83485         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83486
83487 2006-03-07  Simon Josefsson  <jas@extundo.com>
83488
83489         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83490         error on missing devices (the functions will return an error).
83491
83492         * m4/gc.m4: Move random stuff to gc-random.m4
83493
83494 2006-03-07  Simon Josefsson  <jas@extundo.com>
83495
83496         * lib/unistd_.h: New file.
83497
83498 2006-03-07  Simon Josefsson  <jas@extundo.com>
83499
83500         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83501
83502 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83503
83504         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83505         Problem reported by Juan Manuel Guerrero.
83506
83507 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83508
83509         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83510         the unistd module.
83511         * lib/getlogin_r.c: Likewise.
83512         * lib/getlogin_r.h: Likewise.
83513         * lib/glob.c: Likewise.
83514         * lib/pagealign_alloc.c: Likewise.
83515         * lib/unistd_.h: Remove; no longer needed.
83516
83517 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83518
83519         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83520         Add unistd.
83521         * modules/c-stack (Depends-on): Add unistd.
83522         * modules/getlogin_r: Likewise.
83523         * modules/glob: Likewise.
83524         * modules/pagealign_alloc: Likewise.
83525         * modules/unistd (Files): Remove lib/unistd_.h.
83526         (EXTRA_DIST): Remove.
83527         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83528         need unistd_.h.
83529         (MOSTLYCLEANFILES): Remove unistd.h-t.
83530
83531 2006-03-03  Simon Josefsson  <jas@extundo.com>
83532
83533         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83534
83535 2006-03-03  Simon Josefsson  <jas@extundo.com>
83536
83537         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83538         libidn and bison.
83539
83540 2006-03-03  Simon Josefsson  <jas@extundo.com>
83541
83542         * build-aux/maint.mk: Add indent target.
83543
83544 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83545
83546         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83547         our replacement poll.h in any case, to avoid a differing
83548         declaration from a system header.  Seen on AIX.
83549
83550 2006-03-01  Simon Josefsson  <jas@extundo.com>
83551
83552         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83553         <kasal@ucw.cz>.
83554
83555 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83556
83557         * modules/gettime (Depends-on): Add extensions module.
83558         * modules/nanosleep (Depends-on): Likewise.
83559         * modules/settime (Depends-on): Likewise.
83560
83561 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83562
83563         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83564         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83565         pedantically.
83566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83567         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83568
83569         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83570         not "==".  Reported by Ralf Wildenhues.
83571
83572 2006-03-01  Karl Berry  <karl@gnu.org>
83573
83574         * doc/Copyright/request-*: new files, synced from gnuorg.
83575
83576 2006-03-01  Karl Berry  <karl@gnu.org>
83577
83578         * config/srclist.txt (Copyright/*): new entries.
83579
83580 2006-02-28  Simon Josefsson  <jas@extundo.com>
83581
83582         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83583
83584 2006-02-27  Simon Josefsson  <jas@extundo.com>
83585
83586         * lib/base64.h: Indent #define's.  From Jim Meyering
83587         <jim@meyering.net>.
83588
83589 2006-02-27  Jim Meyering  <jim@meyering.net>
83590
83591         Revert the change of 2006-02-24, so these files can continue
83592         to be sync'd from gettext.
83593         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83594         of `config.h'.
83595
83596 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83597
83598         * modules/intprops: New file.
83599         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83600         Add intprops.
83601         * modules/getloadavg (Files): Remove lib/intprops.h.
83602         (Depends-on): Add intprops.
83603         * modules/human: Likewise.
83604         * modules/inttostr: Likewise.
83605         * modules/openat: Likewise.
83606         * modules/sig2str: Likewise.
83607         * modules/userspec: Likewise.
83608         * modules/utimecmp: Likewise.
83609         * modules/xnanosleep: Likewise.
83610         * modules/xstrtol: Likewise.
83611
83612 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83613
83614         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83615         * modules/lock-tests (TESTS): Use $(EXEEXT).
83616         * modules/tls-tests: Likewise.
83617         * modules/argp-tests: Likewise.
83618         (check_PROGRAMS): New var, replacing...
83619         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83620
83621 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83622
83623         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83624         `config.h'.
83625
83626 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83627
83628         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83629
83630 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83631
83632         Sync from coreutils.
83633         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83634         gl_CHDIR_SAFER.
83635
83636 2006-02-22  Jim Meyering  <jim@meyering.net>
83637
83638         Sync from coreutils.
83639         * m4/chdir-safer.m4: New file.
83640
83641 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83644         AT_FDCWD exceeds INT_MAX.
83645         * lib/openat.h (AT_FDCWD): Likewise.
83646
83647 2006-02-17  Eric Blake  <address@hidden>
83648
83649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83650
83651 2006-02-16  Simon Josefsson  <jas@extundo.com>
83652
83653         * modules/getaddrinfo (Depends-on): Add sys_socket.
83654
83655 2006-02-15  Simon Josefsson  <jas@extundo.com>
83656
83657         * build-aux/maint.mk: Add dsyntax-check rule.
83658
83659 2006-02-15  Eric Blake  <ebb9@byu.net>
83660
83661         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83662         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83663         'present but cannot compile' warnings on cygwin.
83664         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83665         use ws2tcpip.h if sys/socket.h works.
83666         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83667         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83668
83669 2006-02-14  Simon Josefsson  <jas@extundo.com>
83670
83671         * modules/maintainer-makefile (Files): Rename.
83672
83673         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83674         and (the local) Makefile.cfg to maint-cfg.mk.
83675
83676         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83677         to the latter.
83678
83679         * modules/maintainer-makefile: New module.
83680
83681         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83682         severaly stripped to make it possible to build it up from scratch
83683         with reliable tests.
83684
83685         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83686         fixes to permit overriding the default actions when configure and
83687         makefile are not available.
83688
83689 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83690
83691         Sync from coreutils.
83692         * modules/lstat (Depends-on): Don't depend on xalloc.
83693         (License): Change from GPL to LGPL, since this is now simply a
83694         replacement for a libc function.
83695
83696 2006-02-14  Jim Meyering  <jim@meyering.net>
83697
83698         Sync from coreutils.
83699
83700         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83701         failure on deficient systems, and simplify gnulib lgpl dependencies.
83702         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83703         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83704
83705         * lib/xalloc-die.c: Remove unused definition of N_.
83706
83707 2006-02-14  Jim Meyering  <jim@meyering.net>
83708
83709         Sync from coreutils.
83710         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83711         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83712         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83713         double-quote uses of that variable, to accommodate the rare case in
83714         which getmntent is available in none of the libraries checked.  This
83715         happens at least on FreeBSD 5.0.
83716
83717 2006-02-13  Simon Josefsson  <jas@extundo.com>
83718
83719         * gnulib-tool (Usage): Fix --import, from
83720         karl@freefriends.org (Karl Berry).
83721
83722 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83723
83724         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83725
83726 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83727
83728         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83729         "autoupdate" on 2005-12-12.
83730
83731 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83732
83733         * modules/closeout (Depends-on): Remove atexit.
83734
83735 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83736
83737         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83738         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83739
83740 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83743         __EXTENSIONS__ if this causes compilation to fail.  Problem
83744         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83745         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83746
83747 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83748
83749         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83750         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83752         All uses changed.
83753
83754 2006-01-26  Simon Josefsson  <jas@extundo.com>
83755
83756         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83757         prototype is visible on mingw32.
83758
83759         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83760         for mingw32.
83761
83762         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83763         mingw32).
83764
83765 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83766
83767         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83768         attempt to open for write; this always fails, at least on POSIX
83769         hosts.  This reinstates the 2006-01-09 change, which was
83770         inadvertently removed.
83771
83772 2006-01-26  Bruno Haible  <bruno@clisp.org>
83773
83774         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83775         Reported by Paul Eggert.
83776
83777 2006-01-26  Bruno Haible  <bruno@clisp.org>
83778             Paul Eggert  <eggert@cs.ucla.edu>
83779
83780         * lib/stdbool_.h (_Bool)
83781         [(! (defined __cplusplus || defined __BEOS__)
83782           && !defined __GNUC__
83783           && !(defined __HP_cc || defined __xlc__
83784                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83785                || defined __sgi))]:
83786         #define to signed char in these cases too; this simplifies
83787         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83788         etc., separately) and makes it more conservative.
83789
83790 2006-01-25  Simon Josefsson  <jas@extundo.com>
83791
83792         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83793         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83794         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83795
83796 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83797
83798         * lib/argp-namefrob.h: Bugfix. Remove stray #
83799
83800 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83801
83802         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83803         so that we test the test.
83804         Check for yet another HP-UX cc bug involving *bool |= bool.
83805
83806 2006-01-25  Karl Berry  <karl@gnu.org>
83807
83808         * config/srclist.txt (vasnprintf.c): sync lost.
83809
83810 2006-01-25  Jim Meyering  <jim@meyering.net>
83811
83812         Sync from the stable (b5) branch of coreutils:
83813
83814         * lib/fts.c (fts_children): Don't let close() clobber errno from
83815         failed fchdir().
83816
83817         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83818         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83819         a dangling symlink.  That can also happen at least for ELOOP.
83820         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83821         FYI, this bug predates the inclusion of fts.c in coreutils.
83822
83823         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83824         in their own block, so pre-c99 compilers don't object.
83825
83826         Avoid the double-free (first in fts_read, second in fts_close) that
83827         would occur when an `active' directory is made inaccessible (e.g.,
83828         via chmod a-x) during a traversal.
83829         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83830         before returning.  Reproduce this failure by
83831         mkdir -p a/b; cd a; chmod a-x . b
83832         Reported by Stavros Passas.
83833
83834 2006-01-25  Jim Meyering  <jim@meyering.net>
83835
83836         * lib/fileblocks.c: Remove more useless parentheses.
83837         * lib/readutmp.h: Likewise.
83838
83839 2006-01-25  Bruno Haible  <bruno@clisp.org>
83840
83841         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83842         warnings.
83843         Reported by Paul Eggert.
83844
83845 2006-01-25  Bruno Haible  <bruno@clisp.org>
83846
83847         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83848         rid of a trap command. For Solaris sh.
83849         Reported by Mark D. Baushke <mdb@gnu.org>.
83850
83851 2006-01-24  Simon Josefsson  <jas@extundo.com>
83852
83853         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83854         Bruno.
83855
83856 2006-01-24  Karl Berry  <karl@gnu.org>
83857
83858         * config/srclist.txt (argp-namefrob.h): sync lost.
83859
83860 2006-01-24  Jim Meyering  <jim@meyering.net>
83861
83862         * modules/openat (Files): Add lib/intprops.h.
83863         From Mark D. Baushke.
83864
83865 2006-01-24  Jim Meyering  <jim@meyering.net>
83866
83867         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83868         Reported by Mark D. Baushke.
83869
83870 2006-01-24  Jim Meyering  <jim@meyering.net>
83871
83872         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83873
83874 2006-01-24  Bruno Haible  <bruno@clisp.org>
83875
83876         * modules/strnlen (Maintainer): Change from glibc to all.
83877
83878 2006-01-24  Bruno Haible  <bruno@clisp.org>
83879
83880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83881         Patch by Paul Eggert.
83882
83883 2006-01-24  Bruno Haible  <bruno@clisp.org>
83884
83885         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83886         already has it.
83887         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83888         2005-11-26.
83889
83890         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83891         'signed char' to avoid problems with the built-in _Bool type.
83892         Reported by Paul Eggert on 2005-11-26.
83893
83894 2006-01-24  Bruno Haible  <bruno@clisp.org>
83895
83896         * gnulib-tool (func_import): Avoid constructing complicated sed
83897         expressions inside backquote.
83898         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83899
83900 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83901
83902         These changes imported from libc.
83903         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83904         test and two separate function calls.
83905         * lib/strndup.c (__strndup): Add libc_hidden_def.
83906
83907 2006-01-23  Simon Josefsson  <jas@extundo.com>
83908
83909         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83910         Remove the test_*_SOURCES variable: automake infers it by default.
83911         * modules/tls-tests: Likewise.
83912
83913 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83914
83915         Work around porting bugs reported by Dieter in
83916         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83917         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83918         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83919         Include "getopt.h" first, to check interface.
83920         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83921         !HAVE_DECL_GETENV.
83922         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83923         (__strndup): Revert to K&R-style function dfns, the glibc style.
83924         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83925         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83926         Include strnlen.h first, to get prototype properly.
83927         (strnlen): Renamed from __strnlen.
83928         Remove weak alias.
83929
83930 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83931
83932         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83933
83934 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83935
83936         * config/srclist.txt: Adjust to reflect glibc reorganization.
83937         This affects only comments.
83938
83939 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83940
83941          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83942          Reported by Bruce Korb <bkorb@gnu.org>.
83943
83944 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83945
83946         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83947         to pacify gcc -Wswitch-default.
83948
83949 2006-01-22  Bruno Haible  <bruno@clisp.org>
83950
83951         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83952         temporary buffer for sprintf, take into account the precision also
83953         for 'd', 'i', 'u', 'o', 'x', 'X'.
83954
83955 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83956
83957         * modules/argp-tests: New module
83958         * tests/test-argp.c: New file
83959         * tests/test-argp-2.sh: New file
83960
83961 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83962
83963         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83964         (__argp_base_name): Removed
83965         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83966         typo.
83967         (__argp_base_name): Provide macro definition or extern declaration
83968         depending on the configuration
83969
83970 2006-01-20  Simon Josefsson  <jas@extundo.com>
83971
83972         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83973
83974 2006-01-20  Simon Josefsson  <jas@extundo.com>
83975
83976         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83977
83978 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83979
83980         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83981         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83982         Suggested by Bruno Haible.
83983
83984 2006-01-20  Karl Berry  <karl@gnu.org>
83985
83986         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83987         until changes propagate, I guess.
83988
83989 2006-01-19  Simon Josefsson  <jas@extundo.com>
83990
83991         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83992
83993 2006-01-19  Simon Josefsson  <jas@extundo.com>
83994
83995         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83996
83997 2006-01-19  Simon Josefsson  <jas@extundo.com>
83998
83999         * gnulib-tool: Set check_PROGRAMS.
84000
84001         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84002         modules/des-tests, modules/gc-arcfour-tests,
84003         modules/gc-arctwo-tests, modules/gc-des-tests,
84004         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84005         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84006         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84007         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84008         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84009         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
84010         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
84011         test_*_SOURCES.
84012
84013 2006-01-18  Simon Josefsson  <jas@extundo.com>
84014
84015         * modules/socklen (Depends-on): Depend on sys_socket.
84016
84017 2006-01-18  Simon Josefsson  <jas@extundo.com>
84018
84019         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84020         modules/des-tests, modules/gc-arcfour-tests,
84021         modules/gc-arctwo-tests, modules/gc-des-tests,
84022         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84023         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84024         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84025         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84026         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84027         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
84028         $(EXEEXT) to automake TESTS variable, for mingw32.
84029
84030 2006-01-17  Simon Josefsson  <jas@extundo.com>
84031
84032         * modules/socklen (Include): Need sys/socket.h.
84033
84034 2006-01-17  Bruno Haible  <bruno@clisp.org>
84035
84036         * modules/ssize_t (Include): Add <sys/types.h>.
84037
84038 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
84039
84040         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
84041         it's not portable and it doesn't work with cross-compiles.
84042         Problem reported by Bruno Haible.  Fix missing-$ typo in
84043         'test "gl_cv_ignore_unused_libraries" ...' that prevented
84044         -zignore from being used with Sun's C compiler.
84045
84046 2006-01-12  Simon Josefsson  <jas@extundo.com>
84047
84048         * lib/base64.c: Fix warning, reported by Bruno Haible
84049         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
84050
84051 2006-01-12  Bruno Haible  <bruno@clisp.org>
84052
84053         * modules/ldd: New file.
84054         * build-aux/ldd.sh.in: New file.
84055         * MODULES.html.sh (Support for building libraries and executables): Add
84056         ldd.
84057
84058 2006-01-12  Bruno Haible  <bruno@clisp.org>
84059
84060         * m4/ldd.m4: New file.
84061
84062 2006-01-12  Bruno Haible  <bruno@clisp.org>
84063
84064         * gnulib-tool (func_import, func_create_testdir): Don't go into an
84065         endless loop while replacing $auxdir with build-aux.
84066
84067 2006-01-11  Simon Josefsson  <jas@extundo.com>
84068
84069         * lib/stdint_.h (SIZE_MAX): Add missing (.
84070
84071 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
84072
84073         Sync from coreutils.
84074         * lib/md5.c: Fix commentary typos.
84075         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84076         * lib/md5.h (__attribute__): Remove; unused.
84077         * lib/sha1.c: Fix commentary to match md5 better.
84078         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84079         so that we don't need to worry about alignment.  All uses changed.
84080         This merges the 2005-10-28 md5 change into sha1.
84081
84082 2006-01-11  Jim Meyering  <jim@meyering.net>
84083
84084         Sync from coreutils.
84085         * lib/md5.c (OP): Fix spacing.
84086
84087 2006-01-11  Bruno Haible  <bruno@clisp.org>
84088
84089         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84090         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84091         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84092
84093 2006-01-11  Bruno Haible  <bruno@clisp.org>
84094
84095         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84096         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84097         the "early" section as well.
84098
84099 2006-01-11  Bruno Haible  <bruno@clisp.org>
84100
84101         Avoid "ar: no archive members specified" error on MacOS X.
84102         * gnulib-tool (func_modules_add_dummy): New function.
84103         (func_import, func_create_testdir): Invoke it.
84104
84105 2006-01-11  Bruno Haible  <bruno@clisp.org>
84106
84107         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84108         with $auxdir in AC_CONFIG_FILES statements.
84109
84110 2006-01-11  Bruno Haible  <bruno@clisp.org>
84111
84112         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84113         Initialize also noinst_HEADERS to empty.
84114
84115 2006-01-11  Bruno Haible  <bruno@clisp.org>
84116
84117         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84118         variables.
84119         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84120         autoreconf.
84121
84122 2006-01-11  Bruno Haible  <bruno@clisp.org>
84123
84124         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84125         overridable by the user.
84126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84127
84128 2006-01-10  Simon Josefsson  <jas@extundo.com>
84129
84130         * modules/sys_socket: New file.
84131
84132 2006-01-10  Simon Josefsson  <jas@extundo.com>
84133
84134         * m4/sys_socket_h.m4: New file.
84135
84136 2006-01-10  Simon Josefsson  <jas@extundo.com>
84137
84138         * lib/socket_.h: New file.
84139
84140 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84141
84142         * modules/readutmp (Maintainer): Add myself.
84143
84144 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84145
84146         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84147         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84148         People who are still concerned with buggy memcmp implementations
84149         can invoke gl_FUNC_MEMCMP themselves.
84150
84151 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84152
84153         * lib/regex_internal.h (BITSET_WORD_BITS):
84154         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84155         preprocessor mishandles large unsigned values as if they were signed.
84156         Problem reported by Claudio Fontana in
84157         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84158
84159 2006-01-10  Jim Meyering  <jim@meyering.net>
84160
84161         Avoid the double-free (first in fts_read, second in fts_close) that
84162         would occur when an `active' directory is made inaccessible (e.g.,
84163         via chmod a-x) during a traversal.
84164         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84165         before returning.  Reproduce this failure by
84166         mkdir -p a/b; cd a; chmod a-x . b
84167         Reported by Stavros Passas.
84168
84169         Sync from coreutils.
84170         * lib/sha1.c: Tweak grammar in a comment.
84171
84172 2006-01-10  Jim Meyering  <jim@meyering.net>
84173
84174         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84175         Patch by Joerg Sonnenberger.
84176
84177 2006-01-10  Bruno Haible  <bruno@clisp.org>
84178
84179         * modules/readutmp: Depend on module free.
84180         * modules/strtok_r: Depend on module restrict.
84181
84182 2006-01-10  Bruno Haible  <bruno@clisp.org>
84183
84184         * modules/gettext (configure.ac): Add an invocation of
84185         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84186
84187 2006-01-10  Bruno Haible  <bruno@clisp.org>
84188
84189         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84190         Reported by Werner Lemberg <wl@gnu.org>.
84191
84192 2006-01-10  Bruno Haible  <bruno@clisp.org>
84193
84194         * lib/localcharset.c: Update from GNU gettext.
84195
84196 2006-01-10  Bruno Haible  <bruno@clisp.org>
84197
84198         * lib/argp.h (__const): Remove macro. Use const instead.
84199         * lib/argp-fmtstream.h (__const): Likewise.
84200         * lib/glob_.h (__const): Remove macro.
84201         * lib/glob-libc.h: Use const instead of __const.
84202
84203 2006-01-10  Bruno Haible  <bruno@clisp.org>
84204
84205         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84206         variable.
84207         Needed to avoid an automake error regarding the 'gettext' module.
84208
84209 2006-01-09  Simon Josefsson  <jas@extundo.com>
84210
84211         * modules/inet_ntop (Depends-on): Add restrict.
84212
84213 2006-01-09  Simon Josefsson  <jas@extundo.com>
84214
84215         * modules/gc-rijndael-tests (License): Put under LGPL.
84216
84217         * modules/gc-des-tests (License): Likewise.
84218
84219         * modules/gc-arcfour-tests (License): Likewise.
84220
84221         * modules/gc-arctwo-tests (License): Likewise.
84222
84223         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84224
84225         * modules/gc-hmac-sha1-tests (Files): Likewise.
84226
84227         * modules/gc-hmac-md5-tests (License): Likewise.
84228
84229         * modules/gc-sha1-tests (License): Likewise.
84230
84231         * modules/gc-md5-tests (License): Likewise.
84232
84233         * modules/gc-md4-tests (License): Likewise.
84234
84235         * modules/gc-md2-tests (License): Likewise.
84236
84237         * modules/gc-tests (License): Likewise.
84238
84239         * modules/des-tests (License): Likewise.
84240
84241         * modules/md4-tests (License): Likewise.
84242
84243         * modules/md2-tests (License): Likewise.
84244
84245 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84246
84247         Sync from coreutils:
84248
84249         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84250         * modules/lib-ignore: New file.
84251         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84252         chdir-safer.m4, lchmod.m4.
84253         * modules/openat: Add mkdirat.c, openat-priv.h.
84254
84255 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84256
84257         Sync from coreutils.
84258         * m4/lib-ignore.m4: New file.
84259         * m4/lchmod.m4: New file.
84260
84261 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84262
84263         Sync from coreutils.
84264         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84265         for write access: POSIX says that must fail.
84266         * lib/fts.c (diropen): Likewise.
84267         * lib/save-cwd.c (save_cwd): Likewise.
84268         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84269         well, for minor improvements on hosts that lack O_DIRECTORY.
84270         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84271         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84272         Fall back on chown if open failed with EACCES.
84273
84274         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84275         Report an error at compile-time if only a 1-second nominal clock
84276         resolution is found.
84277
84278         * lib/lchmod.h: New file.
84279         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84280         (make_dir_parents): Use lchown rather than chown, and
84281         lchmod rather than chmod.
84282
84283         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84284         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84285         "proc" reported by n0dalus.
84286
84287         * lib/mountlist.c: Include <limits.h>.
84288         (dev_from_mount_options)
84289         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84290         New function.  It no longer assumes "dev=" has the System V meaning
84291         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84292         (read_file_system_list)
84293         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84294         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84295         dev= in that case.
84296
84297         * lib/posixtm.h (PDS_PRE_2000): New macro.
84298         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84299         allow_century.  All usages changed.  Reject dates outside the range
84300         1969-1999 if PDS_PRE_2000 is used.
84301
84302 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         Sync from coreutils.
84305         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84306         (Time of day items): Mention the possibility of leap seconds.
84307         Problem reported by Dr. David Alan Gilbert.
84308
84309 2006-01-09  Jim Meyering  <jim@meyering.net>
84310
84311         Sync from coreutils.
84312
84313         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84314
84315         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84316
84317         * lib/modechange.c (mode_compile): Reject an invalid mode string
84318         that starts with an octal digit.  From Andreas Gruenbacher.
84319
84320         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84321         and dup to open_safer and dup_safer, respectively.
84322         (openat_permissive): Fix typo in comment.
84323
84324         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84325         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84326         (_): Remove; no longer needed.
84327         (openat): Renamed from rpl_openat; no need for rpl_openat
84328         since openat.h renames openat for us.
84329         Replace most of the body with a call to openat_permissive,
84330         to avoid duplicate code.
84331         Port to (probably hypothetical) environments were mode_t is
84332         wider than int.
84333         (openat_permissive): Require mode arg, so that we can check
84334         types better.  Put it just after flags.  Change cwd failure
84335         indicator from pointer-to-bool to pointer-to-errno-value.
84336         All callers changed.
84337         Invoke openat_save_fail and/or openat_restore_fail if
84338         cwd_errno is null, so that openat can call us.
84339         (openat_permissive, fdopendir, fstatat, unlinkat):
84340         Simplify errno handling to avoid some duplicate code,
84341         as it's OK to set errno on success.
84342         * lib/openat.h: Revamp code so that function macros depend on
84343         __OPENAT_PREFIX only, not also on AT_FDCWD.
84344         (openat_ro): Remove.  Caller changed to use openat_permissive.
84345         (openat_permissive): Now a macro, if not a function.
84346         (openat_restore_fail, openat_save_fail): Now always functions,
84347         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84348
84349         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84350         and openat.c.
84351         * lib/mkdirat.c: Include openat-priv.h.
84352         Remove definitions of macros defined therein.
84353         * lib/openat.c: Likewise.
84354
84355         * lib/mkdirat.c (mkdirat): New file and function.
84356         * lib/openat.h (mkdirat): Declare.
84357
84358         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84359
84360         * lib/openat.h (openat_permissive): Declare.
84361         (openat_ro): Define.
84362
84363         * lib/openat.c (EXPECTED_ERRNO): New macro.
84364         (openat_permissive): New function -- used in remove.c rewrite.
84365         (all functions): Set errno just before returning, only if there
84366         was an actual failure.
84367         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84368
84369         Emulate openat-family functions using Linux's procfs, if possible.
84370         Idea and some code based on Ulrich Drepper's glibc changes.
84371
84372         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84373         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84374         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84375         before falling back on save_cwd and restore_cwd.
84376         (fdopendir, fstatat, unlinkat): Likewise.
84377
84378         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84379         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84380
84381         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84382         as second argument to va_arg.  Otherwise, some versions of gcc
84383         warn that `if this code is reached, the program will abort'.
84384
84385 2006-01-09  Jim Meyering  <jim@meyering.net>
84386
84387         Sync from coreutils.
84388         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84389         Require openat-priv.h.
84390
84391 2006-01-09  Bruno Haible  <bruno@clisp.org>
84392
84393         * modules/strnlen (Include): Use strnlen.h.
84394
84395 2006-01-09  Bruno Haible  <bruno@clisp.org>
84396
84397         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84398
84399 2006-01-09  Bruno Haible  <bruno@clisp.org>
84400
84401         * lib/sysexit_.h (EX_OK): New macro.
84402         Suggested by Martin Lambers <marlam@marlam.de>.
84403
84404 2006-01-09  Bruno Haible  <bruno@clisp.org>
84405
84406         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84407         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84408
84409 2006-01-09  Bruno Haible  <bruno@clisp.org>
84410
84411         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84412         numbers.
84413
84414 2006-01-09  Bruno Haible  <bruno@clisp.org>
84415
84416         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84417         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84418         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84419         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84420
84421 2006-01-09  Bruno Haible  <bruno@clisp.org>
84422
84423         * build-aux/javacomp.sh.in: New file, moved from lib/.
84424         * modules/javacomp-script (Files): Update.
84425         (configure.ac): Add AC_CONFIG_FILES invocation.
84426         (EXTRA_DIST): Remove variable.
84427
84428         * build-aux/javaexec.sh.in: New file, moved from lib/.
84429         * modules/javaexec (Files): Update.
84430         (configure.ac): Add AC_CONFIG_FILES invocation.
84431         (EXTRA_DIST): Remove javaexec.sh.in.
84432
84433         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84434         * modules/csharpcomp-script (Files): Update.
84435         (configure.ac): Add AC_CONFIG_FILES invocation.
84436         (EXTRA_DIST): Remove variable.
84437
84438         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84439         * modules/csharpexec (Files): Update.
84440         (configure.ac): Add AC_CONFIG_FILES invocation.
84441         (EXTRA_DIST): Remove csharpexec.sh.in.
84442
84443 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84444
84445         Sync from coreutils.
84446
84447         Add POSIX ACL support
84448         * lib/acl.h (copy_acl, set_acl): Add declarations.
84449         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84450         systems other than Linux.
84451         (chmod_or_fchmod): New function: use fchmod when possible,
84452         and chmod otherwise.
84453         (file_has_acl): Add a POSIX ACL implementation, with a
84454         Linux-specific subcase.
84455         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84456         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84457         acls are unsupported.
84458         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84459         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84460         are unsupported.
84461
84462 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84463
84464         Sync from coreutils.
84465         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84466
84467 2006-01-07  Bruno Haible  <bruno@clisp.org>
84468
84469         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84470         gl_EARLY.
84471
84472 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84473
84474         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84475         Problem reported for Mingw by Mark Junker.
84476
84477 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84478
84479         * README: Gnulib normally doesn't generate a tarball.
84480
84481 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84484         long int, not int, for nanosecond counts, so that people who are
84485         used to POSIX struct timespec won't be surprised.  Reported by Jim
84486         Meyering.
84487
84488 2005-12-28  Bruno Haible  <bruno@clisp.org>
84489
84490         * build-aux/config.rpath: Update from GNU gettext.
84491
84492 2005-12-16  Jim Meyering  <jim@meyering.net>
84493
84494         * modules/fprintftime: New module.
84495         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84496
84497 2005-12-16  Jim Meyering  <jim@meyering.net>
84498
84499         * m4/fprintftime.m4: New file.
84500
84501 2005-12-16  Jim Meyering  <jim@meyering.net>
84502
84503         * lib/fprintftime.c, lib/fprintftime.h: New files.
84504
84505 2005-12-15  Simon Josefsson  <jas@extundo.com>
84506
84507         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84508         new m4/socklen.m4.
84509
84510 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84511
84512         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84513         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84514
84515 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84516
84517         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84518         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84519         struct uparams is valid. Fall back to the default values if it is
84520         not.
84521
84522 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84523
84524         * modules/argp (Files): Add argp-pin.c
84525         (Depends-on): dirname
84526         (lib_SOURCES): Add argp-pin.c
84527
84528 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84529
84530         * m4/argp.m4:  Check if program_invocation_name and
84531         program_invocation_short_name are declared and define appropriate
84532         macros if they are not.
84533
84534 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84535
84536         * lib/argp-help.c (__argp_base_name): New function
84537         (__argp_short_program_name): Rewrite using __argp_base_name
84538         * lib/argp-namefrob.h: Define program_invocation_name and
84539         program_invocation_short_name if requested
84540         (__argp_base_name): Add prototype
84541         * lib/argp-parse.c (argp_def): Use gettext wrappers
84542         (argp_default_parser): Use __argp_base_name
84543         * lib/argp-pin.c: New file. Defines program_invocation_name and
84544         program_invocation_short_name on systems that lack them.
84545
84546 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84547
84548         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84549         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84550         porting problem reported by Georg Schwarz in
84551         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84552
84553 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84554
84555         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84556         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84557         porting problem reported by Georg Schwarz in
84558         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84559
84560 2005-12-05  Bruno Haible  <bruno@clisp.org>
84561
84562         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84563         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84564         Reported by Mark Junker <mjscod@gmx.de>.
84565
84566 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84567
84568         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84569         Use implementation from Albert Chin, with some
84570         comments/corrections by Stepan Kasal and myself.
84571
84572 2005-12-02  Bruno Haible  <bruno@clisp.org>
84573
84574         * gnulib-tool (func_import): Accept GPLed build tool modules when
84575         --lgpl is given.
84576         * modules/csharpcomp-script: New file.
84577         * modules/csharpcomp: Depend on it.
84578         * modules/javacomp-script: New file.
84579         * modules/javacomp: Depend on it.
84580         Suggested by Simon Josefsson.
84581
84582 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84583
84584         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84585         statement, to work around an HP-UX 10.20 compiler bug reported by
84586         Peter O'Gorman.
84587
84588 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84589
84590         * modules/savedir (Depends-on): Add openat.
84591
84592 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84593
84594         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84595         (uintmax_t) [defined uintmax_t]: Do not declare.
84596         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84597         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84598         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84599         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84600         sake of portability to weird hosts that C allows (though we don't
84601         know of any practical examples).
84602
84603         * lib/savedir.h (fdsavedir): New decl.
84604         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84605         contains most of the former guts of savedir.
84606         (savedir): Use savedirstream.
84607         Include "openat.h".
84608
84609 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84610
84611         * modules/obstack (Files): Add m4/ulonglong.m4.
84612         Problem reported by Davide Angelocola.
84613
84614 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84615
84616         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84617         coreutils no longer futzes with rounding modes.
84618
84619 2005-11-14  Jim Meyering  <jim@meyering.net>
84620
84621         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84622         replacement of mkstemp.
84623
84624 2005-11-10  Simon Josefsson  <jas@extundo.com>
84625
84626         * lib/readline.c: Remove EOL.
84627
84628 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84629
84630         * modules/gethrxtime (Depends-on): Add gettime.
84631
84632 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84633
84634         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84635         or gettimeofday; no longer needed.
84636
84637 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84638
84639         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84640         time business.
84641         (gethrxtime) [! (HAVE_NANOUPTIME
84642         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84643         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84644         our own approximation.
84645
84646 2005-11-08  Eric Blake  <ebb9@byu.net>
84647
84648         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84649
84650 2005-11-08  Eric Blake  <ebb9@byu.net>
84651
84652         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84653
84654 2005-11-04  Bruno Haible  <bruno@clisp.org>
84655
84656         * gnulib-tool: Implement --update mode.
84657
84658 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84659
84660         Fix porting problem reported by Theodoros V. Kalamatianos.
84661         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84662         Don't assume that futimes failing means we must fail.
84663
84664 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84665
84666         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84667         variables to suggest the intended function of the PATH_MAX check.
84668
84669 2005-10-30  Kean Johnston  <jkj@sco.com>
84670
84671         Trivial changes to support SCO systems.
84672         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84673         as PATH_MAX.
84674         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84675         where __ptr is null when no I/O is pending.
84676
84677 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84678
84679         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84680         leave errno alone.  Problem reported by Dmitry V. Levin.
84681
84682 2005-10-28  Simon Josefsson  <jas@extundo.com>
84683
84684         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84685         Test more.
84686
84687         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84688
84689         * modules/md2, modules/md2-tests: New files.
84690
84691 2005-10-28  Simon Josefsson  <jas@extundo.com>
84692
84693         * m4/inet_ntop.m4: More tests.
84694
84695         * m4/gc-md2.m4, md2.m4: New file.
84696
84697 2005-10-28  Simon Josefsson  <jas@extundo.com>
84698
84699         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84700         "restrict" keywords, as per POSIX.  Protect the function
84701         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84702         Don't use K&R prototypes.  Check the sprintf return values.
84703         Re-define EAFNOSUPPORT if not present.  Indent.
84704
84705         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84706         suggested by Bruno Haible <bruno@clisp.org>.
84707
84708         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84709
84710         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84711
84712         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84713         libgcrypt).
84714
84715         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84716
84717         * lib/md2.h, lib/md2.c: New files.
84718
84719 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84722         errno alone.  Problem reported by Frederic Jolliton.
84723
84724 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * modules/verify (License): Change from GPL to LGPL.  This is a
84727         tiny module and there are apparently near-equivalents that are
84728         under the BSD license.
84729
84730 2005-10-24  Simon Josefsson  <jas@extundo.com>
84731
84732         * modules/sha1: Relicense to LGPL.
84733
84734 2005-10-24  Simon Josefsson  <jas@extundo.com>
84735
84736         * lib/md4.h: Shrink buffer size, now that we changed the type.
84737
84738 2005-10-23  Simon Josefsson  <jas@extundo.com>
84739
84740         * gnulib-tool (func_import): Fix --tests-base.
84741
84742 2005-10-22  Simon Josefsson  <jas@extundo.com>
84743
84744         * modules/arcfour (Depends-on): Need stdint.
84745
84746 2005-10-22  Simon Josefsson  <jas@extundo.com>
84747
84748         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84749         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84750
84751 2005-10-22  Simon Josefsson  <jas@extundo.com>
84752
84753         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84754         suggested by Bruno Haible <bruno@clisp.org>.
84755
84756 2005-10-22  Simon Josefsson  <jas@extundo.com>
84757
84758         * lib/crc.h: Include stddef.h, for size_t.
84759
84760 2005-10-22  Simon Josefsson  <jas@extundo.com>
84761
84762         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84763         arcfour_context struct (simplify test vector testing in GNU
84764         Shishi).
84765
84766 2005-10-21  Simon Josefsson  <jas@extundo.com>
84767
84768         * modules/des, modules/des-tests: New files.
84769
84770         * modules/gc-des, modules/gc-des-tests: New files.
84771
84772         * tests/test-des.c, tests/test-gc-des.c: New file.
84773
84774 2005-10-21  Simon Josefsson  <jas@extundo.com>
84775
84776         * modules/arctwo, modules/arctwo-tests: New files.
84777
84778         * tests/test-arctwo.c: New file.
84779
84780         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84781
84782         * tests/test-gc-arctwo.c: New file.
84783
84784 2005-10-21  Simon Josefsson  <jas@extundo.com>
84785
84786         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84787         Bruno Haible <bruno@clisp.org>.
84788
84789         * m4/gc-des.m4: New file.
84790
84791 2005-10-21  Simon Josefsson  <jas@extundo.com>
84792
84793         * m4/arctwo.m4: New file.
84794
84795         * m4/gc-arctwo.m4: New file.
84796
84797 2005-10-21  Simon Josefsson  <jas@extundo.com>
84798
84799         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84800         block.
84801
84802 2005-10-21  Simon Josefsson  <jas@extundo.com>
84803
84804         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84805         <bruno@clisp.org>.
84806
84807         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84808
84809         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84810         Bruno Haible <bruno@clisp.org>.
84811
84812         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84813         <bruno@clisp.org>.
84814
84815 2005-10-21  Simon Josefsson  <jas@extundo.com>
84816
84817         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84818
84819 2005-10-21  Simon Josefsson  <jas@extundo.com>
84820
84821         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84822
84823 2005-10-21  Simon Josefsson  <jas@extundo.com>
84824
84825         * lib/des.h, lib/des.c: New files.
84826
84827         * lib/gc-gnulib.c: Support DES.c
84828
84829 2005-10-21  Simon Josefsson  <jas@extundo.com>
84830
84831         * lib/arctwo.h, lib/arctwo.c: New files.
84832
84833         * lib/gc-gnulib.c: Support ARCTWO.
84834
84835 2005-10-21  Simon Josefsson  <jas@extundo.com>
84836
84837         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84838         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84839
84840 2005-10-21  Simon Josefsson  <jas@extundo.com>
84841
84842         * gnulib-tool (func_import, func_create_testdir): Define automake
84843         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84844         Makefile.am snippet),
84845         suggested by Bruno Haible <bruno@clisp.org>.
84846
84847         * modules/gc (Makefile.am): Use it.
84848
84849 2005-10-21  Bruno Haible  <bruno@clisp.org>
84850
84851         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84852         patch.
84853
84854 2005-10-19  Simon Josefsson  <jas@extundo.com>
84855
84856         * tests/test-gc-rijndael.c: New file.
84857
84858         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84859
84860 2005-10-19  Simon Josefsson  <jas@extundo.com>
84861
84862         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84863         interface too.
84864
84865 2005-10-19  Simon Josefsson  <jas@extundo.com>
84866
84867         * tests/test-gc-arcfour.c: New file.
84868
84869         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84870
84871 2005-10-19  Simon Josefsson  <jas@extundo.com>
84872
84873         * modules/gc-md4, modules/gc-md4-tests: New file.
84874
84875         * tests/test-gc-md4.c: New file.
84876
84877 2005-10-19  Simon Josefsson  <jas@extundo.com>
84878
84879         * m4/gc-md4.m4: New file.
84880
84881 2005-10-19  Simon Josefsson  <jas@extundo.com>
84882
84883         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84884         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84885         <kasal@ucw.cz>.
84886
84887 2005-10-19  Simon Josefsson  <jas@extundo.com>
84888
84889         * m4/gc-arcfour.m4: New file.
84890
84891         * m4/gc-rijndael.m4: New file.
84892
84893 2005-10-19  Simon Josefsson  <jas@extundo.com>
84894
84895         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84896
84897 2005-10-19  Simon Josefsson  <jas@extundo.com>
84898
84899         * lib/gc-gnulib.c: Support ARCFOUR.
84900
84901 2005-10-19  Simon Josefsson  <jas@extundo.com>
84902
84903         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84904         support.
84905
84906         * lib/gc.h: Add ECB enum type.
84907
84908         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84909
84910 2005-10-18  Simon Josefsson  <jas@extundo.com>
84911
84912         * tests/test-md5.c: New file.
84913
84914         * modules/md5-tests: New file.
84915
84916 2005-10-18  Simon Josefsson  <jas@extundo.com>
84917
84918         * tests/test-md4.c: New file.
84919
84920         * modules/md4, modules/md4-tests: New files.
84921
84922 2005-10-18  Simon Josefsson  <jas@extundo.com>
84923
84924         * m4/md4.m4: New file.
84925
84926 2005-10-18  Simon Josefsson  <jas@extundo.com>
84927
84928         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84929
84930 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84931
84932         * gnulib-tool (func_create_testdir): Omit the second check whether
84933         BUILT_SOURCES in nonempty.
84934
84935 2005-10-17  Simon Josefsson  <jas@extundo.com>
84936
84937         * tests/test-rijndael.c: New file.
84938
84939 2005-10-17  Simon Josefsson  <jas@extundo.com>
84940
84941         * modules/sha1: Depend on stdint instead of md5.
84942
84943         * modules/md5: Depend on stdint, remove uint32_t.
84944
84945 2005-10-17  Simon Josefsson  <jas@extundo.com>
84946
84947         * modules/gc-sha1-tests: New file.
84948
84949         * tests/test-gc-sha1.c: New file.
84950
84951 2005-10-17  Simon Josefsson  <jas@extundo.com>
84952
84953         * m4/md5.m4: Remove call to uint32_t.m4.
84954
84955 2005-10-17  Simon Josefsson  <jas@extundo.com>
84956
84957         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84958
84959         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84960         md5.h.
84961
84962         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84963
84964         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84965
84966 2005-10-17  Simon Josefsson  <jas@extundo.com>
84967
84968         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84969
84970 2005-10-17  Simon Josefsson  <jas@extundo.com>
84971
84972         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84973
84974 2005-10-17  Simon Josefsson  <jas@extundo.com>
84975
84976         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84977
84978         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84979
84980 2005-10-17  Bruno Haible  <bruno@clisp.org>
84981
84982         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84983         that it can also be used in a test.
84984
84985 2005-10-16  Bruno Haible  <bruno@clisp.org>
84986
84987         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84988         TESTS_ENVIRONMENT, so that individual tests can augment it.
84989
84990         * gnulib-tool (func_create_testdir): Use an intermediate target for
84991         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84992         macros, like $(ALLOCA_H), which cannot be passed through the command
84993         line.
84994
84995 2005-10-15  Simon Josefsson  <jas@extundo.com>
84996
84997         * modules/rijndael-tests: New file.
84998
84999         * modules/rijndael: New file.
85000
85001 2005-10-15  Simon Josefsson  <jas@extundo.com>
85002
85003         * m4/rijndael.m4: New file.
85004
85005 2005-10-15  Simon Josefsson  <jas@extundo.com>
85006
85007         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
85008
85009         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
85010
85011 2005-10-14  Simon Josefsson  <jas@extundo.com>
85012
85013         * tests/test-arcfour.c: New file.
85014
85015         * modules/arcfour, modules/arcfour-tests: New files.
85016
85017 2005-10-14  Simon Josefsson  <jas@extundo.com>
85018
85019         * m4/arcfour.m4: New file.
85020
85021 2005-10-14  Simon Josefsson  <jas@extundo.com>
85022
85023         * lib/arcfour.h, lib/arcfour.c: New files.
85024
85025 2005-10-14  Roland McGrath  <roland@redhat.com>
85026
85027         Import from libc.  [BZ #1331]
85028         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
85029         macro argument.
85030         Reported by Matej Vela <vela@debian.org>.
85031
85032 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
85035         include <wchar.h>; no longer needed.
85036
85037 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85038
85039         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
85040
85041 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
85042         and  Ulrich Drepper  <drepper@redhat.com>
85043
85044         Import from libc.
85045         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
85046         instead of inline stream orientation test and two separate
85047         function calls.  Pay no attention to USE_IN_LIBIO.
85048
85049 2005-10-13  Simon Josefsson  <jas@extundo.com>
85050
85051         * modules/gc-hmac-md5-tests: New file.
85052
85053         * tests/test-gc-hmac-sha1.c: New file.
85054
85055         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
85056
85057         * modules/gc-hmac-md5-tests: New file.
85058
85059         * tests/test-gc-md5.c: New file.
85060
85061         * modules/gc-md5-tests: New file.
85062
85063 2005-10-13  Simon Josefsson  <jas@extundo.com>
85064
85065         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
85066         Move memory allocation outside of loop.
85067
85068 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
85069
85070         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
85071         intermediate directory is in a read-only file system.  Problem
85072         reported by Eric Blake.
85073
85074 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
85075
85076         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85077
85078 2005-10-12  Simon Josefsson  <jas@extundo.com>
85079
85080         * tests/test-hmac-sha1.c: New file.
85081
85082         * modules/hmac-sha1-tests: New file.
85083
85084         * modules/hmac-sha1: New file.
85085
85086 2005-10-12  Simon Josefsson  <jas@extundo.com>
85087
85088         * modules/gc-sha1: New file.
85089
85090 2005-10-12  Simon Josefsson  <jas@extundo.com>
85091
85092         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85093
85094         * tests/test-gc-pbkdf2-sha1.c: New file.
85095
85096 2005-10-12  Simon Josefsson  <jas@extundo.com>
85097
85098         * modules/gc-md5, modules/gc-hmac-md5: New files.
85099
85100         * modules/gc (Files): Remove md5, memxor and hmac files.
85101
85102 2005-10-12  Simon Josefsson  <jas@extundo.com>
85103
85104         * m4/gc-pbkdf2-sha1.m4: New file.
85105
85106         * m4/gc-hmac-sha1.m4: New file.
85107
85108         * m4/gc-sha1: New file.
85109
85110         * m4/hmac-sha1.m4: New file.
85111
85112 2005-10-12  Simon Josefsson  <jas@extundo.com>
85113
85114         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85115
85116         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85117
85118 2005-10-12  Simon Josefsson  <jas@extundo.com>
85119
85120         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85121         suggested by Bruno Haible <bruno@clisp.org>.
85122
85123 2005-10-12  Simon Josefsson  <jas@extundo.com>
85124
85125         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85126
85127 2005-10-12  Simon Josefsson  <jas@extundo.com>
85128
85129         * lib/gc-pbkdf2-sha1.c: New file.
85130
85131         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85132
85133 2005-10-12  Simon Josefsson  <jas@extundo.com>
85134
85135         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85136
85137         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85138
85139 2005-10-12  Simon Josefsson  <jas@extundo.com>
85140
85141         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85142         GC_USE_HMAC_MD5, respectively.
85143
85144         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85145         (gc_md5): Fix typo.
85146
85147         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85148
85149         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85150
85151         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85152
85153 2005-10-12  Bruno Haible  <bruno@clisp.org>
85154
85155         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85156         Reported by Stepan Kasal <kasal@ucw.cz>.
85157
85158 2005-10-11  Simon Josefsson  <jas@extundo.com>
85159
85160         * tests/test-crc.c: New file.
85161
85162         * modules/crc, modules/crc-tests: New files.
85163
85164 2005-10-11  Simon Josefsson  <jas@extundo.com>
85165
85166         * m4/crc.m4: New file.
85167
85168 2005-10-11  Simon Josefsson  <jas@extundo.com>
85169
85170         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85171
85172         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85173
85174         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85175
85176 2005-10-11  Simon Josefsson  <jas@extundo.com>
85177
85178         * lib/crc.h, lib/crc.c: New files.
85179
85180         * lib/gc.h (gc_hash_buffer): Add doc.
85181
85182 2005-10-11  Bruno Haible  <bruno@clisp.org>
85183
85184         * modules/c-strcasestr: New file.
85185         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85186
85187 2005-10-11  Bruno Haible  <bruno@clisp.org>
85188
85189         * modules/c-strcase: New file.
85190         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85191
85192 2005-10-11  Bruno Haible  <bruno@clisp.org>
85193
85194         * lib/strcasecmp.c: Include limits.h.
85195         (strcasecmp): Avoid integer overflow on exotic platforms.
85196         * lib/strncasecmp.c: Include limits.h.
85197         (strncasecmp): Avoid integer overflow on exotic platforms.
85198         Reported by Paul Eggert.
85199
85200 2005-10-11  Bruno Haible  <bruno@clisp.org>
85201
85202         * lib/c-strcasestr.h: New file, from GNU gettext.
85203         * lib/c-strcasestr.c: New file, from GNU gettext.
85204
85205 2005-10-11  Bruno Haible  <bruno@clisp.org>
85206
85207         * lib/c-strcase.h: New file, from GNU gettext.
85208         * lib/c-strcasecmp.c: New file, from GNU gettext.
85209         * lib/c-strncasecmp.c: New file, from GNU gettext.
85210
85211 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85212
85213         * modules/mempcpy (License): GPL -> LGPL.
85214         * modules/strchrnul (License): Likewise.
85215         * modules/sysexits (License): Likewise.
85216
85217 2005-10-08  Simon Josefsson  <jas@extundo.com>
85218
85219         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85220
85221 2005-10-07  Simon Josefsson  <jas@extundo.com>
85222
85223         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85224
85225 2005-10-06  Simon Josefsson  <jas@extundo.com>
85226
85227         * tests/test-hmac-md5.c: New file.
85228
85229         * modules/hmac-md5-tests: New file.
85230
85231         * modules/hmac-md5: New file.
85232
85233 2005-10-06  Simon Josefsson  <jas@extundo.com>
85234
85235         * m4/hmac-md5.m4: New file.
85236
85237         * m4/memxor.m4: Require gl_C_RESTRICT.
85238
85239 2005-10-06  Simon Josefsson  <jas@extundo.com>
85240
85241         * lib/memxor.c (memxor): Avoid casts and warnings.
85242
85243 2005-10-06  Simon Josefsson  <jas@extundo.com>
85244
85245         * lib/hmac-md5.c: New file.
85246
85247         * lib/hmac.h: New file.
85248
85249 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85250
85251         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85252         promotes to int, not unsigned int, to catch the AIX 5.3
85253         compiler bug.
85254
85255 2005-10-05  Simon Josefsson  <jas@extundo.com>
85256
85257         * modules/memxor: New file.
85258
85259         * modules/iconv (Files): Move config.rpath to havelib, it is used
85260         there.
85261
85262         * modules/havelib (Files): Add config.rpath.
85263
85264 2005-10-05  Simon Josefsson  <jas@extundo.com>
85265
85266         * m4/memxor.m4: New file.
85267
85268 2005-10-05  Simon Josefsson  <jas@extundo.com>
85269
85270         * lib/memxor.c (memxor): Fix compiler error.
85271
85272         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85273         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85274
85275         * lib/memxor.h, lib/memxor.c: New files.
85276
85277         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85278         we assume all systems have it, suggested by Jim Meyering
85279         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85280         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85281         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85282         same reasons.
85283
85284 2005-10-05  Simon Josefsson  <jas@extundo.com>
85285
85286         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85287
85288 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85291         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85292         needed, since the source code now assumes these .h files.
85293
85294 2005-10-05  Derek Price  <derek@ximbiot.com>
85295
85296         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85297
85298 2005-10-05  Bruno Haible  <bruno@clisp.org>
85299
85300         * modules/stdint (License): Change to LGPL.
85301
85302 2005-10-04  Simon Josefsson  <jas@extundo.com>
85303
85304         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85305         D. Baushke" <mdb@gnu.org>.
85306
85307 2005-10-04  Bruno Haible  <bruno@clisp.org>
85308
85309         * lib/verify.h (verify_true): Provide alternative definition for C++.
85310
85311 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85312
85313         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85314         (SSIZE_MAX): New macro, if not already defined.
85315         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85316         than 2 GiB.
85317
85318 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85319
85320         Sync from coreutils.
85321         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85322         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85323         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85324         ULLONG_MAX doesn't work with 2.7.2.1.
85325
85326 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85327
85328         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85329         From Ben Pfaff.
85330
85331         * modules/exclude (Depends-on): Depend on verify.
85332         * modules/strtoimax (Depends-on): Likewise.
85333         * modules/utimecmp (Depends-on): Likewise.
85334
85335 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85336
85337         * lib/exclude.c: Include verify.h.
85338         (verify): Remove.  All callers changed to use verify.h's version.
85339         * lib/strtoimax.c: Likewise.
85340         * lib/utimecmp.c: Likewis.e
85341
85342         Sync from coreutils.
85343         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85344         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85345         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85346         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85347         bother returning ENOSYS if settimeofday or stime fails; just let
85348         them return whatever errno they want to return.
85349         * lib/utimens.c: Include unistd.h, for dup2.
85350         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85351         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85352
85353 2005-10-02  Jim Meyering  <jim@meyering.net>
85354
85355         Sync from coreutils.
85356         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85357         from glibc-2.2.5 that fails for read-only files.
85358
85359 2005-10-02  Jim Meyering  <jim@meyering.net>
85360
85361         Sync from coreutils.
85362         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85363         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85364         `#if HAVE_CONFIG_H'.
85365         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85366         Remove AT_FDCWD test.
85367         Do not consume the fd unless successful.
85368         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85369         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85370         block, so that we don't even try to compile it if settimeofday is
85371         available.  This works around a compilation failure on OSF1 V5.1,
85372         due to stime requiring a `long int*' while tv_sec is `int'.
85373
85374 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85375
85376         Sync from coreutils.
85377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85378         against `yes', rather than just testing for nonempty.
85379
85380 2005-10-01  Simon Josefsson  <jas@extundo.com>
85381
85382         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85383         and Darwin.
85384
85385         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85386         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85387         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85388         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85389         Check if struct addrinfo is declared.
85390
85391 2005-10-01  Simon Josefsson  <jas@extundo.com>
85392
85393         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85394         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85395         AI_* and EAI_* definitions.  Protect function declarations.
85396
85397 2005-10-01  Jim Meyering  <jim@meyering.net>
85398
85399         Sync from coreutils.
85400
85401         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85402         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85403         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85405         in the inet and nsl libraries.  Required on Solaris 5.7.
85406
85407 2005-10-01  Jim Meyering  <jim@meyering.net>
85408
85409         Sync from coreutils.
85410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85411         in the inet and nsl libraries.  Required on Solaris 5.7.
85412
85413 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85414
85415         * lib/getdelim.c (getdelim): Remove unused variables.
85416
85417 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85418
85419         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85420         so that the code works even with ancient cpp.  Portability problem
85421         with GCC 2.7.2.1 reported by Thomas M.Ott.
85422
85423 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85424
85425         * modules/regex (Depends-on): Add strcase.
85426
85427         * modules/gethostname (Licence): Change from GPL to LGPL, since
85428         gethostname.c is a trivial implementation of a standard library
85429         function.
85430         * modules/poll (License): Change from GPL to LGPL, since it's
85431         derived from LGPL code.
85432
85433 2005-09-27  Jim Meyering  <jim@meyering.net>
85434
85435         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85436         HAVE_CONFIG_H.
85437
85438         * lib/intprops.h (signed_type_or_expr__): Define.
85439         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85440         for unsigned types.
85441
85442 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85443
85444         * lib/verify.h (verify_expr): Remove, replacing with:
85445         (verify_true): New macro that returns true instead of void.
85446         (verify_type__): Remove.
85447         (verify): Use verify_true rather than verify_type__.
85448
85449 2005-09-26  Bruno Haible  <bruno@clisp.org>
85450
85451         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85452         is necessary.
85453         (lib_SOURCES): Remove mbchar.c.
85454         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85455         (Files): Add m4/mbrtowc.m4.
85456         * modules/mbiter: Likewise.
85457         * modules/mbuiter: Likewise.
85458
85459 2005-09-26  Bruno Haible  <bruno@clisp.org>
85460
85461         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85462         compile mbchar.c if they are not both present.
85463         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85464         * m4/mbiter.m4 (gl_MBITER): Likewise.
85465         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85466         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85467         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85468
85469 2005-09-25  Jim Meyering  <jim@meyering.net>
85470
85471         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85472         also uses socklen_t.
85473
85474 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85475
85476         * lib/utimens.c (ENOSYS): Define if not already defined.
85477         (futimens): Support having a null PATH if the file descriptor
85478         is nonnegative.
85479
85480         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85481         Remove.
85482         (__attribute): Define to empty unless GCC 3.1 or later.
85483         This works around a core dump on OpenBSD 3.4, which has GCC
85484         2.95.3, which dumps core when given __attribute__(()).  It also
85485         simplifies other tests, since we really don't want to bother with
85486         worrying about which ancient version of GCC supported what.
85487         Original problem reported by Yoann Vandoorselaere, with part of
85488         the fix suggested by Derek Price.
85489
85490 2005-09-24  Jim Meyering  <jim@meyering.net>
85491
85492         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85493         so we can once again use a positive bitfield width of 1 -- now we
85494         don't have to explain why we were using a bitfield width of 2.
85495
85496 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85497
85498         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85499         and similarly for the other external symbols.  Problem reported
85500         by James Gallager.
85501
85502         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85503         bug reported by Jim Meyering.
85504
85505         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85506         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85507         not needed, since socklen is a prerequisite module.
85508
85509 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85510
85511         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85512         Problem reported by Eric Blake.
85513         (getaddrinfo): Initialize se so that it's not garbage.
85514         Redo internal storage allocation so that it doesn't make unportable
85515         assumptions about alignment.
85516         Fix a memory leak.
85517
85518         * lib/utimens.c (futimens): Use futimesat if available.
85519         Prefer it to futimes since it doesn't have the futimes bug.
85520
85521         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85522         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85523         Instead, declare a function that returns a pointer to an array,
85524         and use verify_type__ to declare the size of the array.
85525         Problem and germ of a solution reported by Bruno Haible.
85526         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85527         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85528
85529 2005-09-23  Jim Meyering  <jim@meyering.net>
85530
85531         Sync from coreutils.
85532         Correct build failure (socklen_t not defined) on at least
85533         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85534         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85535
85536 2005-09-23  Jim Meyering  <jim@meyering.net>
85537
85538         * modules/getaddrinfo (Depends-on): Add socklen.
85539
85540 2005-09-23  Bruno Haible  <bruno@clisp.org>
85541
85542         * tests/test-verify.c: New file.
85543
85544 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         Sync from coreutils.
85547
85548         * modules/argmatch (Depends-on): Add verify.
85549         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85550         unistd-safer.
85551         * modules/save-cwd (Depends-on): Likewise.
85552
85553         * modules/openat (Files): Add lib/openat-die.c.
85554         (Depends-on): Remove error, exitfail.
85555         Add dirname.
85556
85557         * modules/verify: New file.
85558         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85559         with "verify" module.
85560
85561 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85562
85563         Sync from coreutils.
85564
85565         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85566         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85567         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85568         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85569         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85570         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85571         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85572         Don't bother checking for string.h, stdlib.h, unistd.h.
85573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85574         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85575         module's job.
85576         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85577         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85578
85579         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85580         (gl_GETDATE): Use it.
85581
85582         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85583
85584 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85585
85586         Sync from coreutils.
85587
85588         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85589         stat-time.h.
85590         * lib/argmatch.h: Include verify.h
85591         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85592         (ARGMATCH_ASSERT): Remove; unused.
85593         * lib/canonicalize.c: Assume STDC_HEADERS.
85594         * lib/exclude.c: Include "strcase.h".
85595         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85596         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85597         and stdio-safer.h.
85598         (getusershell): Call fopen, not fopen_safer.
85599         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85600         Do not include unistd-safer.h.
85601         (save_cwd): Don't call fd_safer; no longer needed
85602         now that we include fcntl--.h.
85603
85604         * lib/getdate.y (relative_time): New type.
85605         (RELATIVE_TIME_0): New constant.
85606         (parser_control): Use relative_time instead of doing it ourselves.
85607         (%union): Add new relative_time rel member.
85608         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85609         Now typeless.
85610         (relunit, relunit_snumber): Now of type rel.
85611         (zone, rel, relunit, get_date): Adjust to above changes.
85612
85613         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85614         Do not include unistd-safer.h.
85615         (getloadavg): Don't call fd_safer; no longer needed
85616         now that we include fcntl--.h.
85617
85618         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85619         (make_dir_parents): Treat ENOSYS like EEXIST.
85620
85621         Improve quality of diagnostics on restore_cwd failure.
85622         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85623         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85624         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85625         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85626         each time through the loop.  Do not diagnose restore_cwd failure;
85627         that is the caller's job (and perhaps the caller does not care).
85628
85629         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85630         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85631         If the file already exists but is not a directory, don't bother
85632         to try to make its parents.
85633         Close potential file descriptor leak if we can't chdir("/") (!).
85634         Don't always return true if chdir($PWD) fails; return true only
85635         if the requested action was done successfully (except for the
85636         chdir($PWD)).
85637         Don't log final directory unless we actually made it.
85638         Refactor to avoid duplicate code to fix up permissions.
85639         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85640
85641         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85642         to make it a bit faster and (I hope) clearer.
85643         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85644         Fix bug in formats like %2N.
85645
85646         * lib/verify.h: New file.
85647
85648 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85649
85650         Sync from coreutils.
85651         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85652
85653 2005-09-22  Jim Meyering  <jim@meyering.net>
85654
85655         Sync from coreutils.
85656
85657         * m4/lstat.m4 (gl_FUNC_LSTAT):
85658         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85659         Remove obsolete comment.
85660         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85661         * m4/xstrtod.m4: Likewise.
85662
85663         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85664
85665 2005-09-22  Jim Meyering  <jim@meyering.net>
85666
85667         Sync from coreutils.
85668
85669         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85670
85671         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85672         the .tm_year member, since otherwise gcc-4.0 would now warn about
85673         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85674
85675         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85676         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85677
85678         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85679         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85680         when run in a time zone for which daylight savings time is in effect
85681         for the starting date.
85682
85683         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85684         stop us from restricting permissions of just-created absolute-named
85685         directories.
85686         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85687         to restore initial working directory.
85688         * lib/mkdir-p.c (make_dir_parents): New parameter:
85689         different_working_dir, to tell caller if/when we change the working
85690         directory and are unable to return to the initial one.
85691         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85692         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85693         `return false'.  This fixes a bug introduced on 2004-07-30.
85694
85695         * lib/openat.c (fdopendir): Be sure to close the supplied
85696         file descriptor before returning.  This makes our replacement
85697         implementation a little closer to Solaris's, where fdopendir
85698         ties the file descriptor to the returned DIR* pointer.
85699         * lib/openat.c (unlinkat): New function.
85700         * lib/openat.h (unlinkat): Add prototype.
85701         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85702         (openat_restore_fail): Rename from openat_restore_die.
85703         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85704
85705         Provide an alternative to exiting immediately upon save_cwd or
85706         restore_cwd failure.  Now, an application can arrange e.g.,
85707         to perform a longjump in that case.
85708         * lib/openat.c: Include dirname.h.
85709         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85710         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85711         and openat_restore_die rather than calling error directly.
85712         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85713
85714         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85715         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85716         define.
85717
85718         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85719         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85720                             int utc, int nanoseconds);
85721         Background:
85722         date should not have to allocate a megabyte of virtual memory to
85723         handle a format argument like +%1048575T.  When implemented with
85724         strftime, it must allocate such a buffer, use strftime to fill it
85725         in, print it, then free it.
85726         With fprintftime, it simply prints everything and exits.
85727         With no need for memory allocation, that's one fewer way to fail.
85728         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85729         optional field width, not before, so we accept %9:z, not %:9z.
85730         (my_strftime): Be sure to use L_('x') for literals.
85731
85732         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85733         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85734         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85735         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85736         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85737         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85738         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85739         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85740         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85741         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85742         * lib/xgethostname.c, lib/xreadlink.c:
85743         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85744
85745         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85746         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85747         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85748         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85749         and don't include <sys/file.h>).
85750
85751 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85752
85753         Sync from coreutils.
85754
85755         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85756         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85757         [!LDAV_DONE]: Avoid unused variable warning.
85758
85759 2005-09-21  Bruno Haible  <bruno@clisp.org>
85760
85761         * lib/unicodeio.h (unicode_to_mb): New declaration.
85762
85763 2005-09-20  Derek Price  <derek@ximbiot.com>
85764
85765         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85766         getaddrinfo.h.
85767
85768 2005-09-20  Bruno Haible  <bruno@clisp.org>
85769
85770         * gnulib-tool: Remove trailing slashes from the values specified for
85771         --source-base, --m4-base, --tests-base, --aux-dir.
85772         Suggested by Simon Josefsson <jas@extundo.com>.
85773
85774 2005-09-20  Bruno Haible  <bruno@clisp.org>
85775
85776         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85777         func_modules_to_filelist, func_import, func_create_testdir): Make all
85778         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85779         change when gnulib-tool is invoked in a different locale.
85780
85781 2005-09-19  Simon Josefsson  <jas@extundo.com>
85782
85783         * m4/socklen.m4: Fix typo.
85784
85785 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85786
85787         Use a consistent style for including <config.h>.
85788         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85789         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85790         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85791         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85792         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85793         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85794         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85795         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85796         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85797         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85798         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85799         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85800         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85801         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85802         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85803         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85804         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85805         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85806         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85807         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85808         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85809         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85810         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85811         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85812         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85813         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85814         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85815         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85816         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85817         lib/xstrtoumax.c, lib/yesno.c:
85818         Standardize inclusion of config.h.
85819         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85820         lib/inttostr.h:  Removed inclusion of config.h from header files.
85821         * lib/inttostr.c:  Adjusted in-tree users.
85822         * lib/timespec.h: Remove superfluous warning to include config.h.
85823         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85824         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85825         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85826         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85827         config.h with HAVE_CONFIG_H.
85828
85829 2005-09-19  Jim Meyering  <jim@meyering.net>
85830
85831         * modules/pathmax (License): Change to LGPL.
85832
85833 2005-09-19  Derek Price  <derek@ximbiot.com>
85834
85835         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85836
85837 2005-09-19  Bruno Haible  <bruno@clisp.org>
85838
85839         * gnulib-tool (import): Provide default for --tests-base.
85840
85841 2005-09-19  Bruno Haible  <bruno@clisp.org>
85842
85843         * doc/quote.texi: New file, extracted from gnulib.texi.
85844         * doc/ctime.texi: New file, extracted from gnulib.texi.
85845         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85846         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85847         * doc/gnulib.texi: Include them.
85848
85849 2005-09-18  Bruno Haible  <bruno@clisp.org>
85850
85851         Portability fix.
85852         * gnulib-tool (func_readlink): New function.
85853         (func_ln_if_changed): Use it.
85854
85855 2005-09-18  Bruno Haible  <bruno@clisp.org>
85856
85857         * gnulib-tool: Support --with-tests also with --import.
85858         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85859         (func_import): Use variables $testsbase and $inctests. Emit a
85860         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85861         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85862         SUBDIRS += $testsdir.
85863         (func_create_testdir): Update.
85864
85865 2005-09-18  Bruno Haible  <bruno@clisp.org>
85866
85867         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85868         instead of $dry_run.
85869         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85870         (func_ln_if_changed): Don't handle dry-run here.
85871         (func_import): In dry-run mode, detect more precisely which actions
85872         would be performed, and don't use "...ing" verbs.
85873
85874 2005-09-18  Bruno Haible  <bruno@clisp.org>
85875
85876         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85877         (func_import): Use join on two temporary files instead of three nested
85878         loops, in order to determine which files are new or old.
85879
85880 2005-09-18  Bruno Haible  <bruno@clisp.org>
85881
85882         * gnulib-tool (func_import): Comment out code that spits out the
85883         new files with --dry-run.
85884
85885 2005-09-18  Bruno Haible  <bruno@clisp.org>
85886
85887         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85888
85889 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         * lib/stat-time.h: New file.
85892         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85893         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85894         in a different way.
85895         (timespec_cmp): New function.
85896         * lib/utimecmp.c: Include stat-time.h.
85897         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85898         members exist, not on the obsolescent ST_MTIM_NSEC.
85899         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85900
85901 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85902
85903         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85904
85905 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85906
85907         * MODULES.html.sh (File system functions): Add stat-time.
85908         * modules/stat-time: New file.
85909         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85910         is now done in a different way, by the stat-time module.
85911         * modules/utimecmp (Depends-on): Add stat-time.
85912
85913 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85914
85915         * m4/st_mtim.m4: Remove.  Superseded by...
85916         * m4/stat-time.m4: New file.
85917         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85918         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85919
85920 2005-09-15  Derek Price  <derek@ximbiot.com>
85921
85922         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85923
85924 2005-09-15  Derek Price  <derek@ximbiot.com>
85925
85926         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85927         * lib/regex_internal.c: Ditto, using this...
85928         (__GNUC_PREREQ): ...new macro.
85929         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85930         using...
85931         (__GNUC_PREREQ): ...this new macro.
85932
85933         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85934
85935 2005-09-15  Derek Price  <derek@ximbiot.com>
85936             Paul Eggert  <eggert@cs.ucla.edu>
85937
85938         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85939         changes, consolidating in...
85940         * lib/regex_internal.h: ...this file.
85941
85942 2005-09-13  Jim Meyering  <jim@meyering.net>
85943
85944         * lib/canon-host.c: Filter through gnu indent and reword comments
85945         slightly.
85946         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85947
85948 2005-09-13  Derek Price  <derek@ximbiot.com>
85949
85950         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85951         failure.
85952         Reported by Jim Meyering  <jim@meyering.net>.
85953
85954 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85955
85956         * lib/base64.c: Typo.
85957         (base64_encode): Put b64str in initialized data section.
85958
85959 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85960
85961         Merge glibc and coreutils changes into gnulib, plus a few
85962         extra fixes.
85963         * lib/md5.c: Use #error rather than a string.
85964         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85965         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85966         (__attribute__): Define to empty for non recent-GCC.
85967         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85968         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85969         Renamed from their non-__ counterparts, with new macros replacing
85970         them if not _LIBC.  Add __THROW attribute.
85971         (rol): Remove.
85972         (struct md5_ctx): Align buffer if using GCC.
85973         * lib/sha1.h (struct sha1_ctx): Likewise.
85974         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85975         The old name was backwards.
85976         (NOTSWAP): Remove; not used.
85977         (rol): New macro, moved here from md5.h.
85978         (sha1_process_block): Remove a FIXME that doesn't make sense.
85979
85980 2005-09-12  Derek Price  <derek@ximbiot.com>
85981
85982         Return usable errors from canon-host.
85983         * lib/canon-host.h: New file.
85984         * lib/canon-host.c (canon_host): Wrap...
85985         (canon_host_r): ...this new function, which now relies exclusively on
85986         getaddrinfo.
85987         (ch_strerror): New function.
85988         (last_cherror): New global.
85989         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85990         interface.
85991         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85992         void *.
85993         (freeaddrinfo): Free ai->ai_canonname when set.
85994
85995 2005-09-12  Derek Price  <derek@ximbiot.com>
85996
85997         Make canon-host require getaddrinfo.
85998         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85999         AC_LIBSOURCE canon-host.h.  Call...
86000         (gl_PREREQ_CANON_HOST): ...this new function, which requires
86001         gl_GETADDRINFO.
86002         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
86003
86004 2005-09-12  Derek Price  <derek@ximbiot.com>
86005
86006         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
86007         LGPL.
86008         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
86009
86010 2005-09-12  Derek Price  <derek@ximbiot.com>
86011
86012         * lib/gai_strerror.c: Include config.h when available.  Include
86013         getaddrinfo.h before other headers to test interface.
86014         Reported by Larry Jones <lawrence.jones@ugs.com>.
86015
86016 2005-09-12  Derek Price  <derek@ximbiot.com>
86017             Paul Eggert  <eggert@cs.ucla.edu>
86018
86019         * modules/glob (Files): Add glob-libc.h.
86020
86021 2005-09-12  Derek Price  <derek@ximbiot.com>
86022             Paul Eggert  <eggert@cs.ucla.edu>
86023
86024         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
86025         glob_.h, glob-libc.h.
86026         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
86027
86028 2005-09-12  Derek Price  <derek@ximbiot.com>
86029             Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
86032         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
86033         protecting things that should be done only in gnulib contexts.
86034         * lib/glob_.h: New file, containing only the glob things needed for
86035         gnulib.
86036         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
86037         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
86038         (glob, globfree, glob_pattern_p): Now defined simply in terms of
86039         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
86040         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
86041         and to respect the namespace rules better.
86042
86043 2005-09-08  Simon Josefsson  <jas@extundo.com>
86044
86045         * modules/socklen: New file.
86046
86047 2005-09-08  Simon Josefsson  <jas@extundo.com>
86048
86049         * m4/socklen.m4: New file.
86050
86051 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86052
86053         * modules/utimens (Files): Add m4/utimbuf.m4, since
86054         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
86055         Reported by Sergey Poznyakoff.
86056
86057 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86058
86059         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
86060         definitions, since that's the preferred style in glibc.
86061         Fix a minor spacing issue, and update copyright notice to match
86062         glibc's.
86063
86064 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86065
86066         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
86067
86068 2005-09-06  Simon Josefsson  <jas@extundo.com>
86069
86070         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
86071         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
86072
86073 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86074
86075         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86076         warning.
86077
86078 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86079
86080         * config/srclist.txt: Add glibc bug 1302.
86081
86082 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86083
86084         Change bitset word type from unsigned int to unsigned long int,
86085         as this has better performance on typical 64-bit hosts.
86086         Port bitset code to hosts with unusual word sizes.
86087         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86088         (build_collating_symbol):
86089         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86090         argument is a bitset.  This is merely a style issue, but it makes
86091         it clearer that an entire array is expected.
86092         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86093         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86094         Port to the case where bitset_word is not the same as unsigned int.
86095         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86096         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86097         Likewise.
86098         * lib/regexec.c (check_dst_limits_calc_pos_1,
86099         check_subexp_matching_top):
86100         (build_trtable, group_nodes_into_DFAstates):
86101         Likewise.
86102         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86103         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86104         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86105         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86106         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86107         * lib/regcomp.c (optimize_subexps, lower_subexp):
86108         Work even if bitset_word has holes in its bitwise representation.
86109         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86110         * lib/regexec.c (check_dst_limits_calc_pos_1,
86111         check_subexp_matching_top):
86112         Likewise.
86113         * lib/regex_internal.c (re_string_reconstruct):
86114         Don't assume UCHAR_MAX == 255.
86115         * lib/regex_internal.h (bitset_set_all): Likewise.
86116         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86117         All uses changed.
86118         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86119         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86120         All uses changed.
86121         (BITSET_WORD_MAX): New macro.
86122         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86123         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86124         (bitset_empty, bitset_copy):
86125         Prefer sizeof (bitset) to multiplying it out ourselves.
86126         (bitset_not_merge): Remove; unused.
86127         (bitset_contain): Return bool, not unsigned int with one bit on.
86128         All callers changed.
86129         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86130         alignment than re_node_set; do this by defining a new internal
86131         type struct dests_alloc and using it to allocate memory.
86132
86133 2005-09-05  Bruno Haible  <bruno@clisp.org>
86134
86135         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86136         links.
86137
86138 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86139
86140         * modules/size_max (Makefile.am): Add size_max.h
86141
86142 2005-09-04  Derek Price  <derek@ximbiot.com>
86143
86144         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86145
86146 2005-09-03  Simon Josefsson  <jas@extundo.com>
86147
86148         * gnulib-tool: Fix typo.
86149
86150 2005-09-03  Simon Josefsson  <jas@extundo.com>
86151
86152         * config/srclist.txt: Add glibc bug 1293.
86153
86154 2005-09-03  Derek Price  <derek@ximbiot.com>
86155
86156         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86157         From Larry Jones <lawrence.jones@ugs.com>.
86158
86159 2005-09-02  Simon Josefsson  <jas@extundo.com>
86160
86161         * modules/socklen: New file.
86162
86163 2005-09-02  Simon Josefsson  <jas@extundo.com>
86164
86165         * modules/havelib: New module.
86166
86167         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86168         Use havelib.
86169
86170 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         Check for arithmetic overflow when calculating sizes, to prevent
86173         some buffer-overflow issues.  These patches are conservative, in the
86174         sense that when I couldn't determine whether an overflow was possible,
86175         I inserted a run-time check.
86176         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86177         macros.
86178         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86179         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86180         (re_xnrealloc, re_x2nrealloc): New inline functions.
86181         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86182         parse_bracket_exp):
86183         (build_equiv_class, build_charclass): Check for arithmetic overflow
86184         in size expression calculations.
86185         * lib/regex_internal.c (re_string_realloc_buffers):
86186         (build_wcs_upper_buffer, re_node_set_add_intersect):
86187         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86188         (re_dfa_add_node, register_state): Likewise.
86189         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86190         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86191         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86192         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86193
86194 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86195
86196         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86197         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86198
86199 2005-09-02  Bruno Haible  <bruno@clisp.org>
86200
86201         Support for lib vs. lib64 distinction on biarch platforms.
86202         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86203         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86205
86206 2005-09-02  Bruno Haible  <bruno@clisp.org>
86207
86208         * gnulib-tool (import): In the other first-use case, provide defaults
86209         as well.
86210
86211 2005-09-02  Bruno Haible  <bruno@clisp.org>
86212
86213         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86214         patches not yet found in the latest gettext release.
86215
86216 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86217
86218         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86219         to avoid a collision with bits/local_lim.h in glibc.
86220         All uses changed.  Problem reported by Dmitry V. Levin in
86221         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86222
86223         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86224         bugs in int versus size_t comparisons.
86225         (re_string_context_at): Fix bug where the code assumed that
86226         Idx is signed.
86227
86228         Use bool where appropriate.
86229         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86230         All callers changed.
86231         (calc_eclosure_iter): Likewise, for ROOT arg.
86232         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86233         (build_charclass_op): Likewise, for NON_MATCH arg.
86234         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86235         (re_string_construct_common): Likewise, for ICASE arg.
86236         * lib/regexec.c (re_search_2_stub, re_search_stub):
86237         Likewise, for RET_LEN arg.
86238         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86239         (set_regs): Likewise, for FL_BACKTRACK arg.
86240         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86241         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86242         (calc_eclosure_iter, parse_bracket_exp):
86243         Use bool for internal variables that are booleans.
86244         * lib/regexec.c (re_search_internal, check_matching,
86245         proceed_next_node):
86246         (set_regs, build_sifted_states, sift_states_bkref):
86247         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86248         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86249         (find_collation_sequence_value):
86250         Likewise.
86251         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86252         (re_node_set_compare):
86253         Return bool, not int. All callers changed.
86254         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86255         (build_trtable, check_node_accept): Likewise.
86256         * lib/regex_internal.h: Include stdbool.h.
86257
86258         Fix bugs uncovered when converting to bool.
86259         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86260         failure instead of charging ahead blindly.
86261         * lib/regex_internal.c (register_state): Likewise.
86262         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86263         for freeing internal storage.
86264         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86265         bitset pieces used as boolean, to avoid undefined behavior
86266         on hosts that do int overflow checking.
86267
86268 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86269
86270         * config/srclist.txt: Add glibc bugs 1285-1287.
86271
86272 2005-09-01  Jim Meyering  <jim@meyering.net>
86273
86274         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86275         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86276         Require gl_STAT_MACROS, too.
86277
86278 2005-09-01  Bruno Haible  <bruno@clisp.org>
86279
86280         * gnulib-tool (import): In the first-use case, provide defaults.
86281
86282 2005-09-01  Bruno Haible  <bruno@clisp.org>
86283
86284         * gnulib-tool (func_import): Remove the .tmp files.
86285
86286 2005-09-01  Bruno Haible  <bruno@clisp.org>
86287
86288         * gnulib-tool (func_import): Fix handling of symbolic links.
86289
86290 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86291
86292         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86293         old glibc regex code mishandles strings longer than 2**31 bytes.
86294         This patch fixes this when the regex code is used in gnulib
86295         (i.e., outside glibc).
86296
86297         This patch should not affect the use of the regex code inside
86298         glibc.  No doubt this problem also needs to be handled for glibc
86299         as well, but the result will be an incompatible change to the
86300         glibc ABI, and the old ABI will have to be supported too.  That
86301         can be the the subject for another patch.
86302
86303         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86304         governing whether the rest of this patch is active.  By default,
86305         the macro is disabled and the patch has no effect.
86306         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86307         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86308         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86309         (re_match_2, re_set_registers): Use the new types.
86310         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86311         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86312         New macros.
86313         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86314         (re_string_context_at, bin_tree_t, re_dfastate_t):
86315         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86316         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86317         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86318         (re_string_char_size_at, re_string_wchar_at):
86319         (re_string_elem_size_at):
86320         Use the new types and macros to port to 64-bit hosts.
86321         Use unsigned types for internal values, so that the code
86322         mostly works even for arrays larger than SSIZE_MAX.
86323         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86324         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86325         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86326         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86327         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86328         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86329         (calc_inveclosure, parse_dup_op, build_range_exp):
86330         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86331         (fetch_number, create_token_tree, mark_opt_subexp):
86332         Likewise.
86333         * lib/regex_internal.c (re_string_construct_common,
86334         create_ci_newstate):
86335         (create_cd_newstate, re_string_allocate, re_string_construct):
86336         (re_string_realloc_buffers, build_wcs_upper_buffer):
86337         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86338         (re_string_reconstruct, re_string_peek_byte_case):
86339         (re_string_fetch_byte_case, re_string_context_at):
86340         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86341         (re_node_set_init_copy, re_node_set_add_intersect):
86342         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86343         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86344         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86345         (re_acquire_state, re_acquire_state_context, register_state):
86346         Likewise.
86347         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86348         search_cur_bkref_entry):
86349         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86350         (re_search_internal, re_search_2_stub, re_search_stub)
86351         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86352         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86353         (update_cur_sifted_state, check_dst_limits):
86354         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86355         (check_subexp_limits, sift_states_bkref, merge_state_array):
86356         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86357         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86358         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86359         (expand_bkref_cache, check_node_accept_bytes):
86360         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86361         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86362         (acquire_init_state_context, check_halt_node_context):
86363         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86364         (sift_states_backward, clean_state_log_if_needed):
86365         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86366         (find_recover_state, transit_state_sb, transit_state_mb):
86367         (transit_state_bkref, build_trtable, match_ctx_clean):
86368         Likewise.
86369         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86370         to work around an assumption that REG_MISSING is negative.
86371
86372         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86373         (seek_collating_symbol_entry) [defined _LIBC]:
86374         (lookup_collation_sequence_value) [defined _LIBC]:
86375         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86376         Use prototypes rather than old-style function definitions.
86377         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86378         (transit_state_sb) [0]:
86379         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86380
86381         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86382         rm_eo.
86383
86384         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86385         (optimize_subexps, lower_subexp):
86386         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86387         since the signed shift might overflow.  Use 1u<<31 instead.
86388         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86389         Likewise.
86390         * lib/regexec.c (check_dst_limits_calc_pos_1,
86391         check_subexp_matching_top): Likewise.
86392
86393         * lib/regcomp.c (optimize_subexps, lower_subexp):
86394         Use CHAR_BIT rather than 8, for clarity.
86395         * lib/regexec.c (check_dst_limits_calc_pos_1):
86396         (check_subexp_matching_top): Likewise.
86397         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86398         have to worry about portability issues when shifting it left.
86399         Remove no-longer-needed test for table_size > 0.
86400         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86401         in a word, as the resulting behavior is undefined.
86402         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86403         in one case, a <= should have been an <, and in another case the
86404         whole test was missing.
86405         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86406         the standard name CHAR_BIT.
86407         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86408         this is not true on one's complement and signed-magnitude hosts.
86409
86410         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86411         next_last_offset.
86412         (struct re_dfa_t): Remove unused member states_alloc.
86413         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86414
86415 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86416
86417         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86418         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86419         and large-file glibc and in 32-bit large-file Solaris.
86420
86421 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86422
86423         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86424         lengths fit in regoff_t; this isn't true if regoff_t is the same
86425         width as size_t.
86426         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86427         (= START + RANGE) instead of RANGE.  This avoids overflow
86428         problems when regoff_t is the same width as size_t.
86429         All callers changed.
86430         (re_search_2_stub): Check for overflow when adding the
86431         sizes of the two strings.
86432         (re_search_stub): Check for overflow when adding START
86433         to RANGE; if it occurs, substitute the extreme value.
86434
86435 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86436
86437         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86438
86439 2005-08-31  Jim Meyering  <jim@meyering.net>
86440
86441         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86442         a pointer-to-const.
86443         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86444         (register_state): Likewise.
86445         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86446         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86447         (group_nodes_into_DFAstates): Likewise.
86448
86449 2005-08-31  Jim Meyering  <jim@meyering.net>
86450
86451         * check-module: Add a FIXME comment.
86452
86453 2005-08-31  Eric Blake  <ebb9@byu.net>
86454
86455         * modules/unistd-safer (Files): Add unistd--.h.
86456         * modules/stdio-safer (Files): Add stdio--.h.
86457
86458 2005-08-31  Derek Price  <derek@ximbiot.com>
86459
86460         * lib/getdelim.c (getdelim): Return EOF on EOF.
86461         Reported by Larry Jones <lawrence.jones@ugs.com>.
86462
86463 2005-08-31  Bruno Haible  <bruno@clisp.org>
86464
86465         Avoid unnecessary diffs in the generated lib/Makefile.am.
86466         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86467         the generated files.
86468         (func_import): Don't set cmd.
86469
86470 2005-08-31  Bruno Haible  <bruno@clisp.org>
86471
86472         * lib/strstr.c: Include <stddef.h>, for NULL.
86473         * lib/strcasestr.c: Likewise.
86474         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86475
86476 2005-08-31  Bruno Haible  <bruno@clisp.org>
86477
86478         * gnulib-tool: New option --macro-prefix.
86479         (func_import): Use macro_prefix.
86480         (import): Handle option --macro-prefix.
86481
86482 2005-08-31  Bruno Haible  <bruno@clisp.org>
86483
86484         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86485         Also use new variables cached_lgpl, cached_libtool.
86486
86487 2005-08-31  Bruno Haible  <bruno@clisp.org>
86488
86489         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86490         always instantiating them.
86491
86492 2005-08-31  Bruno Haible  <bruno@clisp.org>
86493
86494         * gnulib-tool (func_import): Read the previous cached settings
86495         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86496         earlier added by gnulib but are now dropped. Warn when a gnulib file
86497         overwrites a non-gnulib file.
86498
86499 2005-08-31  Bruno Haible  <bruno@clisp.org>
86500
86501         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86502         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86503         projects that don't keep autogenerated files in CVS. Put into
86504         actioncmd only the specified modules, not the transitive closure.
86505
86506 2005-08-31  Bruno Haible  <bruno@clisp.org>
86507
86508         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86509         Create directories that shall be filled.
86510         (import): Don't look for gl_* macros in configure.ac. Recurse across
86511         all directories containing a gnulib-cache.m4 files, if meaningful.
86512
86513 2005-08-31  Bruno Haible  <bruno@clisp.org>
86514
86515         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86516         (import): Set seen_libtool when we see gl_LIBTOOL.
86517
86518 2005-08-31  Bruno Haible  <bruno@clisp.org>
86519
86520         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86521         declaration macro definitions from generated gnulib.m4.
86522
86523 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86524
86525         * lib/iconvme.h: Add prototype for iconv_alloc.
86526
86527 2005-08-29  Simon Josefsson  <jas@extundo.com>
86528
86529         * lib/iconvme.c: Fix errno.
86530
86531 2005-08-29  Bruno Haible  <bruno@clisp.org>
86532
86533         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86534         that it works when the directory contains spaces.
86535
86536 2005-08-29  Bruno Haible  <bruno@clisp.org>
86537
86538         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86539
86540 2005-08-29  Bruno Haible  <bruno@clisp.org>
86541
86542         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86543         Emit more advice.
86544
86545 2005-08-29  Bruno Haible  <bruno@clisp.org>
86546         and Stepan Kasal  <kasal@ucw.cz>
86547
86548         * check-module: If more parameters are given, check each of them
86549         separately; add more exceptions, as noted by Jim Meyering.
86550         (check_module): New procedure.
86551         (%exempt_header): Now contains all exceptions.
86552
86553 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86554
86555         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86556
86557 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86558
86559         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86560
86561 2005-08-28  Bruno Haible  <bruno@clisp.org>
86562
86563         * m4/gnulib-tool.m4: New file.
86564
86565 2005-08-27  Jim Meyering  <jim@meyering.net>
86566
86567         * modules/unistd-safer (Files): Add pipe-safer.c.
86568         * modules/fcntl-safer (Files): Add creat-safer.c.
86569
86570 2005-08-27  Jim Meyering  <jim@meyering.net>
86571
86572         * m4/stdlib-safer.m4: New file.  From coreutils.
86573         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86574         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86575         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86576         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86577         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86578
86579 2005-08-27  Jim Meyering  <jim@meyering.net>
86580
86581         * lib/fopen-safer.c: Merge minor changes from coreutils.
86582         * lib/dup-safer.c: Likewise.
86583         * lib/fd-safer.c: Likewise.
86584
86585         Merge from coreutils.
86586         * lib/stdio--.h: New file.
86587         * lib/stdlib--.h: New file.
86588         * lib/mkstemp-safer.c: New file.
86589
86590         GNU tar needs these.
86591         * lib/pipe-safer.c: New file.
86592         * lib/creat-safer.c: New file.
86593         * lib/fcntl--.h (creat): Define to creat_safer.
86594         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86595         * lib/unistd--.h (pipe): Define to pipe_safer.
86596         * lib/unistd-safer.h: Declare pipe_safer.
86597
86598 2005-08-26  Simon Josefsson  <jas@extundo.com>
86599
86600         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86601         Haible <bruno@clisp.org>.
86602
86603 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86604
86605         * lib/regex_internal.h: Remove all references to
86606         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86607         or better.
86608         (bitset_not, bitset_merge, bitset_not_merge):
86609         (bitset_mask, re_string_allocate, re_string_construct):
86610         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86611         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86612         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86613         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86614         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86615         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86616         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86617         (re_acquire_state_context):
86618         Remove unnecessary forward decls.
86619         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86620         Put __attribute at function definition,
86621         now that the function decl has been removed.
86622         * lib/regex_internal.c (re_string_peek_byte_case):
86623         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86624         Likewise.
86625
86626 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86627
86628         * m4/regex.m4: Add AC_PREREQ(2.50).
86629         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86630
86631 2005-08-25  Simon Josefsson  <jas@extundo.com>
86632
86633         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86634         __fsetlocking.
86635
86636 2005-08-25  Simon Josefsson  <jas@extundo.com>
86637
86638         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86639         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86640         GLIBC specific code.
86641
86642 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86643
86644         Make regex safe for g++.  This fixes one real bug (an "err"
86645         that should have been "*err").  g++ problem reported by
86646         Sam Steingold.
86647         * lib/regex_internal.h (re_calloc): New macro, consistent with
86648         re_malloc etc.  All callers of calloc changed to use re_calloc.
86649         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86650         not int.  All callers changed.
86651         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86652         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86653         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86654         (find_recover_state): Change "err" to "*err"; this fixes what
86655         appears to be a real bug.
86656         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86657         versus int.
86658
86659 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86660
86661         * modules/regex (Depends-on): Add malloc, since the code
86662         assumes that !malloc(0) means failure.
86663
86664 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86665
86666         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86667
86668         alloca modernization/simplification for regex.
86669         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86670         needs to be at the start of the file, and can be moved into
86671         regex_internal.h and simplified.
86672         * lib/regex_internal.h: Include <alloca.h>.
86673         (__libc_use_alloca) [!defined _LIBC]: New macro.
86674         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86675         now works outside glibc.
86676
86677 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86678
86679         * config/srclist.txt: Add glibc bugs 1241, 1245.
86680
86681 2005-08-25  Jim Meyering  <jim@meyering.net>
86682
86683         * lib/open-safer.c: Include <config.h>.
86684         Otherwise, we'd lose LARGEFILE support in any file using
86685         e.g. "fcntl--.h"
86686
86687 2005-08-25  Bruno Haible  <bruno@clisp.org>
86688
86689         * m4/minmax.m4: Require autoconf 2.52.
86690         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86691         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86692         alternatives of translit over the alphabet.
86693         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86694
86695 2005-08-24  Simon Josefsson  <jas@extundo.com>
86696
86697         * tests/test-getpass.c: New file.
86698
86699 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86700
86701         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86702         for GNU regex features.
86703
86704 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86705
86706         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86707         * lib/regex.h (regerror): Likewise.
86708
86709         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86710         requires this.  (The code never needed it.)
86711
86712         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86713         All uses of recently-renamed identifiers changed to use the new,
86714         POSIX-compliant names.  The code will build and run just fine
86715         without these changes, but it's better to eat our own dog food
86716         and use the standard-conforming names.
86717
86718         * lib/regex.h: Fix a multitude of POSIX name space violations.
86719         These changes have an effect only for programs that define
86720         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86721         do not change anything for programs compiled in the normal way.
86722         Also, there is no effect on the ABI.
86723
86724         (_REGEX_SOURCE): New macro.
86725         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86726         defined and _GNU_SOURCE is not; this fixes a name space violation.
86727
86728         Rename the following macros to obey POSIX requirements.
86729         The old names are still visible as macros if _REGEX_SOURCE is defined.
86730         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86731         RE_BACKSLASH_ESCAPE_IN_LISTS.
86732         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86733         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86734         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86735         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86736         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86737         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86738         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86739         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86740         (REG_INTERVALS): renamed from RE_INTERVALS.
86741         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86742         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86743         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86744         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86745         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86746         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86747         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86748         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86749         RE_UNMATCHED_RIGHT_PAREN_ORD.
86750         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86751         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86752         (REG_DEBUG): renamed from RE_DEBUG.
86753         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86754         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86755         unusual, since we can't clash with the POSIX REG_ICASE.
86756         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86757         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86758         (REG_NO_SUB): renamed from RE_NO_SUB.
86759         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86760         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86761         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86762         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86763         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86764         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86765         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86766         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86767         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86768         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86769         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86770         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86771         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86772         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86773         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86774         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86775         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86776         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86777         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86778         (REG_FIXED): Renamed from REGS_FIXED.
86779         (REG_NREGS): Renamed from RE_NREGS.
86780
86781         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86782         of other REG_* macros, since POSIX says the user is allowed to
86783         #undef these macros selectively.
86784
86785         (reg_errcode_t): Update comment stating what other tables need
86786         to be consistent.
86787
86788         Rename the following enum values to obey POSIX requirements.
86789         The old names are still visible as macros.
86790         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86791         is not defined, since GNU is supposed to be a superset of POSIX as
86792         much as possible, and since we want reg_errcode_t to be a signed
86793         type for implementation consistency.
86794         (_REG_NOERROR): Renamed from REG_NOERROR.
86795         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86796         (_REG_BADPAT): Renamed from REG_BADPAT.
86797         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86798         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86799         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86800         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86801         (_REG_EBRACK): Renamed from REG_EBRACK.
86802         (_REG_EPAREN): Renamed from REG_EPAREN.
86803         (_REG_EBRACE): Renamed from REG_EBRACE.
86804         (_REG_BADBR): Renamed from REG_BADBR.
86805         (_REG_ERANGE): Renamed from REG_ERANGE.
86806         (_REG_ESPACE): Renamed from REG_ESPACE.
86807         (_REG_BADRPT): Renamed from REG_BADRPT.
86808         (_REG_EEND): Renamed from REG_EEND.
86809         (_REG_ESIZE): Renamed from REG_ESIZE.
86810         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86811         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86812         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86813         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86814         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86815
86816         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86817         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86818         changed.  But support the old name if the new one is not defined
86819         and if _REGEX_SOURCE.
86820
86821         Change the following member names in struct re_pattern_buffer.
86822         The old names are still supported if !_REGEX_SOURCE.
86823         The new names are always supported, regardless of _REGEX_SOURCE.
86824         (re_buffer): Renamed from buffer.
86825         (re_allocated): Renamed from allocated.
86826         (re_used): Renamed from used.
86827         (re_syntax): Renamed from syntax.
86828         (re_fastmap): Renamed from fastmap.
86829         (re_translate): Renamed from translate.
86830         (re_can_be_null): Renamed from can_be_null.
86831         (re_regs_allocated): Renamed from regs_allocated.
86832         (re_fastmap_accurate): Renamed from fastmap_accurate.
86833         (re_no_sub): Renamed from no_sub.
86834         (re_not_bol): Renamed from not_bol.
86835         (re_not_eol): Renamed from not_eol.
86836         (re_newline_anchor): Renamed from newline_anchor.
86837
86838         Change the following member names in struct re_registers.
86839         The old names are still supported if !_REGEX_SOURCE.
86840         The new names are always supported, regardless of _REGEX_SOURCE.
86841         (rm_num_regs): Renamed from num_regs.
86842         (rm_start): Renamed from start.
86843         (rm_end): Renamed from end.
86844
86845         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86846         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86847         Prepend __ to parameter names.
86848
86849         Undo yesterday's changes.
86850
86851 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86852
86853         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86854         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86855         lib/regex.c.
86856
86857 2005-08-24  Jim Meyering  <jim@meyering.net>
86858
86859         Sync from coreutils.
86860         * m4/fcntl-safer.m4: New file.
86861
86862         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86863         and object files for this module.
86864
86865 2005-08-24  Jim Meyering  <jim@meyering.net>
86866
86867         Sync from coreutils.
86868         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86869
86870 2005-08-24  Jim Meyering  <jim@meyering.net>
86871
86872         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86873         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86874
86875 2005-08-24  Jim Meyering  <jim@meyering.net>
86876
86877         * modules/fcntl-safer: New module.
86878         * modules/fts (Depends-on): Add fcntl-safer.
86879         * MODULES.html.sh (File descriptor based Input/Output):
86880         Add fcntl-safer.
86881
86882 2005-08-24  Bruno Haible  <bruno@clisp.org>
86883
86884         Support for unit test modules.
86885         * modules/README: Mention tests modules.
86886         * modules/TEMPLATE-TESTS: New file.
86887         * gnulib-tool: New options --extract-tests-module, --with-tests and
86888         --tests-base (unused for the moment).
86889         (testsbase, inctests): New variables.
86890         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86891         (func_verify_module): Exclude TEMPLATE-TESTS.
86892         (func_verify_nontests_module, func_verify_tests_module): New functions.
86893         (func_get_dependencies): Add implicit dependency for tests modules.
86894         (func_get_tests_module): New function.
86895         (func_modules_transitive_closure): When --with-tests was specified,
86896         include the unit tests as well, unless explicitly avoided.
86897         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86898         (func_emit_tests_Makefile_am): New function.
86899         (func_create_testdir): When --with-tests was specified, emit a
86900         tests/ directory.
86901         * MODULES.html.sh (Future developments): Update.
86902
86903 2005-08-24  Bruno Haible  <bruno@clisp.org>
86904
86905         * modules/tls-tests: New file.
86906         * tests/test-tls.c: New file, from GNU gettext.
86907
86908 2005-08-24  Bruno Haible  <bruno@clisp.org>
86909
86910         * modules/lock-tests: New file.
86911         * tests/test-lock.c: New file, from GNU gettext.
86912
86913 2005-08-24  Bruno Haible  <bruno@clisp.org>
86914
86915         * lib/lock.h: Add multiple inclusion guard.
86916         * lib/tls.h: Add multiple inclusion guard.
86917
86918 2005-08-24  Bruno Haible  <bruno@clisp.org>
86919
86920         * gnulib-tool: Add support for the --aux-dir option to
86921         --create-testdir, --create-megatestdir, --test, --megatest.
86922         (func_create_testdir, func_create_megatestdir): Optionally emit a
86923         AC_CONFIG_AUX_DIR directive.
86924         (create-testdir, create-megatestdir, test, megatest): Provide a
86925         default value for $auxdir.
86926
86927 2005-08-24  Bruno Haible  <bruno@clisp.org>
86928
86929         * gnulib-tool (import): Use compound statement instead of subshell
86930         where possible.
86931
86932 2005-08-24  Bruno Haible  <bruno@clisp.org>
86933
86934         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86935
86936 2005-08-24  Bruno Haible  <bruno@clisp.org>
86937
86938         * gnulib-tool (func_version): Update.
86939
86940 2005-08-24  Bruno Haible  <bruno@clisp.org>
86941
86942         * gnulib-tool (func_import, func_create_testdir,
86943         func_create_megatestdir): Quote all autoconf macro arguments.
86944
86945 2005-08-24  Bruno Haible  <bruno@clisp.org>
86946
86947         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86948         option --force, because --force causes the aclocal.m4 of each
86949         subdirectory to be newer than the corresponding config.h.in.
86950
86951 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86952
86953         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86954         All contents moved to gl_REGEX.
86955         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86956         assume that it does.
86957
86958 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86959
86960         * lib/regex.h (REG_NOSYS)
86961         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86962         Define, since POSIX requires it as of 2001.
86963         (_REG_ENOSYS)
86964         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86965         New private symbol, used to keep the enum signed in all cases.
86966         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86967         Youngman in
86968         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86969
86970         * lib/regex_internal.c (re_string_skip_chars, register_state):
86971         (calc_state_hash):
86972         Remove forward decls; no longer needed now that we use prototypes.
86973         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86974         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86975         (clean_state_log_if_needed): Likewise.
86976
86977 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86978
86979         * config/srclist.txt: Add glibc bugs 1231-1233.
86980
86981 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86982
86983         Fix problems reported by Sam Steingold in
86984         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86985         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86986         assumed that reg_errcode_t is a signed type, which is not
86987         necessarily true if _XOPEN_SOURCE is not defined.
86988         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86989         since some compilers warn about it otherwise.
86990
86991 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86992
86993         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86994         (init_word_char, create_initial_state, duplicate_node_closure):
86995         (fetch_token, peek_token_bracket, build_range_exp):
86996         (build_collating_symbol): Remove forward decls; no longer needed
86997         now that we use prototypes.
86998
86999         * lib/regcomp.c:
87000         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
87001         (re_compile_fastmap_iter, regcomp, regerror, regfree):
87002         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
87003         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
87004         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
87005         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
87006         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
87007         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
87008         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
87009         (build_range_exp, build_collating_symbol, parse_bracket_exp):
87010         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
87011         (build_charclass, build_charclass_op, fetch_number, create_tree):
87012         (create_token_tree, mark_opt_subexp, duplicate_tree):
87013         Use prototypes rather than old-style definitions.
87014
87015         * lib/regex_internal.c:
87016         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
87017         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
87018         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
87019         (re_string_reconstruct, re_string_peek_byte_case):
87020         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
87021         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
87022         (re_node_set_init_copy, re_node_set_add_intersect):
87023         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
87024         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
87025         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
87026         (re_acquire_state, re_acquire_state_context, register_state):
87027         (create_ci_newstate, create_cd_newstate, free_state):
87028         Likewise.
87029         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
87030         re_search_2):
87031         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
87032         (re_search_internal, prune_impossible_nodes):
87033         (acquire_init_state_context, check_matching, static):
87034         (check_halt_node_context, check_halt_state_context, proceed_next_node):
87035         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
87036         (update_regs, sift_states_backward, build_sifted_states):
87037         (clean_state_log_if_needed, merge_state_array):
87038         (update_cur_sifted_state, add_epsilon_src_nodes):
87039         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
87040         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
87041         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
87042         (find_recover_state, check_subexp_matching_top, transit_state_mb):
87043         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
87044         (check_arrival, check_arrival_add_next_nodes):
87045         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
87046         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
87047         (check_node_accept_bytes, check_node_accept, extend_buffers):
87048         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
87049         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
87050         (sift_ctx_init):
87051         Likewise.
87052
87053         * lib/regex_internal.h:
87054         (re_string_allocate, re_string_construct, re_string_reconstruct):
87055         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
87056         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
87057         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
87058         (re_string_context_at, re_string_peek_byte_case):
87059         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
87060         is defined, since we now use prototypes always.
87061
87062         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
87063         C89 or better.  All uses removed.
87064
87065 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87066
87067         * config/srclist.txt: Add glibc bugs 1220-1227.
87068
87069 2005-08-20  Jim Meyering  <jim@meyering.net>
87070
87071         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
87072         of unused local, dfa.
87073
87074 2005-08-20  Bruno Haible  <bruno@clisp.org>
87075
87076         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87077
87078 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87079
87080         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87081         (re_node_set_insert_last, re_dfa_add_node):
87082         Rename local variables to avoid GCC shadowing warnings.
87083
87084 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87085
87086         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87087         [defined lint]: Suppress bogus uninitialized-variable warnings.
87088
87089         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87090         and let the caller return REG_ESPACE if out of space.  This
87091         removes an uninitialied-variable warning with GCC 4.0.1, and also
87092         avoids taking the address of a local variable.  All callers
87093         changed.
87094
87095 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87096
87097         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87098         $LIBCSRC/posix/regexec.c.
87099         Add glibc bug 1217 for regcomp.c.
87100
87101 2005-08-19  Jim Meyering  <jim@meyering.net>
87102
87103         * lib/regexec.c (proceed_next_node): Redo local variables to
87104         avoid GCC shadowing warnings.
87105
87106 2005-08-18  Bruno Haible  <bruno@clisp.org>
87107
87108         * lib/strstr.c (strstr): Fix return value in multibyte case.
87109         * lib/strcasestr.c (strcasestr): Likewise.
87110
87111 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87112
87113         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87114
87115 2005-08-17  Jim Meyering  <jim@meyering.net>
87116
87117         Make the %s format (seconds since the epoch) work for a negative
87118         number and when used with a zero-padded field width, e.g. %015s.
87119
87120         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87121         label so that it precedes the code to set `digits'.  Otherwise,
87122         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87123         print `00-22'.  Now, it prints `-0022', as it should.
87124
87125 2005-08-17  Bruno Haible  <bruno@clisp.org>
87126
87127         * modules/strstr (Files): Add m4/mbrtowc.m4.
87128         (Depends-on): Add mbuiter.
87129
87130 2005-08-17  Bruno Haible  <bruno@clisp.org>
87131
87132         * modules/strcasestr: New file.
87133         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87134         strcasestr.
87135
87136 2005-08-17  Bruno Haible  <bruno@clisp.org>
87137
87138         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87139
87140 2005-08-17  Bruno Haible  <bruno@clisp.org>
87141
87142         * modules/mbuiter: New file.
87143         * MODULES.html.sh (Extended multibyte and wide character utilities):
87144         Add mbuiter.
87145
87146 2005-08-17  Bruno Haible  <bruno@clisp.org>
87147
87148         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87149         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87150
87151 2005-08-17  Bruno Haible  <bruno@clisp.org>
87152
87153         * m4/strcasestr.m4: New file.
87154
87155 2005-08-17  Bruno Haible  <bruno@clisp.org>
87156
87157         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87158         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87159
87160 2005-08-17  Bruno Haible  <bruno@clisp.org>
87161
87162         * lib/strcasestr.h: New file.
87163         * lib/strcasestr.c: New file.
87164
87165 2005-08-17  Bruno Haible  <bruno@clisp.org>
87166
87167         * lib/strcasecmp.c: Use mbuiter.h.
87168
87169 2005-08-17  Bruno Haible  <bruno@clisp.org>
87170
87171         * lib/mbuiter.h: New file.
87172
87173 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87174
87175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87176         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87177         and gl_GETOPT are both invoked via different paths (as happens
87178         with GNU tar CVS because it uses both argp and getopt), the former
87179         wins.
87180
87181 2005-08-16  Bruno Haible  <bruno@clisp.org>
87182
87183         * modules/tls: New file.
87184         * MODULES.html.sh (Multithreading): Add tls.
87185
87186 2005-08-16  Bruno Haible  <bruno@clisp.org>
87187
87188         * modules/strnlen1: New file.
87189         * MODULES.html.sh (String handling): Add strnlen1.
87190
87191 2005-08-16  Bruno Haible  <bruno@clisp.org>
87192
87193         * modules/strcase (Files): Add m4/mbrtowc.m4.
87194         (Depends-on): Add strnlen1, mbchar.
87195
87196 2005-08-16  Bruno Haible  <bruno@clisp.org>
87197
87198         * modules/mbiter: New file.
87199         * MODULES.html.sh (Extended multibyte and wide character utilities):
87200         Add mbiter.
87201
87202 2005-08-16  Bruno Haible  <bruno@clisp.org>
87203
87204         * modules/mbfile: New file.
87205         * MODULES.html.sh (Extended multibyte and wide character utilities):
87206         Add mbfile.
87207
87208 2005-08-16  Bruno Haible  <bruno@clisp.org>
87209
87210         * modules/mbchar: New file.
87211         * MODULES.html.sh (Extended multibyte and wide character utilities):
87212         New section.
87213
87214 2005-08-16  Bruno Haible  <bruno@clisp.org>
87215
87216         * m4/tls.m4: New file, from GNU gettext.
87217
87218 2005-08-16  Bruno Haible  <bruno@clisp.org>
87219
87220         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87221         always.
87222         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87223
87224 2005-08-16  Bruno Haible  <bruno@clisp.org>
87225
87226         * m4/mbiter.m4: New file.
87227
87228 2005-08-16  Bruno Haible  <bruno@clisp.org>
87229
87230         * m4/mbfile.m4: New file.
87231
87232 2005-08-16  Bruno Haible  <bruno@clisp.org>
87233
87234         * m4/mbchar.m4: New file.
87235
87236 2005-08-16  Bruno Haible  <bruno@clisp.org>
87237
87238         * lib/tls.h: New file, from GNU gettext.
87239         * lib/tls.c: New file, from GNU gettext.
87240
87241 2005-08-16  Bruno Haible  <bruno@clisp.org>
87242
87243         * lib/strnlen1.h: New file.
87244         * lib/strnlen1.c: New file.
87245
87246 2005-08-16  Bruno Haible  <bruno@clisp.org>
87247
87248         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87249         (mbi_init): Update.
87250         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87251         NUL byte, not after it.
87252
87253 2005-08-16  Bruno Haible  <bruno@clisp.org>
87254
87255         * lib/strcase.h (strcasecmp): Add note in comments.
87256         * lib/strncasecmp.c: Use code from strcasecmp.c.
87257         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87258         (strcasecmp): Work correctly in multibyte locales.
87259
87260 2005-08-16  Bruno Haible  <bruno@clisp.org>
87261
87262         * lib/mbiter.h: New file.
87263
87264 2005-08-16  Bruno Haible  <bruno@clisp.org>
87265
87266         * lib/mbfile.h: New file.
87267
87268 2005-08-16  Bruno Haible  <bruno@clisp.org>
87269
87270         * lib/mbchar.h: New file.
87271         * lib/mbchar.c: New file.
87272
87273 2005-08-16  Bruno Haible  <bruno@clisp.org>
87274
87275         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87276         the valid ones. Makes the comparison operations transitive:
87277         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87278         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87279
87280 2005-08-15  Simon Josefsson  <jas@extundo.com>
87281
87282         * modules/ssize_t (License): Change to 'unlimited'.
87283
87284         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87285
87286 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87287
87288         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87289         Add comments for each pending glibc patch.
87290
87291 2005-08-15  Bruno Haible  <bruno@clisp.org>
87292
87293         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87294         __cplusplus is defined.
87295
87296 2005-08-14  Jim Meyering  <jim@meyering.net>
87297
87298         Sync from coreutils.
87299
87300         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87301         Use the hash-table-based cycle-detection code not just when
87302         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87303         Reported by James Youngman in
87304         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87305         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87306         FTS_TIGHT_CYCLE_CHECK.
87307         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87308         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87309         once again.
87310         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87311         * lib/fts.c (fd_safer): Remove decl.
87312         Include fcntl--.h rather than unistd-safer.h
87313         (fts_safe_changedir): Don't call fd_safer; no longer needed
87314         now that we include fcntl--.h.
87315
87316 2005-08-12  Simon Josefsson  <jas@extundo.com>
87317
87318         * modules/getndelim2: Use ssize_t module.
87319         * modules/getnline: Likewise.
87320         * modules/safe-read: Likewise.
87321         * modules/xreadlink: Likewise.
87322
87323         * modules/ssize_t: New file.
87324
87325 2005-08-12  Simon Josefsson  <jas@extundo.com>
87326
87327         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87328
87329 2005-08-12  Simon Josefsson  <jas@extundo.com>
87330
87331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87332         ssize_t.
87333
87334 2005-08-12  Simon Josefsson  <jas@extundo.com>
87335
87336         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87337         readline, getdelim and check_version.
87338         (Support for systems lacking ISO C 99: Sizes of integer types):
87339         Add size_max.
87340
87341 2005-08-12  Bruno Haible  <bruno@clisp.org>
87342
87343         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87344
87345 2005-08-11  Simon Josefsson  <jas@extundo.com>
87346
87347         * modules/readline: New file.
87348
87349         * modules/strnlen (Files): Add strnlen.h.
87350
87351 2005-08-11  Simon Josefsson  <jas@extundo.com>
87352
87353         * m4/readline.m4: New file.
87354
87355 2005-08-11  Simon Josefsson  <jas@extundo.com>
87356
87357         * lib/readline.h, readline.c: New file.
87358
87359 2005-08-11  Simon Josefsson  <jas@extundo.com>
87360
87361         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87362         gl_AVOID.
87363
87364 2005-08-11  Bruno Haible  <bruno@clisp.org>
87365
87366         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87367
87368 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87369
87370         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87371
87372 2005-08-10  Simon Josefsson  <jas@extundo.com>
87373
87374         * tests/test-iconvme.c: New file.
87375
87376 2005-08-10  Simon Josefsson  <jas@extundo.com>
87377
87378         * m4/strnlen.m4: New file.
87379
87380         * m4/strndup.m4: Don't check for strnlen declaration, done in
87381         strnlen.m4.
87382
87383 2005-08-10  Simon Josefsson  <jas@extundo.com>
87384
87385         * lib/strndup.c: Use strnlen.h.
87386
87387         * lib/strnlen.h: New file.
87388
87389 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87390
87391         * README: Typos.
87392
87393 2005-08-02  Simon Josefsson  <jas@extundo.com>
87394
87395         * modules/readline: New file.
87396
87397 2005-08-02  Simon Josefsson  <jas@extundo.com>
87398
87399         * modules/getdelim: New file.
87400
87401         * modules/getline: Rewrite, don't use getndelim2.
87402
87403 2005-08-02  Simon Josefsson  <jas@extundo.com>
87404
87405         * m4/getline.m4: Separate out getdelim stuff into separate module.
87406
87407         * m4/getdelim.m4: New file.
87408
87409 2005-08-02  Simon Josefsson  <jas@extundo.com>
87410
87411         * lib/getline.h, getline.c: Rewrite.
87412
87413         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87414
87415 2005-07-31  Bruno Haible  <bruno@clisp.org>
87416
87417         * lib/lock.h (gl_lock_initializer): New macro.
87418         (gl_lock_define_initialized): Use it.
87419         (gl_rwlock_initializer): New macro.
87420         (gl_rwlock_define_initialized): Use it.
87421         (gl_recursive_lock_initializer): New macro.
87422         (gl_recursive_lock_define_initialized): Use it.
87423
87424 2005-07-30  Karl Berry  <karl@gnu.org>
87425
87426         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87427         Report from Ben Pfaff, regarding getopt.
87428
87429 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87430
87431         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87432         normal way.
87433         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87434         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87435         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87436         (gl_GETOPT): Use the new macros.  Most of the implementation
87437         is moved to the new macros.  This is for programs like Emacs
87438         that don't want all the functionality of gl_GETOPT.
87439
87440 2005-07-26  Bruno Haible  <bruno@clisp.org>
87441
87442         * m4/lock.m4: Update from GNU gettext.
87443
87444 2005-07-26  Bruno Haible  <bruno@clisp.org>
87445
87446         * lib/lock.h: Update from GNU gettext.
87447         * lib/lock.c: Update from GNU gettext.
87448
87449 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87450
87451         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87452         obsolescent AC_TRY_RUN.  Include the default includes files, for
87453         'exit'.
87454
87455 2005-07-24  Bruno Haible  <bruno@clisp.org>
87456
87457         * modules/visibility: New file.
87458         * MODULES.html.sh (Misc): Add visibility.
87459
87460 2005-07-24  Bruno Haible  <bruno@clisp.org>
87461
87462         * m4/visibility.m4: New file.
87463
87464 2005-07-24  Bruno Haible  <bruno@clisp.org>
87465
87466         * doc/visibility.texi: New file.
87467
87468 2005-07-22  Bruno Haible  <bruno@clisp.org>
87469
87470         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87471         $(ALLOCA_H), redundant through BUILT_SOURCES.
87472         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87473         redundant through BUILT_SOURCES.
87474         * modules/byteswap (Makefile.am): Remove explicit dependency on
87475         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87476         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87477         $(FNMATCH_H), redundant through BUILT_SOURCES.
87478         * modules/getopt (Makefile.am): Remove explicit dependency on
87479         $(GETOPT_H), redundant through BUILT_SOURCES.
87480         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87481         redundant through BUILT_SOURCES.
87482         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87483         redundant through BUILT_SOURCES.
87484         * modules/stdbool (Makefile.am): Remove explicit dependency on
87485         $(STDBOOL_H), redundant through BUILT_SOURCES.
87486         * modules/stdint (Makefile.am): Remove explicit dependency on
87487         $(STDINT_H), redundant through BUILT_SOURCES.
87488         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87489         Remove explicit dependency on $(SYSEXITS_H).
87490         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87491
87492 2005-07-18  Simon Josefsson  <jas@extundo.com>
87493
87494         * lib/check-version.c (check_version): Accept identical versions too.
87495
87496 2005-07-18  Bruno Haible  <bruno@clisp.org>
87497
87498         * modules/lock: New file.
87499         * MODULES.html.sh (Multithreading): New section.
87500
87501 2005-07-18  Bruno Haible  <bruno@clisp.org>
87502
87503         * m4/lock.m4: New file, from GNU gettext.
87504
87505 2005-07-18  Bruno Haible  <bruno@clisp.org>
87506
87507         * lib/lock.h: New file, from GNU gettext.
87508         * lib/lock.c: New file, from GNU gettext.
87509
87510 2005-07-18  Bruno Haible  <bruno@clisp.org>
87511
87512         * lib/lock.h (gl_once_t): New type.
87513         (gl_once_define, gl_once): New macros.
87514         * lib/lock.c (fresh_once): New variable.
87515         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87516         functions.
87517
87518 2005-07-16  Simon Josefsson  <jas@extundo.com>
87519
87520         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87521         workaround, suggested by Bruno.
87522
87523 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87524
87525         * modules/xalloc (Depends-on): Add xalloc-die.
87526         * modules/xvasprintf (Depends-on): Add xalloc-die.
87527
87528 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87529
87530         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87531         with a minor change.
87532
87533 2005-07-15  Bruno Haible  <bruno@clisp.org>
87534
87535         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87536         When using lib/poll.c, define poll as rpl_poll.
87537
87538 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87539
87540         * modules/argp (Depends-on): Remove unlocked-io.
87541
87542 2005-07-14  Derek Price  <derek@ximbiot.com>
87543
87544         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87545         for glob symlink bug.
87546
87547 2005-07-14  Bruno Haible  <bruno@clisp.org>
87548
87549         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87550         Instead, test for *_unlocked function declarations directly.
87551
87552 2005-07-11  Simon Josefsson  <jas@extundo.com>
87553
87554         * modules/size_max: New file.
87555
87556         * modules/xsize: Depend on size_max module for size_max.m4.
87557
87558 2005-07-11  Simon Josefsson  <jas@extundo.com>
87559
87560         * lib/size_max.h: New file.
87561
87562 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87563
87564         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87565         copyright symbol and the year.
87566         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87567         (version_etc_va): Use parameterized copyright notice.
87568         Reword to conform to the current GNU coding standards.
87569
87570 2005-07-11  Karl Berry  <karl@gnu.org>
87571
87572         * doc/gnulib.texi (Quoting): new node.
87573         (Initial import): more info, from Patrice.
87574
87575 2005-07-11  Bruno Haible  <bruno@clisp.org>
87576
87577         * gnulib-tool (func_usage): Document option --avoid.
87578         (Command line options): Handle --avoid.
87579         (func_acceptable): New function.
87580         (func_modules_transitive_closure): Use it.
87581
87582 2005-07-11  Bruno Haible  <bruno@clisp.org>
87583
87584         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87585         Reported by Jim Meyering.
87586
87587 2005-07-10  Bruno Haible  <bruno@clisp.org>
87588
87589         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87590         Needed when size_t is smaller than 'unsigned int'.
87591         Reported by Paul Eggert.
87592
87593 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87594
87595         * modules/argp (Depends-on): Add unlocked-io
87596
87597 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87598
87599         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87600         block of defines.
87601
87602 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87603
87604         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87605         fix now.
87606
87607 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87608         and Paul Eggert  <eggert@cs.ucla.edu>
87609
87610         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87611         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87612
87613 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87614
87615         * modules/regex (Files): Add lib/regex_internal.c,
87616         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87617         (Depends-on): Add extensions.
87618         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87619
87620 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87621
87622         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87623         pathconf.
87624         * m4/same.m4 (gl_SAME): Likewise.
87625         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87626
87627         * m4/regex.m4: Adjust to new libc regex implementation.
87628         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87629         all the .c and .h parts of (the new) regex.
87630         Quote the m4 stuff better.
87631         Check for RE_ICASE bug of old gnulib.
87632         Check for REG_STARTEND of recent libc.
87633         Rename local variables from jm_* to gl_*.
87634         Quote operand of "test -f".
87635         Say "recent enough" version of libc, not "version 2".
87636         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87637         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87638         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87639         Remove check for btowc, isascii.
87640         Require AM_LANGINFO_CODESET.
87641
87642 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87643
87644         * lib/regex.c, regex.h: Sync from libc.
87645         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87646         * lib/regexec.c:
87647         New files, synced from libc, except that regex_internal.h
87648         currently has a small porting fix.
87649
87650 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87651
87652         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87653         regex_internal.c, regexec.c.
87654         Add regex_internal.h too, but as a comment, since the libc version
87655         is currently broken in gnulib mode.
87656
87657 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87658
87659         Support programs like Emacs that use gnulib but not gettext.
87660         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87661         * modules/gettext-h: New file.
87662         * modules/gettext (Files): Remove lib/gettext.h.
87663         (Depends-on): Add gettext-h.
87664         (Makefile.am): Remove lib_SOURCES.
87665         * modules/argmatch, modules/c-stack, modules/closeout:
87666         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87667         * modules/execute, modules/file-type, modules/getaddrinfo:
87668         * modules/getopt, modules/human, modules/javacomp:
87669         * modules/javaexec, modules/mkdir-p, modules/obstack:
87670         * modules/openat, modules/pagealign_alloc, modules/pipe:
87671         * modules/quotearg, modules/regex, modules/rpmatch:
87672         * modules/unicodeio, modules/userspec, modules/version-etc:
87673         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87674         * modules/xsetenv:
87675         Depend on gettext-h, not gettext.
87676
87677 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87678
87679         * gnulib-tool (func_import): Add support for 'public domain' license.
87680         * modules/alloca, modules/atexit, modules/memmove:
87681         Now public domain, not GPL.
87682         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87683         * modules/realloc, modules/strerror, modules/strtod:
87684         Now LGPL, not GPL.
87685
87686 2005-07-05  Bruno Haible  <bruno@clisp.org>
87687
87688         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87689         autoconf CVS. Needed for mingw.
87690
87691 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87692
87693         Remove the dependency of the strftime module on the tzset module.
87694         * modules/strftime (Depends-on): Remove dependency on tzset.
87695
87696 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87697
87698         Remove the dependency of the strftime module on the tzset module.
87699         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87700         gl_FUNC_TZSET_CLOBBER.
87701
87702 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87703
87704         Remove the dependency of the strftime module on the tzset module.
87705         * lib/strftime.c (my_strftime)
87706         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87707         Copy the input structure, to work around some of the bug with
87708         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87709         Solaris releases, you should also use the tzset module, but we won't
87710         require it as a dependency any more since we don't want LGPLed code
87711         to depend on GPLed code.
87712
87713 2005-07-02  Jim Meyering  <jim@meyering.net>
87714
87715         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87716         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87717         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87718         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87719
87720 2005-07-02  Jim Meyering  <jim@meyering.net>
87721
87722         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87723
87724 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87725
87726         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87727         declares only 'struct timespec;' (!).
87728
87729 2005-07-01  Jim Meyering  <jim@meyering.net>
87730
87731         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87732         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87733         * lib/save-cwd.c, tempname.c:
87734         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87735         and don't include <sys/file.h>).
87736
87737 2005-06-29  Jim Meyering  <jim@meyering.net>
87738
87739         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87740         type name.  Use the variable name instead.
87741         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87742         Likewise.
87743
87744 2005-06-28  Simon Josefsson  <jas@extundo.com>
87745
87746         * modules/check-version (Files): Add check-version.m4.
87747
87748 2005-06-28  Simon Josefsson  <jas@extundo.com>
87749
87750         * m4/check-version.m4: New file, suggested by Jim Meyering
87751         <jim@meyering.net>.
87752
87753 2005-06-28  Simon Josefsson  <jas@extundo.com>
87754
87755         * lib/check-version.h, lib/check-version.c: New files.
87756
87757 2005-06-28  Simon Josefsson  <jas@extundo.com>
87758
87759         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87760         collision with global variable.  Better indentation.  Don't
87761         increment buffer pointer beyond buffer end.  Based on comments
87762         from Paul Eggert <eggert@cs.ucla.edu>.
87763
87764         * lib/base64.h: Indent.
87765
87766 2005-06-28  Simon Josefsson  <jas@extundo.com>
87767
87768         * doc/gnulib.texi (Library version handling): New section.
87769
87770 2005-06-28  Jim Meyering  <jim@meyering.net>
87771
87772         * check-module (find_included_lib_files): Hard-code another
87773         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87774         but modules/fts-lgpl (correctly) does not list those files.
87775
87776         * modules/canonicalize (Files): Add lib/pathmax.h.
87777
87778 2005-06-25  Simon Josefsson  <jas@extundo.com>
87779
87780         * modules/check-version: New file.
87781
87782 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87785         initializer of struct addrinfo, as an indication that we don't
87786         care how many members the structure has.
87787
87788 2005-06-24  Derek Price  <derek@ximbiot.com>
87789         and Bruno Haible  <bruno@clisp.org>
87790
87791         Remove stat module & update lstat.
87792         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87793         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87794         * m4/stat.m4: Remove this file.
87795
87796 2005-06-24  Derek Price  <derek@ximbiot.com>
87797         and Bruno Haible  <bruno@clisp.org>
87798
87799         Remove stat module & update lstat.
87800         * lib/stat.c: Remove this file...
87801         (slash_aware_lstat): ...moving this content and its support...
87802         * lib/lstat.c (rpl_lstat): ...into here.
87803         * lib/lstat.h: New file.
87804
87805 2005-06-24  Derek Price  <derek@ximbiot.com>
87806         and Bruno Haible  <bruno@clisp.org>
87807
87808         Remove stat module & update lstat.
87809         * config/srclist.txt (libc sources): Remove stat.
87810
87811 2005-06-24  Derek Price  <derek@ximbiot.com>
87812         and Bruno Haible  <bruno@clisp.org>
87813
87814         Remove stat module & update lstat.
87815         * MODULES.html.sh (stat): Remove.
87816         * MODULES.html: Regenerated.
87817         * modules/lstat (Description): Correct function name.
87818         (Files): Add "lstat.h".
87819         (Depends-on): Remove stat, add xalloc, stat-macros.
87820         * modules/stat: Remove this file.
87821         (Include): Add "lstat.h", remove <sys/stat.h>.
87822
87823 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87824
87825         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87826         (ranged_convert): Don't save conversion in a temporary struct.
87827         This causes a warning with GCC 4.0.0, and anyway in the typical
87828         case it's not worth the extra 100 bytes or so of code.
87829         (ranged_convert, __mktime_internal): When calling a function via a
87830         pointer P, use P () rather than (*P) (), as we now assume C89 or
87831         better.
87832
87833 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87834
87835         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87836         "who -r" failed to give output.  Problem reported by Tim Waugh.
87837
87838         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87839         (xcalloc): Use it to avoid needless tests.
87840         Problem reported by Jim Meyering.
87841
87842 2005-06-20  Derek Price  <derek@ximbiot.com>
87843
87844         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87845         unnecessary for Autoconfs > 2.59c.
87846
87847 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87848
87849         * lib/argp.h (__option_is_short): Check upper limit of
87850         __key. Isprint() requires its argument to have the value
87851         of an unsigned char or EOF.
87852
87853 2005-06-16  Jim Meyering  <jim@meyering.net>
87854
87855         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87856         when either N or S is zero.
87857
87858 2005-06-16  Derek Price  <derek@ximbiot.com>
87859
87860         * m4/bison.m4: Declare YACC & YFLAGS precious.
87861
87862 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87863
87864         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87865         multibyte string or pattern, fall back on unibyte matching.
87866         Problem reported by James Youngman.
87867
87868 2005-06-08  Bruno Haible  <bruno@clisp.org>
87869
87870         * modules/csharpcomp: New file.
87871         * MODULES.html.sh (C#): Add csharpcomp.
87872
87873 2005-06-08  Bruno Haible  <bruno@clisp.org>
87874
87875         * m4/csharpcomp.m4: New file, from GNU gettext.
87876
87877 2005-06-08  Bruno Haible  <bruno@clisp.org>
87878
87879         * lib/csharpcomp.h: New file, from GNU gettext.
87880         * lib/csharpcomp.c: New file, from GNU gettext.
87881         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87882
87883 2005-06-08  Bruno Haible  <bruno@clisp.org>
87884
87885         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87886         warning on mingw.
87887
87888 2005-06-07  Derek Price  <derek@ximbiot.com>
87889
87890         Sync from CVS.
87891         * lib/glob_.h: Indent nested #ifdef.
87892
87893 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87894
87895         Sync from coreutils.
87896         Use "file name" when talking about file names, instead of "filename"
87897         or "path", as per the GNU coding standards.
87898         * lib/mkdir-p.c: Renamed from makepath.c.
87899         (make_dir_parents): Renamed from make_path.  All callers changed.
87900         * lib/mkdir-p.h: Likewise.  All includers changed.
87901         * lib/filenamecat.c: Renamed from path-concat.c.
87902         (file_name_concat): Renamed from path_concat.  All callers changed.
87903         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87904         * lib/filenamecat.h: Likewise.  All includers changed.
87905         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87906         in comments or local variable names.
87907         * lib/basename.c: Likewise.
87908         * lib/canonicalize.c, canonicalize.h: Likewise.
87909         * lib/dirname.c, dirname.h: Likewise.
87910         * lib/euidaccess.c: Likewise.
87911         * lib/exclude.c: Likewise
87912         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87913         * lib/fsusage.c, fsuage.h: Likewise.
87914         * lib/fts.c, fts_.h: Likewise.
87915         * lib/getcwd.c: Likewise.
87916         * lib/getloadavg.c: Likewise.
87917         * lib/mkstemp.c: Likewise.
87918         * lib/mountlist.c, mountlist.h: Likewise.
87919         * lib/openat.c, openat.h: Likewise.
87920         * lib/readlink-stub.c: Likewise.
87921         * lib/readutmp.c, readutmp.h: Likewise.
87922         * lib/rename.c: Likewise.
87923         * lib/rmdir.c: Likewise.
87924         * lib/same.c: Likewise.
87925         * lib/savedir.c: Likewise.
87926         * lib/stripslash.c: Likewise.
87927         * lib/tempname.c: Likewise.
87928         * lib/xreadlink.c: Likewise.
87929         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87930         All uses changed.
87931         * lib/exclude.h: Likewise.
87932
87933         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87934         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87935         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87936         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87937         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87938         files have been getting away with it for years (MORE/BSD 4.3
87939         is extinct now).
87940         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87941         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87942
87943         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87944         Define to 256, not 255, as per modern POSIX.
87945
87946 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87947
87948         Sync from coreutils.
87949         Use "file name" when talking about file names, instead of "filename"
87950         or "path", as per the GNU coding standards.
87951         * MODULES.html.sh: mkdir-p renamed from makepath.
87952         filenamecat renamed from path-concat.
87953         * modules/filenamecat: Renamed from modules/path-concat.
87954         (Files): filenamecat.h and filenamecat.c renamed from
87955         path-concat.h and path-concat.c.
87956         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87957         (Include): filenamecat.h, not path-concat.h.
87958         * modules/mkdir-p: Renamed from modules/makepath.
87959         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87960         makepath.c.
87961         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87962         (Include): mkdir-p.h, not makepath.h.
87963
87964 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87965
87966         Sync from coreutils.
87967         * m4/mkdir-p.m4: Renamed from makepath.m4.
87968         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87969         Rename files from makepath.c to mkdir-p.c, and from
87970         makepath.h to mkdir-p.h.
87971         * m4/filenamecat.m4: Renamed from path-concat.m4.
87972         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87973         Rename files from path-concat.c to filenamecat.c,
87974         and from path-concat.h to filenamecat.h.
87975         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87976         "file name" in local variables or comments.
87977         * m4/rename.m4: Likewise.
87978
87979 2005-06-01  Bruno Haible  <bruno@clisp.org>
87980
87981         * modules/csharpexec: New file.
87982         * MODULES.html.sh (C#): New section.
87983
87984 2005-06-01  Bruno Haible  <bruno@clisp.org>
87985
87986         * m4/csharp.m4: New file, from GNU gettext.
87987         * m4/csharpexec.m4: New file, from GNU gettext.
87988
87989 2005-06-01  Bruno Haible  <bruno@clisp.org>
87990
87991         * lib/csharpexec.h: New file, from GNU gettext.
87992         * lib/csharpexec.c: New file, from GNU gettext.
87993         * lib/csharpexec.sh.in: New file, from GNU gettext.
87994
87995 2005-05-31  Derek Price  <derek@ximbiot.com>
87996             Paul Eggert  <eggert@cs.ucla.edu>
87997
87998         Sync from cvs.
87999         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88000
88001 2005-05-31  Derek Price  <derek@ximbiot.com>
88002             Paul Eggert  <eggert@cs.ucla.edu>
88003
88004         Sync from cvs.
88005         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88006
88007 2005-05-29  Derek Price  <derek@ximbiot.com>
88008
88009         * config/srclist.txt (glob_.h, glob.c): Add these files.
88010
88011 2005-05-29  Derek Price  <derek@ximbiot.com>
88012
88013         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
88014         * modules/glob: New file.
88015         * modules/getlogin_r: Add link to POSIX spec in description.
88016
88017 2005-05-29  Derek Price  <derek@ximbiot.com>
88018             Paul Eggert  <eggert@cs.ucla.edu>
88019
88020         * m4/glob.m4: New file.
88021
88022 2005-05-29  Derek Price  <derek@ximbiot.com>
88023             Paul Eggert  <eggert@cs.ucla.edu>
88024
88025         * lib/glob_.h, lib/glob.c: New files.
88026
88027 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88028
88029         * modules/fts (Files): Remove m4/inttypes-pri.m4.
88030         * modules/fts-lgpl (Depends-on): Remove gettext.
88031
88032 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88033
88034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
88035         and don't require gt_INTTYPES_PRI.
88036
88037 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88038
88039         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
88040
88041         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
88042         the configuration hassle isn't worth it.
88043         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
88044         (LONGEST_MODIFIER, PRIuMAX): Remove.
88045
88046 2005-05-27  Bruno Haible  <bruno@clisp.org>
88047
88048         * lib/getlogin_r.h: Remove second include of <stddef.h>.
88049
88050 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88051
88052         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
88053         _POSIX_PTHREAD_SEMANTICS for Solaris.
88054
88055 2005-05-25  Derek Price  <derek@ximbiot.com>
88056
88057         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
88058
88059 2005-05-25  Derek Price  <derek@ximbiot.com>
88060             Paul Eggert  <eggert@cs.ucla.edu>
88061
88062         * modules/getlogin_r, m4/getlogin_r.m4: New files.
88063         * lib/getlogin_r.c, getlogin_r.h: New files.
88064
88065 2005-05-25  Bruno Haible  <bruno@clisp.org>
88066             Derek Price  <derek@ximbiot.com>
88067
88068         * lib/getlogin_r.h: Simplify API documentation.
88069
88070 2005-05-23  Derek Price  <derek@ximbiot.com>
88071
88072         * modules/minmax (Files): Add m4/minmax.m4.
88073         (configure.ac): Add gl_MINMAX.
88074
88075 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88076
88077         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88078         so that unistd-safer.h (GPL'ed code) need not be included.
88079
88080 2005-05-22  Bruno Haible  <bruno@clisp.org>
88081
88082         * m4/minmax.m4: New file.
88083         Based on a patch by Derek Price <derek@ximbiot.com>.
88084
88085 2005-05-22  Bruno Haible  <bruno@clisp.org>
88086
88087         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88088         (INT64_MIN): Fix definition.
88089         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88090
88091         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88092         NEED_SIGNED_INT_TYPES.
88093
88094         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88095         HAVE_SYSTEM_INTTYPES.
88096
88097 2005-05-22  Bruno Haible  <bruno@clisp.org>
88098
88099         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88100         Also include <sys/param.h> if it defines MIN, MAX.
88101         Based on a patch by Derek Price <derek@ximbiot.com>.
88102
88103 2005-05-21  Jim Meyering  <jim@meyering.net>
88104
88105         * modules/fts (Files): Add m4/inttypes-pri.m4.
88106         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88107
88108 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88109
88110         New fts module.
88111         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88112         (setup_dir, free_dir): New functions.
88113         (enter_dir, leave_dir): Define trivial
88114         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88115         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88116         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88117         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88118         Move to fts-cycle.c.
88119         (fts_open): Use setup_dir.
88120         (fts_close): Use free_dir.
88121         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88122         This adds a label and some gotos, but the alternatives were messier.
88123         Check for memory allocation failure when entering a dir.
88124         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88125         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88126         (FTS): New member fts_cycle, that is a union that contains the
88127         old active_dir_ht and cycle_state.  All uses changed to mention
88128         fts_cycle.ht and fts_cycle.state.
88129         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88130         fts.c, with the following changes:
88131         (setup_dir, free_dir): New functions.
88132         (enter_dir): Now returns bool.  Return true if successful, false
88133         if memory exhausted.  All callers changed.
88134         Do not bother partly cleaning up on
88135         memory allocation failure; that is free_dir's job.
88136         However, free ad if hash_insert fails, to avoid memory leak.
88137         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88138         fts->fts_options to see which union member to use.
88139
88140 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88141
88142         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88143         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88144
88145 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88146
88147         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88148
88149 2005-05-20  Jim Meyering  <jim@meyering.net>
88150
88151         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88152         Now a macro, to pacify GCC.
88153
88154 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88155
88156         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88157         of -1.
88158
88159 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88160
88161         * lib/chown.c (rpl_chown): Return -1 on failure.
88162
88163 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88164
88165         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88166         Don't check for stddef.h.
88167         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88168         don't use its results.
88169         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88170         since we include them unconditionally.  Don't require
88171         AM_STDBOOL_H, since stdbool is a prerequisite.
88172         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88173         since we assume C89 or better.
88174         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88175         as we don't use their results.
88176         Don't check for fchdir, memmove, memset, strrchr, as we use
88177         them unconditionally.
88178         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88179         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88180
88181 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88182
88183         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88184         Include <stddef.h> unconditionally, since we assume C89 now.
88185         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88186         * lib/fts.c: Include fts_.h first, to check interface.
88187         Do not include intprops.h; no longer needed.
88188         Include cycle-check.h and hash.h, since fts_.h no longer does.
88189         Remove unnecessary casts of closedir to void.
88190         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88191         decide whether to decrement nlinks.
88192         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88193         (FTS): Use struct hash_table * instead of Hash_table, so that
88194         we no longer need to include hash.h here.
88195
88196 2005-05-18  Jim Meyering  <jim@meyering.net>
88197
88198         * modules/dirfd (License): Change to LGPL.  Most of the code
88199         is already in the public domain.
88200
88201 2005-05-18  Jim Meyering  <jim@meyering.net>
88202
88203         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88204         Reported by Yoann Vandoorselaere.
88205
88206 2005-05-17  Jim Meyering  <jim@meyering.net>
88207
88208         * m4/fts.m4: New file, from coreutils.
88209
88210 2005-05-17  Jim Meyering  <jim@meyering.net>
88211
88212         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88213
88214 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88215
88216         Sync from coreutils.
88217         * m4/unlinkdir.m4: New file.
88218
88219 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88220
88221         Sync from coreutils.
88222         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88223         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88224         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88225         White space changes only.
88226         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88227         special.
88228         * lib/yesno.c: Include getline.h, not ctype.h.
88229         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88230         Use getline to remove arbitrary restriction on response length.
88231
88232 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88233
88234         * config/srclist-update: Spell out "Street" in FSF postal
88235         mail address; this is the style the FSF seems to prefer.
88236
88237         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88238         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88239         this updates FSF postal mail address.
88240
88241         Sync from coreutils.
88242         * modules/unlinkdir: New file.
88243         * modules/yesno (Depends-on): Add getline.
88244         * MODULES.html.sh (File system functions): Add unlinkdir.
88245
88246 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88247
88248         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88249         lib/strsep.h:
88250         Change the initial comment to refer to GPL, not LGPL.
88251         gnulib-tool will change it to LGPL as needed.
88252
88253         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88254         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88255         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88256         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88257         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88258         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88259         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88260         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88261         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88262         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88263         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88264         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88265         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88266         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88267         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88268         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88269         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88270         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88271         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88272         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88273         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88274         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88275         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88276         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88277         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88278         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88279         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88280         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88281         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88282         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88283         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88284         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88285         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88286         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88287         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88288         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88289         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88290         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88291         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88292         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88293         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88294         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88295         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88296         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88297         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88298         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88299         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88300         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88301         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88302         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88303         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88304         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88305         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88306         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88307         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88308         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88309         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88310         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88311         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88312         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88313         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88314         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88315         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88316         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88317         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88318         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88319         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88320         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88321         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88322         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88323         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88324         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88325         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88326         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88327         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88328         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88329         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88330         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88331         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88332         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88333         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88334         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88335         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88336         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88337         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88338         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88339         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88340         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88341         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88342         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88343         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88344         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88345         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88346         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88347         lib/yesno.c, lib/yesno.h:
88348         Update FSF postal mail address.
88349
88350 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88351
88352         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88353         tests/test-memmem.c, tests/test-stpncpy.c:
88354         Update FSF postal mail address.
88355
88356 2005-05-13  Bruno Haible  <bruno@clisp.org>
88357
88358         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88359         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88360         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88361         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88362         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88363         Add support for 64-bit integers in the MSVC compiler.
88364
88365 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88366
88367         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88368
88369 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88370
88371         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88372
88373 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88374
88375         * doc/getdate.texi (General date syntax): Don't say that date
88376         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88377         Problem reported by Nic Ferrier.
88378
88379 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88380
88381         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88382         specified in ai_socktype. Fix invalid ai_protocol
88383         check. ai_protocol is usually set to 0 or depending on
88384         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88385         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88386         ai_socktype / ai_protocol in the returned addrinfo structure.
88387
88388 2005-05-10  Simon Josefsson  <jas@extundo.com>
88389
88390         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88391         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88392
88393 2005-05-10  Karl Berry  <karl@gnu.org>
88394
88395         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88396         (from http://www.gnu.org/licenses).
88397         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88398         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88399         fdl.texi suffices.
88400
88401 2005-05-10  Karl Berry  <karl@gnu.org>
88402
88403         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88404         (COPYING.DOC): remove.
88405
88406         * config/srclist-update: new FSF address.
88407
88408 2005-05-10  Derek Price  <derek@ximbiot.com>
88409
88410         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88411         possible.
88412
88413 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88414             Bruno Haible  <bruno@clisp.org>
88415
88416         * modules/inet_ntop: New file.
88417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88418         inet_ntop.
88419
88420 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88421             Bruno Haible  <bruno@clisp.org>
88422
88423         * m4/inet_ntop.m4: New file.
88424
88425 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88426             Bruno Haible  <bruno@clisp.org>
88427
88428         * lib/inet_ntop.h: New file.
88429         * lib/inet_ntop.c: New file, from glibc with modifications.
88430
88431 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88432
88433         * modules/time_r (License): Change to LGPL.
88434         * modules/extensions (License): Change to LGPL.  Actually,
88435         the license is more permissive than that, but currently gnulib-tool
88436         doesn't know how to handle more-permissive licenses.
88437
88438         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88439         Problem reported by Dave Love.
88440
88441 2005-05-08  Jim Meyering  <jim@meyering.net>
88442
88443         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88444         blank.
88445
88446 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88447
88448         * modules/argmatch (Depends-on): Add stdbool.
88449         * modules/backupfile (Depends-on): Likewise.
88450         * modules/chdir-long (Depends-on): Likewise.
88451         * modules/closeout (Depends-on): Likewise.
88452         * modules/cycle-check (Depends-on): Likewise.
88453         * modules/dirname (Depends-on): Likewise.
88454         * modules/fnmatch (Depends-on): Likewise.
88455         * modules/fsusage (Depends-on): Likewise.
88456         * modules/fwriteerror (Depends-on): Likewise.
88457         * modules/getcwd (Depends-on): Likewise.
88458         * modules/getloadavg (Depends-on): Likewise.
88459         * modules/hard-locale (Depends-on): Likewise.
88460         * modules/makepath (Depends-on): Likewise.
88461         * modules/mountlist (Depends-on): Likewise.
88462         * modules/nanosleep (Depends-on): Likewise.
88463         * modules/posixtm (Depends-on): Likewise.
88464         * modules/quotearg (Depends-on): Likewise.
88465         * modules/readtokens (Depends-on): Likewise.
88466         * modules/readtokens0 (Depends-on): Likewise.
88467         * modules/readutmp (Depends-on): Likewise.
88468         * modules/save-cwd (Depends-on): Likewise.
88469         * modules/strftime (Depends-on): Likewise.
88470         * modules/userspec (Depends-on): Likewise.
88471         * modules/utimecmp (Depends-on): Likewise.
88472         * modules/xgetcwd (Depends-on): Likewise.
88473         * modules/xnanosleep (Depends-on): Likewise.
88474         * modules/xstrtod (Depends-on): Likewise.
88475         * modules/yesno (Depends-on): Likewise.
88476
88477 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88478
88479         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88480         needless checks.
88481
88482 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88483
88484         Merge from coreutils.  Among other things,
88485         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88486         * lib/fd-safer.c: New file.
88487         * lib/fcntl-safer.h, open-safer.c: Remove.
88488         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88489         * lib/dup-safer.c: Include unistd-safer.h first.
88490         Don't include errno.h.
88491         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88492         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88493         * lib/file-type.c: Rely on file-type.h change.
88494         * lib/getloadavg.c: Include unistd-safer.h.
88495         (getloadavg): Use safer open.
88496         * lib/getusershell.c: Include "stdio-safer.h".
88497         (getusershell): Use safer fopen.
88498         * lib/long-options.c (long_options): Use NULL rather than 0.
88499         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88500         'free'.
88501         * lib/modechange.c: Likewise.
88502         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88503         (MODE_DONE): New constant.
88504         (struct mode_change): Remove 'next' member.
88505         (make_node_op_equals): New function; like the old one of the
88506         same name, except it allocates an array.
88507         (mode_compile, mode_create_from_ref): Use it.
88508         (mode_compile): Allocate result as an array, not a linked list.
88509         Parse octal string ourself, so that we catch mistakes like "+0".
88510         (mode_adjust): Arg is an array, not a linked list.
88511         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88512         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88513         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88514         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88515         Remove.  This is now stat-macros.h's job.
88516         (talloc): Remove.  All callers replaced by xalloc, so that
88517         our invokers don't have to worry about reporting memory failures.
88518         (make_node_op_equals): Remove.
88519         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88520         New constants.
88521         (struct mode_change): Moved here from modechange.h.
88522         (mode_append_entry): Remove.
88523         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88524         apps to have incorrect behavior.  Use simpler algorithm for head
88525         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88526         Detect more invalid usages rather than having somewhat-random behavior.
88527         Don't insert an "a=" action, as that leads to incorrect behavior.
88528         (mode_compile, mode_create_from_ref): Return NULL on error instead
88529         of an enum, since now there's only one way to have an error.  All
88530         callers changed.
88531         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88532         at the correct time.  Simplify calculation of "+u" and its ilk.
88533         Don't mishandle "+X".
88534         (mode_free): Remove "register" and localize decls.
88535         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88536         (struct mode_change): Move to modechange.c; callers don't
88537         need to see this stuff.
88538         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88539         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88540         (mode_change, mode_adjust): Reflect the new signatures noted above.
88541         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88542         that might redefine system include files.
88543         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88544         (my_usleep): Use NULL rather than (void *) 0.
88545         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88546         Use siginterrupt to specify that system calls should be interrupted.
88547         (rpl_nanosleep): Move initialization of suspended closer to call of
88548         my_usleep.
88549         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88550         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88551         (desirable_utmp_entry): New function.
88552         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88553         using x2nrealloc, to simplify logic.
88554         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88555         size calculation.  Do not assume utmp file is a regular file.
88556         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88557         (READ_UTMP_CHECK_PIDS): New constant.
88558         * lib/save-cwd.c: Include unistd-safer.h.
88559         (save_cwd): Use fd_safer.
88560         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88561         [!_LIBC] Include "stat-macros.h" instead.
88562         * lib/unistd-safer.h (fd_safer): New decl.
88563
88564 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88565
88566         * modules/getloadavg (Depends-on): Add unistd-safer.
88567         * modules/getusershell (Depends-on): Add stdio-safer.
88568         * modules/lstat (Depends-on): Remove xalloc.
88569         * modules/mkstemp (Depends-on): Add stat-macros.
88570         * modules/modechange (Depends-on): Remove xstrtol.
88571         Add stat-macros, xalloc.
88572         * modules/save-cwd (Depends-on): Add unistd-safer.
88573         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88574         * modules/unistd-safer (Files): Add lib/fd-safer.c
88575         (Makefile.am): Remove lib_SOURCES.
88576
88577         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88578         Remove fcntl-safer; unistd-safer supersedes it.
88579
88580 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88581
88582         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88583         AC_HEADER_STAT.
88584         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88585         (gl_PREREQ_CHOWN): Remove.
88586         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88587         it.  Don't require AC_HEADER_STAT.
88588         (gl_PREREQ_LSTAT): Remove.
88589         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88590         Don't require AC_HEADER_STAT.
88591         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88592         (gl_PREREQ_RMDIR): Remove.
88593         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88594         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88595         the stat-macros module a prerequisite.
88596         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88597         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88598         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88599         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88600         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88601         variable names.
88602         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88603         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88604         variable prefixes.
88605         * m4/fcntl-safer.m4: Remove.
88606         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88607         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88608         Invoke gl_PREREQ_FD_SAFER.
88609         (gl_PREREQ_FD_SAFER): New macro.
88610         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88611         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88612         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88613         Remove duplicate call to AC_LIBOBJ(readutmp).
88614         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88615
88616         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88617         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88618
88619 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88620
88621         * MODULES.html.sh (Misc): Add byteswap.
88622
88623 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88624
88625         * modules/getcwd (Depends-on): Add extensions.
88626         * modules/openat (Depends-on): Likewise.
88627
88628 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88629
88630         * modules/byteswap: New file.
88631
88632 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88633
88634         * m4/byteswap.m4: New file.
88635
88636 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88637
88638         * lib/byteswap_.h: New file.
88639
88640 2005-04-25  Karl Berry  <karl@gnu.org>
88641
88642         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88643
88644 2005-04-25  Albert Chin  <china@thewrittenword.com>
88645
88646         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88647         Toolkit C bug.
88648
88649 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88650
88651         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88652         (func_ln_if_changed): Remove forcibly for no error message
88653         in case file does not exist.
88654
88655 2005-04-19  Simon Josefsson  <jas@extundo.com>
88656
88657         * gnulib-tool (Options): Make --symlink mean --symbolic.
88658
88659 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88660
88661         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88662
88663 2005-04-16  Simon Josefsson  <jas@extundo.com>
88664
88665         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88666
88667 2005-04-15  Simon Josefsson  <jas@extundo.com>
88668
88669         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88670
88671 2005-04-15  Simon Josefsson  <jas@extundo.com>
88672
88673         * gnulib-tool: Rename --symlink to --symbolic.
88674
88675 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88676
88677         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88678         symbolic links to files instead of copying/moving.  Add --aux-dir,
88679         specifying directory relative --dir where auxiliary build tools
88680         are placed.
88681
88682 2005-04-14  Bruno Haible  <bruno@clisp.org>
88683
88684         * modules/allocsa (License): Change to LGPL.
88685         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88686
88687 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88688
88689         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88690         that "UTC +1 second" continues to work.  Problem reported
88691         by Dmitry V. Levin.
88692         (relunit_snumber): New rule.
88693         (relunit): Use it.
88694
88695 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88696
88697         * lib/getdate.y (universal_time_zone_table): New constant.
88698         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88699         universal_time_zone_table.
88700         (lookup_zone): Prefer universal_time_zone_table to
88701         local_time_zone_table, so that "GMT" time stamps are allowed in
88702         London during the summer.  Problem reported by Ian Abbott.
88703
88704 2005-04-12  Jim Meyering  <jim@meyering.net>
88705
88706         * lib/human.c (humblock): Set *options even when returning due to
88707         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88708         warning from gcc-4.
88709
88710 2005-04-09  Jim Meyering  <jim@meyering.net>
88711
88712         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88713         -Wuninitialized: initialize tm0.tm_year.
88714
88715 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88716
88717         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88718         count, since there's no maximum.  All uses changed.
88719         Add member dsts_seen.
88720         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88721         not being INT_MAX.
88722         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88723         Use pc_rels_seen to decide whether a date is absolute.
88724
88725         * lib/getdate.y (number): Don't overwrite year.
88726         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88727         check.
88728
88729 2005-04-02  Simon Josefsson  <jas@extundo.com>
88730
88731         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88732         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88733
88734 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88735
88736         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88737         where no absolute path name can be longer than PATH_MAX.
88738
88739 2005-03-27  Jim Meyering  <jim@meyering.net>
88740
88741         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88742
88743 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88744
88745         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88746         "one's complement" -> "ones' complement" in comment, as per Knuth.
88747         "value of type" -> "type or expression" in comment.
88748         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88749
88750 2005-03-26  Jim Meyering  <jim@meyering.net>
88751
88752         Comment nits.
88753         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88754         Correct typos: s/or/of/.
88755
88756 2005-03-26  Jim Meyering  <jim@meyering.net>
88757
88758         * modules/check-include-files: Move to ../ and rename to...
88759         * check-module: ...this.
88760
88761 2005-03-25  Jim Meyering  <jim@meyering.net>
88762
88763         * modules/xvasprintf (Files): Add xalloc.h.
88764
88765 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88766
88767         * modules/gettext (Files): config/config.rpath ->
88768         build-aux/config.rpath
88769         * modules/iconv (Files): Likewise.
88770         Problem reported by Oskar Liljeblad.
88771
88772 2005-03-23  Jim Meyering  <jim@meyering.net>
88773
88774         * modules/check-include-files: New script to check for
88775         missing dependencies, multiple includes, etc.
88776
88777         * modules/c-strtold (Depends-on): Add xalloc.
88778         * modules/c-strtod (Depends-on): Add xalloc.
88779         * modules/hash (Depends-on): Add xalloc.
88780         (Files): Remove lib/xalloc.h.
88781
88782         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88783         * modules/userspec (Files): Add lib/inttostr.h.
88784
88785 2005-03-23  Jim Meyering  <jim@meyering.net>
88786
88787         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88788
88789 2005-03-22  Jim Meyering  <jim@meyering.net>
88790
88791         * modules/stat-macros: New module.
88792         * modules/canonicalize, modules/euidaccess, modules/file-type,
88793         * modules/filemode, modules/lchown, modules/makepath,
88794         * modules/rmdir, modules/stat: Depend on new stat-macros module
88795         rather than listing lib/stat-macros.h manually.
88796         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88797
88798 2005-03-22  Jim Meyering  <jim@meyering.net>
88799
88800         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88801
88802 2005-03-22  Bruno Haible  <bruno@clisp.org>
88803
88804         * config/srclist.txt: Replace target directory 'config' with
88805         'build-aux'.
88806         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88807         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88808         ../build-aux/.
88809
88810 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88811
88812         * modules/chdir-long (Depends-on): Add mempcpy.
88813
88814         * modules/acl, modules/backupfile, modules/c-strtod,
88815         modules/c-strtold, modules/canon-host, modules/canonicalize,
88816         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88817         modules/exclude, modules/exitfail, modules/file-type,
88818         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88819         modules/getdate, modules/getline, modules/getpagesize,
88820         modules/getpass, modules/getugroups, modules/group-member,
88821         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88822         modules/inttostr, modules/long-options, modules/makepath,
88823         modules/md5, modules/memcasecmp, modules/memcoll,
88824         modules/modechange, modules/mountlist, modules/path-concat,
88825         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88826         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88827         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88828         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88829         modules/strftime, modules/strndup, modules/strverscmp,
88830         modules/timespec, modules/unlocked-io, modules/userspec,
88831         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88832         modules/yesno:
88833         Remove lib_SOURCES line from Makefile.am section, as this is now
88834         done automatically by the corresponding Autoconf macro.
88835
88836 2005-03-21  Jim Meyering  <jim@meyering.net>
88837
88838         Changes imported from coreutils.
88839
88840         * lib/cycle-check.c: Don't include xalloc.h.
88841
88842         * lib/path-concat.c: Don't include assert.h.
88843         (path_concat): Remove assertion that would have triggered
88844         for ABASE starting with more than one slash.
88845         Reported by Andreas Schwab.
88846
88847         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88848         properly when ABASE is an absolute file name.
88849         Correct the description of this function.
88850         Include <assert.h>.
88851         Add an assertion and a test driver.
88852         This fixes a bug introduced on 2004-07-02.
88853         Andreas Schwab reported the resulting failure of cp --parents:
88854         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88855
88856 2005-03-21  Jim Meyering  <jim@meyering.net>
88857
88858         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88859         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88860
88861 2005-03-21  Jim Meyering  <jim@meyering.net>
88862         and  Paul Eggert  <eggert@cs.ucla.edu>
88863
88864         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88865         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88866         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88867         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88868         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88869         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88870         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88871         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88872         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88873         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88874         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88875         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88876         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88877         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88878         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88879         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88880         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88881         for these modules.
88882
88883 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88884
88885         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88886         (which shouldn't happen), generate nothing instead of returning 0
88887         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88888
88889 2005-03-16  Bruno Haible  <bruno@clisp.org>
88890
88891         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88892         HAVE_LONGLONG_64BIT.
88893
88894 2005-03-16  Bruno Haible  <bruno@clisp.org>
88895
88896         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88897         HAVE_LONGLONG_64BIT.
88898
88899 2005-03-16  Bruno Haible  <bruno@clisp.org>
88900
88901         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88902         HAVE_LONGLONG_64BIT.
88903
88904 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88905
88906         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88907         reliably distinguish strftime failure from empty output on POSIX
88908         hosts.
88909
88910 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88911
88912         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88913         (iconv_string): Don't guess a size-zero buffer, as that might cause
88914         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88915         result would be 'too large', where 'too large' is (heuristically)
88916         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88917         overflow concerns.  This will prevent some unwanted malloc failures
88918         when the inputs are very large.
88919
88920 2005-03-15  Karl Berry  <karl@gnu.org>
88921
88922         * config/srclist.txt (config.rpath): from gettext.
88923         * config/config.rpath: update.
88924
88925 2005-03-15  Bruno Haible  <bruno@clisp.org>
88926
88927         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88928         to 'negate'.
88929
88930         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88931         variable.
88932
88933         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88934         results.
88935
88936 2005-03-14  Simon Josefsson  <jas@extundo.com>
88937
88938         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88939         <fx@gnu.org>.
88940
88941 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88942
88943         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88944         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88945         intprops.h.
88946         * lib/strtol.c: Likewise.
88947
88948 2005-03-14  Jim Meyering  <jim@meyering.net>
88949
88950         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88951         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88952         to be nonzero so that we (and caller) can detect the difference
88953         between a valid zero-length expansion and an error return, even
88954         when the underlying strftime fails before writing anything into
88955         that location.
88956
88957 2005-03-14  Bruno Haible  <bruno@clisp.org>
88958
88959         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88960         Update from GNU gettext 0.14.3.
88961
88962 2005-03-10  Jim Meyering  <jim@meyering.net>
88963
88964         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88965
88966 2005-03-10  Jim Meyering  <jim@meyering.net>
88967
88968         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88969         so that this module works on systems without fchdir.
88970
88971 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88972
88973         Factor int-properties macros into a single file, except for
88974         glibc-related files.
88975         * lib/intprops.h: New file.
88976         * lib/getloadavg.c: Include it instead of limits.h.
88977         (INT_STRLEN_BOUND): Remove.
88978         * lib/human.c: Include intprops.h.
88979         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88980         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88981         302/1000.
88982         * lib/inttostr.h: Include intprops.h instead of limits.h.
88983         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88984         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88985         for consistency with intprops.h.
88986         (time_t_is_integer, twos_complement_arithmetic): Use them.
88987         * lib/sig2str.h: Include <signal.h>, intprops.h.
88988         (INT_STRLEN_BOUND): Remove.
88989         * lib/strftime.c (TYPE_SIGNED): Remove.
88990         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88991         * lib/strtol.c: Adjust comments to match intprops.h.
88992         * lib/userspec.c: Include intprops.h.
88993         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88994         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88995         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88996         instead of rolling our own expressions.
88997         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88998
88999         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
89000         instead of int.
89001         (my_strftime): Do not mishandle years close to INT_MAX, by doing
89002         the right thing even if adding 1900 would overflow.  Similarly
89003         for tm_mon + 1 and tm_yday + 1.
89004         Make %Y always equivalent to %C%y, and similarly for %G and %g.
89005         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
89006         (DO_SIGNED_NUMBER): New macro.
89007         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
89008
89009 2005-03-07  Bruno Haible  <bruno@clisp.org>
89010
89011         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
89012
89013 2005-03-07  Bruno Haible  <bruno@clisp.org>
89014
89015         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
89016
89017 2005-03-04  Derek R. Price  <derek@ximbiot.com>
89018
89019         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
89020         (func_import): Only replace files via --import when they have actually
89021         changed.
89022
89023 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89024
89025         * m4/mmap-anon.m4: New file.
89026         * m4/pagealign_alloc.m4: New file.
89027
89028 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89029             Bruno Haible  <bruno@clisp.org>
89030
89031         * modules/pagealign_alloc: New file.
89032         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
89033
89034 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89035             Bruno Haible  <bruno@clisp.org>
89036
89037         * lib/pagealign_alloc.h: New file.
89038         * lib/pagealign_alloc.c: New file.
89039
89040 2005-03-03  Bruno Haible  <bruno@clisp.org>
89041
89042         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
89043         Use an all-permissive copyright notice, recommended by RMS.
89044
89045 2005-03-02  Bruno Haible  <bruno@clisp.org>
89046
89047         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
89048         of AIX, the replacement has to be done only after <string.h> is
89049         included, therefore not in config.h. stpncpy.h does the replacement,
89050         and stpncpy.c uses it.
89051
89052 2005-03-02  Bruno Haible  <bruno@clisp.org>
89053
89054         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
89055         stpncpy.c uses it.
89056
89057 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89058
89059         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
89060         The workaround isn't strictly needed for POSIX conformance, and
89061         it's too much of a pain to configure and maintain.  We'll ask
89062         people to fix their kernels instead.
89063         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
89064         (NANOSLEEP_BUG_WORKAROUND): Remove.
89065         (xnanosleep): Remove the workaround.
89066
89067 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89068
89069         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
89070         Reported by Derek Price.
89071         (Include): Add "timespec.h".
89072
89073         * modules/xnanosleep (Depends-on): Remove gethrxtime.
89074
89075 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89076
89077         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89078         to detect nanosleep bug.
89079
89080 2005-03-01  Bruno Haible  <bruno@clisp.org>
89081
89082         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89083
89084 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89085
89086         * modules/gethrxtime: New file.
89087         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89088         (Depends-on): Add gethrxtime.
89089         (configure.ac): Add gl_XNANOSLEEP.
89090         (Makefile.am): Remove lib_SOURCES line.
89091
89092 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89093
89094         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89095         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89096
89097 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89098
89099         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89100         * lib/timespec.h (gettime): Return void, since it always
89101         succeeds now.  All uses changed.
89102         * lib/gettime.c (gettime): Likewise.
89103         [HAVE_NANOTIME]: Prefer nanotime.
89104         Assume gettimeofday succeeds, as POSIX requires.
89105         Assime time () succeeds, since other code already does.
89106         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89107         (timespec_subtract): Remove.
89108         (NANOSLEEP_BUG_WORKAROUND): New constant.
89109         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89110         things considerably.  Use it only on GNU/Linux hosts, since the
89111         workaround shouldn't be needed elsewhere.
89112
89113 2005-02-24  Bruno Haible  <bruno@clisp.org>
89114
89115         * modules/gettext (Files): Add m4/glibc2.m4.
89116
89117 2005-02-24  Bruno Haible  <bruno@clisp.org>
89118
89119         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89120         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89121         * m4/progtest.m4:
89122         Update from GNU gettext 0.14.2.
89123         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89124
89125 2005-02-24  Bruno Haible  <bruno@clisp.org>
89126
89127         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89128         * lib/config.charset: Update from GNU gettext 0.14.2.
89129
89130 2005-02-24  Bruno Haible  <bruno@clisp.org>
89131
89132         * lib/gettext.h: Update from GNU gettext 0.14.2.
89133
89134 2005-02-23  Simon Josefsson  <jas@extundo.com>
89135
89136         * m4/iconvme.m4: New file.
89137
89138 2005-02-23  Jim Meyering  <jim@meyering.net>
89139
89140         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89141         change.
89142         Thanks to Bruno Haible for catching it.
89143
89144 2005-02-22  Simon Josefsson  <jas@extundo.com>
89145
89146         * modules/iconvme: New file.
89147
89148         * MODULES.html.sh: Add iconvme.
89149
89150 2005-02-22  Simon Josefsson  <jas@extundo.com>
89151
89152         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89153
89154 2005-02-22  Simon Josefsson  <jas@extundo.com>
89155
89156         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89157
89158 2005-02-22  Jim Meyering  <jim@meyering.net>
89159
89160         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89161         s/ifndef/ifdef/.
89162
89163 2005-02-20  Neil Conway  <neilc@samurai.com>
89164
89165         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89166         returned by OSX/Darwin if the specified buffer is not large
89167         enough for the hostname.
89168
89169 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89170
89171         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89172         pass it to _help, otherwise the latter coredumps trying to
89173         dereference state.root_argp.
89174
89175 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89176
89177         * modules/chdir-long (Depends-on): Add memrchr.
89178         * modules/memrchr (Files): Add lib/memrchr.h.
89179         (Include): "memrchr.h".
89180
89181 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89182
89183         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89184
89185 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89186
89187         * lib/memrchr.h: New file.
89188         * lib/chdir-long.c: Include it.
89189         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89190         Don't bother including stddef.h.
89191
89192 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89193
89194         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89195         inclusion.
89196         Include <sys/types.h>, for dev_t.
89197         (ME_DUMMY, ME_REMOTE): Move from here....
89198         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89199         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89200         Dmitry V. Levin.
89201         Include mountlist.h first, to test the interface.
89202
89203 2005-01-29  Bruno Haible  <bruno@clisp.org>
89204
89205         * lib/progname.c (program_name): Initialize.
89206         Needed when linking statically on MacOS X.
89207
89208 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89209
89210         Sync from coreutils.
89211         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89212         (Depends-on): Add c-strtod.
89213         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89214
89215 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89216
89217         Sync from coreutils.
89218         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89219
89220         Remove files that are specific to coreutils.
89221         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89222
89223 2005-01-28  Bruno Haible  <bruno@clisp.org>
89224
89225         * modules/javacomp: New file.
89226         * MODULES.html.sh (Java): Add javacomp.
89227
89228 2005-01-28  Bruno Haible  <bruno@clisp.org>
89229
89230         * m4/javacomp.m4: New file, from GNU gettext.
89231
89232 2005-01-28  Bruno Haible  <bruno@clisp.org>
89233
89234         * lib/javacomp.sh.in: New file, from GNU gettext.
89235         * lib/javacomp.h: New file, from GNU gettext.
89236         * lib/javacomp.c: New file, from GNU gettext.
89237
89238 2005-01-26  Simon Josefsson  <jas@extundo.com>
89239
89240         * lib/gai_strerror.c: Use GPL in header.
89241
89242 2005-01-26  Bruno Haible  <bruno@clisp.org>
89243
89244         * modules/javaexec: New file.
89245         * MODULES.html.sh (Java): Add javaexec.
89246
89247 2005-01-26  Bruno Haible  <bruno@clisp.org>
89248
89249         * m4/javaexec.m4: New file, from GNU gettext.
89250
89251 2005-01-26  Bruno Haible  <bruno@clisp.org>
89252
89253         * lib/javaexec.sh.in: New file, from GNU gettext.
89254         * lib/javaexec.h: New file, from GNU gettext.
89255         * lib/javaexec.c: New file, from GNU gettext.
89256
89257 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89258
89259         * modules/lchown (Depends-on): Remove lchown.h
89260
89261 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89262
89263         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89264         must be defined if the header file was not found, in order
89265         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89266
89267 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89268
89269         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89270         initializers for struct pentry_state.
89271         (__argp_error): Check return value of __asprintf
89272         (__argp_failure): Translate error message
89273
89274         * lib/argp-parse.c: Removed braces around the expansion of N_()
89275
89276 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89277
89278         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89279         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89280         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89281         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89282         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89283         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89284         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89285         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89286         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89287         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89288         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89289         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89290         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89291         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89292         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89293         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89294         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89295         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89296         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89297         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89298         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89299         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89300         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89301         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89302         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89303         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89304         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89305         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89306         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89307         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89308         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89309         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89310         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89311         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89312         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89313         Use an all-permissive copyright notice, recommended by RMS.
89314
89315 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89316
89317         * modules/chdir-long (Depends-on): Remove mempcpy.
89318
89319 2005-01-21  Jim Meyering  <jim@meyering.net>
89320
89321         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89322         same value as for Solaris 9.
89323
89324         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89325         component length.  This included changing the parameter to be
89326         of type `char *' rather than `char const *'.
89327         * lib/chdir-long.h (chdir_long): Update prototype.
89328
89329         * lib/openat.c (fdopendir, fstatat): New functions.
89330         * lib/openat.h: Include headers required for use of DIR and struct
89331         stat.
89332         [AT_SYMLINK_NOFOLLOW]: Define.
89333         (fdopendir, fstatat): Add prototypes.
89334
89335 2005-01-21  Bruno Haible  <bruno@clisp.org>
89336
89337         * modules/classpath: New file.
89338         * MODULES.html.sh (Java): Add classpath.
89339
89340 2005-01-21  Bruno Haible  <bruno@clisp.org>
89341
89342         * lib/classpath.h: New file, from GNU gettext.
89343         * lib/classpath.c: New file, from GNU gettext.
89344
89345 2005-01-20  Simon Josefsson  <jas@extundo.com>
89346
89347         * modules/version-etc-fsf: New file.
89348
89349 2005-01-20  Simon Josefsson  <jas@extundo.com>
89350
89351         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89352         * lib/version-etc.c: Remove version_etc_copyright.
89353         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89354         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89355
89356 2005-01-20  Simon Josefsson  <jas@extundo.com>
89357
89358         * lib/base64.h (isbase64): Add.
89359
89360         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89361         using a unsigned prototype, don't inline.
89362         (base64_decode): Use it.
89363
89364 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89365
89366         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89367         it.
89368
89369 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89370
89371         * lib/save-cwd.c (save_cwd): Remove code to support the case
89372         where fchdir is missing or flaky.
89373
89374 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89375
89376         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89377
89378 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89379
89380         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89381         AC_LIBSOURCES now does this.
89382         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89383         with new ullong_max module.
89384
89385 2005-01-19  Bruno Haible  <bruno@clisp.org>
89386
89387         * modules/sh-quote: New file.
89388         * MODULES.html.sh (Executing programs): Add sh-quote.
89389
89390 2005-01-19  Bruno Haible  <bruno@clisp.org>
89391
89392         * lib/sh-quote.h: New file, from GNU gettext.
89393         * lib/sh-quote.c: New file, from GNU gettext.
89394
89395 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89396
89397         Merge from coreutils.
89398         * m4/ullong_max.m4: New file.
89399         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89400         (gl_MACROS): Assume localeconv exists.
89401
89402 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89403
89404         Merge changes from coreutils, as described below in several
89405         changelogs dated today.
89406
89407         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89408         (O_DIRECTORY): Remove; not needed here, since "." must be
89409         a directory.  All uses removed.
89410         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89411         universal on Suns, and we also need to test for IRIX.
89412         Revamp code to use 'if' rather than '#if'.
89413         Avoid unnecessary comparison of cwd->desc to 0.
89414
89415         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89416         for known valid error numbers rather than observed invalid ones.
89417
89418 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89419
89420         * modules/ullong_max: New file.
89421
89422         * modules/chdir-long, modules/openat: New files.
89423         * modules/save-cwd (Depends-on): Depend on chdir-long.
89424         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89425
89426 2005-01-18  Jim Meyering  <jim@meyering.net>
89427
89428         Merge from coreutils.
89429         * m4/chdir-long.m4, m4/openat.m4: New files.
89430         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89431         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89432         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89433         is sane and DOES follow symlinks.  Besides, testing 20 different
89434         systems found no broken chown implementations.
89435         Prompted by a change in rsync's copy of this macro.
89436         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89437
89438         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89439
89440         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89441         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89442         NULL-means-set-to-current-time semantics.
89443         Remove temporary file immediately, rather than waiting
89444         for configure's at-exit trap code to do it.
89445
89446 2005-01-18  Jim Meyering  <jim@meyering.net>
89447
89448         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89449
89450         * lib/utimens.c (futimens): Account for the fact that futimes
89451         can also fail with errno == ENOSYS or errno == ENOENT.
89452         Patch from Dmitry V. Levin.
89453
89454         Change the name of the robust chdir function from chdir to chdir_long.
89455         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89456         (restore_cwd): Use chdir_long, not chdir.
89457         * lib/chdir-long.c: Renamed from chdir.c.
89458         * lib/chdir-long.h: Renamed from chdir.h.
89459         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89460         Hurd.
89461
89462 2005-01-18  Bruno Haible  <bruno@clisp.org>
89463
89464         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89465         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89466         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89467         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89468         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89469         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89470         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89471         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89472         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89473         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89474         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89475         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89476         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89477         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89478         Use an all-permissive copyright notice, recommended by RMS.
89479
89480 2005-01-18  Bob Proulx  <bob@proulx.com>
89481
89482         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89483         simplify offsetof() macro construct to avoid compile failure with
89484         native HP-UX 11.0 ANSI C compiler.
89485
89486 2005-01-17  Bruno Haible  <bruno@clisp.org>
89487
89488         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89489         redundant because stpncpy.m4 takes care of it.
89490
89491 2005-01-17  Bruno Haible  <bruno@clisp.org>
89492
89493         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89494
89495 2005-01-17  Bruno Haible  <bruno@clisp.org>
89496
89497         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89498         used.
89499
89500 2005-01-17  Bruno Haible  <bruno@clisp.org>
89501
89502         * lib/fwriteerror.h (fwriteerror): Change specification to include
89503         fclose.
89504         * lib/fwriteerror.c: Include <stdbool.h>.
89505         (fwriteerror): At the end, close the file stream. Record whether
89506         stdout was already closed.
89507
89508 2005-01-17  Bruno Haible  <bruno@clisp.org>
89509
89510         * lib/execute.c (environ): Declare if needed.
89511         * lib/pipe.c (environ): Likewise.
89512         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89513
89514 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89515
89516         * modules/argp: Depend on vsnprintf
89517
89518 2005-01-10  Jim Meyering  <jim@meyering.net>
89519
89520         * modules/closeout (Depends-on): Add atexit.
89521
89522 2005-01-06  Bruno Haible  <bruno@clisp.org>
89523
89524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89525
89526 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89527
89528         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89529         definitions to be after all include files, to avoid collisions.
89530         Problem reported by Bob Proulx.
89531
89532 2005-01-04  Jim Meyering  <jim@meyering.net>
89533
89534         Changes imported from coreutils.
89535         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89536         as the mkstemp template, use a temporary directory and an
89537         8.3-friendly template to avoid trouble on systems like DJGPP.
89538         Reported by Juan M. Guerrero via Stepan Kasal.
89539         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89540         close. Remove the temporary directory right away, rather than waiting
89541         for configure's at-exit trap code to do it.
89542         Suggestion from Stepan Kasal.
89543
89544 2005-01-01  Simon Josefsson  <jas@extundo.com>
89545
89546         * gnulib-tool: Print #include directives when --import'ing.
89547
89548 2004-12-28  Simon Josefsson  <jas@extundo.com>
89549
89550         * tests/test-base64.c: Include required header files.  Remove
89551         unused variables.
89552
89553 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89554
89555         * modules/error (Depends-on): Remove gettext.
89556
89557 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89558
89559         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89560         not needed.  This removes a dependency on the gettext module.
89561         [defined _LIBC]: Do not include <libintl.h>; not needed.
89562
89563 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89564
89565         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89566         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89567
89568 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89569
89570         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89571         HAVE_DECL_STRTOLD.
89572
89573 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89574
89575         * modules/getdate (Depends-on): Remove alloca-opt.
89576
89577 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89578
89579         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89580
89581 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89582
89583         * lib/argp-parse.c: Include <stddef.h>.
89584         (alignof, alignto): New macros.
89585         (parser_init): Don't assume that void * is aligned sufficiently
89586         for struct option.
89587
89588         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89589         need to extend the stack.
89590         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89591         large.
89592
89593 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89594
89595         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89596
89597 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89598
89599         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89600         (2004-10-24) change.  Apparently this was a false alarm.
89601
89602         * modules/getdate: Depend on alloca-opt, not alloca.
89603
89604 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89605
89606         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89607         Remove now-obsolete comment about AIX.
89608         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89609         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89610         (YYMAXDEPTH): New macro.
89611
89612 2004-12-18  Simon Josefsson  <jas@extundo.com>
89613
89614         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89615
89616 2004-12-18  Bruno Haible  <bruno@clisp.org>
89617
89618         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89619
89620 2004-12-18  Bruno Haible  <bruno@clisp.org>
89621
89622         * lib/fatal-signal.c (fatal_signals): Make non-const.
89623         (init_fatal_signals): New function.
89624         (uninstall_handlers, install_handlers): Ignore signals that were set to
89625         SIG_IGN.
89626         (at_fatal_signal): Call init_fatal_signals.
89627         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89628         SIG_IGN.
89629         Reported by Paul Eggert.
89630
89631 2004-12-18  Bruno Haible  <bruno@clisp.org>
89632
89633         * doc/alloca.texi: New file.
89634         * doc/alloca-opt.texi: New file.
89635
89636 2004-12-17  Jim Meyering  <jim@meyering.net>
89637
89638         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89639         Otherwise, install-sh could exit with improper exit status when
89640         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89641
89642 2004-12-16  Simon Josefsson  <jas@extundo.com>
89643
89644         * tests/test-base64.c: Add license.
89645
89646 2004-12-15  Stepan Kasal  <address@hidden>
89647
89648         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89649
89650 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89651
89652         * modules/getcwd (Files): Add m4/d-ino.m4.
89653         Suggested by Mark D. Baushke.
89654
89655 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89656
89657         * lib/getdate.y (textint): New member "negative".
89658         (time_zone_hhmm): New function.
89659         Expect 14 shift-reduce conflicts, not 13.
89660         (o_colon_minutes): New rule.
89661         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89662         (yylex): Set the "negative" member of signed numbers.
89663
89664 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89665
89666         * doc/getdate.texi (Time of day items, Time zone items):
89667         Describe new formats +00:00, UTC+00:00.
89668
89669 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89670
89671         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89672         spurious "-l"s.  Problem reported by Stepan Kasal.
89673
89674 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89675
89676         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89677         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89678
89679 2004-12-04  Simon Josefsson  <jas@extundo.com>
89680
89681         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89682         Vandoorselaere <yoann@prelude-ids.org>.
89683
89684 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89685
89686         Changes imported from coreutils.
89687         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89688         exist.
89689         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89690
89691 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89692
89693         Changes imported from coreutils.
89694         * lib/hard-locale.c: Assume <locale.h> exists.
89695         Include "strdup.h".
89696         (GLIBC_VERSION): New macro.
89697         (hard_locale): Assume setlocale exists.
89698         Rewrite to avoid #ifdef.
89699         Use strdup rather than malloc + strcpy.
89700         * lib/human.c: Assume <locale.h> exists.
89701         (human_readable): Assume localeconv exists.
89702
89703 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89704
89705         * modules/hard-locale (Depends-on): Add strdup.
89706
89707 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89708
89709         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89710         convert T2, not T.  (Imported from libc.)
89711
89712 2004-11-30  Simon Josefsson  <jas@extundo.com>
89713
89714         * modules/restrict (License): Change to LGPL.
89715
89716 2004-11-30  Simon Josefsson  <jas@extundo.com>
89717
89718         * m4/restrict.m4: Add copyright and copying conditions.
89719
89720 2004-11-30  Simon Josefsson  <jas@extundo.com>
89721
89722         * m4/base64.m4: New file.
89723
89724 2004-11-30  Simon Josefsson  <jas@extundo.com>
89725
89726         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89727         base64.
89728
89729         * tests/test-base64.c: New file.
89730
89731         * modules/base64: New file.
89732
89733 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89734
89735         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89736         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89737
89738         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89739
89740 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89741
89742         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89743         (__getcwd.c): Don't restore errno; glibc doesn't.
89744         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89745         first, falling back to our code only if its results look suspicious.
89746         Ensure that the resulting buffer is only as large as necessary.
89747
89748         * lib/readutmp.c: Include readutmp.h first.
89749         Include <errno.h>, since readutmp.h no longer does that.
89750         * lib/readutmp.h: Don't include <errno.h>,
89751         <sys/param.h>, <time.h>; not needed to establish interface.
89752         (errno): Remove decl.
89753         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89754         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89755         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89756
89757 2004-11-28  Simon Josefsson  <jas@extundo.com>
89758
89759         * lib/base64.h, base64.c: New file.
89760
89761 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89762
89763         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89764
89765 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89766
89767         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89768         (Depends-on): Remove pathmax, same.  Add mempcpy.
89769         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89770         (Makefile.am): Append getcwd.h to lib_SOURCES.
89771         (Include): Add getcwd.h.
89772         (Maintainer): Change from Jim Meyering to "all, glibc",
89773         since getdate now uses intended-for-glibc code.
89774         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89775         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89776
89777 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89778
89779         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89780         HP's ANSI C compiler.
89781         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89782         Declaring int functions causes warnings on some modern systems and
89783         shouldn't be needed to compile on ancient ones.
89784         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89785         defined.
89786
89787         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89788         with the following changes.
89789         (__set_errno): Parenthesize properly.
89790         Include <stdbool.h>.
89791         (MIN, MAX, MATCHING_INO): New macros.
89792         (__getcwd): Define with prototype, not K&R form.
89793         Use heuristics to allocate default buffer on stack if possible.
89794         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89795         behavior, and to avoid the PATH_MAX limit when computing
89796         ../../../../...
89797         Use MATCHING_INO to compare inode number to file.
89798         Check for arithmetic overflow in size calculations.
89799         Fix bug in reallocation of dot array that caused getcwd to fail
89800         on directories nested deeper than 75.
89801         Be more careful about saving errno on error.
89802         Do not use realloc; use only free+malloc, as this is a bit
89803         more flexible and avoids a needless copy operation.
89804         Do not inspect st_dev and st_ino for symbolic links; POSIX
89805         doesn't specify the latter.
89806         Check for closedir errors.
89807         Avoid needless casts.
89808         Use "#ifdef weak_alias" around weak_alias, to be like other
89809         glibc code.
89810         The following changes to getcwd.c have effect only when used in
89811         gnulib; they have no effect inside glibc proper.
89812         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89813         as alloca isn't used.
89814         (alloca, __alloca): Likewise.
89815         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89816         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89817         unconditionally, as gnulib assumes C89 or better.
89818         Do not include <sys/param.h>.
89819         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89820         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89821         better.
89822         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89823         Include <dirent.h> in a way that is compatible with modern Autoconf.
89824         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89825         New macros, if not already defined.
89826         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89827         Use "_LIBC", not "defined _LIBC", for consistency.
89828         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89829         a mempcpy module.
89830         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89831         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89832         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89833         credit only to Jim Meyering and adjust the copyright dates.
89834         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89835         <stdlib.h>, <unistd.h>, "pathmax.h".
89836         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89837         (INITIAL_BUFFER_SIZE): Remove.
89838         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89839
89840 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89841
89842         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89843         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89844         Use the _ONCE methods, for efficiency.
89845         Check for fcntl.h.  In test program, include <errno.h>
89846         and <fcntl.h> if available.  Remove old K&R cruft from
89847         test program.  Check for common errors in GNU/Linux,
89848         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89849         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89850         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89851         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89852         name accordingly.
89853         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89854         accommodate new getcwd.c.
89855         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89856         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89857         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89858         that's all we need now.
89859
89860 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89861
89862         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89863         argp-parse.c depends on getopt internals, that means we should
89864         always use our getopt, to be on the safe side.
89865         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89866         order not to spoil the result of an eventual previous invocation
89867         of gl_GETOPT_SUBSTITUTE.
89868
89869 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89870
89871         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89872         redefinition warnings. To avoid them, include the defines
89873         in `#if !defined __need_getopt ... #endif'. The only place
89874         where __getopt_argv_const is used is in definitions
89875         of getopt_long and getopt_long_only below, which are as well
89876         protected by `#ifndef __need_getopt'.
89877         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89878         __need_getopt after including <stdio.h> and <unistd.h> These
89879         headers might have defined it.
89880
89881 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89882
89883         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89884
89885 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89886
89887         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89888         (futimens): New function, which uses futimes if available.
89889         (futimens, utimens): Support timespec==NULL, with same semantics
89890         as utime and utimens.
89891         * lib/utimens.h (futimens): New decl.
89892
89893 2004-11-23  Jim Meyering  <jim@meyering.net>
89894
89895         * lib/getopt_.h: Remove trailing blanks.
89896
89897 2004-11-23  Jim Meyering  <jim@meyering.net>
89898
89899         * lib/__fpending.c: Add comment.
89900
89901 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89902
89903         * modules/canonicalize (Depends-on): Add xreadlink.
89904         Problem reported by James Youngman.
89905
89906 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89907
89908         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89909         New macros.
89910         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89911         optopt): Use them instead of invoking ## directly; otherwise, the
89912         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89913
89914 2004-11-19  Bruno Haible  <bruno@clisp.org>
89915
89916         * lib/strtok_r.c: Move comments from here...
89917         * lib/strtok_r.h: ... to here.
89918
89919 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89920
89921         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89922         implementations that mishandle size_t overflow.
89923
89924 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89925
89926         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89927         might fail.  Problem reported by Yoann Vandoorselaere.
89928         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89929         implementations that mishandle size_t overflow.
89930
89931 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89932
89933         * modules/canon-host (Depends-on): Add strdup.
89934
89935 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89936
89937         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89938
89939 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89940
89941         * lib/canon-host.c: Include "strdup.h".
89942         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89943         Use strdup instead of malloc/strcpy to duplicate strings.
89944
89945         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89946         (human_space_before_unit): New constant.
89947         * lib/human.c (human_readable): Support it.
89948
89949         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89950         (xgetcwd): Set errno correctly when failing.
89951         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89952         the failure is actually due to a PATH_MAX problem.
89953
89954         Further getopt changes to make it more likely that glibc will
89955         buy the changes back.
89956         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89957         (getopt): Use it, so to preserve glibc semantic
89958         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89959         when compiling for libc.
89960         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89961         (getopt_long, getopt_long_only): Use it.
89962
89963         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89964         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89965         (getopt): Argv is now char * const *, as per standard.
89966         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89967         not char *__getopt_argv_const *.
89968         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89969         _getopt_long_only_r): Likewise.
89970         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89971         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89972         _getopt_long_r, _getopt_long_only_r): Likewise.
89973         * lib/getopt_.h (__getopt_argv_const): Remove.
89974         (getopt): Argv is now char * const *, as per standard.
89975
89976         * lib/getdate.y (tORDINAL): New token.
89977         (day, relunit): Allow it for relative times.
89978         (relative_time_table): Use tORDINAL for ordinals.
89979
89980 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89981
89982         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89983         Document that "second" isn't allowed as an ordinal number.
89984
89985 2004-11-16  Jim Meyering  <jim@meyering.net>
89986
89987         * modules/closeout (Depends-on): Add fpending.
89988
89989 2004-11-15  Jim Meyering  <jim@meyering.net>
89990
89991         * lib/closeout.c: Include "__fpending.h" once again.
89992         Include <stdbool.h>.
89993         (close_stdout): Don't fail just because stdout was closed initially,
89994         since some programs don't write to stdout in the normal course of
89995         operation (other than --version and --help), and we don't want this
89996         function to make e.g. `touch file >&-' fail.
89997         But do fail if it was closed and someone has tried to write to it.
89998         E.g., `printf foo >&-' must fail.
89999
90000 2004-11-13  Jim Meyering  <jim@meyering.net>
90001
90002         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
90003
90004 2004-11-12  Simon Josefsson  <jas@extundo.com>
90005
90006         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
90007         small doc fix is still pending.
90008
90009 2004-11-11  Simon Josefsson  <jas@extundo.com>
90010
90011         * modules/strtok_r: New file.
90012
90013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90014         strtok_r.
90015
90016 2004-11-11  Simon Josefsson  <jas@extundo.com>
90017
90018         * m4/strtok_r.m4: New file.
90019
90020         * m4/getopt.m4: Replace opterr.
90021
90022 2004-11-11  Simon Josefsson  <jas@extundo.com>
90023
90024         * lib/strtok_r.h, strtok_r.c: New file.
90025
90026 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90027
90028         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
90029         of replacing opterr, getopt, etc.  This should handle the
90030         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
90031
90032 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90033
90034         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
90035         we can stop lying to compilers about the constness of argv when we
90036         are compiled outside glibc.
90037         (getopt, getopt_long, getopt_long_only): Use it.
90038         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90039         _getopt_internal, getopt): Likewise.
90040         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90041         _getopt_long_only_r): Likewise.
90042         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90043         _getopt_long_r, _getopt_long_only_r): Likewise.
90044
90045         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
90046         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
90047         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
90048         the other external symbols.
90049         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
90050         declaration, since the above renaming now works around collisions.
90051
90052 2004-11-11  Jim Meyering  <jim@meyering.net>
90053
90054         * lib/linebreak.c: Remove trailing blanks.
90055         * lib/alloca_.h: Likewise.
90056         * lib/acosl.c: Likewise.
90057         * lib/euidaccess.c: Likewise.
90058         * lib/allocsa.h: Likewise.
90059
90060 2004-11-10  Simon Josefsson  <jas@extundo.com>
90061
90062         * m4/getaddrinfo.m4: New file.
90063
90064 2004-11-10  Simon Josefsson  <jas@extundo.com>
90065
90066         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
90067
90068 2004-11-10  Simon Josefsson  <jas@extundo.com>
90069
90070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90071         getaddrinfo.
90072
90073         * modules/getaddrinfo: New file.
90074
90075 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90076
90077         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90078
90079 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90080
90081         * lib/mktime.c (SHR): New macro, which is a portable
90082         substitute for >> that should work even on Crays.
90083         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90084         Problem reported by Mark D. Baushke in
90085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90086         * lib/getdate.y (SHR): Likewise.
90087         (tm_diff): Use it.
90088         * lib/strftime.c (SHR): Likewise.
90089         (tm_diff): Use it.
90090         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90091         quote_these_too, so that right shifts are well defined.  All uses
90092         changed.
90093
90094 2004-11-10  Jim Meyering  <jim@meyering.net>
90095
90096         Ensure that no close failure goes unreported.
90097         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90098         return early when it seems there's nothing to flush.
90099         Don't include __fpending.h.
90100
90101 2004-11-10  Jim Meyering  <jim@meyering.net>
90102
90103         * modules/closeout (Depends-on): Remove fpending.
90104
90105 2004-11-10  Jim Meyering  <jim@meyering.net>
90106
90107         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90108
90109 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90110
90111         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90112         gl_FUNC_STRFTIME.
90113         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90114         and AC_REQUIRE when possible, to avoid duplicate checks.
90115         Check for <wchar.h>.
90116
90117 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90118
90119         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90120
90121 2004-11-09  Bruno Haible  <bruno@clisp.org>
90122
90123         * m4/sockpfaf.m4: New file.
90124
90125 2004-11-05  Bruno Haible  <bruno@clisp.org>
90126
90127         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90128         Reported by Mark D. Baushke <mdb@cvshome.org>.
90129
90130 2004-11-04  Bruno Haible  <bruno@clisp.org>
90131
90132         2004-09-11  Bruno Haible  <bruno@clisp.org>
90133                 * allocsa.valgrind: New file.
90134         2004-02-06  Bruno Haible  <bruno@clisp.org>
90135                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90136                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90137                 Reported by Christopher Seip <chris.seip@hp.com>.
90138
90139 2004-11-04  Bruno Haible  <bruno@clisp.org>
90140
90141         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90142         (Makefile.am): Distribute it.
90143
90144 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90145
90146         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90147         with errno == ERANGE if the buffer is too small.
90148         Problem reported by Mark D. Baushke.
90149
90150 2004-11-03  Albert Chin  <china@thewrittenword.com>
90151             Paul Eggert  <eggert@cs.ucla.edu>
90152
90153         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90154         equivalent, substitute $ac_type for equivalent type rather than
90155         blindly using uint32_t *always* which won't work if uint32_t is not
90156         available.  Define _UINT32_T to work around typedef of uint32_t if
90157         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90158         2.5.1.
90159
90160 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90161
90162         * m4/jm-macros.m4: Sync from coreutils.
90163         (gl_MACROS): Check for mbrlen, for pathchk.
90164         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90165
90166 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90167
90168         * lib/xreadlink.c (MAXSIZE): New macro.
90169         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90170         size does not exceed MAXSIZE.  Avoid cast.
90171         As suggested by Mark D. Baushke in
90172         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90173         if readlink fails with buffer size just under MAXSIZE, try again
90174         with MAXSIZE.
90175
90176 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90177
90178         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90179
90180 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90181         and  Paul Eggert  <eggert@cs.ucla.edu>
90182
90183         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90184         (get_date): Overparenthesize to avoid GCC warning.
90185
90186 2004-11-02  Bruno Haible  <bruno@clisp.org>
90187
90188         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90189         returns void.
90190
90191 2004-11-02  Bruno Haible  <bruno@clisp.org>
90192
90193         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90194         function returns void.
90195
90196 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90197
90198         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90199         fflush_unlocked, flockfile, funlockfile, funlockfile,
90200         fputs_unlocked, putc_unlocked.
90201
90202 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90203
90204         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90205         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90206         already declared.
90207
90208 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90209
90210         * modules/getdate (Files): Add doc/getdate.texi.
90211         (Depends-on): Add setenv, xalloc.
90212
90213 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90214
90215         * lib/getdate.y: Add support for TZ="foo" within a date string.
90216         Fix some bugs near time_t boundaries.  Reject dates with
90217         out-of-range components, e.g., "Sept 31".
90218         Include <stdlib.h>, "setenv.h", "xalloc.h".
90219         (ISDIGIT_LOCALE): Remove; unused.
90220         Note that the TZ and time functions used here are not reentrant.
90221         (mktime_ok, get_tz): New functions.
90222         (TZBUFSIZE): New constant.
90223         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90224         This requires that we sometimes generate our own TZ="XXX..." setting.
90225
90226 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90227
90228         * doc/getdate.texi: New file, from coreutils with modifications for
90229         the new TZ parsing.
90230
90231 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90232
90233         * lib/mktime.c (not_equal_tm): Remove redundant check.
90234
90235 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90236
90237         * modules/regex (lib_SOURCES): Add regex.c.
90238         Reported by James Youngman in
90239         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90240
90241 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90242
90243         * lib/getdate.y: Use Bison 1.875 features, and some minor
90244         code cleanups.  This change does not affect semantics.
90245         Don't include <stdlib.h>; no longer needed.
90246         Don't include unlocked-io.h; only the "#if TEST" code uses
90247         stdio, and performance isn't crucial there.
90248         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90249         Bison 1.875 features as described below.
90250         All uses of "PC." replaced by "pc->".
90251         (YYSTYPE): Add a forward declaration.
90252         (yylex, yyerror): Use full prototypes in forward decls.
90253         Use "%pure-parser" rather than obsolescent "%pure_parser".
90254         Use %parse-param and %lex-param instead of obsolescent
90255         YYPARSE_PARAM and YYLEX_PARAM.
90256         (meridian_table, month_and_day_table, time_units_table,
90257         relative_time_table, time_zone_table, military_table,
90258         lookup_zone, lookup_word, get_date):
90259         Use NULL instead of 0 where appropriate.
90260         (to_hour): Avoid abort (), to avoid a dependency on
90261         stdlib.h.
90262         (yyerror, yylex): Now accepts parser_control * arg.
90263         (main) [TEST]: Use '\0' rather than 0 for char.
90264
90265 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90266
90267         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90268
90269 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90270
90271         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90272         It's now the caller's responsibility to handle the case where
90273         !HAVE_GETPAGESIZE && !defined getpagesize.
90274
90275         * lib/mktime.c (leapyear): Arg is long int, not int.
90276
90277 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90278
90279         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90280
90281 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90282
90283         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90284         missing.  Problem reported by James Youngman.
90285
90286 2004-10-16  Simon Josefsson  <jas@extundo.com>
90287
90288         * gnulib-tool: Fix comments.  Fix parse problem.
90289         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90290
90291 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90292
90293         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90294         implementation of getopt_long.  Problem reported by Alexander Taler in:
90295         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90296
90297 2004-10-15  Bruno Haible  <bruno@clisp.org>
90298
90299         * gnulib-tool: Untabify. Initialize supplied_libname.
90300         (func_usage): More homogenous output.
90301         (func_modules_transitive_closure, func_modules_to_filelist,
90302         func_emit_lib_Makefile_am): New functions.
90303         (func_import): New function, extracted from big case statement. Use
90304         func_get_license, func_modules_transitive_closure,
90305         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90306         opt_lgpl. Don't use test -a, as it's not portable.
90307         (func_create_testdir): Use func_modules_transitive_closure,
90308         func_modules_to_filelist, func_emit_lib_Makefile_am.
90309
90310 2004-10-15  Bruno Haible  <bruno@clisp.org>
90311
90312         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90313
90314 2004-10-15  Bruno Haible  <bruno@clisp.org>
90315
90316         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90317         the portions belonging to each module.
90318         Suggested by Derek Robert Price <derek@ximbiot.com>.
90319
90320 2004-10-12  Simon Josefsson  <jas@extundo.com>
90321
90322         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90323         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90324         to real functions.
90325
90326 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90327
90328         * modules/vsnprintf: New file.
90329
90330 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90331
90332         * m4/vsnprintf.m4: New file.
90333
90334 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90335
90336         * lib/vsnprintf.h: New file.
90337         * lib/vsnprintf.c: New file.
90338
90339 2004-10-11  Bruno Haible  <bruno@clisp.org>
90340
90341         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90342         vsnprintf.
90343
90344 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90345
90346         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90347
90348 2004-10-07  Bruno Haible  <bruno@clisp.org>
90349
90350         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90351         fits into the provided buffer.
90352
90353 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90354
90355         * lib/diacrit.c, diacrit.h: Add GPL notice.
90356
90357         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90358         notice.
90359         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90360         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90361         This avoids a potential constant-folding bug.
90362
90363 2004-10-05  Bruno Haible  <bruno@clisp.org>
90364
90365         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90366         for the declaration of strsep.
90367
90368 2004-10-05  Bruno Haible  <bruno@clisp.org>
90369
90370         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90371
90372 2004-10-04  Simon Josefsson  <jas@extundo.com>
90373
90374         * modules/memmem: New file.
90375         * tests/test-memmem.c: New file.
90376         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90377
90378 2004-10-04  Simon Josefsson  <jas@extundo.com>
90379
90380         * m4/memmem.m4: New file.
90381
90382 2004-10-04  Simon Josefsson  <jas@extundo.com>
90383
90384         * lib/memmem.h: New file.
90385         * lib/memmem.c: New file, taken from glibc.
90386
90387 2004-10-04  Simon Josefsson  <jas@extundo.com>
90388
90389         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90390         '#ifdef USE_UNLOCKED_IO'.
90391
90392 2004-10-04  Simon Josefsson  <jas@extundo.com>
90393
90394         * config/srclist.txt: Add memmem from glibc.
90395
90396 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90397
90398         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90399
90400         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90401         modules/exclude, modules/getdate, modules/getline,
90402         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90403         modules/getusershell, modules/linebuffer, modules/md5,
90404         modules/mountlist, modules/posixtm, modules/readtokens,
90405         modules/readutmp, modules/regex, modules/sha1,
90406         modules/version-etc, modules/yesno:
90407         Remove dependency on unlocked-io.
90408
90409 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90410
90411         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90412
90413         * m4/unlocked-io.m4: Add copyright notice.
90414         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90415
90416 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90417
90418         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90419         * lib/xmalloc.c (xmemdup): Likewise.
90420         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90421         XFREE): Remove these long-obsolescent macros.
90422         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90423         * lib/xstrdup.c: Remove.
90424
90425         * lib/regex.c (re_comp): Cast gettext return value to char *,
90426         Problem reported by Martin Neitzel via Mark D. Baushke.
90427
90428 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90429
90430         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90431         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90432         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90433         regex.c, sha1.c, version-etc.c, yesno.c:
90434         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90435         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90436         the includer's responsibility.
90437
90438         Sync from coreutils.
90439
90440         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90441         points to the start of a string, as the C Standard says the
90442         resulting behavior is undefined.
90443
90444         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90445         simple -> simple_backups, numbered_existing ->
90446         numbered_existing_backups, numbered -> numbered_backups
90447         to avoid shadowing problems.  All uses changed.
90448         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90449         * lib/backupfile.c (check_extension, numbered_backup):
90450         Rename locals to avoid shadowing 'basename'.
90451         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90452         once.
90453
90454         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90455         * lib/.cvsignore: Add getopt.h.
90456
90457 2004-10-04  Bruno Haible  <bruno@clisp.org>
90458
90459         * modules/README: New file.
90460         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90461         not a module.
90462
90463 2004-10-02  Jim Meyering  <jim@meyering.net>
90464
90465         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90466
90467 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90468
90469         * modules/strsep: New file.
90470
90471 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90472
90473         * m4/strsep.m4: New file.
90474
90475 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90476
90477         * lib/strsep.h: New file.
90478         * lib/strsep.c: New file.
90479
90480 2004-10-01  Simon Josefsson  <jas@extundo.com>
90481
90482         * lib/snprintf.c (snprintf): Handle size==0.
90483
90484 2004-10-01  Simon Josefsson  <jas@extundo.com>
90485             Bruno Haible  <bruno@clisp.org>
90486
90487         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90488         (snprintf): Declare 'args'.
90489
90490 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90491
90492         * lib/snprintf.c: Remove comments as to why each header is needed.
90493
90494 2004-10-01  Bruno Haible  <bruno@clisp.org>
90495
90496         * MODULES.html.sh: Add strsep.
90497
90498 2004-09-30  Simon Josefsson  <jas@extundo.com>
90499
90500         * modules/snprintf: New file.
90501
90502 2004-09-30  Simon Josefsson  <jas@extundo.com>
90503
90504         * m4/snprintf.m4: New file.
90505
90506 2004-09-30  Simon Josefsson  <jas@extundo.com>
90507
90508         * lib/snprintf.h, lib/snprintf.c: New files.
90509
90510 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90511
90512         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90513         (hol_entry_help): Never translate an empty string.
90514         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90515         * lib/argp.h (OPTION_NO_TRANS): New option.
90516
90517 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90518
90519         * modules/argp (Maintainer): Replace Simon Josefsson
90520         by Sergey Poznyakoff.
90521
90522 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90523
90524         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90525         changes merged back into glibc.
90526
90527 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90528
90529         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90530
90531 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90532
90533         * lib/xvasprintf.c: Include xalloc.h.
90534         (xvasprintf): Use xalloc_die, not xmalloc_die.
90535
90536 2004-09-29  Bruno Haible  <bruno@clisp.org>
90537
90538         * modules/alloca-opt: New file, derived from modules/alloca.
90539         * modules/allocsa: Depend on alloca-opt instead of alloca.
90540         * modules/setenv: Likewise.
90541         * modules/vasnprintf: Likewise.
90542         * MODULES.html.sh: Add alloca-opt.
90543
90544 2004-09-28  Simon Josefsson  <jas@extundo.com>
90545
90546         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90547         LGPL, and to replace license template from GPL to LGPL.
90548
90549 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90550
90551         * modules/dummy: Change license to LGPL.
90552
90553 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90554
90555         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90556
90557 2004-09-24  Simon Josefsson  <jas@extundo.com>
90558
90559         * modules/minmax (License): Change from GPL to LGPL.
90560
90561 2004-09-23  Simon Josefsson  <jas@extundo.com>
90562
90563         * gnulib-tool (--import): Typo.
90564
90565 2004-09-23  Simon Josefsson  <jas@extundo.com>
90566
90567         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90568
90569 2004-09-22  Bruno Haible  <bruno@clisp.org>
90570
90571         * modules/*: Add 'License' field.
90572         * gnulib-tool: Accept --extract-license option.
90573         (func_get_license): New function.
90574
90575 2004-09-21  Bruno Haible  <bruno@clisp.org>
90576
90577         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90578         Reported by Simon Josefsson.
90579
90580 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90581
90582         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90583         gl_AC_TYPE_LONG_LONG.
90584
90585 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90586
90587         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90588
90589 2004-09-18  Simon Josefsson  <jas@extundo.com>
90590         and  Paul Eggert  <eggert@cs.ucla.edu>
90591
90592         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90593         calls with autoreconf.  Define GL_LIB.
90594
90595 2004-09-14  Karl Berry  <karl@gnu.org>
90596
90597         * config/srclist.txt: unsync setenv.c, sigh.
90598
90599 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90600
90601         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90602         Problem reported by Bruno Haible in:
90603         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90604
90605 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90606
90607         * config/srclist.txt: Comment out argp-pvh.c.
90608
90609 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90610
90611         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90612         in case some system header has #define'd it.  Problem reported by
90613         Soeren D. Schulze in
90614         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90615
90616 2004-09-09  Karl Berry  <karl@gnu.org>
90617
90618         * regex.[ch]: delete from the root.  These were supposed to be
90619                 synced with emacs cvs, but this has not happened for about
90620                 a year, and anyway nothing else uses emacs regex.[ch].
90621                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90622                 lib/regex[.ch] is untouched.
90623
90624 2004-09-09  Bruno Haible  <bruno@clisp.org>
90625
90626         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90627
90628 2004-09-09  Bruno Haible  <bruno@clisp.org>
90629
90630         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90631         modifications.
90632         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90633
90634 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90635
90636         * modules/xvasprintf: New file.
90637         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90638
90639 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90640
90641         * lib/xvasprintf.h: New file.
90642         * lib/xvasprintf.c: New file.
90643         * lib/xasprintf.c: New file.
90644
90645 2004-09-08  Bruno Haible  <bruno@clisp.org>
90646
90647         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90648
90649 2004-09-08  Bruno Haible  <bruno@clisp.org>
90650
90651         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90652         length is > INT_MAX.
90653         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90654         more.
90655
90656 2004-09-08  Bruno Haible  <bruno@clisp.org>
90657
90658         * lib/stdint_.h: New file, taken from GNU clisp.
90659
90660 2004-09-08  Bruno Haible  <bruno@clisp.org>
90661             Oskar Liljeblad  <oskar@osk.mine.nu>
90662
90663         * modules/stdint: New file.
90664         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90665
90666 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90667
90668         Import from coreutils.
90669         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90670         strings on unbounded length.  alloca's performance benefits aren't
90671         that important here.
90672         (V_STRDUP): Remove.
90673         (parse_with_separator): New function, with most of the internals
90674         of the old parse_user_spec.  Allow user to omit both user and group,
90675         for compatibility with FreeBSD.
90676         Clone only the user name, not the entire spec.
90677         Do not set *uid, *gid unless entirely successful.
90678         Avoid memory leak in some failing cases.
90679         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90680         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90681         (parse_user_spec): Rewrite to use parse_with_separator.
90682
90683 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90684
90685         * modules/userspec: Don't depend on alloca.
90686
90687 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90688
90689         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90690
90691 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90692
90693         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90694         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90695         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90696
90697 2004-08-16  Simon Josefsson  <jas@extundo.com>
90698
90699         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90700         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90701         Add --dry-run for --import.
90702         Let user provided command line parameters override configure.ac
90703         settings.
90704
90705 2004-08-12  Simon Josefsson  <jas@extundo.com>
90706
90707         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90708         as discussed with Paul Eggert in threads rooted at
90709         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90710         and
90711         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90712         Before, the test was empty, and relied on ELIDE_CODE in source
90713         code.)
90714         (gl_PREREQ_GETOPT): New macro.
90715         (gl_GETOPT): Use them.
90716
90717 2004-08-12  Simon Josefsson  <jas@extundo.com>
90718
90719         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90720         * lib/getopt_.h: Renamed from getopt.h.
90721
90722 2004-08-12  Simon Josefsson  <jas@extundo.com>
90723
90724         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90725         Change default library name from libfoo to libgnu.
90726         Now, if you have a configure.ac that says:
90727                 gl_SOURCE_BASE(gl)
90728                 gl_M4_BASE(gl/m4)
90729                 gl_MODULES(error getopt etcetera)
90730                 gl_INIT
90731         you can import all you need by running:
90732                 ../gnulib/gnulib-tool --import
90733
90734         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90735         (Makefile.am): Rewrite, use logic from argz.
90736         (Include): Use <getopt.h> instead of "getopt.h".
90737
90738 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90739
90740         * modules/argp (Files): Add m4/unlocked-io.m4.
90741         (Depends-on): Add extensions.
90742
90743 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90744
90745         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90746         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90747         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90748         Check for program_invocation_name, program_invocation_short_name,
90749         flockfile, funlockfile, features.h, _getopt_long_only_r.
90750
90751 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90752
90753         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90754         its complicated substitute.
90755         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90756         and program_invocation_name.
90757         (__argp_basename) [!_LIBC]: Remove; the only use was
90758         replaced by its body.
90759         (__argp_short_program_name): Change condition from
90760         !defined __argp_short_program_name to
90761         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90762         to match argp-namefrob.h.
90763         (__argp_failure): Don't assume strerror_r returns char *.
90764         * lib/argp-parse.c (N_): Define unconditionally.
90765         (argp_default_options): Fill out initializers with 0 to avoid
90766         gcc warnings.
90767
90768 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90769
90770         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90771         getopt1.c.
90772
90773 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90774
90775         Merge from coreutils.
90776
90777         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90778
90779         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90780         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90781
90782 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90783
90784         Merge from coreutils.
90785
90786         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90787         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90788         for Reliant Unix 5.43.
90789
90790         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90791         (union fooround): Use uintmax_t, not long int.
90792         The rest is a merge from libc:
90793         [defined _LIBC]: Include <shlib-compat.h>.
90794         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90795
90796         * lib/settime.c (settime): Recode to avoid warning with
90797         Sun Forte C 6U2.
90798
90799         * lib/strverscmp.c: Convert to UTF-8.
90800
90801 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90802
90803         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90804         m4/uintmax_t.m4.
90805
90806 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90807
90808         * modules/xalloc-die: New file.
90809         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90810
90811         * modules/md5 (Files): Add m4/uint32_t.m4.
90812         * modules/sha1: Renamed from modules/sha.
90813         (Files):
90814         Rename lib/sha.h to lib/sha1.h.
90815         Rename lib/sha.c to lib/sha1.c.
90816         Rename m4/sha.m4 to m4/sha1.m4.
90817         (lib_SOURCES): Likewise.
90818         (configure.ac): Rename gl_SHA to gl_SHA1.
90819         (Include): sha.h -> sha1.h.
90820
90821 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90822
90823         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90824         * m4/sha1.m4: Renamed from sha.m4.
90825         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90826
90827 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90828
90829         * lib/obstack.h (obstack_empty_p):
90830         Don't assume that chunk->contents is suitably aligned.
90831         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90832         Likewise. Problem reported by Benno in
90833         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90834
90835         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90836         readable.  This could be improved further but it'd take some work.
90837
90838 2004-08-08  Simon Josefsson  <jas@extundo.com>
90839
90840         * modules/xgethostname (Depends-on): Remove exit and error (not
90841         used).
90842
90843         * modules/getpass-gnu: Add getpass.h.
90844         (Depends-on): Add stdbool.
90845         * modules/getpass: Add getpass.h.
90846
90847 2004-08-08  Simon Josefsson  <jas@extundo.com>
90848
90849         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90850         Check getpass declaration.
90851
90852 2004-08-08  Simon Josefsson  <jas@extundo.com>
90853
90854         * lib/xgethostname.c: Don't include error.h (not used).
90855
90856         * lib/getpass.h: Add.
90857         * lib/getpass.c: Include getpass.h first.
90858
90859 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90860
90861         * lib/xalloc-die.c: New file.
90862         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90863         All uses removed.
90864         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90865         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90866         xalloc-die.c.
90867         (_, N_, xalloc_die): Move to xalloc-die.c.
90868         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90869         so that we needn't mess with xalloc_msg_memory_exhausted.
90870
90871         * lib/sha1.h: Renamed from sha.h.
90872         (SHA1_H): Renamed from _SHA_H.
90873         (sha1_ctx): Renamed from sha_ctx.
90874         (sha1_init_ctx): Renamed from sha_init_ctx.
90875         (sha1_process_block): Renamed from sha_process_block.
90876         (sha1_process_bytes): Renamed from sha_process_bytes.
90877         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90878         (sha1_read_ctx): Renamed from sha_read_ctx.
90879         (sha1_stream): Renamed from sha_stream.
90880         (sha1_buffer): Renamed from sha_buffer.
90881         * lib/sha1.c: Likewise; renamed from sha.c.
90882         Do not include <sys/types.h>.
90883         Include <stddef.h> rather than <stdlib.h>.
90884
90885 2004-08-08  Bruno Haible  <bruno@clisp.org>
90886
90887         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90888         FILESYSTEM_PREFIX_LEN.
90889         * lib/progreloc.c: Likewise.
90890         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90891
90892 2004-08-06  Simon Josefsson  <jas@extundo.com>
90893
90894         * modules/progname (Depends-on): Don't depend on stdbool.
90895
90896 2004-08-06  Simon Josefsson  <jas@extundo.com>
90897
90898         * modules/getsubopt: New file.
90899         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90900         getsubopt.
90901
90902 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90903
90904         More merge from coreutils.
90905
90906         * m4/utimens.m4, m4/utimecmp.m4: New files.
90907         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90908         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90909         prereq.m4, sha.m4: Import changes from coreutils.
90910
90911 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90912
90913         More merge from coreutils.
90914         * modules/raise, modules/readtokens0, modules/utimens:
90915         * modules/utimecmp, module/xnanosleep: New files.
90916         * modules/strftime: Add lib/strftime.h.
90917         Change include from <time.h> to "strftime.h".
90918         * modules/yesno: Add lib/yesno.h.
90919         * modules/backupfile: Remove lib/addext.c.
90920         * modules/euidaccess: Add stat-macros.h.
90921         * modules/canonicalize, modules/euidaccess,
90922         modules/filemode, modules/lchown, modules/makepath,
90923         modules/rmdir, modules/stat: Likewise.
90924
90925 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90926
90927         Merge from tar.
90928         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90929         SIZE_MAX is a valid preprocessor constant.
90930         (__argp_basename): Change from "#ifndef _LIBC"
90931         to "#ifndef __argp_short_program_name", so that
90932         we don't compile these functions for tar.
90933
90934         More merges from coreutils.
90935         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90936         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90937         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90938         * lib/addext.c: Remove; no longer needed.
90939         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90940         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90941         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90942         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90943         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90944         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90945         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90946         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90947         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90948         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90949         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90950         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90951         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90952         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90953         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90954         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90955         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90956         Import changes from coreutils.
90957
90958 2004-08-05  Simon Josefsson  <jas@extundo.com>
90959
90960         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90961
90962 2004-08-05  Simon Josefsson  <jas@extundo.com>
90963
90964         * m4/getsubopt.m4: New file.
90965
90966 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90967
90968         Merge from coreutils.
90969
90970         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90971         * m4/getcwd-path-max.m4: New files.
90972
90973         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90974         FILESYSTEM_PREFIX_LEN ->
90975         FILE_SYSTEM_PREFIX_LEN.
90976         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90977         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90978         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90979         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90980
90981         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90982         prerequisite modules now handle the DOS stuff.
90983         Don't check for unistd.h.
90984
90985 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90986
90987         Merge from coreutils.
90988
90989         * lib/.gdb-history: Remove; this doesn't belong here.
90990
90991         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90992         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90993         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90994         * lib/getcwd.c: New files.
90995
90996         * lib/dirname.h: Include <stdbool.h>.
90997         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90998         for consistency with POSIX terminology.  All uses changed.
90999         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
91000         (strip_trailing_slashes): Use bool for booleans.
91001         * lib/stripslash.c (strip_trailing_slashes): Likewise.
91002
91003         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
91004         sometimes returns a positive errno value even when it succeeds.
91005         (print_errno_message) [!LIBC]: Fall back on strerror if
91006         __strerror_r fails.
91007
91008         * lib/path-concat.c (mempcpy): Don't define if a system header defines
91009         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
91010         (longest_relative_suffix): New function.
91011         (path_concat): Use it.  Assume first argument is not NULL.
91012         Port to DOS.  Omit redundant separators.
91013         Report an error instead of returning NULL.
91014         Use mempcpy instead of memcpy.
91015         (xpath_concat): Remove: not declared or used.
91016
91017         * lib/same.h: Include <stdbool.h>
91018         (same_name): Return bool, not int.
91019         * lib/same.c (same_name): Likewise.
91020         (errno): Don't declare; we assume C89 or better now.
91021
91022         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
91023         if not already defined.
91024
91025         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
91026         * lib/dup-safer.c (errno): Likewise.
91027
91028 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91029
91030         Merge from coreutils.
91031         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
91032         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
91033         * modules/path-concat: Don't depend on strdup.
91034
91035 2004-08-03  Simon Josefsson  <jas@extundo.com>
91036
91037         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
91038         * lib/progname.h: Don't include stdbool.h.
91039
91040 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91041
91042         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
91043         * MODULES.html.sh (func_all_modules): Remove fatal.
91044
91045 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91046
91047         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
91048
91049 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91050
91051         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
91052         working.
91053
91054 2004-08-02  Simon Josefsson  <jas@extundo.com>
91055
91056         * lib/getsubopt.h: New file, with comments from Bruno Haible.
91057         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
91058         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
91059
91060 2004-08-01  Simon Josefsson  <jas@extundo.com>
91061
91062         * lib/xgetdomainname.c: Include stdlib.h, for free().
91063
91064 2004-07-19  Bruno Haible  <bruno@clisp.org>
91065
91066         * MODULES.html.sh (func_all_modules): Add dummy.
91067
91068 2004-07-16  Simon Josefsson  <jas@extundo.com>
91069
91070         * modules/dummy: New file.
91071
91072 2004-07-16  Simon Josefsson  <jas@extundo.com>
91073
91074         * lib/dummy.c: New file.
91075
91076 2004-07-16  Bruno Haible  <bruno@clisp.org>
91077
91078         * lib/backupfile.h: Add extern "C" for C++.
91079         * lib/closeout.h: Likewise.
91080         * lib/copy-file.h: Likewise.
91081         * lib/findprog.h: Likewise.
91082         * lib/full-write.h: Likewise.
91083         * lib/pathname.h: Likewise.
91084         * lib/progname.h: Likewise.
91085         * lib/stpcpy.h: Likewise.
91086         * lib/stpncpy.h: Likewise.
91087         * lib/strcase.h: Likewise.
91088         * lib/strstr.h: Likewise.
91089         * lib/xalloc.h: Likewise.
91090
91091         * lib/mbswidth.h: Add extern "C" for C++.
91092         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91093
91094 2004-07-13  Robert Millan  <robertmh@gnu.org>
91095
91096         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91097
91098 2004-07-09  Simon Josefsson  <jas@extundo.com>
91099
91100         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91101         failed without this.)
91102
91103 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91104
91105         * modules/chown (Files): Add lib/fchown-stub.c, since
91106         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91107
91108 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91109
91110         * lib/fchown-stub.c: New file.
91111
91112 2004-06-24  Jim Meyering  <jim@meyering.net>
91113
91114         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91115
91116 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91117
91118         * modules/argz: Omit "#include".
91119
91120         * MODULES.html.sh (func_all_modules): Add calloc, to match
91121         2004-06-01 addition of calloc module.
91122
91123 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91124
91125         * m4/argz.m4: New file, which is autoupdated from libtool.
91126
91127 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91128
91129         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91130         libtool.
91131
91132 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91133
91134         * config/srclist-update: Don't insist on "USA." before the
91135         close-comment, as libtool omits the period and puts the */ on a
91136         separate line.
91137         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91138         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91139
91140 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91141
91142         * modules/argz: New file.
91143         * MODULES.html.sh (func_all_modules): Add argz.
91144
91145 2004-06-12  Jim Meyering  <jim@meyering.net>
91146         and  Paul Eggert  <eggert@cs.ucla.edu>
91147
91148         * modules/hash (Files): Add lib/xalloc.h.
91149         * modules/pipe (Depends-on): Add wait-process.
91150         * modules/stat (Depends-on): Add xalloc.
91151         * modules/userspec (Files): Add lib/userspec.h.
91152         * modules/xstrto
91153
91154         Upgrade from gettext-0.13.
91155         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91156         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91157         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91158
91159 2004-06-10  Jim Meyering  <jim@meyering.net>
91160
91161         * lib/calloc.c: New file.
91162
91163 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91164
91165         * lib/getdate.y (yylex): Allow space between sign and number.
91166         Problem reported by Dan Jacobson.
91167
91168 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91169
91170         Merge from coreutils CVS.
91171
91172         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91173         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91174         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91175         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91176         xstrtol.m4: Fix copyright date and/or serial number.
91177
91178         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91179         See if we need an fchown replacement.
91180         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91181         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91182         and use the replacement function if we detect either defect.
91183
91184         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91185         gl_UTIMECMP.
91186
91187 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91188         and  Jim Meyering  <jim@meyering.net>
91189
91190         Merge from coreutils CVS.
91191
91192         * lib/stat-macros.h: New file, with contents from file-type.h
91193         and coreutils' system.h.
91194         * lib/file-type.c: Include "stat-macros.h".
91195         * lib/file-type.h (file_type): Move all macro definitions to new file,
91196         stat-macros.h.
91197
91198         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91199         Wrap old code with this conditional.
91200         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91201         function that does not dereference symlinks.
91202         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91203
91204         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91205         dependency problems.
91206         (xreadlink): Accept new arg SIZE, for efficiency.
91207         All decls and uses changed.
91208         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91209
91210         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91211         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91212
91213         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91214         sysexits.h.
91215
91216 2004-06-01  Jim Meyering  <jim@meyering.net>
91217
91218         * m4/calloc.m4: New file.
91219
91220 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91221
91222         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91223         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91224         Also, fix a typo in a diagnostic.
91225
91226 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91227
91228         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91229         or AC_FUNC_REALLOC.
91230
91231 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91232
91233         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91234         macros to be defined.
91235         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91236         the allocator returns NULL because the requested size is zero.
91237
91238 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91239
91240         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91241         var.  Add comment explaining why libc still defines it.  This
91242         merges the following patch from glibc:
91243         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91244
91245 2004-05-20  Andreas Schwab  <schwab@suse.de>
91246
91247         * m4/free.m4: Replace free if it not known to work, not the other
91248         way round.
91249
91250 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91251
91252         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91253         present in glibc since revision 1.1 of this file.
91254         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91255         obstack_alignment_mask, obstack_alloc, obstack_base,
91256         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91257         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91258         obstack_grow0, obstack_init, obstack_int_grow,
91259         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91260         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91261         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91262         nonexistent functions.
91263
91264 2004-05-18  Karl Berry  <karl@gnu.org>
91265
91266         * config/srclist.txt: break link for vasnprintf.c.
91267
91268 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91269
91270         Port obstack to the AS/400, where pointers are 16 bytes wide and
91271         you cannot cast an integer to a valid pointer.  This patch is
91272         currently waiting to be integrated into glibc; see
91273         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91274
91275         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91276         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91277         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91278         (struct obstack): temp member is now a union of a pointer and
91279         an integer, instead of an integer.  All integer uses changed.
91280         This does not affect the physical layout of struct obstack,
91281         except on hosts (like the AS/400) where the size or alignment of
91282         void * is greater than that of ptrdiff_t.
91283         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91284         __STDC__)]: Store temporary in pointer member of union, not
91285         integer member.
91286         * lib/obstack.c: Include <stddef.h>, for offsetof.
91287         (struct fooalign): Remove; it doesn't need a name.
91288         (union fooround): Change double to long double, and add void *.
91289         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91290         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91291         not a macro.  Hence the values are always int; so remove all
91292         casts-to-int in uses.
91293
91294 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91295
91296         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91297         we can get this patch merged into glibc.
91298
91299 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91300             Paul Eggert  <eggert@cs.ucla.edu>
91301
91302         * m4/argp: Depend on alloca.
91303
91304 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91305             Paul Eggert  <eggert@cs.ucla.edu>
91306
91307         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91308         freecoding.
91309
91310 2004-05-17  Bruno Haible  <bruno@clisp.org>
91311
91312         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91313         precision that consists of a '.' followed by an empty digit string.
91314         Patch by Tor Lillqvist <tml@iki.fi>.
91315
91316 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91317
91318         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91319         for backward compatibility with older code.  We need our own
91320         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91321         it under some other name, and our alloca.h will define it.
91322
91323 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91324             Derek Price  <derek@ximbiot.com>
91325
91326         * lib/alloca.c: Include <alloca.h>, to get our interface.
91327         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91328         include <alloca.h> first.  Use C89 prototype for alloca; this
91329         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91330         Use #elif for simplicity, since we can assume C89 now.
91331         Don't try to source the system alloca.h since it will not be found
91332         and to prevent recursively including its replacement.
91333         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91334         * lib/regex.c: Likewise.
91335
91336 2004-05-16  Derek Price  <derek@ximbiot.com>
91337             Paul Eggert  <eggert@cs.ucla.edu>
91338
91339         getline cleanup.  This changes the getndelim2 API: both order of
91340         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91341         no delimiter).
91342
91343         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91344         interface does that.
91345         (getline): Always use getdelim, so that we don't have two
91346         copies of this code.
91347         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91348         if available.
91349         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91350         (GETNDELIM2_MAXIMUM): New macro.
91351         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91352         instead of the old practice of delim2==0.  All callers changed.
91353         Return -1 on overflow, instead of returning junk.
91354         Do not set *linesize unless allocation succeeds.
91355         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91356         that we include sys/types.h.
91357         * lib/getnline.h: Likewise.
91358         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91359         (getndelim2): Reorder arguments.
91360         * lib/getnline.c (getnline, getndelim):
91361         Don't discard the NMAX argument.
91362         (getnline): Invoke getndelim, to avoid code duplication.
91363         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91364         of (size_t) -1 by callers of the getnline family.
91365
91366 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91367
91368         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91369         Check for gettimeofday.
91370         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91371         Check for settimeofday, stime.
91372
91373 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91374
91375         * lib/nanosleep.c (suspended): Change its type from int to
91376         sig_atomic_t volatile.
91377         (first_call): Make it private to rpl_nanosleep, and have it
91378         be zero initially as that's a bit faster.
91379         (my_usleep): Round up fractional times instead of truncating them,
91380         as this is the usual meaning for 'sleep'.
91381
91382         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91383         doesn't work.
91384         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91385         (ENOSYS): Define if not defined.
91386         (settime): Fall back on stime if it exists and settimeofday fails.
91387         But don't bother with fallbacks if a method fails with errno == EPERM.
91388
91389 2004-05-11  Jim Meyering  <jim@meyering.net>
91390
91391         Prior to this change, the save_cwd caller required read access to the
91392         current directory on most systems (ones with the fchdir function).
91393
91394         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91395         fails, try write-only, and finally, resort to using xgetcwd.
91396
91397 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91398
91399         * lib/obstack.c, obstack.h: Import changes from libc.
91400
91401 2004-04-28  Bruno Haible  <bruno@clisp.org>
91402
91403         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91404         also implicitly appends .exe to executables.
91405         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91406         accepts Windows pathnames.
91407         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91408         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91409         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91410         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91411         Reported by Derek Robert Price <derek@ximbiot.com>.
91412
91413 2004-04-21  Karl Berry  <karl@gnu.org>
91414
91415         * config/srclist.txt (localcharset.c): break sync.
91416
91417 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91418
91419         * m4/host-os.m4: Add a copyright notice.
91420
91421 2004-04-20  Jim Meyering  <jim@meyering.net>
91422
91423         Change UTILS_ to gl_ in AC_DEFINE'd names.
91424         Change utils_- and jm_-prefixed variables, too.
91425         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91426         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91428
91429         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91430         Don't emit trailing blanks.
91431         Also rename jm_-prefixed variables to have gl_ prefix.
91432
91433         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91434         Also rename jm_-prefixed variables to have gl_ prefix.
91435
91436         * m4/jm-macros.m4: Reflect the renamings.
91437         * m4/prereq.m4: Likewise.
91438
91439 2004-04-20  Jim Meyering  <jim@meyering.net>
91440
91441         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91442         memory.
91443
91444 2004-04-20  Jim Meyering  <jim@meyering.net>
91445             Bruno Haible  <bruno@clisp.org>
91446
91447         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91448         memory when realloc fails.
91449
91450 2004-04-19  Jim Meyering  <jim@meyering.net>
91451
91452         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91453         now that readutmp.c may call `free (0)'.
91454
91455 2004-04-19  Bruno Haible  <bruno@clisp.org>
91456
91457         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91458         * m4/inttypes_h.m4: Likewise.
91459         * m4/stdint_h.m4: Likewise.
91460         * m4/intmax_t.m4: Likewise.
91461         * m4/uintmax_t.m4: Likewise.
91462
91463 2004-04-18  Jim Meyering  <jim@meyering.net>
91464
91465         * m4/prereq.m4: Don't forbid jm_ prefix.
91466
91467         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91468         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91469         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91470         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91471         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91472         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91473         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91474         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91475         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91476         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91477         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91478         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91479         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91480         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91481         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91482         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91483         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91484         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91485         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91486
91487 2004-04-18  Jim Meyering  <jim@meyering.net>
91488
91489         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91490         failure, don't leak memory and do call END_UTMP_ENT.
91491
91492 2004-04-16  Jim Meyering  <jim@meyering.net>
91493
91494         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91495         coreutils' stat program.
91496         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91497
91498 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91499
91500         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91501         C89.
91502         (CHAR_BIT): Remove, since we assume C89.
91503         Include <stdint.h> if available, as per current Autoconf CVS advice.
91504
91505 2004-03-31  Jim Meyering  <jim@meyering.net>
91506
91507         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91508         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91509         * m4/xalloc.m4: Likewise.
91510
91511 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91512
91513         Merge from coreutils.
91514
91515         * m4/inttostr.m4: New file.
91516         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91517         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91518         Require gl_CLOCK_TIME.
91519         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91520
91521 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91522
91523         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91524         not bool, to be more consistent with Unix conventions.
91525         Suggested by Bruno Haible.
91526
91527         Merge from coreutils.
91528
91529         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91530         * lib/umaxtostr.c: New files.
91531
91532         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91533         the usual <time.h> dance.
91534         (get_date): Change signature to support fractional time stamps.
91535         All callers changed.
91536         * lib/getdate.y: Include "getdate.h" first, as we can now
91537         assume C89 and don't need to worry about 'const'.
91538         Similarly, include "unlocked-io.h" near start, not in middle.
91539         Include <limits.h>.
91540         (textint.value): Use long int rather than int.
91541         (textint.digits): Use size_t rather than int.
91542         (BILLION, LOG10_BILLION): New constants.
91543         (parser_control): New member rel_ns.  Members day_ordinal,
91544         time_zone, month, day, hour, minutes, rel_year, rel_month,
91545         rel_day, rel_hour, rel_minutes, rel_seconds
91546         are now long int, not int.  Member seconds is now struct timespec,
91547         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91548         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91549         not int.
91550         (%union.intval): Now long int, not int.
91551         New member timespec.
91552         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91553         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91554         (spec): Now is a timespec or an item list.
91555         (timespec, items): New nonterminals.
91556         (time, rel, relunit, number, get_date):
91557         Add support for fractional seconds.
91558         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91559         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91560         (to_hour): First arg is now long int, not int.
91561         (to_year): Returns long int, not int.
91562         Don't treat year -70 like 70.
91563         (tm_diff): Returns long int, not int.
91564         (lookup_word): Use bool instead of int when appropriate.
91565         (yylex): Use size_t for count, not int.
91566         Detect overflow when parsing large integer constants.
91567         Add support for fractions.
91568         (get_date): Make pointers 'const' if possible.
91569         Use more-portable code to detect integer overflow.
91570         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91571         Don't use ctime; it's not reliable if the year has >4 digits.
91572
91573         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91574         This is for compatibility with BSD.
91575
91576         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91577         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91578         From coreutils' system.h.
91579
91580         * lib/userspec.c: Don't include "posixver.h".
91581         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91582         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91583         compatible extension.  Simplify code by removing a boolean int
91584         that was always nonzero if a string was nonnull.
91585
91586 2004-03-30  Jim Meyering  <jim@meyering.net>
91587
91588         Merge from coreutils.
91589
91590         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91591         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91592         on some systems one must include <grp.h> before it.
91593         Reported by Christian Krackowizer.
91594
91595 2004-03-30  Jim Meyering  <jim@meyering.net>
91596
91597         Merge from coreutils.
91598
91599         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91600
91601         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91602         an empty input stream.
91603
91604         * lib/readtokens.c: Include <stdbool.h>.
91605         (readtoken): Use `size_t' rather than int/long.
91606         All callers adjusted.
91607         Use `bool' rather than `int' where appropriate.
91608         Use memset rather than an explicit loop.
91609         Use x2nrealloc rather than xrealloc.
91610         Allow the use of `\0' as a delimiter.
91611         (readtokens): Likewise.
91612         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91613
91614 2004-03-30  Jim Meyering  <jim@meyering.net>
91615
91616         * m4/realloc.m4: Remove file, since now it does no more than
91617         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91618         the `configure.ac' section of module/realloc.
91619         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91620
91621 2004-03-30  Bruno Haible  <bruno@clisp.org>
91622
91623         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91624         nonnull.
91625
91626 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91627
91628         Merge changes to getloadavg.c from coreutils and Emacs.
91629
91630         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91631         Define to an expression, not to the empty string.
91632         Include cloexec.h and xalloc.h.
91633         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91634         Use set_cloexec_flag rather than rolling our own.
91635         * lib/cloexec.c, lib/cloexec.h: New files.
91636
91637 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91638
91639         * m4/cloexec.m4: New file.
91640
91641 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91642
91643         * lib/getopt.h: Sync with libc CVS.
91644
91645 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91646             Bruno Haible  <bruno@clisp.org>
91647
91648         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91649         mbswidth.
91650
91651 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91652             Bruno Haible  <bruno@clisp.org>
91653
91654         * lib/mbswidth.h: Include <wchar.h> only if
91655         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91656         <wchar.h>.
91657         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91658
91659 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91660
91661         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91662         Sync with libc CVS.
91663         * lib/getopt_int.h: New file, also synced from libc.
91664
91665 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91666
91667         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91668         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91669         Bring back getopt.c, getopt.h, getopt1.c.
91670
91671 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91672
91673         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91674         All uses changed.  Check for sa_sigaction member; this fixes
91675         a bug first reported by Jason Andrade in
91676         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91677
91678 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91679
91680         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91681         '#if' expressions.  Unlike the code it replaces, it does not
91682         depend on (defined _SC_PAGESIZE).  However, it does depend on
91683         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91684         first reported by Jason Andrade in
91685         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91686
91687 2004-02-25  Simon Josefsson  <jas@extundo.com>
91688
91689         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91690
91691 2004-02-25  Simon Josefsson  <jas@extundo.com>
91692
91693         * lib/strdup.h: New file.
91694         * lib/strdup.c: Include it.
91695         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91696         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91697
91698 2004-02-23  Karl Berry  <karl@gnu.org>
91699
91700         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91701         (from fencepost.gnu.org:/gd/gnuorg).
91702
91703 2004-02-23  Karl Berry  <karl@gnu.org>
91704
91705         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91706         * config/srclist.txt: add maintain/standards documents.
91707
91708 2004-02-18  Bruno Haible  <bruno@clisp.org>
91709
91710         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91711         Reported by Derek Robert Price <derek@ximbiot.com>.
91712
91713 2004-02-16  Karl Berry  <karl@gnu.org>
91714
91715         * config/mkinstalldirs, install-sh: update from automake.
91716
91717 2004-02-06  Karl Berry  <karl@gnu.org>
91718
91719         * m4/po.m4: update from gettext 0.14.1.
91720
91721 2004-02-06  Karl Berry  <karl@gnu.org>
91722
91723         * lib/config.charset: update from gettext 0.14.1.
91724
91725 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91726
91727         Add comments and code, prompted by suggestions from Bruno Haible
91728         for sh-quote.
91729         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91730         describing the enum quoting_style values.
91731         * lib/quotearg.c (quotearg_alloc): New function.
91732         (quotearg_buffer_restyled): Treat lone { and } as special.
91733         Treat = as special.  Work around bug with older shells
91734         that "see" a '\' that is really the 2nd byte of a multibyte char.
91735         Quote empty string with shell_quoting_style.
91736
91737 2004-02-03  Bruno Haible  <bruno@clisp.org>
91738
91739         * m4/pipe.m4: New file, from GNU gettext.
91740
91741 2004-02-03  Bruno Haible  <bruno@clisp.org>
91742
91743         * lib/pipe.h: New file, from GNU gettext.
91744         * lib/pipe.c: New file, from GNU gettext.
91745
91746 2004-01-27  Bruno Haible  <bruno@clisp.org>
91747
91748         * m4/execute.m4: New file, from GNU gettext.
91749
91750 2004-01-27  Bruno Haible  <bruno@clisp.org>
91751
91752         * lib/execute.h: New file, from GNU gettext.
91753         * lib/execute.c: New file, from GNU gettext.
91754         * lib/w32spawn.h: New file, from GNU gettext.
91755
91756 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91757
91758         Merge from diffutils.
91759
91760         * lib/file-type.c (file_type): Add typed memory objects.
91761         * lib/file-type.h (S_TYPEISTMO): New macro.
91762
91763         * lib/c-stack.h (c_stack_action): Remove argv argument.
91764         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91765         (die): Don't calculate message unless segv_action returns.
91766         (get_stack_location, min_address_from_argv, max_address_from_argv,
91767         volatile stack_base, volatile_stack_size): Remove.
91768         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91769         that every segmentation violation is a stack overflow.  (Ouch!)
91770         See Debian bug 136249 (still outstanding) for more info about why
91771         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91772
91773 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91774
91775         Exit-status fix from coreutils.
91776
91777         Use exit_failure consistently in place of EXIT_FAILURE,
91778         so that program exit statuses are consistent on failure.
91779
91780         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91781         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91782         * lib/argmatch.h: Comment fix to match the above.
91783         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91784         Now a macro referring to exit_failure, instead of a separate
91785         variable.  Include "exitfail.h" to get it.
91786         * lib/xstrtol.h: Include "exitfail.h".
91787         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91788
91789         * lib/long-options.c (parse_long_options): Use prototype
91790         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91791         for clarity.
91792
91793 2004-01-21  Jim Meyering  <jim@meyering.net>
91794
91795         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91796         so as not to conflict with a different-sized __mktime_internal
91797         function in GNU libc.
91798         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91799         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91800
91801 2004-01-20  Karl Berry  <karl@gnu.org>
91802
91803         * config/config.guess: update from config.
91804
91805         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91806
91807 2004-01-20  Bruno Haible  <bruno@clisp.org>
91808
91809         Safer stack allocation.
91810         * lib/setenv.c: Include allocsa.h.
91811         (alloca): Remove fallback definition.
91812         (freea): Remove macro.
91813         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91814         instead of freea.
91815
91816 2004-01-20  Bruno Haible  <bruno@clisp.org>
91817
91818         * m4/eealloc.m4: New file, from GNU gettext.
91819
91820 2004-01-20  Bruno Haible  <bruno@clisp.org>
91821
91822         * m4/allocsa.m4: New file, from GNU gettext.
91823
91824 2004-01-20  Bruno Haible  <bruno@clisp.org>
91825
91826         * lib/xallocsa.h: New file, from GNU gettext.
91827         * lib/xallocsa.c: New file, from GNU gettext.
91828
91829 2004-01-20  Bruno Haible  <bruno@clisp.org>
91830
91831         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91832
91833 2004-01-20  Bruno Haible  <bruno@clisp.org>
91834
91835         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91836         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91837         specially.
91838
91839 2004-01-20  Bruno Haible  <bruno@clisp.org>
91840
91841         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91842         patch.
91843
91844 2004-01-20  Bruno Haible  <bruno@clisp.org>
91845
91846         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91847
91848 2004-01-20  Bruno Haible  <bruno@clisp.org>
91849
91850         * lib/eealloc.h: New file.
91851
91852 2004-01-20  Bruno Haible  <bruno@clisp.org>
91853
91854         * lib/binary-io.h: Avoid warnings on Cygwin.
91855
91856 2004-01-20  Bruno Haible  <bruno@clisp.org>
91857
91858         * lib/allocsa.h: New file, from GNU gettext.
91859         * lib/allocsa.c: New file, from GNU gettext.
91860
91861 2004-01-18  Karl Berry  <karl@gnu.org>
91862
91863         * doc/gpl.texi, doc/lgpl.texi: new files.
91864
91865 2004-01-18  Karl Berry  <karl@gnu.org>
91866
91867         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91868         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91869
91870 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91871
91872         Merge from coreutils.
91873
91874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91875         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91876         (gl_DEFAULT_POSIX2_VERSION): Move
91877         the documentation from 'configure' into 'config.hin',
91878         so that 'configure --help' isn't burdened by it and
91879         we don't have to worry about its formatting there.
91880         Reword the documentation so that it's more succinct
91881         and can be run together into a single paragraph.
91882         * m4/same.m4 (gl_SAME): Check for pathconf.
91883
91884 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91885
91886         Merge from coreutils.
91887
91888         * lib/posixver.c: Include posixver.h.
91889
91890         * lib/same.c: Include <stdbool.h>, <limits.h>.
91891         (_POSIX_NAME_MAX): Define if not defined.
91892         (MIN): New macro.
91893         (same_name): If file names are silently truncated, report
91894         that the file names are the same if they are the same after
91895         the silent truncation.
91896
91897         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91898         conversion function.
91899         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91900         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91901         longer needed.
91902
91903 2004-01-15  Jim Meyering  <jim@meyering.net>
91904
91905         Merge from coreutils.
91906
91907         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91908         if no library is required.
91909         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91910         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91911         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91912         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91913         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91914         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91915         value, $ac_cv_search_crypt, if it's "none required".
91916         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91917         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91918         not gl_FUNC_GETLOADAVG.
91919         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91920         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91921
91922 2004-01-15  Jim Meyering  <jim@meyering.net>
91923
91924         Merge from coreutils.
91925
91926         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91927         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91928         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91929
91930         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91931         optional configure-time default.
91932
91933         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91934
91935         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91936
91937 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91938
91939         Merge from coreutils.
91940
91941         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91942         value, $ac_cv_search_nanosleep, if it's "none required".
91943
91944 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91945
91946         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91947         with like-named macro in fnmatch.c.
91948         (EXT): Use an internal constant instead.
91949
91950         Merge fnmatch patches from glibc.
91951         * lib/fnmatch.c (mbsinit): Remove define.
91952         Add libc_hidden_ver (__fnmatch, fnmatch).
91953         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91954         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91955
91956 2004-01-14  Karl Berry  <karl@gnu.org>
91957
91958         * config/install-sh: update from automake.
91959
91960 2004-01-13  Karl Berry  <karl@gnu.org>
91961
91962         * config/install-sh: update from automake.
91963
91964 2004-01-09  Karl Berry  <karl@gnu.org>
91965
91966         * config/install-sh: update from automake.
91967
91968 2004-01-05  Karl Berry  <karl@gnu.org>
91969
91970         * config/config.{sub,guess}: update from config.
91971
91972 2003-12-31  Karl Berry  <karl@gnu.org>
91973
91974         * config/depcomp: update from automake.
91975
91976 2003-12-14  Karl Berry  <karl@gnu.org>
91977
91978         * lib/config.charset: update from gettext-runtime.
91979
91980 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91981
91982         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91983         Bug reported by Alfred M. Szmidt.
91984
91985 2003-12-03  Bruno Haible  <bruno@clisp.org>
91986
91987         * m4/gettext.m4: Upgrade from gettext-0.13.
91988         * m4/po.m4: Upgrade from gettext-0.13.
91989         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91990         * m4/intmax.m4: New file, from gettext-0.13.
91991         * m4/printf-posix.m4: New file, from gettext-0.13.
91992
91993 2003-11-29  Karl Berry  <karl@gnu.org>
91994
91995         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91996
91997 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91998             Bruno Haible  <bruno@clisp.org>
91999
92000         * lib/printf-parse.h: Don't include sys/types.h.
92001         (ARG_NONE): New macro.
92002         (char_directive): Change type of *arg_index fields to size_t.
92003         * lib/printf-parse.c: Don't include sys/types.h.
92004         (SSIZE_MAX): Remove macro.
92005         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
92006         Remove unnecessary overflow check.
92007         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
92008         fields.
92009
92010 2003-11-25  Bruno Haible  <bruno@clisp.org>
92011
92012         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
92013
92014 2003-11-25  Bruno Haible  <bruno@clisp.org>
92015
92016         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
92017         gt_TYPE_SSIZE_T.
92018
92019 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92020
92021         * modules/alloca: Remove dependency on xalloc.
92022
92023 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92024
92025         * lib/alloca.c: Remove dependency on xalloc module.
92026         (xalloc_die): Remove.
92027         (memory_full) [!defined emacs]: New macro.
92028         [!defined emacs]: Don't include xalloc.h.
92029         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
92030         address arithmetic overflows.  Change datatypes a bit to avoid
92031         unnecessary casts.
92032
92033 2003-11-22  Jim Meyering  <jim@meyering.net>
92034
92035         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
92036         s/size/size_t/.
92037
92038 2003-11-21  Karl Berry  <karl@gnu.org>
92039
92040         * config/config.{sub,guess}: update from config.
92041
92042 2003-11-18  Karl Berry  <karl@gnu.org>
92043
92044         * config/config.{sub,guess}: update from config.
92045
92046         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
92047
92048 2003-11-17  Paul Eggert  <eggert@twinsun.com>
92049
92050         * README: Mention that S+T cannot overflow if S is the size of
92051         an existing object and T is sufficiently small.
92052
92053 2003-11-17  Jim Meyering  <jim@meyering.net>
92054
92055         On systems without utime and without a utimes function capable of
92056         dealing with a NULL struct utimbuf* argument, this utime replacement
92057         could -- in unusual circumstances -- leak a file descriptor.
92058         * lib/utime.c: Include <unistd.h> and <errno.h>.
92059         (utime_null): Be sure to close `fd' and to preserve errno.
92060         Reported by Geoff Collyer via Arnold Robbins.
92061
92062 2003-11-17  Bruno Haible  <bruno@clisp.org>
92063
92064         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
92065         (Depends-on): Add xsize.
92066
92067 2003-11-17  Bruno Haible  <bruno@clisp.org>
92068
92069         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
92070
92071 2003-11-17  Bruno Haible  <bruno@clisp.org>
92072
92073         * lib/vasnprintf.c (alloca): Remove fallback definition.
92074         (freea): Remove definition.
92075         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92076         Reported by Paul Eggert.
92077
92078 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92079             Bruno Haible  <bruno@clisp.org>
92080
92081         Protect against address arithmetic overflow.
92082         * lib/printf-args.h: Include stddef.h.
92083         (arguments): Change type of field 'count' to size_t.
92084         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92085         'unsigned int' where appropriate.
92086         * lib/printf-parse.h: Include sys/types.h.
92087         (char_directive): Change type of *arg_index fields to ssize_t.
92088         (char_directives): Change type of fields 'count', max_*_length to
92089         size_t.
92090         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92091         (SSIZE_MAX): Define fallback value.
92092         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92093         instead of 'int' where appropriate. Check a_allocated, d_allocated
92094         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92095         * lib/vasnprintf.c: Include xsize.h.
92096         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92097         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92098         overflow. Avoid wraparound when converting a width or precision from
92099         decimal to binary.
92100
92101 2003-11-16  Bruno Haible  <bruno@clisp.org>
92102
92103         Update from GNU gettext.
92104         * lib/printf-parse.c: Generalize to it can be compiled for wide
92105         strings.
92106         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92107         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92108         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92109         SNPRINTF): New macros.
92110         Don't include <alloca.h> if the file is used inside libintl.
92111         (local_wcslen): New function, for Solaris 2.5.1.
92112         (VASNPRINTF): Use it instead of wcslen.
92113
92114 2003-11-16  Bruno Haible  <bruno@clisp.org>
92115
92116         * lib/xsize.h (xmax): New function.
92117         (xsum, xsum3, xsum4): Declare as "pure" functions.
92118
92119 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92120
92121         * modules/xalloc (Files): Undo latest change, since xalloc.h
92122         no longer needs SIZE_MAX or PTRDIFF_MAX.
92123
92124 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92125
92126         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92127         gl_PTRDIFF_MAX.
92128
92129 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92130
92131         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92132         "return", to pacify some unknown compiler.  Problem reported
92133         by Joerg Schilling.
92134
92135 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92136
92137         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92138         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92139         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92140         heuristic is just as accurate as far as we know, and it removes a
92141         dependency on size_max.m4 and ptrdiff_max.m4.
92142
92143 2003-11-11  Bruno Haible  <bruno@clisp.org>
92144
92145         * modules/xsize (Files): Add m4/size_max.m4.
92146         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92147
92148 2003-11-11  Bruno Haible  <bruno@clisp.org>
92149
92150         * m4/size_max.m4: New file.
92151         * m4/ptrdiff_max.m4: New file.
92152         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92153         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92154         (gl_XALLOC): Invoke it.
92155
92156 2003-11-11  Bruno Haible  <bruno@clisp.org>
92157
92158         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92159         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92160         defined.
92161
92162 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92163
92164         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92165         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92166         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92167         From Bruno Haible.
92168         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92169         not (size_t) -1, since it's defined here.
92170
92171 2003-11-09  Karl Berry  <karl@gnu.org>
92172
92173         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92174
92175 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92176
92177         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92178         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92179         Reject sizes of exactly SIZE_MAX bytes.
92180         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92181         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92182
92183 2003-11-05  Bruno Haible  <bruno@clisp.org>
92184
92185         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92186         SIZE_MAX defined in <limits.h> on Solaris.
92187
92188 2003-11-04  Jim Meyering  <jim@meyering.net>
92189
92190         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92191         variable names, rather than @VAR@.
92192         * modules/poll: Likewise.
92193
92194 2003-11-04  Bruno Haible  <bruno@clisp.org>
92195
92196         * modules/xsize: New file.
92197         * modules/linebreak: Depend on xsize.
92198         * MODULES.html.sh (func_all_modules): Add xsize.
92199
92200 2003-11-04  Bruno Haible  <bruno@clisp.org>
92201
92202         * m4/xsize.m4: New file.
92203
92204 2003-11-04  Bruno Haible  <bruno@clisp.org>
92205
92206         * lib/xsize.h: New file.
92207         * lib/linebreak.c: Include xsize.h.
92208         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92209         argument for overflow.
92210         Suggested by Paul Eggert.
92211
92212 2003-11-03  Karl Berry  <karl@gnu.org>
92213
92214         * config/config.{guess,sub}: update from config.
92215
92216 2003-11-03  Jim Meyering  <jim@meyering.net>
92217
92218         * modules/userspec (lib_SOURCES): Add userspec.h.
92219         (Include): Add "userspec.h".
92220         Improve description.
92221
92222 2003-11-03  Jim Meyering  <jim@meyering.net>
92223
92224         * lib/userspec.c: Include "userspec.h".
92225         * lib/userspec.h: New file.
92226
92227 2003-11-03  Bruno Haible  <bruno@clisp.org>
92228
92229         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92230
92231 2003-11-03  Bruno Haible  <bruno@clisp.org>
92232
92233         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92234         available, to avoid (extremely rare) race condition.
92235         Suggested by Paul Eggert.
92236
92237 2003-11-02  Karl Berry  <karl@gnu.org>
92238
92239         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92240
92241 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92242
92243         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92244         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92245         (read_filesystem_list): Set and use me_type_malloced.
92246         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92247         whatever the type happens to be), for brevity and consistency.
92248         Check for size calculation overflow on Alphas running OSF/1.
92249
92250 2003-10-31  Jim Meyering  <jim@meyering.net>
92251
92252         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92253
92254         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92255
92256 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92257             Bruno Haible  <bruno@clisp.org>
92258
92259         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92260         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92261
92262 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92263
92264         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92265         netbsd*-gnu*.  Suggested by Robert Millan.
92266
92267 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92268
92269         * modules/group-member: Depend on stdbool.
92270
92271 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92272
92273         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92274
92275 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92276
92277         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92278         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92279         after the 'gnu' in these cases.  This fixes some bugs in the
92280         previous change, and is based on suggestions by Robert Millan.
92281
92282 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92283
92284         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92285         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92286         no longer needed.
92287         * lib/quotearg.c (quotearg_n_options): Use it.
92288         * lib/group-member.c: Include <stdbool.h>.
92289         (free_group_info): Arg is now const *; don't free arg.
92290         (get_group_info): Now returns bool and accepts struct group_info *,
92291         rather than returning a malloc'ed struct group_info *.
92292         All uses changed.  Check for overflow in internal size calculation.
92293
92294         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92295         rather than xmalloc/xrealloc.
92296         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92297         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92298         conformance bug: the old code used a pointer after freeing the
92299         storage that it addressed.
92300         * lib/hash.c (hash_initialize): Simplify the code by using
92301         xalloc_oversized rather than doing it by hand.
92302         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92303         the buffer preserved.  Use free and xmalloc instead.
92304         * lib/quotearg.c (quotearg_n_options): Likewise.
92305         Use a simpler test for size overflow.  Don't use xalloc_oversized
92306         because unsigned int might be wider than size_t (!); this suggests
92307         that we should switch from unsigned int to size_t for slot numbers.
92308
92309 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92310
92311         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92312         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92313         NetBSD kernels.  Requested by Richard Stallman.
92314
92315 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92316
92317         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92318         to allocate the returned structure.  Do not allocate a subarray,
92319         as x2nrealloc will do that.
92320         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92321         instead of xnrealloc.
92322         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92323
92324 2003-10-27  Bruno Haible  <bruno@clisp.org>
92325
92326         * lib/stdbool_.h: Better support for BeOS.
92327
92328 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92329
92330         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92331         now uses inline.
92332
92333 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92334
92335         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92336         callers that want to do their own size-overflow checking.  Include
92337         <stdbool.h>, since xalloc_oversized returns bool.
92338         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92339         to use xalloc_oversized.
92340
92341         Add two functions x2realloc, x2nrealloc, for programs that grow
92342         arrays dynamically by doubling their sizes.
92343         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92344         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92345         New functions.
92346
92347         Port to C99 semantics for 'inline' of external functions.
92348         Bug reported by Bruno Haible.
92349         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92350         with the old contents of xnmalloc.
92351         (xnmalloc, xmalloc): Use it.
92352         (xnrealloc_inline): New static inline function,
92353         with the old contents of xnrealloc.
92354         (xnrealloc, xrealloc): Use it.
92355
92356         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92357         that.
92358
92359 2003-10-26  Karl Berry  <karl@gnu.org>
92360
92361         * config/srclist.txt (COPYING.DOC): no longer available from
92362         /gd/gnuorg; don't know where the ultimate source is.
92363
92364 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92365
92366         Fix several address-calculation bugs in the hash modules,
92367         plus some minor code cleanup.
92368
92369         * lib/hash.h: Include <stdbool.h>, for bool.
92370         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92371         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92372         hash_get_n_entries, hash_get_max_bucket_length,
92373         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92374         hash_rehash): Use size_t rather than unsigned.
92375         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92376         hash_get_n_buckets_used, hash_get_n_entries,
92377         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92378         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92379         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92380         Likewise.
92381         (SIZE_MAX): Define if not defined.
92382         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92383         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92384         hash_print):
92385         Use const * when possible.
92386         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92387         (check_tuning): Fix bug: if tuning parameters were very close to
92388         0 or 1, rounding errors could have caused subscript violations.
92389         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92390         (hash_initialize): Add 'fail:' label
92391         to free table and return NULL, and use it to simplify code.
92392         Use calloc rather than clearing the storage ourself.
92393         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92394         buffer size calculations.
92395         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92396         Include <stddef.h>, for size_t.
92397         * lib/hash-pjw.c (hash_pjw): Likewise.
92398         Switch to method described by Bruno Haible.
92399         Include <limits.h>, for CHAR_BIT.
92400         (SIZE_BITS): New macro.
92401
92402 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92403
92404         * m4/getline.m4 (AM_FUNC_GETLINE):
92405         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92406         hosts.  Problem reported by Derek Robert Price in
92407         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92408         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92409         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92410
92411 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92412
92413         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92414         ceiling the allocation at NMAX bytes rather than silently
92415         discarding input bytes before NMAX is reached.  This makes
92416         a difference only if NMAX exceeds SIZE_MAX / 2.
92417
92418         * lib/obstack.c: Merge from glibc.
92419         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92420         Add libc_hidden_def (_obstack_newchunk).
92421         (_obstack_free) [! defined _LIBC]: Remove.
92422         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92423         a clone of the function body.
92424         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92425         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92426
92427         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92428         glibc.
92429         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92430         arg to memcpy.
92431
92432         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92433         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92434         Don't use lvalue casts, as GCC plans to remove support for them
92435         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92436         was also present in the non-GCC version, indicating that this
92437         code had always been buggy and had never been widely used.
92438         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92439         Use the fast variant of each macro, rather than copying the
92440         definiens of the fast variant; that way, we'll be more likely to
92441         catch future bugs in the fast variants.
92442
92443 2003-10-20  Bruno Haible  <bruno@clisp.org>
92444
92445         * modules/wait-process: New file.
92446         * MODULES.html.sh (func_all_modules): Add wait-process.
92447
92448 2003-10-20  Bruno Haible  <bruno@clisp.org>
92449
92450         * m4/wait-process.m4: New file.
92451
92452 2003-10-20  Bruno Haible  <bruno@clisp.org>
92453
92454         * lib/wait-process.h: New file, from GNU gettext.
92455         * lib/wait-process.c: New file, from GNU gettext.
92456
92457 2003-10-19  Jim Meyering  <jim@meyering.net>
92458
92459         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92460         HPUX 10.20.
92461
92462 2003-10-18  Karl Berry  <karl@gnu.org>
92463
92464         * config/config.guess: update from config.
92465
92466 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92467
92468         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92469         (getgroups): First arg is int, not size_t.
92470         Don't let 'free' mangle errno.
92471
92472 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92473
92474         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92475
92476 2003-10-16  Karl Berry  <karl@gnu.org>
92477
92478         * config/config.{guess,sub}: update from config.
92479
92480 2003-10-16  Jim Meyering  <jim@meyering.net>
92481
92482         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92483         memcpy.
92484
92485 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92486
92487         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92488         (SIZE_MAX): Remove.
92489         (new_exclude, add_exclude_file): Initial size no longer needs to
92490         be a power of 2.
92491         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92492         our own address arithmetic overflow checking.
92493
92494         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92495         (fnmatch): Do not alloca more than 2000 wide characters;
92496         instead, use malloc for large buffers.
92497         Check for address arithmetic overflow, and return -1
92498         with errno set to ENOMEM in that case.
92499         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92500         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92501         instead, return -1.  Check for address arithmetic overflow.
92502
92503 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92504
92505         Handle invalid suffixes and overflow independently, so that
92506         callers can treat them independently as needed.  Fix some bugs in
92507         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92508         suffix for a human-readable blocksize.  The major caller-visible
92509         change is the addition of a new
92510         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92511         that both overflow and suffix chars were found.
92512
92513         * lib/human.c (humblock): Don't check separately for invalid suffix
92514         char; that is xstrtoumax's job (now that its bug is fixed).
92515         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92516         INTMAX_MAX]: New macros.
92517         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92518         TYPE_MAXIMUM): New macros.
92519         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92520         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92521         if overflow occurs, as it's what __strtol does and it's more useful
92522         in practice.
92523         (__xstrtol): If __strtol reports some error other than ERANGE,
92524         reflect it to the caller as LONGINT_INVALID.  If it reports
92525         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92526         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92527         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92528         value.
92529         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92530         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92531         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92532         [defined UINTMAX_MAX]: New macros.
92533
92534 2003-10-14  Bruno Haible  <bruno@clisp.org>
92535
92536         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92537
92538 2003-10-14  Bruno Haible  <bruno@clisp.org>
92539
92540         * m4/sig_atomic_t: New file, from GNU gettext.
92541         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92542
92543 2003-10-14  Bruno Haible  <bruno@clisp.org>
92544
92545         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92546         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92547         Also use volatile where needed.
92548
92549 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92550
92551         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92552         Change maintainer from Bruno Haible to 'all'.
92553
92554 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92555
92556         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92557
92558 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92559
92560         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92561         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92562         and define in terms of the other primitives.
92563         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92564         (SIZE_MAX): Define if not already defined.
92565         (array_size_overflow): New function.
92566         (xalloc_die): Abort instead of exiting if 'error' returns.
92567         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92568         (xmalloc, xrealloc): Use them.
92569         (xcalloc): Check for address arithmetic overflow.
92570         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92571         a bit faster than strcpy.
92572
92573 2003-10-10  Simon Josefsson  <jas@extundo.com>
92574
92575         * modules/argp (Depends-on): Add restrict and strcase.
92576
92577 2003-10-10  Simon Josefsson  <jas@extundo.com>
92578
92579         * m4/argp.m4: Add AC_C_INLINE.
92580
92581 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92582
92583         Merge getpass from libc, plus a few fixes.
92584
92585         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92586         Include <stdbool.h>.
92587         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92588         __fsetlocking to empty.
92589         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92590         do include <bits/libc-lock.h>.
92591         Do not include <fcntl.h>; not needed.
92592         [_LIBC]: Include <wchar.h>.
92593         (NOTCANCEL_MODE): New macro.
92594         (flockfile, funlockfile) [_LIBC]: New macros.
92595         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92596         [!_LIBC]: New macros.
92597         (call_fclose): New function.
92598         (getpass): Use it.  Save tty stream separately; this simplifies the
92599         code and makes it more reliable if stdin happens to equal stdout.
92600         Invoke __fsetlocking on tty.
92601         Handle thread cancellation if needed.
92602         Namespace cleanup (use __tcgetattr, __getline).
92603         Use bool for Booleans.
92604         [USE_IN_LIBIO]: Handle wide streams.
92605         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92606         stream might go where.
92607
92608         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92609         doesn't have to include <stdio.h> before us.
92610         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92611         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92612         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92613         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92614         if not declared, so that we can use getpass.c code from libc without
92615         rewriting it.
92616         (flockfile, ftrylockfile, funlockfile): New macros.
92617
92618 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92619
92620         * modules/getpass: Depend on stdbool.
92621
92622 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92623
92624         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92625
92626 2003-10-07  Karl Berry  <karl@gnu.org>
92627
92628         * config/config.{guess,sub}: update from config.
92629
92630 2003-10-06  Jim Meyering  <jim@meyering.net>
92631             Bruno Haible  <bruno@clisp.org>
92632
92633         This lets translators provide better translations for the
92634         "Written by ..." part of --version output.
92635         * lib/version-etc.h: Include stdarg.h.
92636         (version_etc_copyright): Declare as readonly.
92637         (version_etc): Make this function variadic with a NULL-terminated list
92638         of author name strings.
92639         (version_etc_va): New declaration.
92640         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92641         (version_etc_copyright): Declare as readonly.
92642         (version_etc_va): New function. Provide a different translatable string
92643         for each possible number of authors < 10. Abbreviate when there are 10
92644         authors or more.
92645         (version_etc): Make this function variadic. Call version_etc_va.
92646         Suggestion from Gary V. Vaughan.
92647
92648         * lib/long-options.h (parse_long_options): Change prototype: the
92649         authors string is moved to the end and becomes variadic.
92650         * lib/long-options.c: Include stdarg.h.
92651         (parse_long_options): Make this function variadic, too.
92652         Call version_etc_va, not version_etc.
92653
92654 2003-10-06  Bruno Haible  <bruno@clisp.org>
92655
92656         * modules/version-etc-2: Remove file.
92657         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92658
92659 2003-10-06  Bruno Haible  <bruno@clisp.org>
92660
92661         * modules/fatal-signal: New file.
92662         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92663
92664 2003-10-06  Bruno Haible  <bruno@clisp.org>
92665
92666         * m4/fatal-signal.m4: New file.
92667         * m4/signalblocking.m4: New file, from GNU gettext.
92668
92669 2003-10-06  Bruno Haible  <bruno@clisp.org>
92670
92671         * lib/version-etc-2.h: Remove file.
92672         * lib/version-etc-2.c: Remove file.
92673
92674 2003-10-06  Bruno Haible  <bruno@clisp.org>
92675
92676         * lib/fatal-signal.h: New file, from GNU gettext.
92677         * lib/fatal-signal.c: New file, from GNU gettext.
92678
92679 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92680
92681         * README: Rework advice for preventing empty .o files.
92682         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92683         not <sys/types.h>.
92684
92685 2003-10-04  Karl Berry  <karl@gnu.org>
92686
92687         * lib/argp*: update from libc.
92688
92689 2003-10-04  Karl Berry  <karl@gnu.org>
92690
92691         * config/config.{guess,sub}: update from config.
92692
92693 2003-10-02  Bruno Haible  <bruno@clisp.org>
92694
92695         * modules/lchown (Include): Add lchown.h.
92696         * modules/time_r (Include): Use "..." syntax.
92697         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92698
92699 2003-10-01  Simon Josefsson  <jas@extundo.com>
92700
92701         * MODULES.html.sh (func_all_modules): Move gethostname from section
92702         'based on' to section 'lacking' POSIX:2001.
92703
92704 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92705
92706         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92707         to output mode on the same stream.
92708
92709 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92710
92711         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92712         Fix arg typo in previous patch.
92713
92714 2003-09-28  Jim Meyering  <jim@meyering.net>
92715
92716         * lib/error.c: Correct cpp indentation.
92717
92718 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92719
92720         * modules/free: New file.
92721
92722 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92723
92724         * m4/free.m4: New file.
92725
92726 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92727
92728         * lib/minmax.h (MIN, MAX)
92729         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92730         Omit the special code that used __typeof__, since we worry that
92731         it could be more trouble than it's worth.  See:
92732         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92733         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92734
92735         * lib/free.c: New file.
92736
92737 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92738
92739         Trivial fixes to Makefile.am parts of module listings.
92740         * modules/strstr: Append strstr.h to lib_SOURCES.
92741         * modules/strcase: Likewise, for strcase.h.
92742
92743 2003-09-27  Karl Berry  <karl@gnu.org>
92744
92745         * config/mkinstalldirs: update from automake.
92746
92747 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92748
92749         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92750         (error_tail): Do not loop, reallocating temporary buffer, since
92751         the output cannot contain more wide characters than the input
92752         contains bytes, the size must be big enough already.  This avoids
92753         one potential size overflow calculation.  Check for size overflow
92754         when calculating temporary buffer size.  Free temporary buffer
92755         when done, if it was allocated with malloc; this plugs a memory
92756         leak.  Remove casts from void * to pointers, that are no longer
92757         needed now that we're assuming C89 or better.
92758
92759         Merge error changes from glibc.
92760
92761         * lib/error.c, error.h: Update copyright notice header to match glibc.
92762         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92763         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92764         Disable cancellation while printing error.
92765         * lib/error.h: Prepend __ to parameter names.
92766
92767 2003-09-26  Jim Meyering  <jim@meyering.net>
92768
92769         * lib/error.c (error_tail): Move some declarations
92770         into inner scope where the local variables are used.
92771
92772 2003-09-26  Bruno Haible  <bruno@clisp.org>
92773
92774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92775         stpncpy().
92776         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92777
92778 2003-09-26  Bruno Haible  <bruno@clisp.org>
92779
92780         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92781         (stpncpy): Define as alias for gnu_stpncpy.
92782         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92783
92784 2003-09-25  Simon Josefsson  <jas@extundo.com>
92785
92786         * lib/xgetdomainname.h: New file.
92787         * lib/xgetdomainname.c: New file.
92788
92789 2003-09-25  Simon Josefsson  <jas@extundo.com>
92790             Bruno Haible  <bruno@clisp.org>
92791
92792         * modules/getdomainname: New file.
92793         * modules/xgetdomainname: New file.
92794         * MODULES.html.sh (func_all_modules): Add getdomainname,
92795         xgetdomainname.
92796
92797 2003-09-25  Simon Josefsson  <jas@extundo.com>
92798             Bruno Haible  <bruno@clisp.org>
92799
92800         * m4/getdomainname.m4: New file.
92801
92802 2003-09-25  Simon Josefsson  <jas@extundo.com>
92803             Bruno Haible  <bruno@clisp.org>
92804
92805         * lib/getdomainname.h: New file.
92806         * lib/getdomainname.c: New file.
92807
92808 2003-09-25  Karl Berry  <karl@gnu.org>
92809
92810         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92811
92812 2003-09-25  Karl Berry  <karl@gnu.org>
92813
92814         * config/install-sh: update from automake.
92815
92816 2003-09-25  Bruno Haible  <bruno@clisp.org>
92817
92818         * modules/version-etc-2: New file, from modules/version-etc with
92819         modifications.
92820         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92821
92822 2003-09-25  Bruno Haible  <bruno@clisp.org>
92823
92824         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92825         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92826
92827 2003-09-24  Simon Josefsson  <jas@extundo.com>
92828
92829         * modules/xgethostname: Add xgethostname.h.
92830
92831 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92832
92833         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92834         the buffer associated with the argument.  Bug reported by
92835         Simon Josefsson.
92836
92837 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92838
92839         * README: Document assumptions that 'int' is at least 32 bits
92840         wide, that integer arithmetic is 2's complement without overflow,
92841         that there are no holes in integer values, that adding sizes of
92842         two nonoverlapping objects can't overflow, and that all-bits-zero
92843         yields scalar zero.  Fix spelling and capitalization typos.
92844
92845 2003-09-19  Karl Berry  <karl@gnu.org>
92846
92847         * lib/argp.h: update from libc.
92848
92849 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92850
92851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92852         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92853         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92854
92855 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92856
92857         * gnulib-tool: Use "test -h", not "test -L", for portability
92858         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92859         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92860         (sed_extract_prog): Issue s commands one-by-one, rather than
92861         using \| in one s command.
92862
92863 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92864
92865         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92866         input error, instead of returning NULL the next time we are called
92867         (and therefore losing track of errno).
92868
92869 2003-09-16  Bruno Haible  <bruno@clisp.org>
92870
92871         * gnulib-tool (func_create_testdir): Warn about duplicated
92872         dependencies.
92873
92874 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92875
92876         * modules/argmatch, modules/fatal, modules/obstack,
92877         modules/xalloc, modules/xgethostname: Sort dependencies by
92878         importance, not alphabetically.
92879
92880 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92881
92882         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92883         fails, so that the caller gets the proper errno.
92884
92885         * lib/readutmp.c (read_utmp): Likewise.
92886         Check for fstat error.  Close stream and free storage
92887         when failing.
92888
92889 2003-09-14  Karl Berry  <karl@gnu.org>
92890
92891         * config/srclist.txt (strdup.c): disable for c89 changes.
92892
92893 2003-09-14  Jim Meyering  <jim@meyering.net>
92894
92895         * lib/getloadavg.c: Correct cpp indentation.
92896         * lib/strdup.c: Likewise.
92897         * lib/vasnprintf.c: Likewise.
92898
92899 2003-09-14  Bruno Haible  <bruno@clisp.org>
92900
92901         * modules/fwriteerror: New file.
92902         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92903
92904 2003-09-14  Bruno Haible  <bruno@clisp.org>
92905
92906         * lib/fwriteerror.h: New file.
92907         * lib/fwriteerror.c: New file.
92908
92909 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92910
92911         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92912         modules/xgethostname, modules/xalloc: Depend on exit.
92913
92914 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92915
92916         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92917
92918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92919         and AC_MINIX, too, so that their extensions are available.
92920
92921         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92922         This macro has been superseded by gl_BACKUPFILE.
92923
92924         More patches to assume C89 or better.
92925
92926         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92927
92928         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92929         unconditionally.
92930         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92931         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92932         Include <string.h>, <stdlib.h> unconditionally.
92933         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92934         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92935         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92936         headers or for string.h.
92937         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92938         or strtoul.
92939
92940         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92941         headers.
92942         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92943         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92944         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92945         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92946         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92947         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92948         memcpy, memset.
92949         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92950         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92951         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92952         strtol.
92953         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92954         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92955         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92956         strtoul.
92957
92958 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92959
92960         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92961         * lib/obstack.c [!defined _LIBC]: Likewise.
92962         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92963         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92964         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92965
92966         More changes to assume C89 or better.
92967
92968         * lib/error.c (error_tail): Assume vprintf.
92969
92970         * lib/argmatch.c (getenv): Remove decl.
92971         * lib/progreloc.c (get_full_program_name): Define via prototype.
92972         * lib/setenv.c (clearenv): Likewise.
92973         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92974         needed.
92975         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92976         (malloc, memcpy): Remove decls.
92977         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92978         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92979         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92980         (memcpy): Remove macro.
92981         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92982         (__P): Remove.  All uses removed.
92983         (PTR): Remove.  All uses changed to void *.
92984         (CHAR_BIT, NULL): Remove.
92985         (spaces, zeros, memset_space, memset_zero)
92986         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92987         Remove.
92988         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92989         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92990         Define with prototype.
92991         Remove now-unnecessary prototype decl.
92992         (extra_args_spec): Assume ANSI C.  All uses changed.
92993         (extra_args_spec_iso): Remove.
92994         (my_strftime, emacs_strftimeu): Define via prototype.
92995         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92996         unconditionally.
92997         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92998         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92999         (strtoul, strtol): Remove decls.
93000         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
93001         LONG_MAX): Remove.
93002         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93003         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
93004         (LOCALE_PARAM_PROTO): New macro.
93005         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
93006         (INTERNAL (strtol), strtol): Define with a prototype.
93007         (PARAMS): Remove.  All uses removed.
93008         * lib/tempname.c: Include <string.h> unconditionally.
93009         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
93010         * lib/xgethostname.c (main): Define with a prototype.
93011         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
93012         Include <stdlib.h> unconditionally.
93013         (calloc, malloc, realloc, free): Remove decls.
93014         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
93015         Include <stdlib.h> unconditionally.  Sort include file names.
93016         (strtod): Remove.
93017         (xstrtod): Define with a prototype.
93018         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
93019         (strtol, strtoul): Remove decls.
93020
93021 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93022
93023         More patches to assume C89 or better.
93024         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
93025         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
93026         string.h, memchr, STDC_HEADERS.
93027
93028 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93029
93030         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
93031         Include <stdlib.h>, <string.h> unconditionally.
93032         Remove now-unnecessary cast to char *.
93033         * lib/strnlen.c: Include <string.h> unconditionally.
93034         * lib/yesno.c (yesno): Define with a prototype.
93035
93036 2003-09-11  Bruno Haible  <bruno@clisp.org>
93037
93038         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
93039
93040 2003-09-10  Jim Meyering  <jim@meyering.net>
93041
93042         * lib/error.c: Correct indentation of cpp directives.
93043
93044 2003-09-10  Bruno Haible  <bruno@clisp.org>
93045
93046         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
93047         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
93048         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
93049         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
93050         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
93051         <stdlib.h> and <string.h> checks.
93052         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
93053         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
93054
93055 2003-09-10  Bruno Haible  <bruno@clisp.org>
93056
93057         * lib/strcspn.c: Include <string.h> unconditionally.
93058         * lib/strpbrk.c: Include <string.h> unconditionally.
93059         * lib/strstr.c: Include <string.h> unconditionally.
93060         * lib/unicodeio.c: Include <string.h> unconditionally.
93061         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
93062         * lib/unsetenv.c: Likewise.
93063         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
93064         * lib/yesno.c: Include <stdlib.h> unconditionally.
93065         (rpmatch): Add prototype.
93066
93067 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93068
93069         More patches to assume C89 or better.
93070         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
93071         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
93072         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
93073         or for string.h.
93074         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
93075         stdlib.h.
93076         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93077         C headers.
93078         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93079         string.h.
93080         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93081         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93082         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93083         or for string.h.
93084         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93085         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93086         C headers.
93087         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93088         memcpy.
93089         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93090         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93091         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93092         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93093         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93094         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93095         string.h, free.
93096         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93097         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93098         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93099         C headers, or for string.h.
93100         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93101         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93102         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93103         headers, memory.h, stdlib.h, string.h, strings.h.
93104         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93105         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93106         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93107         strchr.
93108         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93109         headers, memory.h, string.h.
93110         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93111         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93112         free.
93113         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93114         headers.
93115         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93116         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93117         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93118         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93119         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93120
93121 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93122
93123         More K&R removal.
93124
93125         * lib/acosl.c (main): Use a prototype.
93126         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93127         tanl.c: Likewise.
93128
93129         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93130
93131         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93132         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93133         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93134         with a prototype.
93135         * lib/getopt.c (const): Remove macro.
93136         Include <string.h> unconditionally.
93137         (my_index): Remove; all uses changed to strchr.
93138         (strlen): Remove decl.
93139         (exchange): Remove forward decl; no longer needed.
93140         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93141         Define with prototype.
93142         * lib/getopt1.c (const): Remove macro.
93143         (getopt_long, getopt_long_only, main): Define with prototype.
93144
93145         * lib/getugroups.c: Include <string.h> unconditionally.
93146
93147         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93148         (getusershell, setusershell, endusershell, readname, main):
93149         Define with prototypes.
93150
93151         * lib/group-member.c: Include group-member.h first.
93152         Include <stdlib.h> unconditionally.
93153
93154         * lib/hard-locale.c: Include hard-locale.h first.
93155         Include <stdlib.h>, <string.h> unconditionally.
93156
93157         * lib/hash.c (free, malloc): Remove decls.
93158         Include <stdlib.h> unconditionally.
93159
93160         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93161         (getenv): Do not declare.
93162
93163         * lib/idcache.c: Include <string.h> unconditionally.
93164
93165         * lib/long-options.c: Include long-options.h first, to test interface.
93166         Include <stdlib.h> unconditionally.
93167
93168         * lib/makepath.c: Include makepath.h first, to test interface.
93169         Include <stdlib.h> and <string.h> unconditionally.
93170
93171         * lib/linebuffer.c: Include <stdlib.h>.
93172         (free): Remove decl.
93173
93174         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93175         stddef.h. rpl_malloc returns void *, not char *.
93176         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93177         prototype.
93178
93179         * lib/md5.h: Include <limits.h> unconditionally.
93180         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93181         (__P): Remove; all uses removed.
93182         * lib/md5.c: Include "md5.h" first.
93183         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93184         md5_buffer, md5_process_bytes, md5_process_block):
93185         Define with prototypes.
93186         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93187         * lib/sha.c: Include "sha.h" first.
93188         Include <stdlib.h>, <string.h> unconditionally.
93189
93190         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93191         * lib/memcmp.c (__ptr_t): Likewise.
93192         * lib/memrchr.c (__ptr_t): Likewise.
93193         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93194         Include <string.h> unconditionally.
93195         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93196         * lib/memchr.c: Include <stdlib.h> unconditionally.
93197         * lib/memchr.c (LONG_MAX): Remove.
93198         * lib/memrchr.c (LONG_MAX): Likewise.
93199         * lib/memchr.c (__memchr): Define via a prototype.
93200         * lib/memrchr.c (__memrchr): Likewise.
93201         * lib/memcmp.c (__P): Remove, and remove all uses.
93202         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93203         Remove forward decls; no longer needed.
93204         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93205         Use types required by C89 in prototype.
93206
93207         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93208         * lib/savedir.c: Likewise.
93209         * lib/mkdir.c (free): Remove decl.
93210         * lib/rmdir.c (rmdir): Define with a prototype.
93211         * lib/savedir.c: Include savedir.h first, to test interface.
93212
93213         * lib/mktime.c (STDC_HEADERS): Remove.
93214         Include <stdlib.h>, <string.h> unconditionally.
93215
93216         * lib/modechange.c: Include <stdlib.h> unconditionally.
93217         (malloc): Remove decl.
93218
93219         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93220         (free): Remove decl.
93221
93222         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93223         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93224         (This type really should be intptr_t, but that's a C99ism.)
93225         (_obstack_memcpy): Remove: all uses changed to memcpy.
93226         Include <string.h> unconditionally.
93227         (struct obstack): Assume __STDC__ for types of members
93228         chunkfun, freefun, extra_arg.
93229         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93230         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93231         obstack_begin, obstack_specify_allocation,
93232         obstack_specify_allocation_with_arg, obstack_chunkfun,
93233         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93234         Remove unprototyped decls and the macros that use them.
93235         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93236         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93237         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93238         (defined __STDC__ && __STDC__)]:
93239         Remove nonprototyped code.
93240         Include <stdlib.h> unconditionally.
93241         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93242         _obstack_allocated_p, _obstack_free, obstack_free,
93243         _obstack_memory_used, print_and_abort):
93244         Define using prototypes.
93245         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93246         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93247         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93248         obstack_next_free, obstack_object_size, obstack_room) [0]:
93249         Remove unused, unprototyped code.
93250
93251         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93252
93253         * lib/physmem.c (physmem_total, physmem_available, main): Define
93254         with prototypes.
93255
93256         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93257         (main): Define with a prototype.
93258
93259         * lib/posixver.c (getenv): Remove decl.
93260
93261         * lib/putenv.c (malloc): Returns void *, not char *.
93262         Include <string.h> unconditionally.
93263         (strchr, memcpy, NULL): Do not define.
93264
93265         * lib/readtokens.c: Include readtokens.h first, to test interface.
93266         Include <stdlib.h>, <string.h> unconditionally.
93267         (init_tokenbuffer): Define with a prototype.
93268
93269         * lib/regex.c (PARAMS): Remove.  All uses removed.
93270         All uses of _RE_ARGS removed, too.
93271         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93272         unconditionally.
93273         (bzero): Assume memset exists.
93274         (memcmp, memcpy, NULL): Remove.
93275         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93276         char, or assignments to local vars of type signed char.
93277         (init_syntax_once, PREFIX(extract_number_and_incr),
93278         PREFIX(print_partial_compiled_pattern),
93279         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93280         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93281         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93282         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93283         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93284         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93285         wcs_compile_range, byte_compile_range, truncate_wchar,
93286         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93287         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93288         count_mbs_length, wcs_re_match_2_internal,
93289         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93290         PREFIX(alt_match_null_string_p),
93291         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93292         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93293         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93294         now-unnecessary declaration, if any.
93295         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93296         regcomp, regexec):
93297         Remove now-unnecessary casts among pointer types.
93298         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93299
93300         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93301         (free): Remove decl.
93302
93303         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93304
93305         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93306         (free): Remove decl.
93307
93308         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93309         * lib/xgetcwd.c: Likewise.
93310
93311         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93312         (free): Remove decl.
93313
93314         * lib/strchrnul.c (strchrnul): Define with a prototype.
93315         Fix bug: c_in was not converted to char before searching.
93316
93317         The following changes are not K&R related:
93318
93319         * lib/group-member.h: Include <sys/types.h>, so that this file is
93320         self-contained.
93321         * lib/makepath.h: Likewise.
93322
93323         * lib/getusershell.c (readname, default_index, line_size, readname):
93324         Use size_t, not int, for sizes.
93325         (readname): If the size overflows, report an error instead of
93326         looping forever.
93327
93328 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93329
93330         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93331         libc.
93332
93333 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93334
93335         * README: New section: portability guidelines.
93336
93337 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93338
93339         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93340         C89 spec.
93341
93342 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93343
93344         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93345
93346 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93347
93348         Assume C89 or better; remove K&R cruft.
93349         A few of these changes were first proposed by Derek Robert Price
93350         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93351
93352         * lib/addext.c: Include <string.h> unconditionally.
93353         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93354         Don't declare getenv or malloc.
93355
93356         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93357         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93358         (NULL): Remove.
93359         (find_stack_direction, alloca): Use prototypes.
93360
93361         * lib/atexit.c (atexit): Define using a prototype.
93362
93363         * lib/basename.c, dirname.c, stripslash.c:
93364         Include <string.h> unconditionally.
93365
93366         * lib/bcopy.c: Include <stddef.h>.
93367         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93368
93369         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93370
93371         * lib/error.h (error, error_at_line, error_print_progname)
93372         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93373         * lib/error.c: Include error.h first, to check interface.
93374         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93375         (VA_START): Remove; all uses changeed to va_start.
93376         (exit, strerror): Remove decls.
93377         (error_print_progname): Prototype uncondionally.
93378         Don't include <errno.h>; no longer needed.
93379         (private_strerror): Remove.
93380         (error_tail): Always define.
93381         (error, error_at_line): Assume C89 or better; always use prototypes.
93382         * lib/fatal.c: Include "fatal.h" first, to test interface.
93383         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93384         (VA_START): Remove; all uses changed to va_start.
93385         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93386         this case.
93387         (exit): Remove decl.
93388         (fatal): Prototype unconditionally.  Assume va_start works.
93389         Abort at end, to pacify gcc.
93390
93391         * lib/euidaccess.c (main): Define with a prototype.
93392
93393         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93394
93395         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93396
93397         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93398         prototypes.
93399         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93400         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93401         (getenv): Remove decl.
93402         (fnmatch): Define using a prototype.
93403         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93404         (FCT): Define using a prototype.
93405
93406         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93407
93408         * lib/gethostname.c: Include <stddef.h>.
93409         (gethostname): Define with prototype.  Length is size_t, not int.
93410
93411 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93412
93413         Assume C89 or better; remove K&R cruft.
93414         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93415         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93416         string.h, getenv, malloc.
93417         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93418         headers.
93419         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93420         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93421         do not check for strerror.
93422         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93423         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93424         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93425         do not check for doprnt or vprintf.
93426         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93427         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93428
93429 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93430
93431         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93432         getversion.c should have been removed then, but was accidentally
93433         preserved.
93434
93435         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93436         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93437
93438 2003-09-08  Karl Berry  <karl@gnu.org>
93439
93440         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93441                 config, forget about prep.
93442
93443         * config/depcomp, missing: update from automake.
93444
93445 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93446
93447         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93448         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93449
93450 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93451
93452         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93453         copy_tm_result.  Bug reported by Simon Josefsson in
93454         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93455
93456 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93457
93458         * m4/time_r.m4: New file.
93459         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93460         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93461         is. Check for timegm declaration.
93462         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93463         Do not check for gmtime_r.
93464         Replace mktime if __mktime_internal does not exist and if mktime
93465         hasn't been replaced already.
93466
93467 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93468
93469         * lib/time_r.c, lib/time_r.h: New files.
93470
93471         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93472         __localtime_r.
93473         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93474         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93475
93476         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93477         __gmtime_r.
93478         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93479         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93480         Include <time_r.h>.
93481
93482         * lib/timegm.c: Switch to glibc implementation, with the following
93483         changes:
93484         [defined HAVE_CONFIG_H]: Include <config.h>.
93485         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93486         (__mktime_internal) [!defined _LIBC]: New decl.
93487         (__gmtime_r) [!defined _LIBC]: New macro and function.
93488         (timegm): Use a prototype, since gnulib assumes C89.
93489         Do not bother declaring tmp to be const, as it's not really usefu.
93490         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93491         (timegm): Declare only if HAVE_DECL_TIMEGM.
93492
93493 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93494
93495         * MODULES.html.sh (func_all_modules): Add time_r.
93496         * modules/time_r: New file.
93497         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93498         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93499
93500 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93501
93502         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93503         Bug reported by Lute Kamstra in
93504         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93505
93506         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93507         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93508         course with correspondingly smaller numbers for tomorrow and
93509         yesterday.  From Tadayoshi Funaba.  Originally installed into
93510         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93511         coreutils merge?).
93512
93513 2003-08-31  Simon Josefsson  <jas@extundo.com>
93514
93515         * modules/timegm: New file.
93516         * MODULES.html.sh (func_all_modules): Add timegm.
93517
93518 2003-08-31  Simon Josefsson  <jas@extundo.com>
93519
93520         * m4/timegm.m4: New file.
93521
93522 2003-08-31  Simon Josefsson  <jas@extundo.com>
93523
93524         * lib/timegm.h: New file.
93525         * lib/timegm.c: New file.  Based on
93526         wget-1.8.2/src/http.c:mktime_from_utc.
93527
93528 2003-08-31  Karl Berry  <karl@gnu.org>
93529
93530         * lib/argp.h: update from libc.
93531
93532 2003-08-28  Bruno Haible  <bruno@clisp.org>
93533
93534         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93535         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93536         followed by '#define fnmatch fnmatch_posix' gives an error.
93537
93538 2003-08-28  Bruno Haible  <bruno@clisp.org>
93539
93540         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93541         warning on QNX, which defines O_BINARY to 000000.
93542
93543 2003-08-27  Jim Meyering  <jim@meyering.net>
93544
93545         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93546         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93547         would fail after 32.  Reported by Danny Levinson.  Details here:
93548         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93549
93550 2003-08-24  Bruno Haible  <bruno@clisp.org>
93551
93552         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93553         MSVC7 <stdio.h> is included later.
93554
93555 2003-08-22  Simon Josefsson  <jas@extundo.com>
93556
93557         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93558
93559 2003-08-20  Karl Berry  <karl@gnu.org>
93560
93561         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93562
93563 2003-08-20  Bruno Haible  <bruno@clisp.org>
93564
93565         * modules/progname: New file.
93566         * MODULES.html.sh (func_all_modules): Add progname.
93567
93568 2003-08-20  Bruno Haible  <bruno@clisp.org>
93569
93570         * lib/progname.h: New file, from GNU gettext.
93571         * lib/progname.c: New file, from GNU gettext.
93572         * lib/progreloc.c: New file, from GNU gettext.
93573
93574 2003-08-19  Jim Meyering  <jim@meyering.net>
93575
93576         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93577         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93578
93579 2003-08-19  Bruno Haible  <bruno@clisp.org>
93580
93581         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93582         more.
93583
93584 2003-08-19  Bruno Haible  <bruno@clisp.org>
93585
93586         * lib/xstrdup.c: Assume <string.h> exists.
93587
93588 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93589
93590         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93591         in makefile rules.
93592
93593 2003-08-18  Jim Meyering  <jim@meyering.net>
93594
93595         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93596         * m4/lib-ld.m4: Likewise.
93597
93598 2003-08-18  Jim Meyering  <jim@meyering.net>
93599
93600         * lib/setenv.h: Indent nested cpp directive.
93601         * lib/vasnprintf.c: Remove trailing blanks.
93602
93603 2003-08-17  Simon Josefsson  <jas@extundo.com>
93604
93605         * modules/xstrndup: New file.
93606         * MODULES.html.sh (func_all_modules): Add xstrndup.
93607
93608 2003-08-17  Simon Josefsson  <jas@extundo.com>
93609
93610         * modules/argp: Fix autoconf macro name. Add more dependencies.
93611
93612 2003-08-17  Simon Josefsson  <jas@extundo.com>
93613
93614         * m4/xstrndup.m4: New file.
93615
93616 2003-08-17  Simon Josefsson  <jas@extundo.com>
93617
93618         * m4/argp.m4: New file.
93619
93620 2003-08-17  Simon Josefsson  <jas@extundo.com>
93621             Bruno Haible  <bruno@clisp.org>
93622
93623         * lib/xstrndup.h: New file.
93624         * lib/xstrndup.c: New file.
93625
93626 2003-08-17  Bruno Haible  <bruno@clisp.org>
93627
93628         * modules/strndup (Files, Include): Add lib/strndup.h.
93629
93630 2003-08-17  Bruno Haible  <bruno@clisp.org>
93631
93632         * modules/euidaccess (Files): Add lib/euidaccess.h.
93633
93634 2003-08-17  Bruno Haible  <bruno@clisp.org>
93635
93636         * lib/strndup.h: New file.
93637
93638 2003-08-17  Bruno Haible  <bruno@clisp.org>
93639
93640         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93641         like AC_GNU_SOURCE.
93642         * modules/extensions (configure.ac): Comment out the invocation of
93643         gl_USE_SYSTEM_EXTENSIONS.
93644
93645 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93646
93647         Merges from coreutils, etc.
93648         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93649         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93650         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93651         fixing a typo.
93652         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93653         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93654
93655 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93656
93657         Document merge from coreutils.
93658         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93659         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93660         * modules/utime: Add m4/utimes-null.m4.
93661
93662 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93663
93664         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93665         space, undoing this 2003-08-12 change:
93666         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93667
93668 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93669
93670         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93671         strtoul.c from libc, undoing this 2003-08-12 change:
93672         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93673
93674 2003-08-16  Jim Meyering  <jim@meyering.net>
93675
93676         Merges from coreutils.
93677         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93678         prefix.  Adjust cache variables similarly.  Create 500 rather than
93679         just 300 files, to exercise bug on Darwin6.5, too.
93680         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93681         $missing_dir.
93682         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93683         AM_SYS_POSIX_TERMIOS.
93684         Reported by mkc@mathdogs.com.
93685         Also change use of $am_cv_sys_posix_termios
93686         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93687         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93688         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93689         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93690         in /proc/mounts until it finds one with matching device number.  This
93691         is unnecessary when the FILE argument *is* a mount point.  No stat call
93692         is necessary in that case.  So, disable the statvfs-testing code on
93693         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93694         as RedHat bug# 84846.
93695         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93696         to 1MB, so as not to render systems with no stack size limit (e.g.,
93697         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93698         Include <unistd.h>.  On some systems,
93699         it is required for the definition of _SC_PAGESIZE.
93700
93701 2003-08-16  Jim Meyering  <jim@meyering.net>
93702
93703         Merge from coreutils.
93704         * lib/xstrtoimax.c: #else #if -> #elif.
93705         * lib/xstrtoumax.c: Likewise.
93706
93707 2003-08-16  Jim Meyering  <jim@meyering.net>
93708
93709         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93710         * m4/utimes.m4: Removed.
93711         * m4/utimes-null.m4: Renamed from utimes.m4.
93712
93713         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93714         to 1MB, so as not to render systems with no stack size limit (e.g.,
93715         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93716         Include <unistd.h>.  On some systems,
93717         it is required for the definition of _SC_PAGESIZE.
93718
93719 2003-08-16  Jim Meyering  <jim@meyering.net>
93720         and Paul Eggert  <eggert@cs.ucla.edu>
93721
93722         Merges from coreutils, etc.
93723
93724         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93725         using the latest version from cvs.  This avoids problems with #line
93726         directives using a vendor (Sun) compiler.
93727         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93728         Don't set GETGROUPS_LIB here; now it's
93729         done via getgroups.m4's wrapper function.
93730         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93731         rather than just in sh-util/configure.in, so that the
93732         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93733         same.
93734         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93735         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93736         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93737         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93738         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93739         Remove code that is now done by the newly-required macros.
93740         Append $(EXEEXT) to DF_PROG.
93741         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93742         Do not invoke or require the following here,
93743         since prereq.m4 or some gnulib .m4 now does this for us:
93744         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93745         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93746         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93747         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93748         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93749         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93750         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93751         AC_FUNC_OBSTACK.
93752         Do not replace the following functions, as this is now the job
93753         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93754         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93755         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93756         atexit getpass, strdup, getpagesize.
93757         Replace 'raise'.
93758         Do not check for the following functions, as this is now the job
93759         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93760         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93761         setregid.
93762         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93763         Check for sys/sysctl.h.
93764         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93765         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93766         of checking for ssize_t ourselves.
93767
93768         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93769         Require every macro that gnulib/modules/* suggests for us.
93770         (jm_PREREQ_ADDEXT): New macro.
93771         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93772         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93773
93774         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93775         (gl_PHYSMEM): Use it.
93776         Also check for `table' function.
93777         Check for new headers and functions.
93778         Add check for sys/sysmp.h.
93779         With suggestions from Kaveh Ghazi.
93780         Ignore headers that are present but cannot be compiled.  This
93781         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93782         C 5.4.
93783
93784 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93785
93786         Document merge from coreutils.
93787         * modules/userspec: Depend on posixver.
93788         * modules/strftime: Depend on tzset.
93789
93790 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93791
93792         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93793         rather than tab, after '#' in shell-script copyright notices.
93794         Suggested by Bruno Haible.
93795
93796 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93797
93798         * config/srclist-update: Use three spaces, rather than tab, after '#'
93799         in shell-script copyright notices.  Suggested by Bruno Haible.
93800         Remove unnecessary parenthesization in regular expression.
93801
93802 2003-08-15  Jim Meyering  <jim@meyering.net>
93803
93804         Merge from coreutils.
93805         * lib/xgethostname.c: Include <stdlib.h>.
93806         (xghostname): Don't exit for anything other than memory-related
93807         failure; just return NULL.
93808         * lib/userspec.c: Include "posixver.h".
93809         (parse_user_spec): Accept `.' as a separator only
93810         in pre-POSIX-200112 mode.
93811         * lib/strtoimax.c: Use #elif rather than #else #if.
93812         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93813         Remove function, now that we can rely on a working tzset function.
93814         [!_LIBC]: Ensure that the required autoconf test has been run.
93815         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93816         Use underlying_strftime for %r.
93817         * lib/sha.c: Merge in some clean-up and optimization changes from
93818         glibc.
93819         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93820         Ensure that it is a multiple of 64.
93821         Rearrange loop exit tests so as to avoid performing an
93822         additional fread after encountering an error or EOF.
93823         * lib/realloc.c: Update copyright date.
93824
93825 2003-08-15  Jim Meyering  <jim@meyering.net>
93826         and Paul Eggert  <eggert@twinsun.com>
93827
93828         Merge from coreutils.
93829         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93830         member but strut utmpx does not.  Needed for AIX 4.3.3.
93831         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93832
93833 2003-08-15  Jim Meyering  <jim@meyering.net>
93834         and Paul Eggert  <eggert@cs.ucla.edu>
93835
93836         Merges from coreutils, etc.
93837         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93838         Require gl_FUNC_TZSET_CLOBBER.
93839         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93840         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93841         members.
93842
93843 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93844
93845         Help the merge from coreutils.
93846         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93847         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93848         * m4/tzset.m4: Use it too.
93849
93850 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93851
93852         * modules/tzset: New file.
93853
93854 2003-08-14  Jim Meyering  <jim@meyering.net>
93855
93856         Merges from coreutils.
93857         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93858         variable names, rather than @FNMATCH_H@.
93859         * modules/alloca: Likewise for $(ALLOCA_H).
93860
93861         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93862         the three copies of the literal target, `fnmatch.h'.
93863         * modules/alloca (alloca.h): Likewise.
93864
93865 2003-08-14  Jim Meyering  <jim@meyering.net>
93866
93867         Merge from coreutils.
93868         * m4/tzset.m4: New file.
93869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93870         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93871         otherwise, AIX 5.1 systems would end up using the latter.
93872         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93873         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93874         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93875         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93876
93877 2003-08-14  Jim Meyering  <jim@meyering.net>
93878
93879         Merge from coreutils.
93880         * lib/obstack.h: Whitespace changes.
93881         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93882         and xcalloc return values.
93883         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93884         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93885         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93886         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93887         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93888         error from mntctl.
93889         Use mntctl's return value to drive the entry-processing loop, since
93890         we can't rely on the value of the vmt_length member in the last
93891         entry.  On some systems doing so could result in exhausting
93892         virtual memory.  Based in part on a patch from Mike Jetzer.
93893
93894 2003-08-14  Jim Meyering  <jim@meyering.net>
93895         and Paul Eggert  <eggert@twinsun.com>
93896
93897         Merges from coreutils, plus other fixes.
93898         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93899         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93900         for credits and details.  Thanks to Kaveh Ghazi for helping
93901         to keep these files in sync.
93902         (ARRAY_SIZE): Define it.
93903         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93904         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93905         (memcasecmp): Don't assume size_t fits in unsigned int.
93906         Remove casts and duplicate code.
93907         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93908         (memcpy): Remove definition.
93909         Merge in some clean-up and optimization changes from glibc.
93910         [BLOCKSIZE]: Move definition to top of file.
93911         Ensure that it is a multiple of 64.
93912         Rearrange loop exit tests so as to avoid performing an
93913         additional fread after encountering an error or EOF.
93914         * lib/md5.h (md5_uintptr): Define.
93915         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93916         return to the initial working directory.  Preserve errno
93917         for caller.
93918         * lib/idcache.c: Include "xalloc.h".
93919         (xmalloc, xrealloc): Remove decls.
93920         (getuser): Remove casts no longer required in C89.
93921         * lib/human.c: Include stdio.h, for sprintf.
93922         * lib/group-member.c: Include "xalloc.h".
93923         (xmalloc, xrealloc): Remove decls.
93924         (get_group_info): Remove casts no longer required in C89.
93925         * lib/getusershell.c (readname): Remove casts no longer required in
93926         C89.
93927         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93928         * lib/getline.c: Whitespace fix, from coreutils.
93929
93930 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93931
93932         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93933         Check for isascii.
93934
93935         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93936         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93937         Undo previous (whitespace-only) change.
93938
93939 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93940
93941         * lib/exclude.c: Include <ctype.h>
93942         (IN_CTYPE_DOMAIN): New macro.
93943         (is_space): New fn.
93944         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93945         and empty lines.
93946
93947         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93948         Undo previous (whitespace-only) change.
93949
93950 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93951
93952         * config/srclist-update: Change update back to the old behavior,
93953         leaving whitespace alone.  Use one 'sed' command rather than a
93954         pipeline.
93955         (fixlicense): Now a variable, not a function.
93956         (remove_trailing_blanks): Remove.
93957         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93958         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93959         Undo previous (whitespace-only) change.
93960
93961 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93962
93963         Merge from coreutils.
93964         * modules/euidaccess: Add lib_SOURCES, include for new
93965         file euidaccess.h
93966
93967 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93968
93969         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93970         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93971         Normalize leading white space and remove trailing white space.
93972
93973         Merge from coreutils
93974         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93975
93976         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93977         0.12.1.  These files are now being upgraded automatically by
93978         ../config/srclist-update.
93979
93980 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93981
93982         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93983         Normalize leading white space and remove trailing white space.
93984         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93985         notice, as per ../config/srclist-update.
93986
93987         Merge from coreutils.
93988         * lib/euidaccess.h: New file.
93989         * lib/euidaccess.c: Include it.
93990         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93991         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93992         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93993
93994 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93995
93996         * config/srclist-update: Add copyright notice.
93997         (remove_id_lines, remove_trailing_blanks): New constants.
93998         (fixfile): Use them to normalize spacing a bit in copied files.
93999         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94000         Normalize leading white space and remove trailing white space.
94001
94002         * config/texinfo.tex: Sync with texinfo.
94003
94004         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
94005         strtoul.c from libc, to merge coreutils whitespace changes.
94006
94007         * config/srclist.txt: Get the following m4 files from gettext:
94008         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
94009         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
94010         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
94011         wint_t.m4.
94012
94013 2003-08-12  Karl Berry  <karl@gnu.org>
94014
94015         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
94016         been made.
94017
94018 2003-08-11  Paul Eggert  <eggert@twinsun.com>
94019
94020         * modules/gnu-source, m4/gnu-source.m4:
94021         Remove; we're assuming Autoconf 2.54 or later now.
94022         Suggested by Bruno Haible.
94023         * MODULES.html.sh (func_all_modules): Remove gnu-source.
94024
94025 2003-08-11  Bruno Haible  <bruno@clisp.org>
94026
94027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
94028
94029 2003-08-11  Bruno Haible  <bruno@clisp.org>
94030
94031         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
94032         (vasnprintf): Use it instead of wcslen.
94033
94034 2003-08-11  Bruno Haible  <bruno@clisp.org>
94035
94036         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
94037         value to ensure that _Bool promotes to int. Use #define for _Bool when
94038         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
94039
94040 2003-08-10  Karl Berry  <karl@gnu.org>
94041
94042         * lib/regex.h: update from libc (whitespace fix).
94043
94044 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94045
94046         Merge some files from coreutils.  These changes were
94047         originally made by Jim Meyering.
94048         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
94049         many older Unixes require this.
94050         * lib/alloca.c (alloca): Remove cast to argument of free;
94051         no longer needed in C89.
94052         * lib/alloca_.h, regex.h: Fix white space to match
94053         what GNU indent does.
94054
94055 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94056
94057         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
94058         apparently Emacs's Unicode mode got confused before my 2003-08-05
94059         checkin.
94060
94061 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94062
94063         * m4/extensions.m4: New file.
94064         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
94065         Require gl_USE_SYSTEM_EXTENSIONS.
94066         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
94067         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
94068
94069 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94070
94071         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
94072         * modules/extensions, modules/gnu-source: New files.
94073         * modules/timespec, modules/unlocked-io: Depend on extensions.
94074
94075 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94076
94077         * modules/restrict: New file.
94078         * MODULES.html.sh (func_all_modules): Add restrict.
94079         * modules/regex: Depend on restrict.
94080
94081 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94082
94083         * m4/restrict.m4: New file.
94084         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94085
94086 2003-08-07  Bruno Haible  <bruno@clisp.org>
94087
94088         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94089         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94090
94091 2003-08-07  Bruno Haible  <bruno@clisp.org>
94092
94093         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94094         makes the module 'getndelim2' compatible with the module 'getline'.
94095
94096 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94097
94098         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94099         byte with "\201" to avoid glitches when editing that source file
94100         with multi-gnome-terminal.
94101
94102 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94103
94104         * lib/bumpalloc.h: Remove.
94105
94106 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94107
94108         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94109         * modules/bumpalloc: Remove.
94110
94111 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94112
94113         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94114         GNU coding style.
94115
94116         Merge from coreutils.
94117         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94118         1. From glibc.
94119         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94120         from Karl Berry, implemented by Jim Meyering.
94121         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94122         from Dmitry V. Levin.
94123         Remove anachronistic cast of xrealloc.
94124         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94125         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94126         type. Otherwise, it wouldn't compile with at least /bin/cc on
94127         ymp-cray-unicos9.0.2.X.
94128         Combine two mostly-identical uses of alloca into one.
94129         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94130
94131 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94132
94133         [From Emacs.]
94134
94135         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94136         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94137         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94138         obsolete NLIST_NAME_UNION.
94139         [__GNU__]: Undef BSD and FSCALE.
94140         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94141
94142 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94143
94144         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94145         an enum type, so that it's guaranteed to promote to int.  See:
94146         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94147
94148 2003-08-03  Karl Berry  <karl@gnu.org>
94149
94150         * config/depcomp: update from automake.
94151
94152 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94153
94154         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94155         (strerror): Don't assume that a printable int fits in 14 bytes.
94156
94157 2003-07-31  Bruno Haible  <bruno@clisp.org>
94158
94159         * modules/getpass-gnu: New file.
94160         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94161
94162 2003-07-31  Bruno Haible  <bruno@clisp.org>
94163
94164         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94165
94166 2003-07-24  Karl Berry  <karl@gnu.org>
94167
94168         * config/missing: update from automake.
94169
94170 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94171             Bruno Haible  <bruno@clisp.org>
94172
94173         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94174         * lib/getline.c (getline, getdelim): Likewise.
94175         Remove _GNU_SOURCE define; now it's defined in config.h through
94176         m4/getline.m4.
94177
94178 2003-07-23  Karl Berry  <karl@gnu.org>
94179
94180         * config/config.sub: update from prep.
94181
94182 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94183
94184         * modules/xalloc (Depends-on): Add exitfail.
94185         * modules/xmemcoll: Likewise.
94186
94187 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94188
94189         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94190         over-parenthesization in macros.
94191
94192         Sync with coreutils.
94193
94194         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94195         required by C99.
94196
94197         Use `exit_failure' for xalloc and xmemcoll instead of their own
94198         private exit-failure variables.
94199         * lib/xalloc.h (xalloc_exit_failure): Remove.
94200         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94201         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94202         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94203         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94204         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94205
94206 2003-07-20  Jim Meyering  <jim@meyering.net>
94207
94208         * modules/closeout (Depends-on): Add exitfail.
94209         Suggestion from Bruno Haible.
94210
94211 2003-07-19  Karl Berry  <karl@gnu.org>
94212
94213         * config/config.sub: update from prep.
94214
94215 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94216
94217         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94218         Remove.
94219         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94220         to test that it can stand by itself.  Include "exitfail.h".
94221         Clients should set exit_failure instead.
94222         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94223
94224 2003-07-18  Bruno Haible  <bruno@clisp.org>
94225
94226         * modules/getndelim2: New file.
94227         * modules/getline: Share files with module getndelim2.
94228         * modules/getnline: Depend on getndelim2 instead of sharing files with
94229         it. Add getnline.c to lib_SOURCES.
94230         * MODULES.html.sh (func_all_modules): Add getndelim2.
94231
94232 2003-07-18  Bruno Haible  <bruno@clisp.org>
94233
94234         * m4/getndelim2.m4: New file.
94235         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94236         invoke gl_PREREQ_GETNDELIM2.
94237         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94238         gl_PREREQ_GETNDELIM2.
94239         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94240         gl_GETNDELIM2.
94241
94242 2003-07-18  Bruno Haible  <bruno@clisp.org>
94243
94244         * lib/getndelim2.h: New file.
94245         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94246         getndelim2.h.
94247         (getndelim2): Make non-static. Change return type to ssize_t.
94248         * lib/getline.h: Change argument names.
94249         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94250         * lib/getnline.c: Include getndelim2.h.
94251
94252 2003-07-18  Andreas Schwab  <schwab@suse.de>
94253
94254         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94255
94256 2003-07-17  Karl Berry  <karl@gnu.org>
94257
94258         * config/config.sub: update from prep.
94259
94260 2003-07-17  Bruno Haible  <bruno@clisp.org>
94261
94262         * modules/getnline: New file.
94263         * modules/getline: Add lib/getndelim2.c to source file list.
94264         * MODULES.html.sh (func_all_modules): Add getnline.
94265
94266 2003-07-17  Bruno Haible  <bruno@clisp.org>
94267
94268         * m4/getnline.m4: New file.
94269
94270 2003-07-17  Bruno Haible  <bruno@clisp.org>
94271
94272         * m4/Makefile.am.in: Remove file.
94273         * m4/Makefile.am: Remove file.
94274         * m4/Makefile.in: Remove file.
94275
94276 2003-07-17  Bruno Haible  <bruno@clisp.org>
94277
94278         * lib/getnline.h: New file.
94279         * lib/getnline.c: New file.
94280         * lib/getndelim2.c: New file, extracted from getline.c.
94281         (getndelim2): Renamed from getdelim2, with added nmax argument.
94282         * lib/getline.c: Include getndelim2.c.
94283         (getdelim2): Moved out to getndelim2.c.
94284         (getline, getdelim): Update.
94285
94286 2003-07-17  Bruno Haible  <bruno@clisp.org>
94287
94288         * lib/Makefile.am: Remove file.
94289         * lib/Makefile.in: Remove file.
94290
94291 2003-07-17  Bruno Haible  <bruno@clisp.org>
94292
94293         * configure.in: Remove file.
94294         * Makefile.in: Remove file.
94295
94296 2003-07-17  Bruno Haible  <bruno@clisp.org>
94297
94298         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94299
94300 2003-07-16  Karl Berry  <karl@gnu.org>
94301
94302         * config/srclist-update: was running fixlicense twice, which caused
94303                 texinfo.tex to be nullified for some reason.  Simplify,
94304                 $gplsrc is no longer needed as far as I can see?
94305
94306 2003-07-16  Jim Meyering  <jim@meyering.net>
94307
94308         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94309
94310 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94311
94312         * config/srclist.txt: Get the following files from gettext-runtime/intl
94313         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94314         ref-del.sin.  From Bruno Haible.
94315         * config/srclist-update (fixfile): Change grep pattern again, since the
94316         previous fix didn't work (there was another trailing $).  Use
94317         '[$]' to escape the $s.
94318
94319 2003-07-15  Karl Berry  <karl@gnu.org>
94320
94321         * lib/vasnprintf.c: update from gettext.
94322
94323 2003-07-15  Karl Berry  <karl@gnu.org>
94324
94325         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94326         gets expanded when surrounded by '$'.
94327
94328 2003-07-15  Jim Meyering  <jim@meyering.net>
94329
94330         * modules/save-cwd: Don't depend on error.  From Derek Price.
94331
94332 2003-07-15  Jim Meyering  <jim@meyering.net>
94333
94334         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94335
94336 2003-07-14  Simon Josefsson  <jas@extundo.com>
94337
94338         * modules/mempcpy: New file.
94339         * MODULES.html.sh (func_all_modules): Add mempcpy.
94340
94341 2003-07-14  Simon Josefsson  <jas@extundo.com>
94342
94343         * m4/mempcpy.m4: New file.
94344
94345 2003-07-14  Simon Josefsson  <jas@extundo.com>
94346
94347         * lib/mempcpy.h: New file.
94348         * lib/mempcpy.c: New file.
94349
94350 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94351
94352         * modules/getdate, modules/posixtm: Depend on mktime.
94353
94354 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94355
94356         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94357         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94358         unicodeio.c, unicodeio.h, unlocked-io.h:
94359         Switch from LGPL to GPL.
94360
94361 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94362
94363         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94364         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94365         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94366         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94367         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94368         updated automatically by ../config/srclist-update.  This changes
94369         their license from LPGL to GPL.
94370
94371 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94372
94373         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94374         assumed to refer to the root of the most recent stable gettext version.
94375         * config/srclistvars.sh: Add defaults for eggert.
94376         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94377         Match "This program" as well as "The program".  This is needed
94378         for gettext.
94379
94380 2003-07-14  Jim Meyering  <jim@meyering.net>
94381
94382         Don't emit diagnostics.  Let callers do that.
94383         * lib/save-cwd.c: Don't include "error.h".
94384         (save_cwd): Don't call error.  Ensure that errno is valid
94385         when returning nonzero.
94386
94387         * lib/save-cwd.h (restore_cwd): Update prototype.
94388         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94389         Simplify.  Don't call error upon failure.  Let callers do that.
94390         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94391         when auditing is enabled.  But don't bother updating the #if.
94392
94393 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94394
94395         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94396         it breaks C++ compilation.
94397         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94398
94399 2003-07-10  Simon Josefsson  <jas@extundo.com>
94400
94401         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94402
94403 2003-07-10  Jim Meyering  <jim@meyering.net>
94404
94405         * m4/clock_time.m4: Remove trailing blank.
94406         * m4/intmax_t.m4: Likewise.
94407
94408 2003-07-10  Jim Meyering  <jim@meyering.net>
94409
94410         * lib/vasnprintf.c: Remove trailing blanks.
94411         Make cpp indentation consistent.
94412
94413 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94414
94415         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94416         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94417         Switch from LGPL to GPL.
94418
94419 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94420
94421         * config/srclist.txt: Sort sublists.  Add
94422         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94423         that differ from gnulib for one reason or another; we'd like this list
94424         to be smaller but for now let's document what we have.
94425
94426 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94427
94428         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94429         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94430         and sweeter "eval x=$x".
94431         * config/srclist.txt: Get lib/argp* from glibc.
94432
94433 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94434
94435         * lib/mktime.c: Fix some boundary cases and remove need for floating
94436         point.
94437
94438         Issue a compile-time diagnostic if time_t is floating point, or if
94439         two's complement arithmetic is not in effect, or if arithmetic
94440         right shift does not propagate the sign.  These assumptions were
94441         all in the original code but they weren't checked.
94442
94443         (TIME_T_MIDPOINT, verify): New macros.
94444         (__isleap): Remove; it has integer overflow problems.
94445         (leapyear): New function, without those problems.
94446         (ydhms_tm_diff): Remove; splitting into two parts.
94447         (ydhms_diff): New function, containing the arithmetic part of
94448         the old ydhms_tm_diff function.  Issue a compile-time
94449         diagnostic if we are not using C99 integer division.
94450         Avoid casts when possible.
94451         (guess_time_tm): New function, containing the checking part of
94452         the old ydhms_tm_diff function.  Return the new value, rather than
94453         the difference between it and the old.  Accept a new argument T
94454         so that *T specifies the old value.  Check for overflow in the result.
94455
94456         (__mktime_internal): Use a time_t offset, not a long int offset.
94457         This undoes the 2003-06-04 change, which is no longer needed now
94458         that we have better overflow checking.
94459         (localtime_offset): Likewise.
94460
94461         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94462         and long are 64-bit but int is only 32-bit.
94463         (ydhms_diff): Use long int to store year1 and yday1.
94464         Issue a compile-time diagnostic if long int is not wide enough.
94465
94466         (__mktime_internal): Use long int to store adjusted year and yday.
94467         Use plain C rather than preprocessor commands, if that doesn't
94468         affect efficiency.
94469         Check for overflow (and try to repair) after each probe
94470         rather than checking only at the very end.  This avoids some bugs
94471         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94472         does not equal GMT offset at maximum time).
94473         Use integer to check for overflow rather than floating point; this
94474         is more portable to non-IEEE hosts, and is a tad faster.
94475         When we detect that we are oscillating between two values,
94476         don't check whether tm_isdst has the requested value, since
94477         we already know the answer.  When tm_isdst has the wrong value,
94478         use a different heuristic to find the right one, based on the
94479         extreme values actually observed in practice in tz2003a,
94480         rather than the (overly optimistic) "previous 3 calendar quarters".
94481
94482         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94483         "T const" to accommodate glibc style.
94484         (check_result): Use less-confusing report format.  "long" -> "long int.
94485         (main): Likewise.
94486         Don't loop if the iteration overflows time_t.
94487         Allow a negative step in the iteration.
94488
94489 2003-07-06  Karl Berry  <karl@gnu.org>
94490
94491         * config/depcomp: update from automake.
94492         * config/config.sub: update from prep.
94493
94494 2003-07-03  Karl Berry  <karl@gnu.org>
94495
94496         * config/config.guess: update from prep.
94497
94498 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94499
94500         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94501         xreadlink.c now includes it unconditionally.
94502
94503 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94504
94505         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94506         having it depend on HAVE_SYS_TYPES_H.
94507
94508 2003-07-01  Bruno Haible  <bruno@clisp.org>
94509
94510         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94511         <sys/types.h> should be sufficient.
94512         Reported by Paul Eggert.
94513
94514 2003-06-26  Karl Berry  <karl@gnu.org>
94515
94516         * config/depcomp: update from automake.
94517
94518 2003-06-26  Bruno Haible  <bruno@clisp.org>
94519
94520         * modules/human: Depend on module stdbool.
94521
94522 2003-06-25  Bruno Haible  <bruno@clisp.org>
94523
94524         * modules/readlink: New file.
94525         * modules/xreadlink: Depend on it.
94526         * MODULES.html.sh (func_all_modules): Add readlink.
94527
94528 2003-06-25  Bruno Haible  <bruno@clisp.org>
94529
94530         * m4/readlink.m4: New file.
94531
94532 2003-06-25  Bruno Haible  <bruno@clisp.org>
94533
94534         * lib/readlink.c: New file.
94535
94536 2003-06-22  Karl Berry  <karl@gnu.org>
94537
94538         * config/srclist.txt: update mkinstalldirs from automake.
94539         * config/mkinstalldirs: update.
94540
94541 2003-06-22  Bruno Haible  <bruno@clisp.org>
94542
94543         Portability to mingw32.
94544         * m4/ssize_t.m4: New file, from GNU gettext.
94545         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94546         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94547
94548 2003-06-22  Bruno Haible  <bruno@clisp.org>
94549
94550         * modules/safe-read: Add m4/ssize_t.m4.
94551         * modules/xreadlink: Add m4/ssize_t.m4.
94552
94553 2003-06-20  Bruno Haible  <bruno@clisp.org>
94554
94555         Assume C89, so PARAMS isn't needed.
94556         * lib/unicodeio.h (PARAMS): Remove.
94557         * lib/unicodeio.c: Don't use PARAMS.
94558
94559 2003-06-18  Karl Berry  <karl@gnu.org>
94560
94561         * config/config.{guess,sub}: update from prep.
94562
94563 2003-06-18  Jim Meyering  <jim@meyering.net>
94564
94565         Merge changes from coreutils.
94566         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94567         Remove explicit declarations of xmalloc and realloc.
94568         Include xalloc.h.
94569         (read_utmp): Remove anachronistic cast of xmalloc.
94570
94571 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94572
94573         Assume C89, so PARAMS isn't needed.
94574         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94575         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94576         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94577         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94578         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94579         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94580         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94581         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94582         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94583         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94584         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94585         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94586         no longer needed. Anyway, config.h should always be included before any
94587         other file.
94588
94589 2003-06-11  Simon Josefsson  <jas@extundo.com>
94590
94591         * modules/sysexits: New file.
94592         * MODULES.html.sh (func_all_modules): Add sysexits.
94593
94594 2003-06-11  Simon Josefsson  <jas@extundo.com>
94595
94596         * lib/sysexit_.h: New file.
94597
94598 2003-06-11  Derek Price  <derek@ximbiot.com>
94599
94600         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94601         necessary.
94602
94603 2003-06-11  Bruno Haible  <bruno@clisp.org>
94604
94605         * m4/sysexits.m4: New file.
94606
94607 2003-06-10  Simon Josefsson  <jas@extundo.com>
94608
94609         * lib/argp.h: New file, from glibc.
94610         * lib/argp-ba.c: New file, from glibc.
94611         * lib/argp-eexst.c: New file, from glibc.
94612         * lib/argp-fmtstream.c: New file, from glibc.
94613         * lib/argp-fmtstream.h: New file, from glibc.
94614         * lib/argp-fs-xinl.c: New file, from glibc.
94615         * lib/argp-help.c: New file, from glibc.
94616         * lib/argp-namefrob.h: New file, from glibc.
94617         * lib/argp-parse.c: New file, from glibc.
94618         * lib/argp-pv.c: New file, from glibc.
94619         * lib/argp-pvh.c: New file, from glibc.
94620         * lib/argp-xinl.c: New file, from glibc.
94621
94622 2003-06-10  Simon Josefsson  <jas@extundo.com>
94623
94624         * modules/strchrnul: New file.
94625
94626 2003-06-10  Simon Josefsson  <jas@extundo.com>
94627
94628         * modules/argp: New file.
94629
94630 2003-06-10  Simon Josefsson  <jas@extundo.com>
94631
94632         * m4/strchrnul.m4: New file.
94633
94634 2003-06-10  Simon Josefsson  <jas@extundo.com>
94635
94636         * lib/strchrnul.h: New file.
94637         * lib/strchrnul.c: New file.
94638
94639 2003-06-10  Bruno Haible  <bruno@clisp.org>
94640
94641         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94642
94643 2003-06-07  Karl Berry  <karl@gnu.org>
94644
94645         * config/config.{guess,sub}: update from prep.
94646
94647 2003-06-07  Jim Meyering  <jim@meyering.net>
94648
94649         * modules/strtod: Use $(...) notation, not @...@ for
94650         AC_REPLACE'd variables.
94651         * modules/localcharset: Likewise.
94652
94653 2003-06-07  Jim Meyering  <jim@meyering.net>
94654
94655         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94656         in place of my name in the copyright comment.
94657         Remove definition and uses of __P.
94658
94659         From coreutils.
94660         * lib/stat.c: Don't declare xmalloc explicitly.
94661         Instead, include "xalloc.h".
94662         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94663         xrealloc, and xcalloc return values.
94664         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94665         Improve comment.
94666         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94667
94668 2003-06-07  Bruno Haible  <bruno@clisp.org>
94669
94670         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94671         avoid AC_CONFIG_LINKS.
94672         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94673         fnmatch.h, to avoid AC_CONFIG_LINKS.
94674         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94675
94676 2003-06-07  Bruno Haible  <bruno@clisp.org>
94677
94678         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94679         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94680         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94681         directory.
94682         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94683         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94684         directory.
94685
94686 2003-06-06  Jim Meyering  <jim@meyering.net>
94687
94688         Merge from coreutils.
94689         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94690         Consolidate declarations and initializations of *_base* locals.
94691
94692         Merge from coreutils.
94693         This avoids a core dump on systems without GNU putenv,
94694         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94695         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94696         (unsetenv): New static function, from GNU libc.
94697         (rpl_putenv): Use it.
94698
94699         * lib/modechange.c: Remove trailing blanks.
94700
94701         Merge from coreutils.
94702         * lib/fsusage.c: Remove declaration of statfs.
94703         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94704
94705         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94706
94707 2003-06-06  Jim Meyering  <jim@meyering.net>
94708
94709         * lib/stdbool_.h: Renamed from stdbool.h.in.
94710
94711 2003-06-06  Jim Meyering  <jim@meyering.net>
94712             Bruno Haible  <bruno@clisp.org>
94713
94714         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94715         Adjust Makefile.am snippet not to redirect directly to target.
94716         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94717
94718 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94719
94720         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94721         mismatch, look in future quarters as well as past.  This fixes a
94722         bug when processing fall-backwards gaps immediately after a long
94723         period of daylight-saving time.
94724
94725         * lib/mktime.c: Assume freestanding C89 or better.
94726         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94727         (__P): Remove; not used.
94728         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94729         (mktime, not_equal_tm, print_tm, check_result,
94730         main): Use prototypes.  Use const * where appropriate.
94731         (main): Fix typo in testing code that uncovered by above changes.
94732         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94733
94734 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94735
94736         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94737         locale.h, localeconv.  This merges changes from coreutils.
94738
94739         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94740         It can be removed after the next Autoconf is released.
94741         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94742         needed.
94743
94744 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94745
94746         * lib/mktime.c: Fix Debian bug 177940
94747         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94748         (localtime_offset): Now long int, not time_t, because we want it
94749         to be guaranteed to be signed.  All uses changed.
94750         (__mktime_internal): If overflow would occur when adding offset,
94751         don't add it.
94752
94753         Merge 'human' changes from coreutils.  Rewrite to support
94754         locale-specific notations like thousands separators.
94755         * lib/human.c: Simplify authorship notice.
94756         Include human.h immediately after config.h.
94757         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94758         <limits.h>: Do not include, since human.h does.
94759         (SIZE_MAX, UINTMAX_MAX): New macros.
94760         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94761         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94762         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94763         (power_letter): Renamed from suffixes.
94764         (generate_suffix_backwards): Remove.
94765         (adjust_value): Now takes int style (because of human.h changes)
94766         and long double value (for greater precision on some platforms).
94767         (group_number): New function.
94768         (human_readable): Use it.  Use integer options, not enum.
94769         Put the options before the sizes in the arg list.
94770         Support all the new options.
94771         The old human_readable function has been removed;
94772         use inttostr.h instead.
94773         (human_readable, default_block_size, humblock):
94774         Use uintmax_t, not int, for block sizes.
94775         (human_readable_inexact, block_size_types): Remove.
94776         (block_size_opts): New constant.
94777         (human_options): Renamed from human_block_size, with new signature
94778         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94779         * lib/human.h: Add copyright and authorship notice.
94780         Include <limits.h> and <stdbool.h> unconditionally.
94781         (PARAMS): Remove.  All uses removed.
94782         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94783         (enum human_inexact_style): Remove tag; now a nameless enum.
94784         (human_floor, human_ceiling, human_round_to_even): Now have
94785         values 2, 0, 1 rather than -1, 1, 0.
94786         (human_group_digits, human_suppress_point_zero, human_autoscale,
94787         human_base_1024, human_SI, human_B): New constants.
94788         (human_readable_inexact, human_block_size): Remove.
94789         (human_readable): Size args are now uintmax_t, not int.
94790         (human_options): New decl.
94791
94792         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94793         unnecessary now that we assume C89 or better.  This change
94794         imported from coreutils.
94795
94796         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94797         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94798         in the 2003-05-30 sync from glibc.
94799
94800         .h files should stand alone, but we shouldn't include <sys/types.h>
94801         if we can get away with just <stddef.h>.
94802
94803         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94804         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94805         rather than <sys/types.h>, as we merely need size_t.
94806         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94807         to get size_t.
94808         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94809         Include <stdio.h>, to get FILE.
94810         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94811         memcasecmp.h has included <stddef.h> and all we need is size_t.
94812         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94813         our interface, instead of including <sys/types.h>
94814
94815 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94816
94817         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94818         now, as glibc mktime is buggy on non-glibc systems.
94819
94820 2003-06-03  Karl Berry  <karl@gnu.org>
94821
94822         * config/config.sub: update from prep.
94823
94824 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94825
94826         [from coreutils]
94827         Fix some minor time-related bugs with POSIX time arguments.
94828         Some valid time stamps were being rejected (notably -1, and
94829         time stamps before 1900 on 64-bit hosts).  And some invalid
94830         time stamps were being accepted, e.g. September 31.
94831
94832         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94833         that we can return (time_t) -1 successfully.
94834         * lib/posixtm.c: Likewise.
94835         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94836         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94837         (t): Remove static var.
94838         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94839         of static var.  All uses changed.
94840         (year): Do not reject years before 1900; they can occur with
94841         64-bit time_t.
94842         (posix_time_parse): Do not check for out-of-range components;
94843         that is now the caller's responsibility, since our checks were
94844         only approximations.
94845         (posixtime): Use mktime to check for out-of-range components,
94846         since it knows them exactly.
94847         If mktime returns (time_t) -1, check whether an error actually occurred
94848         by invoking localtime on -1.
94849         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94850         posixtime failures better.
94851         Improve the test data (in comments only).
94852
94853 2003-06-02  Karl Berry  <karl@gnu.org>
94854
94855         * config/mkinstalldirs (version): new variable.
94856         (--version): new option.
94857         (usage): improve message.
94858
94859 2003-05-30  Karl Berry  <karl@gnu.org>
94860
94861         * lib/mktime.c: update from libc.
94862
94863 2003-05-30  Bruno Haible  <bruno@clisp.org>
94864
94865         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94866         * config/config.rpath: Upgrade to gettext-0.12.1.
94867
94868 2003-05-30  Bruno Haible  <bruno@clisp.org>
94869
94870         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94871         * m4/nls.m4: New file, from gettext-0.12.1.
94872         * m4/po.m4: New file, from gettext-0.12.1.
94873         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94874
94875 2003-05-30  Bruno Haible  <bruno@clisp.org>
94876
94877         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94878         * lib/localcharset.h: Likewise.
94879         * lib/localcharset.c: Likewise.
94880
94881 2003-05-29  Karl Berry  <karl@gnu.org>
94882
94883         * config/config.rpath: update from gettext.
94884
94885 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94886
94887         Assume the headers required for C89 freestanding compilers.
94888         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94889         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94890         * m4/human.m4 (gl_HUMAN): Likewise.
94891         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94892         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94893         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94894         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94895         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94896         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94897
94898 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94899
94900         Assume the headers required for C89 freestanding compilers.
94901         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94902         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94903         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94904         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94905         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94906         define, since <limits.h> is guaranteed to do that.
94907         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94908         * lib/exclude.c: Include <stdbool.h> unconditionally.
94909         * lib/tempname.c: Include <stddef.h> unconditionally.
94910         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94911         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94912         <stddef.h> does that.
94913         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94914         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94915         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94916         needed.
94917         * lib/xstrtol.c: Likewise.
94918         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94919         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94920
94921         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94922         warnings on some platforms.
94923
94924         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94925         arbitrarily.
94926
94927 2003-05-26  Jim Meyering  <jim@meyering.net>
94928
94929         Merge in a change from coreutils:
94930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94931         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94932         that condition, rather than `-1' which is slightly misleading.
94933         Change the name of the cache variable to have the gl_ prefix.
94934         Prompted by a patch from Richard Dawe for DJGPP.
94935
94936 2003-05-24  Karl Berry  <karl@gnu.org>
94937
94938         * config/config.guess: update from prep.
94939
94940 2003-05-22  Karl Berry  <karl@gnu.org>
94941
94942         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94943
94944 2003-05-20  Karl Berry  <karl@gnu.org>
94945
94946         * config/config.guess: update from prep.
94947
94948 2003-05-18  Karl Berry  <karl@gnu.org>
94949
94950         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94951         might actually be set by the user.
94952
94953         * config/depcomp, install-sh, mdate-sh: update from automake.
94954
94955 2003-05-17  Bruno Haible  <bruno@clisp.org>
94956
94957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94958         invalid expansion for AC_EGREP_CPP.
94959         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94960         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94961         Suggested by Akim Demaille <akim@epita.fr> in
94962         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94963
94964 2003-05-12  Jim Meyering  <jim@meyering.net>
94965
94966         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94967         the space-padded-by-default conversion specifiers, %e, %k, %l.
94968
94969 2003-05-12  Bruno Haible  <bruno@clisp.org>
94970
94971         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94972         the string is longer than 4 KB.
94973
94974 2003-05-11  Karl Berry  <karl@gnu.org>
94975
94976         * config/config.{guess,sub}: update from prep.
94977
94978 2003-05-09  Bruno Haible  <bruno@clisp.org>
94979
94980         * modules/error: Add m4/strerror_r.m4 to file list.
94981
94982 2003-05-03  Bruno Haible  <bruno@clisp.org>
94983
94984         Upgrade to Unicode-4.0.
94985         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94986         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94987         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94988         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94989         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94990         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94991         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94992         Change width of U+E0100..U+E01EF from 1 to 0.
94993
94994 2003-04-25  Jim Meyering  <jim@meyering.net>
94995
94996         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94997         of type size_t, not int.
94998
94999 2003-04-25  Bruno Haible  <bruno@clisp.org>
95000
95001         * lib/copy-file.c: Include <stddef.h>, for size_t.
95002
95003 2003-04-21  Paul Eggert  <eggert@twinsun.com>
95004
95005         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
95006         code which expansion is under static control.  Patch imported from
95007         Akim Demaille's patch to Bison; see
95008         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
95009
95010 2003-04-14  Bruno Haible  <bruno@clisp.org>
95011
95012         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
95013
95014 2003-04-11  Jim Meyering  <jim@meyering.net>
95015
95016         Merge changes from Coreutils.
95017
95018         2003-03-22  Jim Meyering  <jim@meyering.net>
95019
95020         * lib/strftime.c (widen): Cast alloca return value to proper type.
95021
95022         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
95023
95024         From GNU libc.
95025         * lib/strftime.c (my_strftime): Handle very large width
95026         specifications for numeric values correctly.  Improve checks for
95027         overflow.
95028
95029         2003-01-19  Jim Meyering  <jim@meyering.net>
95030
95031         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
95032         definitions.
95033         (nl_get_alt_digit) [! defined my_strftime]: Define.
95034         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
95035         _nl_get_alt_digit and _nl_get_walt_digit.
95036
95037         * lib/strftime.c (my_strftime): Merge in locale-related changes from
95038         libc. These changes have no effect outside of _LIBC.
95039
95040 2003-04-10  Bruno Haible  <bruno@clisp.org>
95041
95042         * modules/findprog: New file.
95043         * MODULES.html.sh (func_all_modules): Add it.
95044
95045 2003-04-10  Bruno Haible  <bruno@clisp.org>
95046
95047         * m4/findprog.m4: New file.
95048         * m4/eaccess.m4: New file.
95049
95050 2003-04-10  Bruno Haible  <bruno@clisp.org>
95051
95052         * lib/findprog.h: New file, from GNU gettext.
95053         * lib/findprog.c: New file, from GNU gettext.
95054
95055 2003-04-05  Jim Meyering  <jim@meyering.net>
95056
95057         Merge changes from Coreutils.
95058
95059         * lib/exclude.h (PARAMS): Remove definition and uses.
95060         * lib/exclude.c: Remove uses of `PARAMS'.
95061
95062         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
95063         Add test-cases for DOS filenames. Declare program_name.
95064         (main): Set up program_name.  Patch by Rich Dawe.
95065
95066         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
95067         error from mntctl.
95068         Use mntctl's return value to drive the entry-processing loop, since
95069         we can't rely on the value of the vmt_length member in the last
95070         entry.  On some systems doing so could result in exhausting
95071         virtual memory.  Based in part on a patch from Mike Jetzer.
95072
95073 2003-04-04  Bruno Haible  <bruno@clisp.org>
95074
95075         * modules/linebreak: New file.
95076         * MODULES.html.sh (func_all_modules): Add it.
95077
95078 2003-04-04  Bruno Haible  <bruno@clisp.org>
95079
95080         * m4/linebreak.m4: New file.
95081
95082 2003-04-04  Bruno Haible  <bruno@clisp.org>
95083
95084         * lib/linebreak.h: New file, from GNU gettext.
95085         * lib/linebreak.c: New file, from GNU gettext with slight
95086         modifications.
95087         * lib/lbrkprop.h: New file, from GNU gettext.
95088
95089 2003-04-03  Bruno Haible  <bruno@clisp.org>
95090
95091         * modules/utf8-ucs4: New file.
95092         * modules/utf16-ucs4: New file.
95093         * modules/ucs4-utf8: New file.
95094         * modules/ucs4-utf16: New file.
95095         * MODULES.html.sh (func_all_modules): Add them.
95096
95097 2003-04-03  Bruno Haible  <bruno@clisp.org>
95098
95099         * m4/utf-ucs4.m4: New file.
95100         * m4/ucs4-utf.m4: New file.
95101
95102 2003-04-03  Bruno Haible  <bruno@clisp.org>
95103
95104         * lib/utf8-ucs4.h: New file, from GNU gettext.
95105         * lib/utf16-ucs4.h: New file, from GNU gettext.
95106         * lib/ucs4-utf8.h: New file, from GNU gettext.
95107         * lib/ucs4-utf16.h: New file, from GNU gettext.
95108
95109 2003-04-02  Bruno Haible  <bruno@clisp.org>
95110
95111         * modules/binary-io: New file.
95112         * MODULES.html.sh (func_all_modules): Add it.
95113
95114 2003-04-02  Bruno Haible  <bruno@clisp.org>
95115
95116         * lib/binary-io.h: New file, from GNU gettext.
95117
95118 2003-04-01  Bruno Haible  <bruno@clisp.org>
95119
95120         * modules/pathname: New file.
95121         * MODULES.html.sh (func_all_modules): Add it.
95122
95123 2003-04-01  Bruno Haible  <bruno@clisp.org>
95124
95125         * lib/pathname.h: New file, from GNU gettext.
95126         * lib/concatpath.c: New file, from GNU gettext.
95127
95128 2003-03-30  Bruno Haible  <bruno@clisp.org>
95129
95130         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95131
95132 2003-03-30  Bruno Haible  <bruno@clisp.org>
95133
95134         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95135         function chown() doesn't exist.
95136
95137 2003-03-28  Bruno Haible  <bruno@clisp.org>
95138
95139         * modules/copy-file: New file.
95140         * MODULES.html.sh (func_all_modules): Add it.
95141
95142 2003-03-28  Bruno Haible  <bruno@clisp.org>
95143
95144         * m4/copy-file.m4: New file.
95145
95146 2003-03-28  Bruno Haible  <bruno@clisp.org>
95147
95148         * lib/copy-file.h: New file, from GNU gettext.
95149         * lib/copy-file.c: New file, from GNU gettext.
95150
95151 2003-03-18  Jim Meyering  <jim@meyering.net>
95152
95153         * lib/quote.c (quote_n): Fix typo in comment.
95154
95155 2003-03-18  Bruno Haible  <bruno@clisp.org>
95156
95157         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95158         checking.
95159         * m4/onceonly_2_57.m4: Likewise.
95160
95161 2003-03-17  Bruno Haible  <bruno@clisp.org>
95162
95163         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95164         (m4_quote): Remove macro.
95165         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95166
95167 2003-03-14  Jim Meyering  <jim@meyering.net>
95168
95169         Merge changes from Coreutils.
95170         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95171         to be const, in order to avoid warnings.
95172         (obstack_room): Likewise.
95173         (obstack_empty_p): Likewise.
95174
95175 2003-03-14  Bruno Haible  <bruno@clisp.org>
95176
95177         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95178         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95179
95180 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95181
95182         Merge changes from Bison.
95183         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95184         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95185         when compiling Bison 1.875's `bitset bset = obstack_alloc
95186         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95187         * lib/hash.c: Include <stdbool.h> unconditionally.
95188
95189 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95190
95191         * m4/onceonly.m4 (m4_quote): New macro.
95192         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95193         Quote AC_FOREACH variable-expansions properly.
95194
95195 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95196
95197         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95198
95199 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95200
95201         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95202         Reported by Bruce Becker; see:
95203         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95204
95205 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95206             Bruno Haible  <bruno@clisp.org>
95207
95208         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95209         Reported by John Hughes, see
95210         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95211
95212 2003-02-20  Bruno Haible  <bruno@clisp.org>
95213
95214         * MODULES.html.sh (func_all_modules): Add poll.
95215
95216 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95217
95218         * modules/poll: New file.
95219
95220 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95221
95222         * lib/poll_.h: New file.
95223         * lib/poll.c: New file.
95224
95225 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95226
95227         * m4/poll.m4: New file.
95228
95229 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95230
95231         * modules/mathl: New file.
95232
95233 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95234
95235         * lib/mathl.h: New file.
95236         * lib/acosl.c: New file.
95237         * lib/asinl.c: New file.
95238         * lib/atanl.c: New file.
95239         * lib/ceill.c: New file.
95240         * lib/cosl.c: New file.
95241         * lib/expl.c: New file.
95242         * lib/floorl.c: New file.
95243         * lib/frexpl.c: New file.
95244         * lib/ldexpl.c: New file.
95245         * lib/logl.c: New file.
95246         * lib/sincosl.c: New file.
95247         * lib/sinl.c: New file.
95248         * lib/sqrtl.c: New file.
95249         * lib/tanl.c: New file.
95250         * lib/trigl.c: New file.
95251         * lib/trigl.h: New file.
95252
95253 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95254
95255         * m4/mathl.m4: New file.
95256
95257 2003-02-18  Bruno Haible  <bruno@clisp.org>
95258
95259         * MODULES.html.sh (func_all_modules): Add mathl.
95260
95261 2003-02-17  Bruno Haible  <bruno@clisp.org>
95262
95263         * modules/mkdtemp: New module.
95264         * MODULES.html.sh (func_all_modules): Add it.
95265
95266 2003-02-17  Bruno Haible  <bruno@clisp.org>
95267
95268         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95269
95270 2003-02-17  Bruno Haible  <bruno@clisp.org>
95271
95272         * lib/mkdtemp.h: New file, from GNU gettext.
95273         * lib/mkdtemp.c: New file, from GNU gettext.
95274
95275 2003-02-02  Jim Meyering  <jim@meyering.net>
95276
95277         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95278         e.g. glibc-2.2.93.
95279
95280 2003-01-31  Bruno Haible  <bruno@clisp.org>
95281
95282         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95283         'rpl_rename'.
95284         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95285         'rpl_strnlen'.
95286         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95287         'rpl_strtod'.
95288         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95289         'rpl_utime'.
95290
95291 2003-01-31  Bruno Haible  <bruno@clisp.org>
95292
95293         * lib/rename.c: #undef rename before defining rpl_rename.
95294         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95295
95296 2003-01-30  Bruno Haible  <bruno@clisp.org>
95297
95298         * modules/vasnprintf, modules/vasprintf: New modules.
95299         * MODULES.html.sh (func_all_modules): Add them.
95300
95301 2003-01-30  Bruno Haible  <bruno@clisp.org>
95302
95303         * m4/signed.m4: New file, from GNU gettext.
95304         * m4/longdouble.m4: New file, from GNU gettext.
95305         * m4/wchar_t.m4: New file, from GNU gettext.
95306         * m4/wint_t.m4: New file, from GNU gettext.
95307         * m4/vasnprintf.m4: New file.
95308         * m4/vasprintf.m4: New file.
95309
95310 2003-01-30  Bruno Haible  <bruno@clisp.org>
95311
95312         * lib/printf-args.h: New file, from GNU gettext.
95313         * lib/printf-args.c: New file, from GNU gettext.
95314         * lib/printf-parse.h: New file, from GNU gettext.
95315         * lib/printf-parse.c: New file, from GNU gettext.
95316         * lib/vasnprintf.h: New file, from GNU gettext.
95317         * lib/vasnprintf.c: New file, from GNU gettext.
95318         * lib/asnprintf.c: New file, from GNU gettext.
95319         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95320         * lib/vasprintf.c: New file, from GNU gettext.
95321         * lib/asprintf.c: New file, from GNU gettext.
95322
95323 2003-01-29  Bruno Haible  <bruno@clisp.org>
95324
95325         * modules/stpncpy: New module.
95326         * MODULES.html.sh (func_all_modules): Add it.
95327
95328 2003-01-29  Bruno Haible  <bruno@clisp.org>
95329
95330         * m4/stpncpy.m4: New file.
95331
95332 2003-01-29  Bruno Haible  <bruno@clisp.org>
95333
95334         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95335         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95336
95337 2003-01-28  Bruno Haible  <bruno@clisp.org>
95338
95339         * modules/c-ctype: New module.
95340         * MODULES.html.sh (func_all_modules): Add it.
95341
95342 2003-01-28  Bruno Haible  <bruno@clisp.org>
95343
95344         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95345         Paul Eggert.
95346         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95347         Paul Eggert.
95348
95349 2003-01-27  Bruno Haible  <bruno@clisp.org>
95350
95351         * modules/xsetenv: New module.
95352         * MODULES.html.sh (func_all_modules): Add it.
95353
95354 2003-01-27  Bruno Haible  <bruno@clisp.org>
95355
95356         * lib/xsetenv.h: New file, from GNU gettext.
95357         * lib/xsetenv.c: New file, from GNU gettext.
95358
95359 2003-01-23  Jim Meyering  <jim@meyering.net>
95360
95361         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95362         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95363
95364 2003-01-23  Bruno Haible  <bruno@clisp.org>
95365
95366         * modules/minmax: New module.
95367         * MODULES.html.sh (func_all_modules): Add it.
95368
95369 2003-01-23  Bruno Haible  <bruno@clisp.org>
95370
95371         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95372         Eggert.
95373
95374 2003-01-22  Bruno Haible  <bruno@clisp.org>
95375
95376         * modules/exit: New module.
95377         * MODULES.html.sh (func_all_modules): Add it.
95378
95379 2003-01-22  Bruno Haible  <bruno@clisp.org>
95380
95381         * lib/exit.h: New file, from GNU gettext.
95382
95383 2003-01-19  Bruno Haible  <bruno@clisp.org>
95384
95385         * gnulib-tool: Recognize option --extract-maintainer.
95386         (func_get_maintainer): New function.
95387         * modules/*: Add Maintainer entry.
95388
95389 2003-01-16  Jim Meyering  <jim@meyering.net>
95390
95391         * m4/regex.m4: The `regex' struct is both input and output.
95392         Initialize it before each use.  Patch by Tim Waugh.
95393
95394 2003-01-16  Bruno Haible  <bruno@clisp.org>
95395
95396         * MODULES.html.sh: Add a table of contents. Add the module name as
95397         leftmost column. Add hyperlinks.
95398
95399 2003-01-15  Bruno Haible  <bruno@clisp.org>
95400
95401         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95402
95403 2003-01-15  Bruno Haible  <bruno@clisp.org>
95404
95405         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95406         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95407         suffix.
95408
95409 2003-01-15  Bruno Haible  <bruno@clisp.org>
95410
95411         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95412
95413 2003-01-15  Bruno Haible  <bruno@clisp.org>
95414
95415         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95416         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95417
95418 2003-01-14  Jim Meyering  <jim@meyering.net>
95419
95420         * lib/same.c (same_name): Tweak a comment.
95421
95422 2003-01-14  Bruno Haible  <bruno@clisp.org>
95423
95424         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95425         when a string comparison is sufficient.
95426
95427 2003-01-14  Bruno Haible  <bruno@clisp.org>
95428
95429         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95430         'unsigned int'.
95431
95432 2003-01-14  Bruno Haible  <bruno@clisp.org>
95433
95434         * lib/hash-pjw.c: Add comment about low quality of this function.
95435
95436 2003-01-13  Bruno Haible  <bruno@clisp.org>
95437
95438         * modules/stpcpy: Distribute lib/stpcpy.h.
95439         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95440
95441 2003-01-13  Bruno Haible  <bruno@clisp.org>
95442
95443         * modules/*: Add a description.
95444         * modules/strpbrk: Fix Makefile.am snippet.
95445         * modules/strtoimax: Fix dependencies.
95446         * modules/strtoumax: Likewise.
95447
95448 2003-01-13  Bruno Haible  <bruno@clisp.org>
95449
95450         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95451         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95452         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95453
95454 2003-01-13  Bruno Haible  <bruno@clisp.org>
95455
95456         * gnulib-tool (func_create_testdir): Store config/* files in the main
95457         directory.
95458         * config.rpath: Move to ...
95459         * config/config.rpath: ... here.
95460         * modules/gettext: Contains config/config.rpath, not config.rpath.
95461         * modules/iconv: Likewise.
95462
95463 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95464
95465         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95466         to avoid collisions with libcurses and libreadline.
95467
95468         * m4/getstr.m4: Remove.
95469         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95470
95471 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95472
95473         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95474         to avoid collisions with libcurses and libreadline.
95475
95476         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95477         * lib/getstr.h, getstr.c: Remove.
95478         * lib/getline.c: Include "getline.h", to check interface.
95479         Move body of old getstr.c here: this defines MIN_CHUNK and
95480         declares getdelim2, which is renamed from getstr.
95481         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95482
95483         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95484         All uses changed.
95485         * lib/linebuffer.h: Likewise.
95486         (readline): Remove backward-compatibility macro.
95487
95488 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95489
95490         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95491         to avoid collisions with libcurses and libreadline.
95492         * getstr: Remove.
95493         * MODULES.html.sh: Remove getstr.
95494         * modules/getline: Depend on unlocked-io, not getstr.
95495
95496 2003-01-12  Jim Meyering  <jim@meyering.net>
95497
95498         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95499
95500 2003-01-10  Bruno Haible  <bruno@clisp.org>
95501
95502         * modules/alloca: Change Makefile.am requirements. Simplify Include
95503         requirements. Add lib/alloca_.h to file list.
95504
95505 2003-01-10  Bruno Haible  <bruno@clisp.org>
95506
95507         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95508
95509 2003-01-10  Bruno Haible  <bruno@clisp.org>
95510
95511         * lib/alloca_.h: New file.
95512         * lib/getdate.y: Unconditionally include alloca.h.
95513         * lib/makepath.c: Likewise.
95514         * lib/setenv.c: Likewise.
95515         * lib/userspec.c: Likewise.
95516
95517 2003-01-09  Karl Berry  <karl@gnu.org>
95518
95519         * MODULES.html.sh: include `dirname $0` in PATH, to find
95520         gnulib-tool.
95521
95522 2003-01-09  Bruno Haible  <bruno@clisp.org>
95523
95524         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95525         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95526
95527 2003-01-09  Bruno Haible  <bruno@clisp.org>
95528
95529         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95530
95531 2003-01-09  Bruno Haible  <bruno@clisp.org>
95532
95533         * lib/stdbool.h.in: New file.
95534
95535 2003-01-09  Bruno Haible  <bruno@clisp.org>
95536
95537         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95538         * MODULES.html.sh: Likewise.
95539
95540 2003-01-08  Jim Meyering  <jim@meyering.net>
95541
95542         * lib/full-write.c: Undefine and define-away `const' after inclusion
95543         of errno.h, not before.  Suggestion from Bruno Haible.
95544
95545 2003-01-08  Bruno Haible  <bruno@clisp.org>
95546
95547         * modules/full-read: Depend on full-write.
95548
95549 2003-01-08  Bruno Haible  <bruno@clisp.org>
95550
95551         * lib/safe-read.c: Include specification header first, to ensure its
95552         selfcontainedness.
95553         * lib/full-write.c: Likewise.
95554
95555 2003-01-07  Jim Meyering  <jim@meyering.net>
95556
95557         * lib/full-write.c: Rework so that it may serve to define full_read,
95558         too.
95559         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95560
95561 2003-01-07  Bruno Haible  <bruno@clisp.org>
95562
95563         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95564         <inttypes.h>.
95565         * lib/xstrtol.h: Likewise.
95566         * lib/xstrtoimax.c: Likewise.
95567         * lib/xstrtoumax.c: Likewise.
95568         * lib/human.h: Likewise.
95569
95570         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95571         on systems that have <inttypes.h> but not <stdint.h>.
95572
95573 2003-01-07  Bruno Haible  <bruno@clisp.org>
95574
95575         * MODULES.html.sh: Add copyright notice.
95576         (missed_files): Omit CVS directory entries.
95577         (func_module): Make it work with sed-3.02.
95578         * MODULES.txt: Remove file.
95579
95580 2003-01-06  Jim Meyering  <jim@meyering.net>
95581
95582         * lib/version-etc.c: Update year in translatable copyright string.
95583
95584 2003-01-03  Karl Berry  <karl@gnu.org>
95585
95586         * config/config.{guess,sub}: update from prep.
95587
95588 2003-01-02  Karl Berry  <karl@gnu.org>
95589
95590         * doc/COPYING.DOC: belatedly updated to 1.2.
95591
95592 2003-01-01  Karl Berry  <karl@gnu.org>
95593
95594         * gnulib-tool (func_verify_module): report module name $module in
95595         error message, not $1.
95596         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95597         be created, only if it doesn't exist.
95598         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95599
95600 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95601
95602         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95603
95604 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95605
95606         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95607         memcmp if strcoll doesn't work.
95608
95609 2002-12-31  Bruno Haible  <bruno@clisp.org>
95610
95611         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95612         nonempty.
95613
95614 2002-12-31  Bruno Haible  <bruno@clisp.org>
95615
95616         * lib/memcoll.c (STRCOLL): New macro.
95617         (memcoll): Use it.
95618
95619 2002-12-31  Bruno Haible  <bruno@clisp.org>
95620
95621         * lib/localcharset.h: New file.
95622         * lib/localcharset.c: Include it.
95623         * lib/unicodeio.c: Likewise.
95624
95625 2002-12-31  Bruno Haible  <bruno@clisp.org>
95626
95627         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95628         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95629
95630 2002-12-31  Bruno Haible  <bruno@clisp.org>
95631
95632         * lib/getline.h: Include <stddef.h>, for size_t.
95633
95634         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95635         * lib/unicodeio.c: Don't include <stddef.h>.
95636
95637 2002-12-31  Bruno Haible  <bruno@clisp.org>
95638
95639         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95640         HAVE_TM_ZONE.
95641
95642 2002-12-24  Karl Berry  <karl@gnu.org>
95643
95644         * config/config.guess: update from prep.
95645
95646 2002-12-24  Bruno Haible  <bruno@clisp.org>
95647
95648         General infrasructure.
95649         * m4/README: Rewritten.
95650         * m4/onceonly.m4: New file.
95651         * m4/onceonly_2_57.m4: New file.
95652
95653         Module atexit.
95654         * m4/atexit.m4: New file.
95655
95656         Module strtod.
95657         * m4/strtod.m4: New file.
95658
95659         Module strtol.
95660         * m4/strtol.m4: New file.
95661
95662         Module strtoul.
95663         * m4/strtoul.m4: New file.
95664
95665         Module memchr.
95666         * m4/memchr.m4: New file.
95667
95668         Module memcmp.
95669         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95670         (jm_FUNC_MEMCMP): Invoke it.
95671
95672         Module memcpy.
95673         * m4/memcpy.m4: New file.
95674
95675         Module memmove.
95676         * m4/memmove.m4: New file.
95677
95678         Module memset.
95679         * m4/memset.m4: New file.
95680
95681         Module strcspn.
95682         * m4/strcspn.m4: New file.
95683
95684         Module strpbrk.
95685         * m4/strpbrk.m4: New file.
95686
95687         Module strstr.
95688         * m4/strstr.m4: New file.
95689
95690         Module strerror.
95691         * m4/strerror.m4: New file.
95692
95693         Module mktime.
95694         * m4/mktime.m4: Renamed from jm-mktime.m4.
95695         (gl_PREREQ_MKTIME): New macro.
95696         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95697
95698         Module malloc.
95699         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95700         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95701         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95702
95703         Module realloc.
95704         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95705         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95706         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95707
95708         Module strftime.
95709         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95710         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95711         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95712         gl_TM_GMTOFF.
95713         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95714
95715         Module xalloc.
95716         * m4/xalloc.m4: New file.
95717
95718         Module alloca.
95719         * m4/alloca.m4: New file.
95720
95721         Module putenv.
95722         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95723         (jm_FUNC_PUTENV): Invoke it.
95724
95725         Module setenv.
95726         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95727         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95728         when invoked twice.
95729         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95730         gt_FUNC_SETENV.
95731
95732         Module memrchr.
95733         * m4/memrchr.m4: New file.
95734
95735         Module stpcpy.
95736         * m4/stpcpy.m4: New file.
95737
95738         Module strcase.
95739         * m4/strcase.m4: New file.
95740
95741         Module strdup.
95742         * m4/strdup.m4: New file.
95743
95744         Module strnlen.
95745         * m4/strnlen.m4: New file.
95746
95747         Module strndup.
95748         * m4/strndup.m4: New file.
95749
95750         Module xstrtod.
95751         * m4/xstrtod.m4: New file.
95752
95753         Module xstrtol.
95754         * m4/xstrtol.m4: New file.
95755
95756         Module getdate.
95757         * m4/getdate.m4: New file.
95758
95759         Module unlocked-io.
95760         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95761         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95762         * m4/jm-glibc-io.m4n: Remove file.
95763
95764         Module long-options.
95765         * m4/long-options.m4: New file.
95766
95767         Module md5.
95768         * m4/md5.m4: New file.
95769
95770         Module sha.
95771         * m4/sha.m4: New file.
95772
95773         Module getstr.
95774         * m4/getstr.m4: New file.
95775
95776         Module getline.
95777         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95778         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95779         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95780         simply getline. Infoke gl_PREREQ_GETLINE.
95781
95782         Module obstack.
95783         * m4/obstack.m4: New file.
95784
95785         Module hash.
95786         * m4/hash.m4: New file.
95787
95788         Module readtokens.
95789         * m4/readtokens.m4: New file.
95790
95791         Module strverscmp.
95792         * m4/strverscmp.m4: New file.
95793
95794         Module stdbool.
95795         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95796         OSF/1.
95797
95798         Module strtoll.
95799         * m4/strtoll.m4: New file.
95800
95801         Module strtoull.
95802         * m4/strtoull.m4: New file.
95803
95804         Module strtoimax.
95805         * m4/strtoimax.m4: New file.
95806
95807         Module strtoumax.
95808         * m4/strtoumax.m4: New file.
95809
95810         Module xstrtoimax.
95811         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95812         jm_AC_PREREQ_XSTRTOIMAX.
95813         Moved the strtol prerequisites to strtol.m4.
95814         Moved the strtoll prerequisites to strtoll.m4.
95815         Moved the strtoimax prerequisites to strtoimax.m4.
95816
95817         Module xstrtoumax.
95818         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95819         jm_AC_PREREQ_XSTRTOUMAX.
95820         Moved the strtoul prerequisites to strtoul.m4.
95821         Moved the strtoull prerequisites to strtoull.m4.
95822         Moved the strtoumax prerequisites to strtoumax.m4.
95823
95824         Module chown.
95825         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95826         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95827
95828         Module dup2.
95829         * m4/dup2.m4: New file.
95830
95831         Module ftruncate.
95832         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95833         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95834
95835         Module getgroups.
95836         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95837         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95838
95839         Module gettimeofday.
95840         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95841         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95842         gl_PREREQ_GETTIMEOFDAY.
95843
95844         Module mkdir.
95845         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95846         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95847
95848         Module mkstemp.
95849         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95850         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95851         jm_AC_TYPE_UINTMAX_T.
95852         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95853
95854         Module stat.
95855         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95856         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95857
95858         Module lstat.
95859         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95860         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95861
95862         Module timespec.
95863         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95864         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95865         * m4/st_mtim.m4: Indentation.
95866
95867         Module nanosleep.
95868         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95869         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95870         gl_PREREQ_NANOSLEEP.
95871
95872         Module regex.
95873         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95874         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95875         (gl_REGEX): New macro.
95876
95877         Module rename.
95878         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95879         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95880
95881         Module rmdir.
95882         * m4/rmdir.m4: New file.
95883
95884         Module utime.
95885         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95886         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95887         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95888
95889         Module dirname.
95890         * m4/dirname.m4: New file.
95891
95892         Module getopt.
95893         * m4/getopt.m4: New file.
95894
95895         Module unistd-safer.
95896         * m4/unistd-safer.m4: New file.
95897
95898         Module fnmatch.
95899         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95900         declaration.
95901         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95902         (gl_FUNC_FNMATCH_POSIX): New macro.
95903         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95904         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95905         simply fnmatch.
95906
95907         Module exclude.
95908         * m4/exclude.m4: New file.
95909
95910         Module human.
95911         * m4/human.m4: New file.
95912
95913         Module acl.
95914         * m4/acl.m4: Nop.
95915
95916         Module backupfile.
95917         * m4/backupfile.m4: New file.
95918         * m4/d-ino.m4: Indentation.
95919
95920         Module fsusage.
95921         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95922         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95923         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95924
95925         Module dirfd.
95926         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95927         requirements.
95928
95929         Module euidaccess.
95930         * m4/euidaccess.m4: New file.
95931
95932         Module file-type.
95933         * m4/file-type.m4: New file.
95934
95935         Module fileblocks.
95936         * m4/fileblocks.m4: New file.
95937
95938         Module filemode.
95939         * m4/filemode.m4: New file.
95940
95941         Module isdir.
95942         * m4/isdir.m4: New file.
95943
95944         Module lchown.
95945         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95946         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95947
95948         Module makepath.
95949         * m4/makepath.m4: New file.
95950
95951         Module modechange.
95952         * m4/modechange.m4: New file.
95953
95954         Module mountlist.
95955         * m4/mountlist.m4: New file.
95956         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95957         Indentation.
95958
95959         Module path-concat.
95960         * m4/path-concat.m4: New file.
95961
95962         Module pathmax.
95963         * m4/pathmax.m4: New file.
95964
95965         Module same.
95966         * m4/same.m4: New file.
95967
95968         Module save-cwd.
95969         * m4/save-cwd.m4: New file.
95970
95971         Module savedir.
95972         * m4/savedir.m4: New file.
95973
95974         Module xgetcwd.
95975         * m4/xgetcwd.m4: New file.
95976         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95977
95978         Module xreadlink.
95979         * m4/xreadlink.m4: New file.
95980
95981         Module safe-read.
95982         * m4/safe-read.m4: New file.
95983
95984         Module safe-write.
95985         * m4/safe-write.m4: New file.
95986
95987         Module closeout.
95988         * m4/closeout.m4: New file.
95989
95990         Module stdio-safer.
95991         * m4/stdio-safer.m4: New file.
95992
95993         Module getpass.
95994         * m4/getpass.m4: New file.
95995
95996         Module getugroups.
95997         * m4/getugroups.m4: New file.
95998
95999         Module group-member.
96000         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
96001         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
96002
96003         Module idcache.
96004         * m4/idcache.m4: New file.
96005
96006         Module userspec.
96007         * m4/userspec.m4: New file.
96008
96009         Module gettime.
96010         * m4/clock_time.m4: New file.
96011         * m4/gettime.m4: New file.
96012
96013         Module settime.
96014         * m4/settime.m4: New file.
96015
96016         Module posixtm.
96017         * m4/posixtm.m4: New file.
96018
96019         Module gethostname.
96020         * m4/gethostname.m4: New file.
96021
96022         Module canon-host.
96023         * m4/canon-host.m4: New file.
96024
96025         Module gettext.
96026         * m4/codeset.m4: New file, from gettext-0.11.5.
96027         * m4/gettext.m4: New file, from gettext-0.11.5.
96028         * m4/glibc21.m4: New file, from gettext-0.11.5.
96029         * m4/iconv.m4: New file, from gettext-0.11.5.
96030         * m4/intdiv0.m4: New file, from gettext-0.11.5.
96031         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
96032         * m4/inttypes.m4: New file, from gettext-0.11.5.
96033         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
96034         * m4/isc-posix.m4: New file, from gettext-0.11.5.
96035         * m4/lcmessage.m4: New file, from gettext-0.11.5.
96036         * m4/lib-ld.m4: New file, from gettext-0.11.5.
96037         * m4/lib-link.m4: New file, from gettext-0.11.5.
96038         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
96039         * m4/progtest.m4: New file, from gettext-0.11.5.
96040         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
96041         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
96042         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
96043
96044         Module localcharset.
96045         * m4/localcharset.m4: New file.
96046
96047         Module hard-locale.
96048         * m4/hard-locale.m4: New file.
96049
96050         Module mbswidth.
96051         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
96052         onceonly macros.
96053         * m4/mbrtowc.m4: Add comment.
96054
96055         Module memcasecmp.
96056         * m4/memcasecmp.m4: New file.
96057
96058         Module memcoll.
96059         * m4/memcoll.m4: New file.
96060
96061         Module unicodeio.
96062         * m4/unicodeio.m4: New file.
96063
96064         Module rpmatch.
96065         * m4/rpmatch.m4: New file.
96066
96067         Module yesno.
96068         * m4/yesno.m4: New file.
96069
96070         Module exitfail.
96071         * m4/exitfail.m4: New file.
96072
96073         Module c-stack.
96074         * m4/c-stack.m4 (gl_C_STACK): New macro.
96075         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96076
96077         Module error.
96078         * m4/error.m4 (gl_ERROR): New macro.
96079         (jm_PREREQ_ERROR): Use onceonly macros.
96080
96081         Module fatal.
96082         * m4/fatal.m4: New file.
96083
96084         Module getloadavg.
96085         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96086         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96087
96088         Module getpagesize.
96089         * m4/getpagesize.m4: New file.
96090
96091         Module getusershell.
96092         * m4/getusershell.m4: New file.
96093
96094         Module physmem.
96095         * m4/physmem.m4: New file.
96096
96097         Module posixver.
96098         * m4/posixver.m4: New file.
96099
96100         Module quotearg.
96101         * m4/quotearg.m4: New file.
96102
96103         Module quote.
96104         * m4/quote.m4: New file.
96105
96106         Module readutmp.
96107         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96108
96109         Module sig2str.
96110         * m4/sig2str.m4: New file.
96111
96112         Other.
96113         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96114         ulonglong.m4.
96115         * m4/intmax_t.m4: New file.
96116         * m4/d-type.m4: Indentation.
96117         * m4/jm-macros.m4: Update.
96118         * m4/prereq.m4 (jm_PREREQ): Update.
96119         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96120         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96121         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96122         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96123         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96124         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96125         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96126         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96127         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96128         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96129         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96130         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96131         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96132         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96133         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96134         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96135         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96136         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96137         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96138
96139 2002-12-24  Bruno Haible  <bruno@clisp.org>
96140
96141         * MODULES.txt: Update according to m4/ changes.
96142
96143         Module gettext.
96144         * config.rpath: New file, from gettext-0.11.5.
96145
96146         * modules/*: New module descriptions.
96147         * gnulib-tool: New file.
96148         * MODULES.html.sh: New file.
96149
96150 2002-12-21  Karl Berry  <karl@gnu.org>
96151
96152         * doc/fdl.texi: update to version 1.2.
96153
96154 2002-12-19  Karl Berry  <karl@gnu.org>
96155
96156         * config/config.guess: update from prep.
96157
96158 2002-12-18  Bruno Haible  <bruno@clisp.org>
96159
96160         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96161         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96162
96163 2002-12-17  Bruno Haible  <bruno@clisp.org>
96164
96165         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96166         stdlib.h, string.h.
96167
96168 2002-12-17  Bruno Haible  <bruno@clisp.org>
96169
96170         * lib/canon-host.c (strdup): Remove unused declaration.
96171
96172         * lib/fsusage.c: Include full_read.h.
96173         (get_fs_usage): Use full_read instead of safe_read.
96174
96175         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96176
96177 2002-12-12  Karl Berry  <karl@gnu.org>
96178
96179         * config/config.guess: update from prep.
96180
96181 2002-12-11  Bruno Haible  <bruno@clisp.org>
96182
96183         * m4/setenv.m4: New file, from gettext-0.11.5.
96184
96185 2002-12-11  Bruno Haible  <bruno@clisp.org>
96186
96187         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96188         not unsetenv().
96189         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96190         modifications:
96191
96192         2002-12-11  Bruno Haible  <bruno@clisp.org>
96193
96194                 * setenv.c (alloca): Fall back to malloc.
96195                 (freea): New macro.
96196                 (setenv): Use freea() to free memory allocated with alloca().
96197
96198         2002-11-13  Bruno Haible  <bruno@clisp.org>
96199
96200                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96201                 function declarations.
96202                 * unsetenv.c (unsetenv): Likewise.
96203
96204         2002-03-04  Bruno Haible  <bruno@clisp.org>
96205
96206                 Portability to AIX 4.3.3.
96207                 * unsetenv.c: New file, extracted from setenv.c.
96208                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96209
96210         2001-12-20  Bruno Haible  <bruno@clisp.org>
96211
96212                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96213                 use malloc instead. For SunOS 4.
96214
96215         2001-12-11  Bruno Haible  <bruno@clisp.org>
96216
96217                 * setenv.c: Declare alloca.
96218                 (compar_fn_t): New typedef.
96219                 (KNOWN_VALUE, STORE_VALUE): Use it.
96220
96221         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96222         setenv.h.
96223
96224 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96225
96226         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96227         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96228         Choose values that are less likely to collide with system fnmatch
96229         options.
96230         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96231         defined (e.g., a pure POSIX system).
96232         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96233         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96234
96235 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96236
96237         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96238         a pain in practice to deal with generated m4 files.  This change
96239         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96240
96241         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96242         and jm-glibc-io.m4, as they are no longer a special case.
96243         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96244         kludge and the auto-generation stuff.  Check only whether the
96245         functions are declared, not whether they exist, since older hosts
96246         that don't declare the functions can't use the optimization anyway.
96247
96248 2002-12-06  Jim Meyering  <jim@meyering.net>
96249
96250         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96251
96252         Merge in changes from libc's misc/error.c, in preparation
96253         for the merge of gnulib's changes back into libc.
96254
96255         * lib/error.c (_): Define only if not already defined.
96256         Move definition to follow all #include directives.
96257         Include unlocked-io.h only if !_LIBC.
96258         [_LIBC]: Include <libio/libioP.h>.
96259         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96260         (fflush): Tweak definition to use INTUSE.
96261         (putc): Define.
96262
96263 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96264
96265         * lib/alloca.c [defined emacs]: Include "lisp.h".
96266         (xalloc_die) [defined emacs]: New macro.
96267         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96268         [! defined emacs]: Include <xalloc.h>.
96269         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96270         (pointer): Typedef to POINTER_TYPE *.
96271         (malloc): Remove decl; we now always use xmalloc.
96272         (alloca): Use old-style definition, since Emacs needs this.
96273         Check for arithmetic overflow when computing combined size.
96274
96275 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96276
96277         Do not generate unlocked-io.h automatically, since it's easier to
96278         maintain it by hand.
96279
96280         * lib/unlocked-io.h: New file, from GNU diffutils,
96281         but with proper copyright notice and attribution.
96282         * lib/gen-uio: Remove.
96283         * lib/Makefile.am: Add copyright notice.
96284         (libfetish_a_SOURCES): Add unlocked-io.h.
96285         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96286         (DISTCLEANFILES, io_functions): Remove macros.
96287         (EXTRA_DIST): Remove gen_uio.
96288         (unlocked-io.h): Remove rule.
96289
96290 2002-12-04  Jim Meyering  <jim@meyering.net>
96291
96292         Reflect the fact that stat.c and lstat.c are no longer generated.
96293         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96294         (DISTCLEANFILES): Likewise.
96295         (EXTRA_DIST): Likewise.
96296         (all_local): Don't depend on stat.c or lstat.c.
96297         (stat.c, lstat.c): Remove rules.
96298         (EXTRA_DIST): Remove xstat.in.
96299
96300         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96301         * lib/stat.c: New file.  Contents mostly from xstat.in.
96302         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96303         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96304
96305         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96306         too.
96307         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96308
96309 2002-12-03  Jim Meyering  <jim@meyering.net>
96310
96311         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96312         but not semantics, to minimize the differences between these two files.
96313         (safe_read): Change comment to mention SAFE_READ_ERROR.
96314
96315         * lib/safe-read.c (IS_EINTR): Define.
96316         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96317
96318 2002-12-02  Jim Meyering  <jim@meyering.net>
96319
96320         * lib/safe-read.c (EINTR): Define.
96321         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96322         (INT_MAX): Provide fallback.
96323         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96324
96325         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96326
96327 2002-12-02  Bruno Haible  <bruno@clisp.org>
96328
96329         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96330         Define, taken from safe-read.c.
96331         (INT_MAX): Provide fallback.
96332         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96333         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96334
96335         * lib/safe-read.c (EINTR): Remove definition.
96336         (safe_read): Don't use EINTR if it is absent.
96337
96338 2002-12-01  Jim Meyering  <jim@meyering.net>
96339
96340         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96341         zero.
96342         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96343
96344 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96345
96346         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96347         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96348         with `if (! (value < limit)) abort ();', for readability.
96349
96350 2002-11-26  Karl Berry  <karl@gnu.org>
96351
96352         * lib/strdup.c: copy from libc again, with jim's ok.
96353         * lib/.cppi-disable: re-add strdup.c
96354
96355 2002-11-25  Karl Berry  <karl@gnu.org>
96356
96357         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96358         instead of "strtol.c".
96359
96360 2002-11-25  Karl Berry  <karl@gnu.org>
96361
96362         * config/install-sh: update from automake for variable quoting, $0 in
96363         error msgs, etc.
96364
96365         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96366         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96367         entry.
96368
96369 2002-11-25  Jim Meyering  <jim@meyering.net>
96370
96371         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96372
96373 2002-11-24  Karl Berry  <karl@gnu.org>
96374
96375         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96376         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96377
96378 2002-11-24  Jim Meyering  <jim@meyering.net>
96379
96380         Update from coreutils:
96381
96382         * lib/mktime.c: Merge in changes from libc.
96383
96384         Avoid a link-time failure on some Linux systems.
96385         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96386         (otherwise).
96387         (__mon_yday): Declare with the STATIC attribute.
96388         (__mktime_internal): Likewise.
96389         Based on a report from Greg Schafer.
96390
96391 2002-11-23  Jim Meyering  <jim@meyering.net>
96392
96393         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96394         Use `unsigned', not `int', as type of index.
96395
96396         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96397
96398         * lib/fsusage.c: Remove unneeded parentheses around operands of
96399         `defined'.
96400
96401 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96402
96403         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96404         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96405         so that we can be included first.
96406         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96407         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96408         No need to include stddef.h or sys/types.h any more.
96409         Surround local include files with "", not "<>".
96410         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96411         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96412         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96413         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96414         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96415         (ISPRINT): Remove; no longer needed now that we assume C89.
96416
96417         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96418         Preserve errno.
96419
96420         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96421         quotearg_char): Use SIZE_MAX rather than
96422         (size_t) -1 when we are talking about "infinity".
96423
96424         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96425
96426 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96427
96428         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96429         hint that one should use `if (! x) abort ();' rather than `assert
96430         (x);', and anyway it's one less thing to worry about configuring.
96431         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96432         hash_rehash, hash_insert): Use abort rather than assert.
96433
96434 2002-11-22  Bruno Haible  <bruno@clisp.org>
96435
96436         * lib/safe-read.h: Assume C89. Add comments.
96437         (safe_read): Change return type to size_t.
96438         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96439         byte counts > SSIZE_MAX correctly.
96440         * lib/safe-write.h: New file.
96441         * lib/safe-write.c: New file.
96442         * lib/full-read.h: New file.
96443         * lib/full-read.c: New file.
96444         * lib/full-write.h: Assume C89. Add comments.
96445         * lib/full-write.c: Include safe-write.h.
96446         (full_write): Rewritten to use safe_write.
96447         Suggested by Jim Meyering and Paul Eggert.
96448
96449 2002-11-21  Jim Meyering  <jim@meyering.net>
96450
96451         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96452
96453         Merge in changes from the coreutils.
96454
96455         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96456         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96457         <stdint.h>.
96458         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96459         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96460         int.  Work more efficiently if X is the same width as uintmax_t.
96461         Do not compare X to -1, to avoid bogus compiler warning.
96462         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96463         Don't assume that f_frsize and f_bsize are the same type.
96464
96465         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96466         warning on FreeBSD.
96467
96468         * lib/makepath.c (make_path): Restore umask *before* creating the final
96469         component.
96470         (make_path): Minor reformatting.
96471
96472         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96473         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96474         HAVE_MALLOC/HAVE_REALLOC.
96475
96476         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96477         dummy ones.  At least on GNU/Linux systems, `auto' means something
96478         else.
96479         From Michael Stone.
96480
96481 2002-11-21  Bruno Haible  <bruno@clisp.org>
96482
96483         Remove case insensitive option matching.
96484         * lib/argmatch.h (argcasematch): Remove declaration.
96485         (ARGCASEMATCH): Remove macro.
96486         (__xargmatch_internal): Remove case_sensitive argument.
96487         (XARGMATCH): Update.
96488         (XARGCASEMATCH): Remove macro.
96489         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96490         case_sensitive argument.
96491         (argcasematch): Remove function.
96492         (__xargmatch_internal): Remove case_sensitive argument.
96493         (main): Use XARGMATCH instead of XARGCASEMATCH.
96494
96495         * lib/xmalloc.c: Change compile-time error message. Add comment about
96496         required autoconf version.
96497
96498 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96499
96500         Merge argmatch cleanups from Bison.  Assume C89.
96501
96502         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96503         Include stdlib.h, for EXIT_FAILURE.
96504         Always include <string.h>, since we assume C89.
96505         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96506         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96507         Include <stddef.h> instead, since it's all we need for size_t.
96508         (PARAMS): Remove.  All uses removed.
96509         (ARRAY_CARDINALITY): Do not bother to #undef.
96510         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96511         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96512         Remove unnecessary parentheses.
96513         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96514         Insert necessary parentheses.
96515         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96516         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96517
96518 2002-11-19  Bruno Haible  <bruno@clisp.org>
96519
96520         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96521         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96522
96523         * lib/mbswidth.h (PARAMS): Remove macro.
96524         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96525         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96526
96527         * lib/gcd.h (PARAMS): Remove macro.
96528         (gcd): Use ANSI C function declarations.
96529         * lib/gcd.c (gcd): Likewise.
96530
96531 2002-11-15  Bruno Haible  <bruno@clisp.org>
96532
96533         * lib/strcspn.c: Include <stddef.h>.
96534         (strcspn): Use ANSI C function declaration. Change return type to
96535         size_t. Use NULL.
96536         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96537         (strpbrk): Use NULL.
96538         * lib/strpbrk.h (PARAMS): Remove macro.
96539         (strpbrk): Use ANSI C function declaration.
96540         * lib/strstr.c: Don't include <sys/types.h>.
96541         * lib/strstr.h (PARAMS): Remove macro.
96542         (strstr): Use ANSI C function declarations.
96543
96544 2002-11-14  Karl Berry  <karl@gnu.org>
96545
96546         * config/mkinstalldirs: `do' on separate line, instead of
96547         `for var; do'.
96548
96549 2002-11-06  Bruno Haible  <bruno@clisp.org>
96550
96551         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96552         * lib/gcd.c (gcd): Likewise.
96553
96554 2002-11-05  Bruno Haible  <bruno@clisp.org>
96555
96556         * lib/gcd.h: New file, from gettext-0.11.5.
96557         * lib/gcd.c: New file, from gettext-0.11.5.
96558
96559 2002-11-05  Bruno Haible  <bruno@clisp.org>
96560
96561         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96562         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96563         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96564         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96565
96566         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96567         <libintl.h>.
96568         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96569         <libintl.h>.
96570
96571         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96572         * lib/human.c: Include gettext.h instead of <libintl.h>.
96573         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96574         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96575         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96576         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96577         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96578         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96579         (textdomain): Remove definition.
96580         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96581
96582         * lib/long-options.c: Remove include of <libintl.h> and definition of
96583         _.
96584         * lib/same.c: Remove include of <libintl.h> and definition of _.
96585
96586 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96587
96588         * lib/config.charset: A few additions for Solaris.
96589
96590 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96591
96592         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96593         * lib/localcharset.c (locale_charset): Declare as extern "C".
96594
96595 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96596
96597         * lib/config.charset: msdos in uk_UA uses CP1125.
96598
96599 2002-11-04  Bruno Haible  <bruno@clisp.org>
96600
96601         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96602         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96603         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96604         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96605         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96606
96607 2002-11-04  Bruno Haible  <bruno@clisp.org>
96608
96609         * lib/localcharset.c (locale_charset): Don't return an empty string.
96610
96611 2002-11-04  Bruno Haible  <bruno@clisp.org>
96612
96613         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96614         aliases.
96615
96616 2002-11-04  Bruno Haible  <bruno@clisp.org>
96617
96618         * lib/config.charset: Update for newest glibc. Add canonical names
96619         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96620
96621 2002-11-04  Bruno Haible  <bruno@clisp.org>
96622
96623         * lib/config.charset: Add support for NetBSD.
96624
96625 2002-11-04  Bruno Haible  <bruno@clisp.org>
96626
96627         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96628
96629 2002-11-01  Bruno Haible  <bruno@clisp.org>
96630
96631         * configure.in: Add AC_CONFIG_AUX_DIR call.
96632         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96633         test/Makefile.
96634         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96635
96636 2002-09-28  Karl Berry  <karl@gnu.org>
96637
96638         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96639         installed automake until the next release, since changes have been
96640         made.
96641
96642 2002-09-25  Karl Berry  <karl@gnu.org>
96643
96644         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96645         * lib/getopt*: copy from libc/posix.
96646         * lib/gettext.h: copy from gettext.
96647         * lib/.cppi-disable: add strdup.c, gettext.h.
96648
96649 2002-09-25  Karl Berry  <karl@gnu.org>
96650
96651         * config/srclist.txt: enable gettext.h check.
96652         * config/config.{guess,sub}: update from prep.
96653         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96654                 from automake 1.6.3.
96655         See srclist*.
96656
96657 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96658
96659         * regex.c (PATFETCH): Remove the translating fetch.
96660         (PATFETCH_RAW): Rename to PATFETCH.
96661         (set_image_of_range): New fun.
96662         (SET_RANGE_TABLE_WORK_AREA): Use it.
96663         (regex_compile): Don't translate the pattern chars so eagerly.
96664         Only do it when inserting an `exactn' bytecode or when handling
96665         a char-range.
96666         (mutually_exclusive_p): Avoid empty statement.
96667
96668 2002-07-06  Jim Meyering  <meyering@lucent.com>
96669
96670         * m4/README: Don't mention Makefile.am.in.
96671         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96672
96673 2002-07-01  Jim Meyering  <meyering@lucent.com>
96674
96675         * lib/c-stack.c: Include sys/time.h.
96676         From Volker Borchert.
96677
96678 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96679
96680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96681
96682 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96683
96684         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96685         New macro.  Use it uniformly instead of
96686         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96687         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96688         reported by Vin Shelton.
96689
96690 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96691
96692         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96693         Do not assume SA_SIGINFO behavior.
96694         Bug reported by Jim Meyering on NetBSD 1.5.2.
96695
96696 2002-06-22  Jim Meyering  <meyering@lucent.com>
96697
96698         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96700
96701         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96702         now that configure.ac uses AC_GNU_SOURCE.
96703         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96704         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96705
96706         Update to latest tools.  Suggestions from Paul Eggert.
96707         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96708         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96709         * m4/fnmatch.m4: Likewise.
96710         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96711         to AC_HEADER_STDBOOL
96712
96713 2002-06-22  Jim Meyering  <meyering@lucent.com>
96714
96715         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96716         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96717
96718 2002-06-22  Jim Meyering  <meyering@lucent.com>
96719
96720         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96721
96722         * lib/exitfail.c, exitfail.h: Likewise.
96723         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96724
96725         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96726         of fnmatch.h.
96727         (EXTRA_DIST): Add fnmatch_loop.c.
96728         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96729
96730         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96731         * lib/fnmatch.c: Update from diffutils-2.8.2.
96732         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96733         * lib/fnmatch.h: Remove file.
96734
96735 2002-06-21  Jim Meyering  <meyering@lucent.com>
96736
96737         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96738         * m4/mbrtowc.m4: Likewise.
96739
96740         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96741         * m4/mbswidth.m4: Reflect name change:
96742         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96743         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96744
96745         * m4/lib-link.m4: Update from gettext-0.11.2.
96746         * m4/gettext.m4: Likewise.
96747
96748         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96749         From Alfred M. Szmidt.
96750
96751 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96752
96753         * lib/file-type.h: Report an error if neither S_ISREG nor
96754         S_IFREG is defined, instead of using a test specific to glibc
96755         2.2.  This should be safe, since POSIX requires S_ISREG and
96756         Unix Version 7 had S_IFREG.  We don't need to check for
96757         <sys/types.h> since we don't use any symbols that it defines.
96758
96759 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96760
96761         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96762         $@-t, so that each temporary file name is unique and valid in the first
96763         8 characters, for operation under DOS.
96764
96765 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96766
96767         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96768
96769 2002-06-15  Jim Meyering  <meyering@lucent.com>
96770
96771         Work even with DJGPP 2.03, which lacks support for symlinks.
96772         From Richard Dawe.
96773         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96774         is defined.
96775         * lib/lchown.c (S_ISLNK): Likewise.
96776
96777 2002-06-15  Jim Meyering  <meyering@lucent.com>
96778
96779         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96780         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96781         have been included before this file.
96782
96783 2002-06-14  Jim Meyering  <meyering@lucent.com>
96784
96785         * lib/file-type.h: Use the version from diffutils-2.8.2.
96786         * lib/file-type.c: Likewise.
96787
96788 2002-06-07  Jim Meyering  <meyering@lucent.com>
96789
96790         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96791         They're needed at least for NetBSD 1.5.2.
96792         ($statxfs_includes): Include those same headers.
96793         ($statxfs_includes): Include sys/vfs.h if available.
96794         ($statxfs_includes): Likewise for sys/statvfs.h.
96795         Check for the following members in both structs statfs and statvfs:
96796         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96797
96798 2002-06-01  Jim Meyering  <meyering@lucent.com>
96799
96800         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96801         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96802
96803 2002-05-28  Jim Meyering  <meyering@lucent.com>
96804
96805         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96806         Reported by Volker Borchert.
96807
96808 2002-05-27  Jim Meyering  <meyering@lucent.com>
96809
96810         Fix a problem seen only on nonconforming systems whereby ls.c's
96811         use of localtime, and then of gettimeofday would cause trouble:
96812         the localtime call used to initialize rpl_gettimeofday's save
96813         mechanism would clobber ls's current local time information so
96814         that in any long listing the first file would always be listed
96815         with date 1970-01-01.  Analysis by Volker Borchert.
96816
96817         * lib/gettimeofday.c (localtime): Undefine.
96818         (rpl_localtime): New function.
96819
96820 2002-05-27  Jim Meyering  <meyering@lucent.com>
96821
96822         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96823         localtime.
96824
96825         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96826         use the replacement function; it wouldn't resolve at link time.
96827         Reported by Volker Borchert.
96828
96829 2002-05-22  Jim Meyering  <meyering@lucent.com>
96830
96831         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96832         file-type.h.
96833         * lib/file-type.h: New file.
96834         * lib/file-type.c (file_type): New file/function.  Extracted from
96835         diffutils.
96836
96837 2002-04-30  Jim Meyering  <meyering@lucent.com>
96838
96839         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96840
96841 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96842
96843         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96844
96845 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96846
96847         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96848         Do not check for alloca.h (no longer used) or stdbool.h (was never
96849         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96850
96851 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96852
96853         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96854
96855 2002-04-29  Jim Meyering  <meyering@lucent.com>
96856
96857         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96858         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96859         Use AC_FUNC_STRNLEN here instead.
96860
96861         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96862         With autoconf-2.53a, it's part of AC_PROG_CC.
96863
96864 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96865
96866         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96867         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96868
96869 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96870
96871         * lib/sig2str.h, lib/sig2str.c: New files.
96872         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96873
96874 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96875
96876         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96877         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96878         of 127, since 64 is the largest conceivable number for ancient
96879         nonstandard hosts.
96880         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96881
96882 2002-04-28  Jim Meyering  <meyering@lucent.com>
96883
96884         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96885
96886 2002-04-24  Jim Meyering  <meyering@lucent.com>
96887
96888         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96889         (jm_PREREQ): Use it.
96890
96891         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96892         mach/mach.h fcntl.h.
96893         Check for this function: setlocale.
96894
96895 2002-04-24  Jim Meyering  <meyering@lucent.com>
96896
96897         * lib/gettext.h: New file, from Gettext.
96898         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96899         (libfetish_a_SOURCES): Add gettext.h.
96900
96901 2002-04-16  Jim Meyering  <meyering@lucent.com>
96902
96903         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96904         ut_pid, ut_id, ut_exit.
96905
96906 2002-04-16  Jim Meyering  <meyering@lucent.com>
96907
96908         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96909         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96910         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96911
96912 2002-04-12  Jim Meyering  <meyering@lucent.com>
96913
96914         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96915         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96916         existence of the getmntinfo function.  Needed for Darwin 5.3.
96917
96918         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96919         This is necessary at least on Darwin 5.3.
96920
96921         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96922         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96923         strnlen.o in the library, and that makes some versions of ranlib
96924         object.
96925
96926 2002-04-12  Jim Meyering  <meyering@lucent.com>
96927
96928         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96929
96930 2002-04-09  Jim Meyering  <meyering@lucent.com>
96931
96932         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96933         to be more precise.  Rather than saying we're checking whether the
96934         function `works', say what we're testing.
96935         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96936         Reported by Bruno Haible.
96937
96938 2002-03-10  Jim Meyering  <meyering@lucent.com>
96939
96940         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96941         Suggestion from Santiago Vila.
96942
96943 2002-03-08  Jim Meyering  <meyering@lucent.com>
96944
96945         * lib/rename.c: Mention that this wrapper is needed also on
96946         mips-dec-ultrix4.4 systems.
96947
96948 2002-03-02  Jim Meyering  <meyering@lucent.com>
96949
96950         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96951         not HAVE_CLOCK_SETTIME.
96952
96953 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96954
96955         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96956         Check for clock_settime.
96957
96958 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96959
96960         * lib/nanosleep.h: Rename to....
96961         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96962
96963         * lib/gettime.c: New file.
96964         * lib/settime.c: New file.
96965         * lib/stime.c: Remove.
96966
96967         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96968         timespec.h.  Remove nanosleep.h.
96969
96970 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96971
96972         * m4/acl.m4: New file.
96973         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96974         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96975
96976 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96977
96978         * lib/acl.c, lib/acl.h: New files.
96979         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96980
96981 2002-02-24  Jim Meyering  <meyering@lucent.com>
96982
96983         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96984         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96985         cause trouble.  Reported by Nelson Beebe.
96986
96987 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96988
96989         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96990         compilers that don't know that xalloc_die never returns.
96991
96992 2002-02-20  Jim Meyering  <meyering@lucent.com>
96993
96994         * lib/getdate.c: Regenerate using bison-1.33.
96995
96996 2002-02-17  Jim Meyering  <meyering@lucent.com>
96997
96998         * config/config.guess (main): Don't use `head -1'; it's no longer
96999         portable. Use `sed 1q' instead.
97000
97001 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
97002
97003         * m4/codeset.m4: Upgrade to gettext-0.11.
97004         * m4/gettext.m4: Upgrade to gettext-0.11.
97005         * m4/glibc21.m4: Upgrade to gettext-0.11.
97006         * m4/iconv.m4: Upgrade to gettext-0.11.
97007         * m4/isc-posix.m4: Upgrade to gettext-0.11.
97008         * m4/lcmessage.m4: Upgrade to gettext-0.11.
97009         * m4/lib-ld.m4: New file, from gettext-0.11.
97010         * m4/lib-link.m4: New file, from gettext-0.11.
97011         * m4/lib-prefix.m4: New file, from gettext-0.11.
97012         * m4/progtest.m4: Upgrade to gettext-0.11.
97013
97014 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97015
97016         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
97017         (jm_PREREQ): Use it.
97018
97019 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97020
97021         * lib/posixver.c, lib/posixver.h: New files.
97022         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97023
97024 2002-02-02  Paul Eggert  <eggert@twinsun.com>
97025             Bruno Haible  <bruno@clisp.org>
97026
97027         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
97028         (fwrite_success_callback): New declaration.
97029         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
97030         print_unicode_char. Call failure callback instead of error.
97031         (fwrite_success_callback): New function.
97032         (exit_failure_callback): New function.
97033         (fallback_failure_callback): New function.
97034         (print_unicode_char): Call unicode_to_mb.
97035
97036 2002-01-26  Jim Meyering  <meyering@lucent.com>
97037
97038         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
97039         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
97040
97041 2002-01-26  Jim Meyering  <meyering@lucent.com>
97042
97043         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
97044
97045 2002-01-22  Paul Eggert  <eggert@twinsun.com>
97046
97047         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
97048
97049 2002-01-22  Jim Meyering  <meyering@lucent.com>
97050
97051         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
97052         Otherwise, some versions of automake would omit the rule that makes
97053         Makefile from Makefile.in.
97054
97055 2002-01-21  Paul Eggert  <eggert@twinsun.com>
97056
97057         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
97058         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97059         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
97060         (memcoll): Set errno to zero if there is no error.
97061
97062         * lib/quotearg.c (quotearg_buffer_restyled):
97063         Fix bug with quoting buffers containing NUL when backslashing escapes.
97064         This bug was exposed by the other changes in this patch.
97065         (quotearg_n_options): New arg ARGSIZE.
97066         All callers changed.
97067         (quoting_options_from_style): New function.
97068         (quotearg_n_style): Use it.
97069         (quotearg_n_style_mem): New function.
97070
97071         * lib/quotearg.h (quotearg_n_style_mem): New function.
97072
97073 2002-01-19  Jim Meyering  <meyering@lucent.com>
97074
97075         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97076         Remove useless quotes: DF_PROG="df".
97077         * m4/strnlen.m4: New file.
97078
97079 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97080
97081         * lib/backupfile.c (ISDIGIT): Comment fix.
97082         * lib/getdate.y (ISDIGIT): Likewise.
97083         * lib/posixtm.c (ISDIGIT, year): Likewise.
97084         * lib/strverscmp.c (ISDIGIT): Likewise.
97085         * lib/userspec.c (ISDIGIT): Likewise.
97086
97087 2002-01-16  Jim Meyering  <meyering@lucent.com>
97088
97089         * lib/getdate.y: Add three semicolons, each just before a closing
97090         brace. Bison (as of version 1.31) no longer papers over that mistake.
97091
97092 2002-01-05  Jim Meyering  <meyering@lucent.com>
97093
97094         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97095
97096 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97097
97098         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97099         not silently exit merely because the output buffer happens to
97100         have nothing pending.
97101
97102 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97103
97104         See the big note in ../ChangeLog.
97105         * lib/human.c (suffixes): Prefer K to k for 1024.
97106         (generate_suffix_backwards): New function.
97107         (human_readable_inexact): Use it.
97108         * lib/xstrtol.c (__xstrtol): If there is no number but there
97109         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97110         Accept 'K' as well as 'k'.
97111
97112 2001-12-15  Jim Meyering  <meyering@lucent.com>
97113
97114         * lib/regex.h (__restrict_arr): Update from libc.
97115
97116         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97117         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97118         (STREQ): Define.
97119
97120 2001-12-14  Jim Meyering  <meyering@lucent.com>
97121
97122         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97123         Suggestion from Bruno Haible.
97124
97125 2001-12-10  Jim Meyering  <meyering@lucent.com>
97126
97127         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97128         xrealloc, Instead, include "xalloc.h".
97129         (initbuffer): Don't cast xmalloc return value to char*.
97130         (readline): Reword comment.
97131         Don't cast xrealloc return value to char*
97132         Return NULL, not 0.
97133
97134 2001-12-09  Jim Meyering  <meyering@lucent.com>
97135
97136         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97137         about `signed and unsigned type in conditional expression'.
97138         * lib/posixtm.c (posix_time_parse): Likewise.
97139
97140         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97141
97142         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97143         to avoid a pedantic warning.
97144
97145         * lib/getstr.c: Don't include assert.h.
97146         (getstr): Remove warning-evoking assertions.
97147         Return -1 if offset parameter is out of bounds.
97148         Change the type of a local from int to size_t.
97149
97150         * lib/strftime.c (my_strftime_localtime_r): Include this function
97151         definition in the `#if ! HAVE_TM_GMTOFF' block.
97152
97153         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97154         Include xalloc.h instead.
97155
97156 2001-12-02  Jim Meyering  <meyering@lucent.com>
97157
97158         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97159         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97160         included.
97161
97162         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97163         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97164
97165 2001-11-30  Akim Demaille  <akim@epita.fr>
97166
97167         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97168         before being defined.
97169
97170 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97171
97172         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97173         First arg is int, not unsigned.
97174         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97175         (SIZE_MAX, UINT_MAX): New macros.
97176         (quotearg_n_options): Abort if N is negative.
97177         Avoid overflow check on hosts where size_t is 64 bits and int
97178         is 32 bits, as overflow is impossible there.
97179         Fix off-by-one typo that caused unnecessary reallocation.
97180
97181 2001-11-27  Jim Meyering  <meyering@lucent.com>
97182
97183         * lib/tempname.c: Merge with version from libc.
97184         * lib/regex.c: Likewise.
97185
97186         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97187         systems for which STDC_HEADERS is 0, it was not included, resulting in
97188         a warning about an integer-to-pointer conversion problem with getenv.
97189         Reported by Volker Borchert.
97190
97191 2001-11-26  Jim Meyering  <meyering@lucent.com>
97192
97193         * lib/gtod.h: Remove file.
97194         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97195         * lib/gettimeofday.c: Don't include gtod.h.
97196         (GTOD_init): Remove function.
97197         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97198         Suggestion from Volker Borchert.
97199
97200 2001-11-23  Jim Meyering  <meyering@lucent.com>
97201
97202         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97203         it.
97204         * lib/hash.c (struct hash_table): Define it here instead.
97205
97206 2001-11-22  Jim Meyering  <meyering@lucent.com>
97207
97208         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97209
97210 2001-11-20  Jim Meyering  <meyering@lucent.com>
97211
97212         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97213         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97214
97215 2001-11-19  Jim Meyering  <meyering@lucent.com>
97216
97217         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97218         directory.  Use "conftestXXXXXX" as the template.
97219         Suggestion from Paul Eggert.
97220
97221         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97222         immediately, so the test doesn't mistakenly hit the max-open-files
97223         limit.
97224
97225 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97226
97227         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97228         (TEMPORARIES): New macro.
97229         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97230         removes an artificial limitation (e.g. HP-UX 10.20, where
97231         TMP_MAX is 17576).
97232
97233 2001-11-18  Jim Meyering  <meyering@lucent.com>
97234
97235         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97236
97237 2001-11-18  Jim Meyering  <meyering@lucent.com>
97238
97239         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97240         on SunOS 4.
97241
97242         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97243         files will be created before anything else.
97244
97245 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97246
97247         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97248         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97249
97250 2001-11-17  Jim Meyering  <meyering@lucent.com>
97251
97252         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97253         Prompted by a report from Bob Proulx.
97254
97255         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97256         Instead, require UTILS_FUNC_MKSTEMP.
97257
97258 2001-11-17  Jim Meyering  <meyering@lucent.com>
97259
97260         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97261         Now, that's done as part of AC_FUNC_STRTOD.
97262
97263 2001-11-17  Jim Meyering  <meyering@lucent.com>
97264
97265         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97266         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97267         rather than group writable.  Patch by Juan F. Codagnone.
97268
97269         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97270         xrealloc, Instead, include "xalloc.h".
97271
97272         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97273         Remove explicit declarations of xmalloc, xrealloc,
97274         and xstrdup.  Instead, include "xalloc.h".
97275
97276         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97277         unlocked-io.h.
97278         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97279         Likewise.
97280         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97281
97282         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97283         Reported by Padraig Brady.
97284
97285         * lib/mkstemp.c: #undef mkstemp.
97286         Include config.h.
97287         (rpl_mkstemp): Rename from mkstemp.
97288         Protoize.
97289
97290 2001-11-16  Jim Meyering  <meyering@lucent.com>
97291
97292         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97293         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97294         determine the amount of total physical memory, use pstat_getstatic.
97295         HPUX-11 doesn't define _SC_PHYS_PAGES.
97296         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97297         If sysconf couldn't be used to determine the amount of available
97298         physical memory, use both pstat_getstatic and pstat_getdynamic.
97299         Based on a patch from Bob Proulx.
97300
97301 2001-11-10  Jim Meyering  <meyering@lucent.com>
97302
97303         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97304         (jm_PREREQ): Use it.
97305
97306 2001-11-09  Jim Meyering  <meyering@lucent.com>
97307
97308         * m4/jm-macros.m4: Require autoconf-2.52f.
97309         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97310         Use these AC_-prefixed names, not the AM_-prefixed ones.
97311
97312         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97313
97314 2001-11-05  Jim Meyering  <meyering@lucent.com>
97315
97316         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97317
97318 2001-11-04  Jim Meyering  <meyering@lucent.com>
97319
97320         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97321         $DEFS.
97322
97323 2001-11-03  Jim Meyering  <meyering@lucent.com>
97324
97325         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97326         of AC_DEFUN.
97327
97328         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97329         know the name of the variable in the macro definition.
97330
97331 2001-11-03  Jim Meyering  <meyering@lucent.com>
97332
97333         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97334         in argmatch_to_argument call.
97335
97336         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97337         argument.
97338
97339         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97340         e.g., a fault due to an attempt to free a NULL pointer.
97341
97342 2001-11-01  Jim Meyering  <meyering@lucent.com>
97343
97344         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97345         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97346
97347 2001-11-01  Jim Meyering  <meyering@lucent.com>
97348
97349         * lib/dirfd.c, lib/dirfd.h: New files.
97350         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97351
97352         * lib/hash.c (hash_print) [TESTING]: Clean up.
97353
97354 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97355
97356         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97357         to avoid a warning if -Wall.
97358
97359 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97360
97361         * README: New file
97362         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97363         (per RMS's instructions, this is now the canonical source)
97364         * lgpl/, gpl/: New directories.
97365
97366 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97367
97368         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97369
97370 2001-10-21  Jim Meyering  <meyering@lucent.com>
97371
97372         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97373         this code would end up calling gettext even in packages built
97374         with --disable-nls.
97375         * lib/getopt.c (_): Likewise.
97376         * lib/regex.c (_): Likewise.
97377
97378 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97379
97380         * m4/error.m4 (jm_PREREQ_ERROR):
97381         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97382         AC_FUNC_STRERROR_R does that.
97383         Check for strerror declaration.
97384
97385         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97386         are supposed to have them these days.
97387         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97388         Merge changes from latest Autoconf CVS.
97389         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97390         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97391         POSIX decided to standardize on the int flavor of strerror_r.
97392
97393 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97394
97395         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97396         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97397         Use strerror_r that is only a macro, even if it is not a function.
97398         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97399         (private_strerror): Use prototypes, not old-style function definition.
97400         (print_errno_message): New function.
97401         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97402         char*-flavored one.
97403         (error_tail, error, error_at_line): Use it.
97404
97405 2001-10-11  Jim Meyering  <meyering@lucent.com>
97406
97407         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97408         and quote_n (1, ... to avoid clobbering a buffer.
97409
97410 2001-10-05  Jim Meyering  <meyering@lucent.com>
97411
97412         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97413         hash-pjw.h.
97414         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97415         * lib/hash-pjw.h: New file.
97416
97417 2001-09-30  Jim Meyering  <meyering@lucent.com>
97418
97419         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97420         `struct fsstat' has the `f_fstypename' member.
97421         Use that to define FS_TYPE, which is now used to make
97422         the getfsstat link test tighter.
97423
97424 2001-09-30  Jim Meyering  <meyering@lucent.com>
97425
97426         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97427         Include <sys/ucred.h>, for Apple Darwin.
97428         Include sys/mount.h and sys/fs_types.h only if available.
97429         (FS_TYPE): Define.
97430         (read_filesystem_list): Use FS_TYPE.
97431
97432 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97433
97434         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97435         a boolean context.
97436
97437 2001-09-29  Jim Meyering  <meyering@lucent.com>
97438
97439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97440         [one-argument getmntent function]): Include stdio.h before mntent.h.
97441         SunOS 4.1.x needs it for the declaration of `FILE'.
97442         Patch by Volker Borchert.
97443
97444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97445         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97446         sys/fs_types.h, and make the link-test for getfsstat guard #include
97447         directives with appropriate #if HAVE_*_H tests so that we can
97448         detect getfsstat on Apple Darwin1.3.7 systems.
97449         Reported by Nelson Beebe.
97450         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97451
97452 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97453
97454         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97455         #defines strtoimax.  Also treat the other strto* functions
97456         like strtoimax.
97457
97458         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97459         Check for strtoul and strtoumax,
97460         as those declarations are made even in the signed case.
97461         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97462         Likewise, for strtol and strtoimax.
97463
97464 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97465
97466         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97467         #defines strtoimax.  Also treat the other strto* functions
97468         like strtoimax.
97469
97470         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97471         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97472         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97473
97474 2001-09-26  Jim Meyering  <meyering@lucent.com>
97475
97476         Most macros in unlocked-io.h had the wrong number of arguments.
97477         * lib/gen-uio: New script.
97478         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97479         * lib/unlocked-io.hin: Remove file.
97480         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97481         rather than trying to embed it here.
97482         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97483         Reported by Padraig Brady.
97484
97485 2001-09-25  Volker Borchert  <bt@teknon.de>
97486
97487         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97488         `result'.
97489
97490 2001-09-24  Jim Meyering  <meyering@lucent.com>
97491
97492         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97493
97494 2001-09-23  Jim Meyering  <meyering@lucent.com>
97495
97496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97497         instead of the mere test for existence of mntent.h.  The latter
97498         would get a false-positive on AIX 3.4 systems.
97499         In the outer getmntent if-block, don't die if neither of the getmntent
97500         tests succeeds.  Instead, just fall through and continue with the
97501         remaining tests.
97502
97503 2001-09-23  Jim Meyering  <meyering@lucent.com>
97504
97505         * lib/mountlist.c: Remove useless parentheses in #if directives.
97506         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97507         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97508
97509 2001-09-22  Jim Meyering  <meyering@lucent.com>
97510
97511         * m4/gettext.m4: New file.  From gettext.
97512         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97513         * m4/progtest.m4: Likewise
97514         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97515         * m4/glibc21.m4: Likewise.
97516
97517         * m4/libintl.m4: Remove.  No longer used.
97518
97519 2001-09-22  Jim Meyering  <meyering@lucent.com>
97520
97521         * lib/localcharset.c: Update from latest gettext.
97522         * lib/config.charset: Likewise.
97523
97524 2001-09-20  Jim Meyering  <meyering@lucent.com>
97525
97526         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97527         strtoimax.
97528         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97529         strtoumax.
97530
97531 2001-09-20  Jim Meyering  <meyering@lucent.com>
97532
97533         * lib/xstrtol.c (strtoimax): Guard declaration with
97534         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97535         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97536         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97537         (strtoumax): Likewise, for completeness (it wasn't necessary).
97538
97539 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97540
97541         * lib/strtoimax.c (HAVE_LONG_LONG):
97542         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97543         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97544         to work around bug in IBM C compiler.
97545
97546 2001-09-17  Jim Meyering  <meyering@lucent.com>
97547
97548         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97549         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97550         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97551         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97552         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97553         whenever the right hand side need not be expanded by the shell.
97554
97555 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97556
97557         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97558         library.  It's not correct, as some older glibcs are buggy.
97559         fnmatch wasn't fixed until glibc 2.2.
97560
97561         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97562         special shell magic here.
97563
97564 2001-09-16  Jim Meyering  <meyering@lucent.com>
97565
97566         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97567         * m4/jm-macros.m4: Require it.
97568
97569 2001-09-16  Jim Meyering  <meyering@lucent.com>
97570
97571         * lib/mkdir.c: New file.
97572
97573 2001-09-15  Jim Meyering  <meyering@lucent.com>
97574
97575         * m4/jm-macros.m4: Check for help2man.
97576
97577 2001-09-11  Jim Meyering  <meyering@lucent.com>
97578
97579         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97580         The body, by Paul Eggert, was moved here from configure.in.
97581         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97582
97583 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97584
97585         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97586         (jm_PREREQ): Use it.
97587
97588 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97589
97590         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97591         Use ssize_t, not int, to store result of readlink.
97592         Check for ssize_t overflow as well as size_t overflow,
97593         as POSIX says the result of readlink is implementation-defined
97594         when ssize_t overflows.
97595         Remove unnecessary cast to char*.
97596         Use free+malloc instead of realloc, as the storage doesn't need
97597         to be preserved and it's clearer and can be more efficient that way.
97598         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97599         * lib/xreadlink.h (xreadlink): Update prototype.
97600
97601 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97602
97603         * lib/xgetcwd.c: Revert some of the previous change; intead,
97604         fix the HAVE_GETCWD_NULL code to behave more like the
97605         !HAVE_GETCWD_NULL code used to.
97606
97607         Include "xalloc.h".
97608         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97609         invoke xalloc_die.
97610
97611 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97612
97613         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97614         sys/param.h, as pathmax.h includes them.
97615
97616 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97617
97618         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97619         (jm_PREREQ_XGETCWD): New macro.
97620
97621         * m4/getcwd.m4: New file.
97622
97623 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97624
97625         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97626         like the HAVE_GETCWD_NULL code.
97627         Include pathmax.h if not HAVE_GETCWD.
97628         Do not include xalloc.h.
97629         (INITIAL_BUFFER_SIZE): New symbol.
97630         Do not use xmalloc / xrealloc, since the caller is responsible for
97631         handling errors.  Preserve errno around `free' during failure.
97632         Do not overrun buffer when using getwd.
97633
97634 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97635
97636         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97637         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97638         getcwd (NULL, 0).
97639
97640 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97641
97642         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97643         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97644         spotted by Jim Meyering.
97645
97646 2001-09-03  Jim Meyering  <meyering@lucent.com>
97647
97648         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97649         failure.
97650
97651 2001-09-02  Jim Meyering  <meyering@lucent.com>
97652
97653         * lib/error.c: Update from GNU libc.
97654
97655 2001-09-01  Jim Meyering  <meyering@lucent.com>
97656
97657         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97658         Used by df.
97659
97660 2001-09-01  Jim Meyering  <meyering@lucent.com>
97661
97662         * lib/xreadlink.c: New file.
97663         * lib/xreadlink.h: New file.
97664         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97665         xreadlink.h.
97666
97667         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97668         doesn't conflict with sparc Solaris 7's definition in
97669         /usr/include/sys/int_types.h.
97670
97671         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97672         files.
97673         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97674         and strncasecmp as r-values.  Unixware didn't have declarations.
97675
97676 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97677
97678         * lib/xstrtol.h: Add copyright notice.
97679         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97680         LONGINT_INVALID_SUFFIX_CHAR.
97681
97682 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97683
97684         * lib/xstrtol.c (strtoimax): New decl.
97685
97686 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97687
97688         * lib/xgetcwd.c: Don't include pathmax.h.
97689         Include stdlib.h and unistd.h if available.
97690         Include xalloc.h.
97691         (xmalloc, xstrdup, free): Remove decls.
97692         (xgetcwd): Don't assume sizes fit in unsigned.
97693         Check for overflow when computing sizes.
97694         Simplify reallocation code.
97695
97696 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97697
97698         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97699         a directory's st_size can have an arbitrary value, so the old
97700         usage could waste an arbitrary amount of memory.  All uses
97701         changed.
97702         * lib/savedir.h: Update prototype.
97703
97704 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97705
97706         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97707
97708         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97709         old strtoimax.c.
97710
97711         Also, make the following further changes to make this file's
97712         configuration more similar to that of strtol.c:
97713         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97714         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97715         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97716         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97717         changed to signed values.
97718
97719         And make the following changes as well:
97720         Fix copyright notice, as 1999 was missing.
97721         (verify): New macro.
97722         (strtoimax): Check sizes at compile-time, not run-time.
97723         Prefer strtol to strtoll if both work.
97724         (main): Remove; it was not that useful and was a pain to maintain.
97725
97726         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97727
97728 2001-08-31  Jim Meyering  <meyering@lucent.com>
97729
97730         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97731         Use an initial, malloc'd, buffer of length 128 rather than
97732         a statically allocated one of length 1024.
97733
97734 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97735
97736         Simplify code, partly by assuming autoconf 2.52 semantics.
97737
97738         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97739
97740         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97741         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97742         All uses removed.
97743         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97744         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97745         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97746         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97747         jm_AC_HEADER_INTTYPES_H.
97748         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97749
97750         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97751
97752         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97753         Quote first arg of AC_DEFUN.
97754         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97755         since they are needed to parse the include file even if we need
97756         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97757         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97758         but with opposite signedness.
97759
97760 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97761
97762         Merge 'exclude' changes from tar 1.13.22.
97763         This fixes one or two unlikely storage allocation overflow bugs,
97764         but doesn't change user-visible behavior otherwise.
97765
97766 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97767
97768         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97769         (jm_PREREQ_EXCLUDE): New macro.
97770
97771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97772
97773         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97774         tm to be declared.
97775
97776 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97777
97778         * lib/hash.c: Remove '2001' from copyright notice.
97779
97780 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97781
97782         * lib/full-write.h: New file.
97783         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97784         * lib/full-write.c: Correct credits, as cccp.c no longer
97785         exists and anyway it was so heavily changed from the old cccp
97786         code as to be unrecognizable.  Include full-write.h.
97787         (full_write): Return size_t, with short writes meaning failure.
97788         All callers changed.  This fixes a bug with large buffers
97789         on 64-bit hosts.
97790         * lib/utime.c: Include full-write.h.
97791
97792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97793
97794         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97795         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97796         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97797         Include if available.
97798         (<xalloc.h>): Include
97799         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97800         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97801         collide with FNM macros.
97802         (struct patopts): New struct.
97803         (struct exclude): Use it, as exclude patterns now come with options.
97804         (new_exclude): Support above changes.
97805         (new_exclude, add_exclude_file):
97806         Initial size must now be a power of two to simplify overflow checking.
97807         (free_exclude, fnmatch_no_wildcards): New function.
97808         (excluded_filename): No longer requires options arg, as the options
97809         are determined by add_exclude.  Now returns bool, not int.
97810         (excluded_filename, add_exclude):
97811         Add support for the fancy new exclusion options.
97812         (add_exclude, add_exclude_file): Now takes int options arg.
97813         Check for arithmetic overflow when computing sizes.
97814         (add_exclude_file): xrealloc might modify errno, so don't
97815         realloc until after errno might be used.
97816
97817         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97818         New macros.
97819         (free_exclude): New decl.
97820         (add_exclude, add_exclude_file): Now takes int options arg.
97821         (excluded_filename): No longer requires options arg, as the options
97822         are determined by add_exclude.  Now returns bool, not int.
97823
97824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97825
97826         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97827
97828 2001-08-27  Jim Meyering  <meyering@lucent.com>
97829
97830         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97831
97832         * lib/version-etc.c (N_): Remove definition.
97833         Revert most of last change.
97834         Instead, simply don't mark the `Copyright...' string for translation.
97835         Based on advice from Paul Eggert.
97836
97837         * lib/strtoxmax.c: Tweak comment.
97838
97839 2001-08-26  Jim Meyering  <meyering@lucent.com>
97840
97841         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97842
97843         * m4/xstrtoimax.m4: New file.
97844         * m4/xstrtoumax.m4: Add comments explaining why we
97845         AC_REPLACE_FUNCS(strtol).
97846
97847 2001-08-26  Jim Meyering  <meyering@lucent.com>
97848
97849         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97850         of copyright with `%s' so translators don't get an untranslated
97851         message in 2002.
97852         (COPYRIGHT_YEAR): Define.
97853         (version_etc): Use fprintf rather than fputs.
97854         Suggestion from Ulrich Drepper.
97855
97856         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97857
97858         * lib/strtoll.c: New file, from GNU libc.
97859         * lib/xstrtoimax.c: New file.
97860
97861         * lib/xstrtol.h: Add xstrtoimax.
97862         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97863         * lib/strtoimax.c: New file.  Likewise, but first define
97864         STRTOUXMAX_SIGNED.
97865
97866         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97867         ...
97868         * lib/strtoxmax.c: ... then renamed to this.
97869
97870 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97871
97872         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97873         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97874         (jm_AC_TYPE_INTMAX_T): New macro.
97875         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97876
97877         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97878
97879         * m4/longlong.m4: Renamed from ulonglong.m4.
97880         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97881         * m4/uintmax_t.m4: Removed.
97882
97883 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97884
97885         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97886         Port to Solaris 8, where 'sed' requires a space after the 'r'
97887         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97888         Redirect output to $tmp just once.
97889
97890 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97891
97892         * lib/addext.c (<errno.h>): Include.
97893         (errno): Declare if not defined.
97894         (addext): Work correctly when pathconf returns -1 and leaves
97895         errno alone because there is no limit.  Also, work even if
97896         pathconf returns a value greater than SIZE_MAX.
97897
97898 2001-08-12  Jim Meyering  <meyering@lucent.com>
97899
97900         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97901         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97902         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97903         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97904         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97905         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97906         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97907         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97908         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97909         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97910         utime.m4, utimes.m4, xstrtoumax.m4:
97911         Quote the first argument in each use of AC_DEFUN.
97912
97913 2001-08-12  Jim Meyering  <meyering@lucent.com>
97914
97915         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97916         Simply `return getcwd (NULL, 0);'.
97917         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97918         Use 1300 as initial value for length, not PATH_MAX.
97919
97920         * lib/pathmax.h: Clean up cpp syntax.
97921
97922 2001-08-12  Jim Meyering  <meyering@lucent.com>
97923
97924         * lib/gettimeofday.c: New file.
97925         * lib/gtod.h: New file.
97926         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97927
97928 2001-08-05  Jim Meyering  <meyering@lucent.com>
97929
97930         * m4/jm-macros.m4: Require autoconf-2.52.
97931
97932 2001-08-04  Jim Meyering  <meyering@lucent.com>
97933
97934         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97935         stmt, to get in sync with glibc.
97936
97937 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97938
97939         The following changes are from gettext 0.10.39 as maintained by
97940         Bruno Haible.
97941
97942         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97943         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97944         with inverted sense.  All uses changed.
97945
97946         * lib/mbswidth.c: Don't include <limits.h>.
97947         Include <stdlib.h> and <string.h> unconditionally.
97948         (iswcntrl, mbsinit, ISCNTRL): New macros.
97949         (mbsnwidth): Use K&R style function declarations.
97950         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97951         can optimize it when MB_CUR_MAX == 1.
97952         The width of control characters is zero, not 1.
97953
97954 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97955
97956         The following changes are from gettext 0.10.39 as maintained by
97957         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97958
97959         * m4/codeset.m4: Upgrade to serial AM1.
97960         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97961         all uses changed.  Quote first arg of AC_DEFUN.
97962         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97963
97964         * m4/iconv.m4: Upgrade to serial AM2.
97965         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97966         Add --with-libconv-prefix.
97967         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97968         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97969         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97970         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97971         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97972
97973         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97974         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97975         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97976         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97977         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97978         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97979         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97980         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97981         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97982
97983         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97984         string.h any more.
97985
97986         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97987         not the default value.
97988
97989         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97990         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97991         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97992         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97993         Also check for iswcntrl, used for wcwidth fallback.
97994         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97995         to Autoconf 2.13.
97996
97997 2001-08-03  Jim Meyering  <meyering@lucent.com>
97998
97999         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
98000         as it was in the original.  Reported by Paul Eggert.
98001
98002 2001-07-16  Jim Meyering  <meyering@lucent.com>
98003
98004         * m4/gettimeofday.m4: New file.
98005         Prompted by a report from Bernhard Baehr.
98006
98007 2001-07-15  Jim Meyering  <meyering@lucent.com>
98008
98009         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
98010         stuff. Now it's in ../Makefile.cfg.
98011
98012 2001-07-15  Jim Meyering  <meyering@lucent.com>
98013
98014         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
98015         (BUILT_SOURCES): Add unlocked-io.h.
98016         (io_functions): Define.
98017         (unlocked-io.h): New rule.
98018         (DISTCLEANFILES): Add unlocked-io.h.
98019         (all-local): Depend on unlocked-io.h, to ensure it is created.
98020
98021         * lib/unlocked-io.hin: New file
98022
98023         * lib/regex.c: Update from glibc.
98024
98025 2001-07-05  Jim Meyering  <meyering@lucent.com>
98026
98027         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
98028         recommendation.
98029         (libfetish_a_SOURCES): Put all .h files here instead.
98030         Remove a thus-exposed (better checks in automake) duplicate and
98031         two unnecessary .h files.
98032
98033 2001-07-04  Jim Meyering  <meyering@lucent.com>
98034
98035         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
98036         that generates jm-glibc-io.m4 so that it doesn't trigger any make
98037         distcheck failure.
98038
98039 2001-07-02  Jim Meyering  <meyering@lucent.com>
98040
98041         The following changes were prompted by suggestions from Bruno Haible.
98042
98043         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
98044         is now generated.
98045         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
98046         definition of EXTRA_DIST.
98047         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
98048         ensure that the generated file is created/updated whenever the list
98049         of $(unlocked_functions) is changed.
98050         (jm-glibc-io.m4): New rule.
98051         (unlocked-io.h): New rule -- currently unused.
98052
98053 2001-06-24  Jim Meyering  <meyering@lucent.com>
98054
98055         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
98056         unmatched right bracket, rather than kludging it with an extra,
98057         falsely-matching quote in a comment.  Patch by Akim Demaille.
98058
98059 2001-06-11  Jim Meyering  <meyering@lucent.com>
98060
98061         * lib/regex.c: Update from GNU libc.
98062
98063 2001-05-27  Jim Meyering  <meyering@lucent.com>
98064
98065         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
98066         Check for ut_type in struct utmp.
98067
98068 2001-05-27  Jim Meyering  <meyering@lucent.com>
98069
98070         * lib/readutmp.h (UT_TYPE): Define.
98071
98072 2001-05-24  Jim Meyering  <meyering@lucent.com>
98073
98074         * lib/argmatch.c: Include "quote.h".
98075         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98076         quote function.  Reported by Göran Uddeborg.
98077
98078 2001-05-22  Jim Meyering  <meyering@lucent.com>
98079
98080         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98081         now that we use the package-supplied version unconditionally.
98082         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98083
98084 2001-05-21  Jim Meyering  <meyering@lucent.com>
98085
98086         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98087         shell syntax errors.
98088
98089 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98090
98091         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98092
98093 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98094
98095         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98096         Don't bother to check library strftime, since
98097         we'll be using our own my_strftime function anyway.
98098         Define my_strftime instead of strftime.
98099
98100 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98101
98102         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98103         which is not yet declared.
98104
98105 2001-05-15  Jim Meyering  <meyering@lucent.com>
98106
98107         * m4/regex.m4: Use proper quoting so brackets appear in the test
98108         program.
98109         Reported by, and with help from, Bruno Haible.
98110
98111 2001-05-13  Jim Meyering  <meyering@lucent.com>
98112
98113         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98114         undefined.
98115
98116 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98117
98118         dirname code cleanup.  base_name now behaves more compatibly
98119         with POSIX basename when given file names that have trailing
98120         slashes, and similarly for dir_name.  Add new primitives
98121         base_len and dir_len.  Put the directory-name-related decls
98122         into dirname.h.
98123
98124         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98125         * lib/backupfile.c (base_name): Likewise.
98126         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98127         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98128         * lib/makepath.c (strip_trailing_slashes): Likewise.
98129         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98130         ISSLASH): Likewise.
98131         * lib/rename.c (strip_trailing_slashes): Likewise.
98132         * lib/same.c (base_name): Likewise.
98133         * lib/stripslash.c (ISSLASH): Likewise.
98134
98135         * lib/addext.c: Include <dirname.h> after size_t is defined.
98136         * lib/backupfile.c: Likewise.
98137
98138         * lib/addext.c (addext): Use base_len to trim redundant
98139         trailing slashes instead of doing it ourselves.
98140         But do not trim the last slash if it is not redundant.
98141
98142         * lib/backupfile.c (find_backup_file_name,
98143         max_backup_version): Use base_len instead of rolling it ourselves.
98144         Handle the case of "" and (on DOS) "C:" correctly.
98145
98146         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98147         needed. Include <string.h>, <dirname.h>.
98148         (base_name): Allow file names ending in slashes, other than names
98149         that are all slashes.  In this case, return the basename followed
98150         by the slashes.  This is more general, and can be used in places
98151         where the original base_name purposely had an assertion failure.
98152         (base_len): New function.
98153
98154         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98155         Do not include <assert.h>; no longer needed.
98156         Include xalloc.h.
98157         (memrchr): Remove decl.
98158         (dir_name_r): Remove.
98159         (dir_len): Renamed from dirlen.  All callers changed.
98160         Rewrite in terms of base_name, for simplicity and consistency.
98161         (dir_name): Never return NULL.  All callers changed.
98162         Do not include <stdlib.h> in test program; no longer needed.
98163         return 0; is fine for test program.
98164
98165         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98166         New macros.
98167         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98168
98169         * lib/path-concat.c (path_concat): Use base_len to compute
98170         base length, not strlen; this means we cannot rely on memcpy
98171         to null-terminate.
98172
98173         * lib/same.c (STREQ): Remove.
98174         (same_name): Handle the case where the basename ends in trailing '/'.
98175
98176         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98177         a slash was stripped.  Do not strip the last slash after a
98178         file system prefix.
98179
98180 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98181
98182         * lib/Makefile.am (libfetish_a_SOURCES):
98183         Add strftime.c, since we now compile it on all hosts.
98184
98185         * lib/strftime.c (my_strftime):
98186         Define to nstrftime if emacs, but only if my_strftime is not defined.
98187         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98188         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98189         Add one more extra argument: a nanoseconds value.
98190         All uses changed.
98191         (ns): New macro.
98192         (my_strftime function): Add %N format.
98193         (emacs_strftimeu): Renamed from emacs_strftime,
98194         with extra ut argument.
98195
98196 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98197
98198         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98199
98200 2001-04-21  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98203         doesn't interfere.
98204
98205 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98206
98207         * m4/ftruncate.m4: Check for chsize.
98208         Link with ftruncate.o unconditionally if ftruncate is missing.
98209         This was required when cross-compiling to i586-mingw32msvc.
98210
98211 2001-04-08  Jim Meyering  <meyering@lucent.com>
98212
98213         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98214         recomputed; that's necessary when the offset spans a DST transition.
98215         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98216
98217 2001-04-02  Jim Meyering  <meyering@lucent.com>
98218
98219         * lib/regex.h, regex.c: Update from GNU libc.
98220
98221 2001-03-24  Jim Meyering  <meyering@lucent.com>
98222
98223         * m4/jm-macros.m4: Require autoconf-2.49d.
98224
98225 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98226
98227         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98228
98229 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98230
98231         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98232
98233 2001-03-17  Jim Meyering  <meyering@lucent.com>
98234
98235         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98236         now that the version in autoconf is equivalent.
98237         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98238
98239         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98240         Suggestion from Akim Demaille.
98241
98242         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98243         (jm_PREREQ_TEMPNAME): New function.
98244
98245 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98246
98247         * lib/tempname.c (uint64_t): Define to uintmax_t if
98248         not defined, and if UINT64_MAX is not defined.
98249         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98250         Reported by John David Anglin.
98251
98252 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98253
98254         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98255         resolve alias if codeset is empty.
98256         * lib/config.charset (BeOS): Use wildcard syntax.
98257
98258 2001-03-13  Jim Meyering  <meyering@lucent.com>
98259
98260         * lib/path-concat.c (path_concat)
98261         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98262         concatenating e.g., `C:' and `foo'.
98263         From Bruno Haible.
98264
98265 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98266
98267         * lib/localcharset.c (locale_charset): Don't use
98268         setlocale(LC_CTYPE,NULL). Don't return NULL.
98269         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98270
98271 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98272
98273         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98274         support for DOS/DJGPP.
98275
98276 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98277
98278         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98279         lacks mkstemp.  Compile our own tempname.c if we compile our own
98280         mkstemp.c, as mkstemp relies on tempname.
98281
98282 2001-03-01  Jim Meyering  <meyering@lucent.com>
98283
98284         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98285         AH_VERBATIM really does output its argument verbatim.
98286
98287 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98288
98289         * lib/Makefile.am (libfetish_a_SOURCES):
98290         Add dup-safer.c, fopen-safer.c.
98291         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98292
98293         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98294         * lib/unistd-safer.h: New files.
98295
98296 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98297
98298         The mkstemp replacement is taken from glibc 2.2.2, with some
98299         portability fixes for use outside glibc, as follows:
98300
98301         * lib/tempname.c (struct_stat64): New macro.
98302         (direxists, __gen_tempname): Use it.
98303         This avoids a portability problem with Solaris 8.
98304
98305         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98306         (<stddef.h>, <stdint.h>, <string.h>):
98307         Include only if STDC_HEADERS || _LIBC.
98308         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98309         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98310         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98311         (__set_errno): Define this macro if <errno.h> doesn't.
98312         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98313         Define these macros if <stdio.h> doesn't.
98314         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98315         Define these macros if <sys/stat.h>
98316         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98317         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98318         __xstat64): Define if not _LIBC.
98319         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98320         (__gen_tempname): Invoke gettimeofday only if
98321         HAVE_GETTIMEOFDAY || _LIBC;
98322         otherwise, fall back on plain "time".
98323         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98324
98325         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98326
98327         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98328
98329 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98330
98331         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98332
98333 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98334
98335         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98336         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98337         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98338         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98339
98340 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98341
98342         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98343         Remove workaround macros for hosts that have mbrtowc but not
98344         mbstate_t, as we now insist on proper declarations for both
98345         before using mbrtowc.
98346
98347 2001-02-17  Jim Meyering  <meyering@lucent.com>
98348
98349         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98350         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98351         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98352         UnixWare 7.1.1.
98353
98354         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98355         rather than AC_CACHE_VAL.
98356
98357 2001-02-17  Jim Meyering  <meyering@lucent.com>
98358
98359         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98360         around included file name.
98361
98362         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98363
98364         * lib/strftime.c: Update from GNU libc (the only changes were to
98365         comments).
98366
98367 2001-02-17  Jim Meyering  <meyering@lucent.com>
98368
98369         * lib/regex.c: Update from libc.
98370
98371 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98372
98373         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98374         clash.
98375
98376 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98377
98378         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98379         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98380         Reported by Mark Hounschell via Paul Eggert.
98381
98382 2001-02-07  Jim Meyering  <meyering@lucent.com>
98383
98384         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98385
98386 2001-02-05  Jim Meyering  <meyering@lucent.com>
98387
98388         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98389         it includes the patch required for `large file' support with at least
98390         HP-UX's 10.20 /bin/cc.
98391
98392 2001-02-03  Jim Meyering  <meyering@lucent.com>
98393
98394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98395         AS_IF, now that it works once again (mysteriously).
98396         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98397
98398 2001-01-30  Jim Meyering  <meyering@lucent.com>
98399
98400         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98401         * m4/chown.m4: Rename conftestchown to conftest.chown.
98402         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98403         s/conftestdir2/conftest.d2/.
98404         * m4/utimes.m4: s/conftestdata/conftest.data/
98405         Inspired by Pavel Roskin's change in autoconf.
98406
98407 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98408
98409         * lib/config.charset: Update for FreeBSD 4.2.
98410
98411 2001-01-27  Jim Meyering  <meyering@lucent.com>
98412
98413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98414         a use of AS_IF.
98415         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98416
98417 2001-01-26  Jim Meyering  <meyering@lucent.com>
98418
98419         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98420         quotearg.c includes it.
98421
98422 2001-01-26  Jim Meyering  <meyering@lucent.com>
98423
98424         * lib/quotearg.c: Include stddef.h.
98425         * lib/quote.c: Include stddef.h.
98426         Reported by Axel Kittenberger.
98427
98428         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98429         line in double quotes so that it evokes a better diagnostic.
98430         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98431         Reported by Axel Kittenberger.
98432
98433 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98434
98435         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98436         as if it was a `charset'.
98437
98438 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98439
98440         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98441         has const.
98442
98443 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98444
98445         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98446         to avoid a warning.  Add back 'const' to inptr.
98447
98448 2001-01-20  Jim Meyering  <meyering@lucent.com>
98449
98450         Be sure that headers are checked before used in code compiled
98451         for the type checks.
98452         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98453         In place of that, invoke jm_CHECK_ALL_TYPES.
98454         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98455         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98456         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98457         The check for ssize_t was mistakenly run before the test for unistd.h.
98458
98459         The configure-time check for stdbool.h was missing.
98460         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98461         (jm_PREREQ_HASH): New function.
98462
98463 2001-01-17  Jim Meyering  <meyering@lucent.com>
98464
98465         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98466         for autoconf-2.49c.
98467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98468
98469 2001-01-16  Jim Meyering  <meyering@lucent.com>
98470
98471         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98472         From Bruno Haible.
98473
98474 2001-01-14  Jim Meyering  <meyering@lucent.com>
98475
98476         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98477         foo and bar.  Create conftestdir/ in the script, not in the C code.
98478         Remove directories in the script, not in the C code.
98479         Remove conftestdir{,2} before trying to create the directory.
98480         Make the entire configure script fail if the mkdir fails.
98481
98482 2001-01-14  Jim Meyering  <meyering@lucent.com>
98483
98484         * lib/rename.c: New file.  From Volker Borchert.
98485         Include stdlib.h, string.h or strings.h, and xalloc.h.
98486         Use strip_trailing_slashes rather than open-coding it.
98487
98488 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98489
98490         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98491
98492 2001-01-03  Jim Meyering  <meyering@lucent.com>
98493
98494         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98495         of local `inptr' to avoid warning with some system declarations of
98496         iconv.
98497
98498 2001-01-02  Volker Borchert  <bt@teknon.de>
98499
98500         * m4/rename.m4: New file.
98501         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98502
98503 2001-01-01  Jim Meyering  <meyering@lucent.com>
98504
98505         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98506         even on systems with utmpx.h.  It's necessary for the declaration of
98507         utmp's ut_user member.  Reported by Andreas Jaeger.
98508
98509         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98510         available. They are required for the declarations of getgrgid and
98511         getpwuid resp.
98512         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98513         Reported by Andreas Jaeger.
98514
98515 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98516
98517         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98518         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98519         so `make install' also works in VPATH builds.
98520
98521 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98522
98523         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98524         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98525         can be used in subdirectories.
98526
98527 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98528
98529         * lib/modechange.c: Do not assume that mode_t uses the
98530         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98531         the other-execute bit of FOO even if S_IXOTH != 1.
98532
98533         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98534         WOTH, XOTH, ALLM): New macros.
98535         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98536          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98537         Use them.
98538         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98539         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98540         (mode_compile):
98541         No need to use uintmax_t; unsigned long is long enough.
98542         Don't bother to get suffix since we don't use it.
98543
98544 2000-12-26  Jim Meyering  <meyering@lucent.com>
98545
98546         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98547         better with autoheader.
98548
98549 2000-12-24  Jim Meyering  <meyering@lucent.com>
98550
98551         * lib/hash.c (is_prime): Return explicit boolean values.
98552         (hash_get_first): Return NULL to appease Irix5.6's 89.
98553         Reported by Nelson Beebe.
98554
98555 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98556
98557         * lib/localcharset.c (locale_charset): Add support for Win32.
98558
98559 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98560
98561         * lib/physmem.h, lib/physmem.c: New files.
98562
98563         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98564         (noinst_HEADERS): Add physmem.h.
98565
98566         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98567         't' for compatibility with Solaris 8 sort.
98568
98569 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98570
98571         * lib/config.charset: Add support for BeOS.
98572
98573 2000-12-17  Jim Meyering  <meyering@lucent.com>
98574
98575         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98576         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98577
98578 2000-12-16  Jim Meyering  <meyering@lucent.com>
98579
98580         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98581         N and M) would have treated it like `chown N:N FILE'.
98582
98583         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98584
98585 2000-12-16  Jim Meyering  <meyering@lucent.com>
98586
98587         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98588         SHELLS_FILE to a file name that's useful on djgpp systems.
98589         Include stdlib.h.
98590         (ADDITIONAL_DEFAULT_SHELLS): Define.
98591         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98592         Based mostly on a patch from Prashant TR.
98593
98594 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98595
98596         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98597         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98598         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98599
98600 2000-12-08  Andreas Schwab  <schwab@suse.de>
98601
98602         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98603         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98604
98605 2000-12-07  Jim Meyering  <meyering@lucent.com>
98606
98607         * lib/stripslash.c (ISSLASH): Define.
98608         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98609         `/'.
98610         From Prashant TR.
98611
98612         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98613         (dir_name_r): Declare this function as static.
98614         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98615         manifest itself on a name containing a mix of slashes and
98616         backslashes.
98617         Make this function work with names starting with a DOS-style
98618         drive letter and colon prefix.
98619         (dir_name): Append `.' if necessary.
98620         Based mostly on patches from Prashant TR and Eli Zaretskii.
98621
98622         * lib/dirname.h (dir_name_r): Remove prototype.
98623
98624 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98625
98626         * m4/off_t-format.m4: Remove this file.
98627         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98628
98629 2000-12-06  Jim Meyering  <meyering@lucent.com>
98630
98631         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98632         replacement strtoull, we may well need the replacement strtoul, too.
98633         Check for declarations of strtoul and strtoull.
98634         Check for strtol.  Mainly as a cue to cause automake to include
98635         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98636         Check for limits.h -- strtol.c needs it.
98637
98638 2000-12-05  Jim Meyering  <meyering@lucent.com>
98639
98640         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98641
98642 2000-12-04  Jim Meyering  <meyering@lucent.com>
98643
98644         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98645         Also include memory.h, stdlib.h, unistd.h if appropriate.
98646         Reported by Andreas Jaeger (conflicting declaration of malloc).
98647
98648 2000-12-02  Jim Meyering  <meyering@lucent.com>
98649
98650         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98651         * m4/jm-macros.m4 (jm_MACROS): require it.
98652
98653 2000-12-02  Jim Meyering  <meyering@lucent.com>
98654
98655         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98656
98657 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98658
98659         * lib/memrchr.c: Include <config.h> before any system include file.
98660
98661 2000-11-30  Jim Meyering  <meyering@lucent.com>
98662
98663         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98664
98665 2000-11-30  Jim Meyering  <meyering@lucent.com>
98666
98667         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98668
98669 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98670
98671         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98672
98673 2000-11-26  Jim Meyering  <meyering@lucent.com>
98674
98675         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98676
98677 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98678
98679         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98680         size of (size_t) -1; it's not portable.
98681
98682 2000-11-17  Jim Meyering  <meyering@lucent.com>
98683
98684         * lib/strstr.c: Update from GNU libc.
98685
98686 2000-11-17  Akim Demaille  <akim@epita.fr>
98687
98688         * lib/obstack.h: Formatting changes.
98689         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98690         prevent type checking.
98691         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98692         cast the value to (void *): assigning a `foo *' to a `void *'
98693         variable is valid.
98694         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98695
98696 2000-11-16  Jim Meyering  <meyering@lucent.com>
98697
98698         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98699
98700 2000-11-11  Jim Meyering  <meyering@lucent.com>
98701
98702         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98703
98704 2000-11-10  Jim Meyering  <meyering@lucent.com>
98705
98706         * lib/obstack.h: Update from GNU libc.
98707         * lib/obstack.c: Likewise.
98708
98709 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98710
98711         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98712
98713 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98714
98715         * lib/getusershell.c (setusershell): Use rewind rather than
98716         fseek/fseeko, to avoid configuration hassles with fseeko.
98717         Don't bother opening SHELLS_FILE if shellstream is NULL;
98718         it's not necessary.
98719
98720 2000-11-05  Jim Meyering  <meyering@lucent.com>
98721
98722         * lib/makepath.h (make_dir): Declare.
98723         * lib/makepath.c (make_dir): Remove `static' attribute.
98724         Tweak a comment.
98725
98726 2000-11-04  Jim Meyering  <meyering@lucent.com>
98727
98728         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98729
98730 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98731
98732         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98733         last one in a bucket, advance to the next bucket.
98734
98735 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98736
98737         * lib/fnmatch.c: Do not comment out all the code if we are using
98738         the GNU C library, because in some cases we are replacing buggy
98739         code in the GNU C library itself.
98740
98741 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98742
98743         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98744         (regex_compile): Catch bogus \(\1\).
98745
98746 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98747
98748         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98749         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98750         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98751
98752 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98753
98754         * lib/error.h, getline.h, modechange.h:
98755         Remove "2000" from Copyright line, as the file hasn't been
98756         changed this year other than in the copyright notice.
98757
98758         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98759         was changed this year.
98760
98761 2000-10-29  Jim Meyering  <meyering@lucent.com>
98762
98763         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98764         renaming.
98765         * m4/ls-mntd-fs.m4: Likewise
98766
98767 2000-10-29  Jim Meyering  <meyering@lucent.com>
98768
98769         * lib/xstat.in: Fix grammar in comment.
98770
98771 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98772
98773         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98774         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98775         doesn't define __restrict_arr.
98776
98777 2000-10-28  Jim Meyering  <meyering@lucent.com>
98778
98779         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98780         (jm_PREREQ_MEMCHR): New function.
98781
98782 2000-10-28  Jim Meyering  <meyering@lucent.com>
98783
98784         * lib/memchr.c: Update from libc.
98785         Adjust for portability:
98786         [HAVE_STDLIB_H]: Include stdlib.h.
98787         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98788         Undef __memchr, too.
98789         [!weak_alias]: Define __memchr to memchr.
98790
98791         * lib/regex.c: Update from libc.
98792         * lib/regex.h: Likewise.
98793         * lib/getopt1.c: Likewise.
98794         * lib/memcmp.c: Likewise.
98795
98796         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98797         Avoid using fseek, when possible -- it's broken by design.
98798         Patch by Ulrich Drepper.
98799
98800 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98801
98802         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98803         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98804         Giving in to popular pressure to shut up the compiler with casts.
98805
98806 2000-10-26  Jim Meyering  <meyering@lucent.com>
98807
98808         * lib/strftime.c: Update from libc.
98809
98810 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98811
98812         * regex.c: More `unsigned char' -> `re_char' changes.
98813         Also change several `int' into `re_wchar_t'.
98814         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98815         (PUSH_FAILURE_POINTER): Don't cast any more.
98816         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98817         We want GCC to complain, since this piece of code makes
98818         re_match non-reentrant, which *should* be fixed.
98819         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98820         (EXTEND_BUFFER): Use RETALLOC.
98821         (SET_LIST_BIT): Don't cast.
98822         (re_wchar_t): New type.
98823         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98824         that those two functions will always properly return.
98825         (IMMEDIATE_QUIT_CHECK): Cast to void.
98826         (analyse_first): Use recursion rather than an explicit stack.
98827         (re_compile_fastmap): Can't fail anymore.
98828         (re_search_2): Don't check re_compile_fastmap for failure.
98829         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98830         Now also sets the new value (passed in a new argument).
98831         (re_match_2_internal): Use it.
98832         Also, use a new var `reg' of type size_t when looping through regs
98833         rather than reuse the inappropriate `mcnt'.
98834
98835 2000-10-25  Jim Meyering  <meyering@lucent.com>
98836
98837         * lib/obstack.c: Update from libc.
98838
98839 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98840
98841         * regex.c (regex_compile): Change the way of handling a range from
98842         a char less than 256 to a char not less than 256.
98843
98844 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98845
98846         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98847         NT-Emacs only.
98848         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98849         so that re_search functions only quit when callers expect them to.
98850
98851 2000-10-23  Jim Meyering  <meyering@lucent.com>
98852
98853         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98854         wrong.  That set_locale call must not have any side effects.
98855         From Paul Eggert.
98856
98857 2000-10-22  Jim Meyering  <meyering@lucent.com>
98858
98859         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98860         [CYCLIC]: Remove now-unused definition.
98861
98862         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98863         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98864         Suggestion from Ulrich Drepper.
98865
98866 2000-10-21  Jim Meyering  <meyering@lucent.com>
98867
98868         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98869         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98870         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98871
98872 2000-10-21  Jim Meyering  <meyering@lucent.com>
98873
98874         * lib/dirname.c (memrchr): Declare if necessary.
98875         (dir_name): Remove the restriction that there be no
98876         trailing slashes.  Now, this code skips past them, effectively
98877         ignoring them.
98878         [TEST_DIRNAME] (main): New unit tests.
98879
98880         * lib/memrchr.c: New file from GNU libc.
98881         Undef __memrchr, too.
98882         [!weak_alias]: Define __memrchr to memrchr.
98883         Guard weak_alias use with `#ifdef weak_alias'.
98884
98885 2000-10-21  Jim Meyering  <meyering@lucent.com>
98886
98887         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98888         (dir_name): Use dir_name_r.
98889         * lib/dirname.h (dir_name_r): Declare it.
98890
98891 2000-10-17  Jim Meyering  <meyering@lucent.com>
98892
98893         * lib/quote.h (PARAMS): Define and use.
98894         Reported by Akim Demaille.
98895
98896         * lib/getopt.c: Update from libc.
98897
98898 2000-10-16  Jim Meyering  <meyering@lucent.com>
98899
98900         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98901         setlocale.
98902         From Jan Fedak.
98903
98904 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98905
98906         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98907
98908 2000-09-25  Jim Meyering  <meyering@lucent.com>
98909
98910         * lib/md5.h (rol): Define (from GnuPG).
98911
98912         * lib/sha.c: Give credit (GnuPG) where due.
98913         (M): Use rol rather than open-coding it.
98914         Add a FIXME comment.
98915
98916 2000-09-21  Jim Meyering  <meyering@lucent.com>
98917
98918         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98919         Reported by Michael Stone.
98920
98921 2000-09-20  Jim Meyering  <meyering@lucent.com>
98922
98923         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98924         (noinst_HEADERS): Add sha.h.
98925         Based on code from Scott G. Miller and from GnuPG.
98926
98927 2000-09-18  Jim Meyering  <meyering@lucent.com>
98928
98929         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98930         LIBS. Otherwise, everyone ends up linking with -lelf for some
98931         configurations.
98932         Reported by Mike Stone.
98933
98934 2000-09-15  Jim Meyering  <meyering@lucent.com>
98935
98936         * lib/regex.c: Update from libc.
98937
98938 2000-09-10  Jim Meyering  <meyering@lucent.com>
98939
98940         * lib/getopt.c (_getopt_internal): Update from glibc.
98941
98942 2000-09-09  Jim Meyering  <meyering@lucent.com>
98943
98944         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98945         think it should be used as a general replacement for isascii.
98946         * lib/fnmatch.c: Likewise.
98947         * lib/mbswidth.c: Likewise
98948         * lib/regex.c: Likewise.
98949
98950         Don't use atoi.
98951         * lib/userspec.c: Include sys/param.h and limits.h.
98952         Include xstrtol.h.
98953         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98954         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98955         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98956         UID, GID.  Check range.
98957
98958 2000-09-06  Jim Meyering  <meyering@lucent.com>
98959
98960         * lib/getopt.c (_getopt_internal): Update from glibc.
98961
98962 2000-08-30  Jim Meyering  <meyering@lucent.com>
98963
98964         * lib/strftime.c: Merge in changes from GNU libc.
98965
98966 2000-08-26  Jim Meyering  <meyering@lucent.com>
98967
98968         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98969         * m4/fpending.m4: New file.
98970
98971 2000-08-26  Jim Meyering  <meyering@lucent.com>
98972
98973         * lib/closeout.c: Include "__fpending.h".
98974         (close_stdout_status): Return right away if there's nothing to flush.
98975
98976         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98977         * lib/__fpending.c: New file.
98978         * lib/__fpending.h: New file.
98979
98980 2000-08-20  Jim Meyering  <meyering@lucent.com>
98981
98982         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98983         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98984         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98985
98986 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98987
98988         Improve fileutils installation on systems where running
98989         programs (like install) can't be unlinked.
98990         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98991         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98992
98993 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98994
98995         Standardize on "memory exhausted" instead of "Memory exhausted"
98996         or "virtual memory exhausted".
98997         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98998         "virtual memory exhausted".
98999         * lib/same.c (same_name): Invoke xalloc_die instead of printing
99000         our own message.
99001         * lib/userspec.c (parse_user_spec): Likewise.
99002         * lib/bumpalloc.h: comment fix
99003         * lib/same.c, userspec.c: Include xalloc.h.
99004
99005         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
99006         not char *const and pointing to a constant array.
99007         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
99008         (xrealloc): Comment fix.
99009
99010         * lib/userspec.c (parse_user_spec):
99011         Don't translate a message until just before returning,
99012         to avoid unnecessary translation.
99013
99014 2000-08-07  Jim Meyering  <meyering@lucent.com>
99015
99016         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
99017         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
99018         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
99019         getgroups.c, gethostname.c, getopt.h, group-member.c,
99020         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
99021         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
99022         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
99023         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
99024         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
99025         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
99026         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
99027         yesno.c: Back out Copyright date changes for each file with no change
99028         this year.  This eases coordination with other programs using the same
99029         source code modules.  From Paul Eggert.
99030
99031 2000-08-06  Paul Eggert  <eggert@twinsun.com>
99032
99033         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
99034         not char, for compatibility with glibc 2.1.3 strftime.c.
99035
99036 2000-08-03  Greg McGary  <greg@mcgary.org>
99037
99038         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
99039         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
99040         (EXTEND_BUFFER): Use them.
99041
99042 2000-08-01  Jim Meyering  <meyering@lucent.com>
99043
99044         * lib/dirname.c (ISSLASH): Define.
99045         (BACKSLASH_IS_PATH_SEPARATOR): Define.
99046         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
99047         both `\' and `/' may be use as path separators.
99048         Based on a patch from Prashant TR.
99049
99050 2000-07-31  Paul Eggert  <eggert@twinsun.com>
99051
99052         * lib/quotearg.c (quotearg_n_options): Don't make the initial
99053         slot vector a constant, since it might get modified.
99054
99055 2000-07-31  Jim Meyering  <meyering@lucent.com>
99056
99057         * lib/xmalloc.c: Use `virtual memory exhausted', not
99058         `Memory exhausted'.
99059         * lib/obstack.c (print_and_abort): Likewise.
99060
99061 2000-07-30  Paul Eggert  <eggert@twinsun.com>
99062
99063         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
99064         buffer, so that the caller can always quote one small
99065         component of a "memory exhausted" message in slot 0.
99066         From a suggestion by Jim Meyering.
99067
99068 2000-07-30  Jim Meyering  <meyering@lucent.com>
99069
99070         * lib/makepath.c (make_path): Quote the other instance, too.
99071
99072         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
99073         (STATIC_BUF_SIZE): Define.
99074         (quotearg_n_options): Use only statically allocated storage when
99075         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99076         than STATIC_BUF_SIZE.
99077
99078 2000-07-29  Jim Meyering  <meyering@lucent.com>
99079
99080         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99081         * lib/dirname.c (dir_name): Likewise.
99082
99083         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99084         `/'.
99085
99086         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99087         (dir_name): Assert that there are no trailing slashes.
99088
99089 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99090
99091         * lib/mbswidth.h (mbswidth): Add a flags argument.
99092         (mbswidth): New declaration.
99093         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99094         * lib/mbswidth.c (mbswidth): Add a flags argument.
99095         (mbsnwidth): New function.
99096
99097 2000-07-24  Jim Meyering  <meyering@lucent.com>
99098
99099         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99100
99101 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99102
99103         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99104
99105 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99106
99107         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99108         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99109         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99110         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99111         invoke multibyte primitives.
99112
99113 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99114
99115         * lib/quotearg.c:
99116         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99117         so that mbstate_t is always defined.
99118
99119         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99120         be 1 in at least one GCC installation, and this configuration
99121         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99122         performance on hosts that have mbrtowc but have only unibyte
99123         locales, but I assume these hosts are rare.
99124
99125 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99126
99127         * lib/mbswidth.c (_XOPEN_SOURCE):
99128         Don't define; this causes problems on Solaris 7.
99129         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99130
99131 2000-07-23  Jim Meyering  <meyering@lucent.com>
99132
99133         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99134         too: getgrgid, getpwuid, getuid.
99135
99136 2000-07-23  Jim Meyering  <meyering@lucent.com>
99137
99138         * lib/basename.c (base_name): Add an assertion.
99139
99140 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99141
99142         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99143         shadow its mbsinit function.
99144
99145 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99146
99147         * lib/mbswidth.h: New file.
99148         * lib/mbswidth.c: New file.
99149         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99150         (noinst_HEADERS): Add mbswidth.h.
99151
99152 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99153
99154         * lib/config.charset: Add support for FreeBSD. Improve support for
99155         HP-UX and IRIX 6.
99156
99157 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99158
99159         * m4/mbswidth.m4: New file.
99160         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99161
99162 2000-07-15  Jim Meyering  <meyering@lucent.com>
99163
99164         * lib/makepath.c: Include quote.h.
99165         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99166         corresponding argument in a `quote (...)' call.
99167         Give better diagnostics.
99168
99169         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99170         (noinst_HEADERS): Add quote.h.
99171
99172         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99173         from tar's src/misc.c.
99174         * lib/quote.h: New file.  Prototypes for same.
99175
99176 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99177
99178         From a suggestion by Bruno Haible.
99179         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99180         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99181         to decide whether to define the BeOS workaround macro;
99182         this adjusts to the change to AC_MBSTATE_T.
99183
99184 2000-07-14  Jim Meyering  <meyering@lucent.com>
99185
99186         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99187         jm_AC_TYPE_UINTMAX_T.
99188
99189 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99190
99191         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99192
99193         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99194         quotearg_buffer_restyled): Add support for
99195         clocale_quoting_style.  Undo previous change to
99196         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99197         and "{RIGHT QUOTATION MARK}" msgids.
99198
99199 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99200
99201         From a suggestion by Bruno Haible.
99202         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99203         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99204         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99205         and mbstate_t, to a single-part test that simply defines mbstate_t.
99206         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99207         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99208
99209 2000-07-10  Jim Meyering  <meyering@lucent.com>
99210
99211         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99212
99213         * m4/gnu-source.m4: Output to confdefs.h directly.
99214         Suggestion from Akim Demaille.
99215
99216 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99217
99218         The old behavior of quoting `like this' doesn't look good with
99219         newer, ISO-style fonts.  See:
99220         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99221
99222         Instead, quote "like this" by default.  Let the translator
99223         tailor the locale-specific quoting behavior by providing
99224         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99225
99226         * lib/quotearg.c (N_): New macro.
99227         (gettext_default): New function.
99228         (quotearg_buffer_restyled): Use
99229         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99230         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99231
99232 2000-07-09  Jim Meyering  <meyering@lucent.com>
99233
99234         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99235         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99236
99237         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99239
99240 2000-07-09  Jim Meyering  <meyering@lucent.com>
99241
99242         * lib/Most files: Update copyright dates to include 2000.
99243
99244 2000-07-08  Jim Meyering  <meyering@lucent.com>
99245
99246         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99247         if not defined.
99248         (xgethostname): Remove now-unnecessary #ifdef.
99249         Move declaration of `err' into loop where it's used.
99250
99251 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99252         and Bruno Haible  <haible@clisp.cons.org>
99253
99254         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99255         only if the test for an object-type mbstate_t fails.  This
99256         prevents us from mistakenly reporting that mbstate_t is a
99257         system object type after we "#define mbstate_t int" to work
99258         around its lack.
99259
99260 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99261         and Bruno Haible  <haible@clisp.cons.org>
99262
99263         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99264
99265 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99266
99267         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99268         to strerror_r.
99269         Include <ctype.h> for use of isalpha.
99270
99271 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99272
99273         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99274         by allocating a larger buffer. Test the gethostname return value for
99275         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99276         returns an error and ENAMETOOLONG isn't defined.
99277
99278 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99279
99280         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99281         dimension.
99282
99283 2000-07-04  Jim Meyering  <meyering@lucent.com>
99284
99285         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99286         of the deprecated AC_CHECKING.
99287
99288 2000-07-04  Jim Meyering  <meyering@lucent.com>
99289
99290         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99291         Reported by Bruno Haible.
99292
99293 2000-07-04  Jim Meyering  <meyering@lucent.com>
99294
99295         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99296         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99297         lacks mbrtowc.
99298
99299 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99300
99301         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99302         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99303
99304 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99305         and Bruno Haible  <haible@clisp.cons.org>
99306
99307         * lib/quotearg.c (mbrtowc):
99308         Assign to *pwc, and return 1 only if result is nonzero.
99309         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99310
99311 2000-07-03  Jim Meyering  <meyering@lucent.com>
99312
99313         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99314
99315 2000-07-03  Jim Meyering  <meyering@lucent.com>
99316
99317         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99318         This is necessary to get a definition of e.g., UTMP_FILE on
99319         HP-UX 10.20.
99320         From Bob Proulx.
99321
99322 2000-07-02  Jim Meyering  <meyering@lucent.com>
99323
99324         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99325
99326         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99327         AC_LIBOBJ(function_name).
99328         * m4/chown.m4: Likewise.
99329         * m4/fnmatch.m4: Likewise.
99330         * m4/ftruncate.m4: Likewise.
99331         * m4/getgroups.m4: Likewise.
99332         * m4/getline.m4: Likewise.
99333         * m4/group-member.m4: Likewise.
99334         * m4/jm-macros.m4: Likewise.
99335         * m4/lstat.m4: Likewise.
99336         * m4/malloc.m4: Likewise.
99337         * m4/memcmp.m4: Likewise.
99338         * m4/nanosleep.m4: Likewise.
99339         * m4/putenv.m4: Likewise.
99340         * m4/realloc.m4: Likewise.
99341         * m4/regex.m4: Likewise.
99342         * m4/stat.m4: Likewise.
99343         * m4/strftime.m4: Likewise.
99344
99345 2000-07-02  Jim Meyering  <meyering@lucent.com>
99346
99347         * lib/quotearg.c (mbstate_t): Don't define here.
99348
99349 2000-07-02  Jim Meyering  <meyering@lucent.com>
99350
99351         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99352
99353 2000-07-01  Jim Meyering  <meyering@lucent.com>
99354
99355         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99356
99357 2000-07-01  Jim Meyering  <meyering@lucent.com>
99358
99359         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99360         problem.
99361
99362 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99363
99364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99365         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99366
99367 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99368
99369         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99370         per change in ../m4/ls-mntd-fs.m4.
99371         (read_filesystem_list): Ignore symbolic links.
99372
99373 2000-06-29  Jim Meyering  <meyering@lucent.com>
99374
99375         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99376         for declaration of strcmp.
99377
99378         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99379
99380         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99381         Avoid warning by casting result to `char *' to remove `const'.
99382
99383 2000-06-28  Jim Meyering  <meyering@lucent.com>
99384
99385         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99386         included by quotearg.c, for which we perform this test.  From
99387         Bruno Haible.
99388
99389 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99390
99391         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99392         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99393         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99394
99395 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99396
99397         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99398
99399 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99400
99401         savedir now sets errno on failure and invokes xmalloc to get memory.
99402         Fix a couple of other minor bugs while we're at it.
99403
99404         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99405         (NAMLEN): Remove macro.
99406         (malloc, realloc): Remove decls.
99407         (stpcpy): Likewise.
99408         ("xalloc.h"): Include.
99409         (NAME_SIZE_DEFAULT): New macro.
99410         (savedir): Use xmalloc / xrealloc to allocate memory.
99411         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99412         Skip "" directory entries.
99413         Use strlen to calculate directory entry length, since the old method
99414         is rarely used these days and isn't worth supporting.
99415         Don't use a pointer after freeing it.
99416         Check for integer overflow when calculating allocation size.
99417         Use memcpy to copy entries, instead of stpcpy.
99418         Set errno properly when returning NULL.
99419         Check for readdir error.
99420
99421 2000-06-26  Jim Meyering  <meyering@lucent.com>
99422
99423         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99424
99425 2000-06-25  Jim Meyering  <meyering@lucent.com>
99426
99427         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99428         Linux header bug when _XOPEN_SOURCE is defined to 500.
99429
99430 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99431
99432         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99433         deficiency.
99434
99435 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99436
99437         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99438         Include xalloc.h.
99439         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99440
99441 2000-06-24  Jim Meyering  <meyering@lucent.com>
99442
99443         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99444         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99445         for which strerror does return char*, but which lacks a conveniently
99446         accessible declaration of the function.  If the compile-test says
99447         strerror_r doesn't work, then resort to a `run'-test that works on
99448         BeOS and segfaults on DEC Unix.
99449
99450 2000-06-24  Jim Meyering  <meyering@lucent.com>
99451
99452         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99453
99454 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99455
99456         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99457         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99458
99459 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99460
99461         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99462         (mbrtowc, mbstate_t): Define substitutes if
99463         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99464         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99465         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99466
99467 2000-06-23  Jim Meyering  <meyering@lucent.com>
99468
99469         * m4/afs.m4: Add missing AC_MSG_RESULT.
99470         Reported by Bruno Haible.
99471
99472         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99473         Suggestion from Bruno Haible.
99474
99475 2000-06-23  Jim Meyering  <meyering@lucent.com>
99476
99477         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99478
99479 2000-06-21  Jim Meyering  <meyering@lucent.com>
99480
99481         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99482
99483 2000-06-21  Jim Meyering  <meyering@lucent.com>
99484
99485         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99486         (noinst_HEADERS): Add getstr.h.
99487
99488         * lib/getline.c (getstr): Move into a separate file.
99489         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99490         the following changes: new parameter, delim2; both delim[12]
99491         parameters have type `int', not `char'.  The latter would lose
99492         with 8-bit delimiters.
99493         * lib/getstr.h: New file.
99494
99495 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99496
99497         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99498         than 1024, return a memory chunk of least possible size, instead
99499         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99500         Use free/xmalloc instead of xrealloc to avoid copying for very long
99501         paths.
99502
99503 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99504
99505         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99506         the empty string.
99507
99508 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99509
99510         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99511         address, not strdup.  Include <stdlib.h> and don't declare free().
99512
99513 2000-06-19  Jim Meyering  <meyering@lucent.com>
99514
99515         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99516
99517 2000-06-18  Jim Meyering  <meyering@lucent.com>
99518
99519         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99520
99521         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99522         `checking whether...' message to be consistent with that of the
99523         lstat test.
99524
99525 2000-06-18  Jim Meyering  <meyering@lucent.com>
99526
99527         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99528         Besides, these days every porting target provides a mkdir function.
99529
99530         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99531         needed. (this snippet comes from src/system.h).
99532
99533 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99534
99535         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99536
99537 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99538
99539         * lib/human.c (adjust_value): New function.
99540         (human_readable_inexact): Apply rounding style even when
99541         printing approximate values.
99542
99543 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99544
99545         * lib/human.c (human_readable_inexact): Allow an input block
99546         size that is not a multiple of the output block size, and vice versa.
99547         Reported by Piergiorgio Sartor.
99548
99549 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99550
99551         * lib/getdate.y (get_date): Apply relative times after time
99552         zone indicator, not before.  Reported by Todd A. Jacobs.
99553
99554 2000-06-13  Jim Meyering  <meyering@lucent.com>
99555
99556         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99557
99558         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99559
99560 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99561
99562         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99563
99564 2000-06-12  Jim Meyering  <meyering@lucent.com>
99565
99566         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99567         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99568         optional argument.
99569         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99570         the optional argument, `lib'.
99571
99572 2000-06-08  Jim Meyering  <meyering@lucent.com>
99573
99574         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99575
99576 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99577
99578         Rewrite largefile configuration so that we don't need to run
99579         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99580         AC_CANONICAL_HOST in configure.in -- jmm]
99581
99582         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99583         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99584         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99585         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99586         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99587         All uses changed.
99588         Instead of inspecting the output of getconf, try to compile the
99589         test program without and with the macro definition.
99590         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99591         for getconf.  Instead, check for the needed flags by compiling
99592         test programs.
99593
99594 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99595
99596         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99597
99598 2000-06-04  Jim Meyering  <meyering@lucent.com>
99599
99600         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99601         SunOS 4.1.4 for which gid_t is an unsigned type.
99602
99603 2000-06-03  Jim Meyering  <meyering@lucent.com>
99604
99605         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99606         now that autoconf requires that.
99607
99608         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99609         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99610         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99611
99612 2000-06-03  Jim Meyering  <meyering@lucent.com>
99613
99614         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99615
99616 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99617
99618         * m4/glibc21.m4: New file.
99619         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99620
99621 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99622
99623         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99624         newer, don't install charset.alias.
99625         * lib/config.charset: Change the Linux/glibc rules so they become empty
99626         on glibc-2.1 or newer.
99627
99628 2000-06-02  Jim Meyering  <meyering@lucent.com>
99629
99630         * lib/mountlist.c: Back out last change.  Instead, do this...
99631         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99632         me_dummy member using the same `ignore'-testing code.
99633         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99634         fs_type strings.
99635         From Mark D. Roth.
99636
99637 2000-05-29  Jim Meyering  <meyering@lucent.com>
99638
99639         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99640         mounts with the `ignore' attribute.  Based on a patch from
99641         Mark D. Roth.
99642
99643 2000-05-28  Jim Meyering  <meyering@lucent.com>
99644
99645         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99646         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99647         * m4/stat.m4: Likewise.
99648         * m4/lstat.m4: Likewise.
99649         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99650
99651         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99652         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99653
99654 2000-05-26  Jim Meyering  <meyering@lucent.com>
99655
99656         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99657
99658 2000-05-24  Jim Meyering  <meyering@lucent.com>
99659
99660         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99661         autoconf requires that.
99662         * m4/lib-check.m4: Likewise.
99663         * m4/jm-macros.m4: Likewise.
99664         * m4/strftime.m4: Likewise.
99665
99666         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99667         AC_CHECK_DECLS, now that autoconf requires that.
99668
99669 2000-05-22  Jim Meyering  <meyering@lucent.com>
99670
99671         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99672         * m4/lstat.m4: Likewise.
99673
99674 2000-05-22  Jim Meyering  <meyering@lucent.com>
99675
99676         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99677
99678 2000-05-20  Jim Meyering  <meyering@lucent.com>
99679
99680         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99681         (jm_PREREQ): Use it.
99682
99683 2000-05-18  Jim Meyering  <meyering@lucent.com>
99684
99685         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99686         back, too, since it may have been modified by allocate_entry.
99687         (hash_delete): Rewrite to use neither the assignment operator
99688         nor the comma operator in an if-expression.
99689
99690 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99691
99692         * lib/closeout.c:
99693         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99694         Remove; no longer needed.
99695         "quotearg.h": Add include.
99696         (file_name): Do not bother to explicitly initialize to NULL; it's less
99697         efficient on some hosts.
99698         (close_stdout_status): Remove test as to whether stdout was already
99699         closed; it breaks for the case "echo x | sort >&-".
99700         Quote file name colons.
99701         Do not assume that _("write error") lacks format strings.
99702
99703 2000-05-15  Jim Meyering  <meyering@lucent.com>
99704
99705         * lib/version-etc.c (version_etc_copyright): Update the copyright
99706         string used in all --version output.
99707
99708 2000-05-14  Jim Meyering  <meyering@lucent.com>
99709
99710         * lib/closeout.c (close_stdout_set_file_name): New function.
99711         (close_stdout_status): Use new file-scoped global.
99712         Return right away if fstat says the stdout file descriptor is invalid.
99713         * lib/closeout.h (close_stdout_set_file_name): Declare.
99714
99715 2000-05-10  Jim Meyering  <meyering@lucent.com>
99716
99717         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99718         (close_stdout_set_status): New function.
99719         * lib/closeout.h (close_stdout_set_status): Declare.
99720
99721 2000-05-09  Jim Meyering  <meyering@lucent.com>
99722
99723         * m4/gettext.m4: Rename this...
99724         * m4/libintl.m4: ...to this.
99725
99726 2000-05-08  Jim Meyering  <meyering@lucent.com>
99727
99728         * lib/long-options.c: Don't include closeout.h.
99729         (parse_long_options): Don't call close_stdout for --version.
99730
99731 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99732
99733         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99734         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99735         2.1.3 bug.  This avoids a clash when files like regex.c define
99736         _GNU_SOURCE.
99737
99738 2000-05-06  Jim Meyering  <meyering@lucent.com>
99739
99740         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99741         (AC_REPLACE_FUNCS): Add strnlen.
99742
99743         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99744         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99745
99746         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99747         AC_SEARCH_LIBS call for nanosleep.
99748         (LIB_NANOSLEEP): Set and AC_SUBST.
99749
99750 2000-05-06  Jim Meyering  <meyering@lucent.com>
99751
99752         * lib/strnlen.c: Undefine __strnlen and strnlen.
99753         [!weak_alias]: Define __strnlen to strnlen.
99754
99755         * lib/atexit.c: New file, from libiberty.
99756
99757 2000-05-06  Jim Meyering  <meyering@lucent.com>
99758
99759         * lib/closeout.c (close_stdout_status): Also check for errors on the
99760         stderr stream.
99761
99762 2000-05-05  Jim Meyering  <meyering@lucent.com>
99763
99764         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99765         AC_SEARCH_LIBS call for clock_gettime.
99766         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99767
99768         * m4/search-libs.m4: Update from autoconf.
99769
99770         su doesn't work on Solaris 2.6.
99771         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99772         <shadow.h>.  Reported by Dragos Harabor.
99773
99774 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99775
99776         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99777         memcpy instead of xmalloc, xrealloc, path_concat.
99778         (locale_charset): Treat empty environment variables as absent.
99779         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99780
99781 2000-05-04  Jim Meyering  <meyering@lucent.com>
99782
99783         * lib/getopt.c: Update from glibc.
99784         * lib/obstack.c: Likewise.
99785         * lib/obstack.h: Likewise.
99786         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99787         file
99788
99789         * lib/regex.h: Likewise.
99790         * lib/strndup.c: Likewise.
99791         * lib/strnlen.c: New file, from glibc.
99792
99793 2000-05-03  Jim Meyering  <meyering@lucent.com>
99794
99795         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99796
99797 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99798
99799         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99800         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99801         compile-time test, rather than inspecting host and OS, to
99802         decide whether to define _LARGEFILE_SOURCE.
99803
99804 2000-05-01  Jim Meyering  <meyering@lucent.com>
99805
99806         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99807
99808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99809         Based on a patch from Bruno Haible.
99810
99811 2000-05-01  Jim Meyering  <meyering@lucent.com>
99812
99813         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99814
99815 2000-04-29  Jim Meyering  <meyering@lucent.com>
99816
99817         * lib/path-concat.c: Declare strdup only if it's not defined.
99818         * lib/canon-host.c: Likewise.
99819
99820 2000-04-28  Jim Meyering  <meyering@lucent.com>
99821
99822         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99823         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99824         is included first, then limits.h is included by locale.h by libintl.h.
99825         From John David Anglin.
99826
99827 2000-04-25  Jim Meyering  <meyering@lucent.com>
99828
99829         * lib/makepath.c (S_IRWXUGO): Define.
99830         (make_path): Always perform explicit chmod if MODE specifies any
99831         of the `special' permission bits.  Prompted by a bug report against
99832         install from Mate Wierdl and Joost van Baal.
99833
99834 2000-04-18  Jim Meyering  <meyering@lucent.com>
99835
99836         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99837         (jm_PREREQ): Use it.
99838
99839 2000-04-18  Jim Meyering  <meyering@lucent.com>
99840
99841         * lib/README: New file.
99842
99843         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99844         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99845
99846 2000-04-17  Jim Meyering  <meyering@lucent.com>
99847
99848         Get it right :-)
99849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99850         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99851         Suggestion from Akim Demaille.
99852
99853 2000-04-17  Jim Meyering  <meyering@lucent.com>
99854
99855         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99856         the definition of it to rpl_strftime also defined-away the system's
99857         declaration.
99858
99859 2000-04-15  Jim Meyering  <meyering@lucent.com>
99860
99861         Use `C' to denote so-called `contiguous' files, the same way
99862         that tar does.
99863         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99864         (ftypelet): Use S_ISCTG.
99865         From Michael Deutschmann.
99866
99867 2000-04-14  Jim Meyering  <meyering@lucent.com>
99868
99869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99870         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99871         clobbered.
99872
99873 2000-04-14  Jim Meyering  <meyering@lucent.com>
99874
99875         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99876
99877 2000-04-13  Jim Meyering  <meyering@lucent.com>
99878
99879         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99880         AH_VERBATIM to insert required #ifndef into config.h.in.
99881         Suggestion from Akim Demaille.
99882
99883 2000-04-12  Jim Meyering  <meyering@lucent.com>
99884
99885         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99886         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99887         Christian Krackowizer.
99888
99889         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99890         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99891         (AC_SYS_LARGEFILE): Require.
99892         (AM_C_PROTOTYPES): Require.
99893
99894 2000-04-08  Jim Meyering  <meyering@lucent.com>
99895
99896         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99897         names don't conflict.  Reported by Eli Zaretskii.
99898
99899 2000-04-07  Jim Meyering  <meyering@lucent.com>
99900
99901         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99902         sys/types.h, to work around system header problems on AIX 3.2.5.
99903         From Bruno Haible.
99904
99905 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99906
99907         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99908         bug.  Deal with the different error behavior of Irix iconv.
99909
99910 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99911
99912         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99913         IRIX if the installer said otherwise.
99914
99915 2000-04-05  Jim Meyering  <meyering@lucent.com>
99916
99917         Portability tweaks required for ultrix4.3.
99918         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99919         (jm_CHECK_DECLS): Add getutent to the list of functions.
99920         (_jm_DECL_HEADERS): Add utmpx.h.
99921         From John David Anglin.
99922
99923         * m4/strftime.m4: Back out the 2000-04-02 change.
99924         Instead of that change, simply undefine putenv in the test program.
99925
99926 2000-04-05  Jim Meyering  <meyering@lucent.com>
99927
99928         Portability tweaks required for ultrix4.3.
99929         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99930         getutent.
99931         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99932         * lib/canon-host.c: Declare strdup.
99933         * lib/path-concat.c: Likewise.
99934         From John David Anglin.
99935
99936 2000-04-04  Jim Meyering  <meyering@lucent.com>
99937
99938         Be more DOS 8.3-friendly.
99939         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99940         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99941         * lib/Makefile.am: Reflect renaming.
99942         Reported by Eli Zaretskii.
99943
99944         Use a temporary file name that won't clash with `charset.alias'
99945         in the DOS 8.3 name space.
99946         * lib/Makefile.am (charset_tmp): Define.
99947         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99948         (uninstall-local): Likewise.
99949         Reported by Eli Zaretskii.
99950
99951 2000-04-03  Jim Meyering  <meyering@lucent.com>
99952
99953         * m4/gettext.m4: Fix typo in comment.
99954
99955         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99956         textutils/configure.in).  Suggestion from Paul Eggert.
99957         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99958
99959 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99960
99961         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99962         variable in the shell rather than using putenv, which isn't
99963         portable.  This avoids the configure-time inter-test dependency
99964         on the potentially-renamed putenv function.
99965
99966 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99967
99968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99969         before checking struct stat.st_blksize, so that
99970         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99971
99972 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99973
99974         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99975         since strftime.c uses HAVE_STRFTIME to decide whether to use
99976         the underlying strftime.
99977
99978 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99979
99980         * lib/time/strftime.c (my_strftime): Make sure we call the system
99981         strftime, not ourselves, when invoking the underlying strftime.
99982
99983 2000-03-24  Jim Meyering  <meyering@lucent.com>
99984
99985         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99986         (charset_alias): Define.
99987         (install-exec-local): Factor out common code.
99988         (uninstall-local): Split lines longer than 80.
99989         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99990         (SUFFIXES): Define.
99991         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99992         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99993
99994 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99995
99996         * lib/config.charset: Output a line containing "Packages using this
99997         file".
99998         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99999         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
100000         ref-del.sed): New rules.
100001
100002 2000-03-17  Jim Meyering  <meyering@lucent.com>
100003
100004         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
100005         Otherwise, include <strings.h>
100006
100007 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
100008
100009         * lib/unicodeio.c (utf8_wctomb): New function.
100010         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
100011         format instead of in UCS-4 with platform dependent endianness.
100012
100013 2000-03-10  Jim Meyering  <meyering@lucent.com>
100014
100015         * m4/lib-check.m4: Look for getspnam in -lgen, too.
100016         From Marco Franzen.
100017
100018 2000-03-07  Paul Eggert  <eggert@twinsun.com>
100019
100020         * lib/savedir.c (savedir): Work even if directory size is
100021         negative; this can happen with some screwy NFS configurations.
100022
100023 2000-03-06  Jim Meyering  <meyering@lucent.com>
100024
100025         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
100026         if it's NULL (because we ran out of memory).  From Bruno Haible.
100027
100028 2000-03-05  Jim Meyering  <meyering@lucent.com>
100029
100030         * lib/localcharset.c ("path-concat.h"): Include.
100031         (get_charset_aliases): Use path_concat instead of ANSI string
100032         concatenation.
100033
100034         * lib/unicodeio.h (PARAMS): Define.
100035         Use it to guard prototype.
100036
100037 2000-03-04  Jim Meyering  <meyering@lucent.com>
100038
100039         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
100040         for lib/localcharset.c.
100041
100042 2000-03-04  Jim Meyering  <meyering@lucent.com>
100043
100044         * lib/Makefile.am (install-exec-local): Create $(libdir) before
100045         installing into it.
100046         (uninstall-local): Uncomment this rule so `make distcheck' works
100047         once again.
100048
100049         * lib/unicodeio.c (<errno.h>): Include it.
100050         (errno): Declare if not defined.
100051
100052         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
100053
100054         * lib/config.charset: New version, incorporating remarks from a linux
100055         i18n mailing list.  From Bruno Haible.
100056
100057 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
100058
100059         * m4/codeset.m4: New file.
100060         * m4/iconv.m4: New file.
100061         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
100062
100063 2000-03-03  Jim Meyering  <meyering@lucent.com>
100064
100065         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
100066
100067 2000-03-02  Jim Meyering  <meyering@lucent.com>
100068
100069         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
100070         the messages come out on separate lines.
100071
100072         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
100073         rather than jm_CHECK_DECLARATIONS.
100074         * m4/decl.m4: Remove now-unused file.
100075
100076         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100077         geteuid.
100078
100079 2000-03-02  Jim Meyering  <meyering@lucent.com>
100080
100081         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100082
100083 2000-03-01  Jim Meyering  <meyering@lucent.com>
100084
100085         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100086         * lib/unicodeio.c: Likewise.
100087
100088 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100089
100090         * lib/config.charset: New file.
100091         * lib/localcharset.c: New file.
100092         * lib/unicodeio.h, lib/unicodeio.c: New files.
100093         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100094         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100095         (noinst_HEADERS): Add unicodeio.h.
100096         (all-local, install-exec-local, charset.alias): New targets.
100097
100098 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100099
100100         * lib/quotearg.c (ALERT_CHAR): New macro.
100101         (quotearg_buffer_restyled): Use it.
100102
100103 2000-02-27  Jim Meyering  <meyering@lucent.com>
100104
100105         * m4/check-decl.m4: Add getenv to the list.
100106
100107 2000-02-27  Jim Meyering  <meyering@lucent.com>
100108
100109         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100110         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100111
100112         * lib/backupfile.c: Guard inclusion of stdlib.h with
100113         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100114         Declare malloc if needed.
100115
100116         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100117         `#ifndef HAVE_DECL..'
100118         now that autoconf always defines the HAVE_DECL_ symbols.
100119         * lib/human.c: Likewise.
100120         * lib/same.c: Likewise.
100121         * lib/strtoumax.c: Likewise.
100122
100123         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100124         declaration check was not run.
100125         * lib/hash.c: Likewise.
100126         * lib/human.c: Likewise.
100127         * lib/same.c: Likewise.
100128         * lib/strtoumax.c: Likewise.
100129
100130         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100131         `.', then first look up the entire `.'-containing string as a login
100132         name.
100133
100134 2000-02-23  Jim Meyering  <meyering@lucent.com>
100135
100136         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100137         in place of my hack.
100138
100139 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100140
100141         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100142         (textint): New typedef.
100143         (parser_control): Member year changed from int to textint.
100144         All uses changed.
100145         (YYSTYPE): Removed; replaced by %union with int and textint members.
100146         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100147         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100148         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100149         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100150         (date, number, to_year): Use width of number in digits, not its value,
100151         to determine whether it's a 2-digit year, or a 2-digit time.
100152         (yylex): Store number of digits of numeric tokens.
100153         Reported by John Kendall.
100154
100155         (parser_control): Changed from struct parser_control to typedef (for
100156         consistency).  All uses changed.
100157
100158         (tID): Removed; not used.
100159         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100160
100161 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100162
100163         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100164         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100165
100166 2000-02-12  Jim Meyering  <meyering@lucent.com>
100167
100168         * lib/userspec.c (ISDIGIT): Define it.
100169         (isdigit): Remove definition.
100170         (is_number): Use ISDIGIT, not isdigit.
100171         <libintl.h>: Include.
100172         (_ and N_): Define.
100173         (parse_user_spec): Mark translatable strings.
100174
100175 2000-02-10  Jim Meyering  <meyering@lucent.com>
100176
100177         With these changes, nanosleep.[ch] are finally enough like the other
100178         lib/* replacement files to compile on a few more losing systems.
100179
100180         * lib/nanosleep.h: Don't include config.h.
100181         Remove prototype from declaration of nanosleep.
100182         (PARAMS): Remove now-unneeded definition.
100183         * lib/nanosleep.c: #undef nanosleep.
100184         (rpl_nanosleep): Rename from nanosleep.
100185
100186 2000-02-10  Jim Meyering  <meyering@lucent.com>
100187
100188         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100189         gnu_nanosleep to rpl_nanosleep.
100190
100191 2000-02-09  Jim Meyering  <meyering@lucent.com>
100192
100193         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100194         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100195
100196 2000-02-08  Akim Demaille  <akim@epita.fr>
100197
100198         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100199         `[' and `]' and remove uses of `changequote'.
100200         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100201         (AC_SYS_LARGEFILE): Likewise.
100202         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100203         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100204         of changequote.
100205         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100206         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100207         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100208         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100209
100210 2000-02-05  Jim Meyering  <meyering@lucent.com>
100211
100212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100213         Remove explicit use of AC_HEADER_TIME.  It is required by
100214         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100215         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100216         in autoconf whereby the expansion of the latter ended up preceding
100217         the expansion of its prerequisite, AC_HEADER_TIME.
100218         Reported by Volker Borchert.
100219
100220 2000-02-03  Jim Meyering  <meyering@lucent.com>
100221
100222         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100223
100224 2000-02-03  Jim Meyering  <meyering@lucent.com>
100225
100226         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100227         rather than with `#if HAVE_UTMPNAME'.
100228
100229 2000-02-02  Jim Meyering  <meyering@lucent.com>
100230
100231         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100232         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100233         Reported by Eli Zaretskii.
100234
100235 2000-02-01  Jim Meyering  <meyering@lucent.com>
100236
100237         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100238
100239 2000-01-31  Jim Meyering  <meyering@lucent.com>
100240
100241         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100242         functions.  Add the time.h and sys/time.h headers along with the
100243         AC_REQUIRE'ment of AC_HEADER_TIME.
100244
100245 2000-01-31  Jim Meyering  <meyering@lucent.com>
100246
100247         * lib/nanosleep.h (nanosleep): Guard declaration with
100248         `#if ! HAVE_DECL_NANOSLEEP'.
100249         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100250         the declaration in that vendor's sys/timers.h.
100251         Reported by Christian Krackowizer.
100252
100253         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100254         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100255         (ISPRINT): Likewise.
100256         Reported by Tom Tromey.
100257
100258 2000-01-30  Jim Meyering  <meyering@lucent.com>
100259
100260         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100261
100262         * m4/prereq.m4 (utmp_includes): Define.
100263         Check for ut_user and ut_name members in both struct utmpx
100264         and struct utmp.
100265
100266 2000-01-30  Jim Meyering  <meyering@lucent.com>
100267
100268         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100269         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100270         header files where only utmpx.ut_user is declared.
100271
100272         * lib/readutmp.h (UT_USER): Define.
100273
100274 2000-01-29  Jim Meyering  <meyering@lucent.com>
100275
100276         * m4/lib-check.m4: New file containing library-related checks from
100277         fileutils and sh-utils (textutils had none).
100278
100279 2000-01-28  Jim Meyering  <meyering@lucent.com>
100280
100281         * m4/perl.m4: Change format of warning message to look more like that
100282         from the missing script.  Suggestion from François Pinard.
100283
100284 2000-01-25  Jim Meyering  <meyering@lucent.com>
100285
100286         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100287         well as time.h in the compile check.
100288         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100289         Fix typo in cross-compiling case: s/yes/no/.
100290
100291 2000-01-23  Jim Meyering  <meyering@lucent.com>
100292
100293         * m4/jm-macros.m4: Move df-related tests here from
100294         fileutils/configure.in
100295
100296         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100297         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100298
100299         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100300         s/space/ac_fsusage_space/.
100301         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100302
100303         * m4/ftruncate.m4: New file (derived from part of
100304         fileutils/configure.in).
100305         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100306         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100307
100308         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100309         AC_SUBST these here, rather than just in sh-util/configure.in, so
100310         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100311         all the same.
100312         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100313         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100314         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100315         (AC_SUBST(POW_LIBM)): Likewise.
100316         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100317
100318 2000-01-23  Jim Meyering  <meyering@lucent.com>
100319
100320         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100321         obstack.c.
100322
100323 2000-01-22  Jim Meyering  <meyering@lucent.com>
100324
100325         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100326
100327         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100328
100329         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100330         configure.in
100331         (AC_CHECK_HEADERS): Likewise for sh-utils.
100332         (AC_CHECK_HEADERS): Likewise for textutils.
100333         Merge the three lists of headers.
100334
100335         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100336         from fileutils' configure.in.
100337
100338         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100339         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100340         check-decl.m4.
100341
100342         * m4/check-decl.m4: Use #if rather than #ifdef.
100343         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100344         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100345         (_jm_DECL_HEADERS): Define new function.
100346         (jm_CHECK_DECLARATIONS): Require it.
100347
100348 2000-01-22  Jim Meyering  <meyering@lucent.com>
100349
100350         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100351         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100352         Required for some AIX systems.  Reported by Christian Krackowizer.
100353         [TESTING] (main): New function.
100354
100355         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100356         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100357         letters.
100358
100359         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100360         iswprint.
100361
100362         * lib/strverscmp.c (ISDIGIT): Define.
100363         (strverscmp): Use ISDIGIT, not isdigit.
100364
100365 2000-01-19  Jim Meyering  <meyering@lucent.com>
100366
100367         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100368         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100369         defines `struct timespec' in <sys/time.h>
100370
100371         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100372         Thanks to Akim for explaining.
100373
100374 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100375
100376         * lib/nanosleep.c (nanosleep):
100377         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100378         POSIX.1 doesn't require SA_INTERRUPT and some systems
100379         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100380         it's been part of POSIX.1 since day 1 (in 1988).
100381
100382 2000-01-17  Jim Meyering  <meyering@lucent.com>
100383
100384         * lib/interlock: Remove unused file.  Reported by François Pinard.
100385
100386 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100387
100388         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100389         alert, backslash, formfeed, and vertical tab unnecessarily in
100390         shell quoting style.
100391
100392 2000-01-16  Jim Meyering  <meyering@lucent.com>
100393
100394         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100395         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100396         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100397         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100398
100399 2000-01-16  Jim Meyering  <meyering@lucent.com>
100400
100401         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100402         because the latter didn't work.
100403
100404 2000-01-15  Jim Meyering  <meyering@lucent.com>
100405
100406         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100407         (AC_REPLACE_FUNCS): Add memcpy and memset.
100408         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100409         Add strpbrk.
100410         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100411
100412 2000-01-12  Jim Meyering  <meyering@lucent.com>
100413
100414         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100415         (jm_PREREQ): Use it.
100416         (jm_PREREQ_READUTMP): New macro.
100417         (jm_PREREQ): Use it.
100418
100419 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100420
100421         Quote multibyte characters correctly.
100422         * m4/c-bs-a.m4: New file.
100423         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100424         (jm_PREREQ): Use it.
100425
100426 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100427
100428         * m4/uintmax_t.m4: Port to autoconf 2.13.
100429
100430 2000-01-08  Jim Meyering  <meyering@ascend.com>
100431
100432         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100433         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100434
100435 2000-01-04  Jim Meyering  <meyering@ascend.com>
100436
100437         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100438         jm_STRUCT_DIRENT_D_TYPE.
100439         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100440         jm_STRUCT_DIRENT_D_INO.
100441         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100442         jm_STRUCT_UTIMBUF.
100443         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100444         renamings.
100445         * m4/utime.m4: Likewise.
100446
100447         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100448         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100449
100450 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100451
100452         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100453         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100454
100455 2000-01-02  Jim Meyering  <meyering@ascend.com>
100456
100457         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100458         remember if this is necessary.
100459
100460 1999-12-26  Jim Meyering  <meyering@ascend.com>
100461
100462         * m4/jm-macros.m4: Use it here.
100463         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100464
100465 1999-12-23  Jim Meyering  <meyering@ascend.com>
100466
100467         * m4/jm-macros.m4: Check for clock_gettime (moved from
100468         fileutils/configure.in)
100469         Check for gettimeofday.
100470
100471 1999-12-20  Jim Meyering  <meyering@ascend.com>
100472
100473         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100474         autoconf-2.14a-1999-12-20.
100475
100476 1999-12-19  Jim Meyering  <meyering@ascend.com>
100477
100478         * m4/lstat-slash.m4: New file.
100479         * m4/jm-macros.m4: Use the new macro:
100480         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100481
100482 1999-12-07  Jim Meyering  <meyering@ascend.com>
100483
100484         * m4/perl.m4: Require that File::Compare be available, too.
100485         Too many systems seem to lack it.
100486
100487         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100488         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100489
100490 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100491
100492         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100493         problem with the QNX 4.25 shell, which doesn't propagate exit
100494         status of failed commands inside shell assignments.
100495
100496 1999-11-17  Jim Meyering  <meyering@ascend.com>
100497
100498         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100499
100500 1999-11-07  Jim Meyering  <meyering@ascend.com>
100501
100502         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100503
100504 1999-11-06  Jim Meyering  <meyering@ascend.com>
100505
100506         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100507         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100508
100509 1999-11-05  Jim Meyering  <meyering@ascend.com>
100510
100511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100512         configure.in of textutils, fileutils, and sh-utils into this one
100513         (shared between those packages) file.
100514         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100515         AC_STRUCT_ST_BLKSIZE.
100516
100517 1999-11-03  Jim Meyering  <meyering@ascend.com>
100518
100519         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100520         of AC_CHECK_TYPE checks includes unistd.h.
100521         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100522         Suggestion from Akim Demaille.
100523
100524 1999-10-30  Jim Meyering  <meyering@ascend.com>
100525
100526         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100527         m4-quoted string.
100528         * m4/ls-mntd-fs.m4: Likewise.
100529         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100530         * m4/jm-winsz1.m4: Likewise.
100531
100532         * m4/const.m4: Remove file, since the fix made it into the experimental
100533         version of autoconf.
100534         * m4/mktime.m4: Likewise.
100535
100536         * m4/check-type.m4: Remove file, now that the latest version of
100537         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100538
100539         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100540         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100541         AC_CHECK_TYPE.
100542
100543 1999-10-04  Jim Meyering  <meyering@ascend.com>
100544
100545         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100546
100547 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100548
100549         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100550         2.95.1 bug with HP-UX 10.20.
100551
100552 1999-09-17  Jim Meyering  <meyering@ascend.com>
100553
100554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100555         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100556         due to missing strdup (against sh-utils-2.0).
100557
100558 1999-08-29  Jim Meyering  <meyering@ascend.com>
100559
100560         * m4/jm-macros.m4: Require jm_BISON.
100561         * m4/bison.m4: New file.
100562
100563 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100564
100565         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100566         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100567
100568 1999-08-05  Jim Meyering  <meyering@ascend.com>
100569
100570         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100571         to avoid conflicts with `conftest' on 8+3 filesystems.
100572         Suggestion from Eli Zaretskii.
100573
100574 1999-08-04  Jim Meyering  <meyering@ascend.com>
100575
100576         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100577         fileutils and sh-utils (textutils's getline test was inadequate).
100578         (AM_FUNC_GETLINE): Run this test.
100579         (AC_CHECK_FUNCS): Check for getdelim.
100580         Reported by Bob Proulx.
100581
100582 1999-08-02  Jim Meyering  <meyering@ascend.com>
100583
100584         * m4/jm-macros.m4: Add a comment.
100585
100586 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100587
100588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100589         <inttypes.h> defines strtoumax as a macro (and not as a
100590         function).
100591
100592 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100593
100594         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100595         that we can shift, multiply and divide unsigned long long
100596         values; Ultrix cc can't do it.
100597
100598 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100599
100600         * m4/mktime.m4: New file, which is a preview of what should appear
100601         in the next public autoconf release.
100602
100603 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100604
100605         * m4/lfs.m4: Remove this file.
100606         * m4/largefile.m4: New file.  It contains the old contents of
100607         lfs.m4, except that all names with prefix AC_LFS have been
100608         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100609         compatible with future autoconf versions.  Also, some minor m4
100610         quoting problems have been fixed.
100611
100612 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100613
100614         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100615         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100616         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100617         and simplify the shell code.
100618
100619 1999-08-01  Jim Meyering  <meyering@ascend.com>
100620
100621         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100622         m4.
100623
100624 1999-07-20  Jim Meyering  <meyering@ascend.com>
100625
100626         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100627
100628 1999-07-15  Jim Meyering  <meyering@ascend.com>
100629
100630         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100631
100632 1999-05-22  Jim Meyering  <meyering@ascend.com>
100633
100634         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100635
100636 1999-05-20  Jim Meyering  <meyering@ascend.com>
100637
100638         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100639         Add a colon after each `then' in case $4 is empty.
100640
100641 1999-05-16  Jim Meyering  <meyering@ascend.com>
100642
100643         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100644
100645 1999-05-10  Jim Meyering  <meyering@ascend.com>
100646
100647         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100648
100649         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100650         AC_FUNC_MKTIME.
100651
100652 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100653
100654         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100655
100656 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100657
100658         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100659         not CPPFLAGS, so that linking works correctly in IRIX.
100660
100661 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100662
100663         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100664
100665 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100666
100667         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100668         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100670         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100671         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100672
100673         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100674
100675 1999-04-20  Jim Meyering  <meyering@ascend.com>
100676
100677         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100678         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100679         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100680
100681 1999-04-18  Jim Meyering  <meyering@ascend.com>
100682
100683         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100684         * m4/jm-macros.m4: Use it.
100685
100686 1999-04-06  Jim Meyering  <meyering@ascend.com>
100687
100688         * m4/strftime.m4: Remove test for %f.
100689
100690 1999-03-29  Jim Meyering  <meyering@ascend.com>
100691
100692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100693         superset of the AC_TYPE_* checks in the textutils, fileutils,
100694         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100695         AC_TYPE_PID_T.
100696
100697 1999-03-28  Jim Meyering  <meyering@ascend.com>
100698
100699         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100700         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100701         replaced e.g., in the *.sh files of the sh-utils.
100702
100703 1999-03-20  Jim Meyering  <meyering@ascend.com>
100704
100705         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100706         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100707         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100708
100709 1999-03-19  Jim Meyering  <meyering@ascend.com>
100710
100711         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100712
100713 1999-03-12  Jim Meyering  <meyering@ascend.com>
100714
100715         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100716
100717 1999-03-07  Jim Meyering  <meyering@ascend.com>
100718
100719         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100720         declared.
100721
100722 1999-02-17  Jim Meyering  <meyering@ascend.com>
100723
100724         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100725         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100726
100727 1999-02-07  Jim Meyering  <meyering@ascend.com>
100728
100729         * m4/group-member.m4: New file -- extracted from sh-utils'
100730         configure.in.
100731
100732         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100733         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100734
100735 1999-02-06  Jim Meyering  <meyering@ascend.com>
100736
100737         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100738         * m4/fnmatch.m4: Likewise.
100739         * m4/getgroups.m4: Likewise.
100740         * m4/lstat.m4: Likewise.
100741         * m4/malloc.m4: Likewise.
100742         * m4/putenv.m4: Likewise.
100743         * m4/realloc.m4: Likewise.
100744         * m4/regex.m4: Likewise.
100745         * m4/stat.m4: Likewise.
100746         * m4/strftime.m4: Likewise.
100747         Suggestion from Alain Magloire.
100748
100749         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100750         * m4/fnmatch.m4: Likewise.
100751         * m4/getgroups.m4: Likewise.
100752         * m4/getline.m4: Likewise.
100753         * m4/lstat.m4: Likewise.
100754         * m4/malloc.m4: Likewise.
100755         * m4/memcmp.m4: Likewise.
100756         * m4/putenv.m4: Likewise.
100757         * m4/realloc.m4: Likewise.
100758         * m4/regex.m4: Likewise.
100759         * m4/stat.m4: Likewise.
100760         * m4/strftime.m4: Likewise.
100761         Suggestion from Alain Magloire.
100762
100763         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100764         an argument.
100765
100766         * m4/regex.m4: Add a run-time Test for proper operation of
100767         re_compile_pattern.
100768
100769 1999-01-31  Jim Meyering  <meyering@ascend.com>
100770
100771         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100772
100773 1999-01-30  Jim Meyering  <meyering@ascend.com>
100774
100775         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100776
100777         * m4/jm-mktime.m4: Make this a wrapper around the official
100778         AM_FUNC_MKTIME rather than my private copy, now that the official one
100779         is up to date.
100780         * m4/mktime.m4: Remove file.
100781
100782         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100783         * m4/uptime.m4: Likewise.
100784         * m4/uintmax_t.m4: Likewise.
100785
100786 1999-01-28  Jim Meyering  <meyering@ascend.com>
100787
100788         * m4/jm-macros.m4: Use jm_AFS.
100789         * m4/afs.m4: New file (from fileutils' configure.in).
100790
100791         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100792         * m4/chown.m4: Likewise.
100793         * m4/d-ino.m4: Likewise.
100794         * m4/d-type.m4: Likewise.
100795         * m4/fnmatch.m4: Likewise.
100796         * m4/getgroups.m4: Likewise.
100797         * m4/gettext.m4: Likewise.
100798         * m4/jm-mktime.m4: Likewise.
100799         * m4/jm-winsz2.m4: Likewise.
100800         * m4/lcmessage.m4: Likewise.
100801         * m4/ls-mntd-fs.m4: Likewise.
100802         * m4/malloc.m4: Likewise.
100803         * m4/memcmp.m4: Likewise.
100804         * m4/putenv.m4: Likewise.
100805         * m4/realloc.m4: Likewise.
100806         * m4/st_mtim.m4: Likewise.
100807         * m4/strftime.m4: Likewise.
100808
100809 1999-01-16  Jim Meyering  <meyering@ascend.com>
100810
100811         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100812         (ARGMATCH_DIE_DECL): Define.
100813
100814 1999-01-12  Jim Meyering  <meyering@ascend.com>
100815
100816         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100817         Reported by Lars Hecking.
100818
100819 1999-01-10  Jim Meyering  <meyering@ascend.com>
100820
100821         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100822         gross kludge.
100823         * m4/inttypes_h.m4: Likewise.
100824         * m4/lstat.m4: Likewise.
100825         * m4/malloc.m4: Likewise.
100826         * m4/readdir.m4: Likewise.
100827         * m4/realloc.m4: Likewise.
100828         * m4/st_dm_mode.m4: Likewise.
100829         * m4/stat.m4: Likewise.
100830         * m4/utimbuf.m4: Likewise.
100831         * m4/utimes.m4: Likewise.
100832
100833         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100834         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100835         comments in config.h.in are meaningful.
100836
100837         * m4/jm-macros.m4: Require autoconf-2.13 here.
100838
100839         * m4/regex.m4: By default, don't use the included regex.c on systems
100840         with glibc 2.  Suggestion from Uli Drepper.
100841
100842 1999-01-02  Jim Meyering  <meyering@ascend.com>
100843
100844         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100845
100846 1998-12-18  Jim Meyering  <meyering@ascend.com>
100847
100848         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100849         Based on a suggestion from Lars Hecking.
100850
100851 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100852
100853         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100854
100855 1998-11-16  Jim Meyering  <meyering@ascend.com>
100856
100857         * m4/lfs.m4: Double-quote the `uname...` expression.
100858
100859 1998-11-14  Jim Meyering  <meyering@ascend.com>
100860
100861         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100862         * m4/stat.m4: Likewise.
100863
100864 1998-11-03  Jim Meyering  <meyering@ascend.com>
100865
100866         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100867         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100868
100869 1998-10-18  Jim Meyering  <meyering@ascend.com>
100870
100871         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100872
100873 1998-10-17  Jim Meyering  <meyering@ascend.com>
100874
100875         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100876         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100877         calls for those previously hard-coded headers.  Instead, take a new
100878         parameter.
100879         (jm_CHECK_DECLARATIONS): Reflect interface change.
100880         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100881         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100882
100883         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100884
100885 1998-10-14  Jim Meyering  <meyering@ascend.com>
100886
100887         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100888         instead of "TZ=America/Vancouver".  From Paul Eggert.
100889
100890 1998-10-11  Jim Meyering  <meyering@ascend.com>
100891
100892         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100893         This adds a test for a recently added compatibility fix for mktime.c.
100894         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100895
100896 1998-09-27  Jim Meyering  <meyering@ascend.com>
100897
100898         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100899
100900         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100901         ../configure.in, including a change from Gordon Matzigkeit to allow
100902         cross-compiling for the Hurd.
100903
100904         * m4/glibc.m4: New file/macro to test for the GNU C Library
100905         versions 1 and 2.  From Gordon Matzigkeit.
100906         Indent.
100907
100908 1998-09-21  Jim Meyering  <meyering@ascend.com>
100909
100910         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100911
100912 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100913
100914         Port nanosecond-resolution times to UnixWare 2.1.2 and
100915         pedantic Solaris 2.6.
100916
100917         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100918         AC_STRUCT_ST_MTIM.
100919         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100920         Generate name of ns member, instead of just 1 or undef.
100921         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100922
100923 1998-08-15  Jim Meyering  <meyering@ascend.com>
100924
100925         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100926         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100927         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100928         instead of jm_TYPE_SSIZE_T.
100929
100930 1998-08-12  Jim Meyering  <meyering@ascend.com>
100931
100932         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100933
100934 1998-08-02  Jim Meyering  <meyering@ascend.com>
100935
100936         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100937         in acconfig.h manually.
100938
100939 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100940
100941         * m4/st_mtim.m4: New file.
100942
100943 1998-07-28  Jim Meyering  <meyering@ascend.com>
100944
100945         * m4/utimes.m4: Undef stat.
100946
100947 1998-07-25  Jim Meyering  <meyering@ascend.com>
100948
100949         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100950         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100951
100952 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100953
100954         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100955         uid and gid actually remain unchanged.
100956
100957 1998-07-07  Jim Meyering  <meyering@ascend.com>
100958
100959         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100960
100961 1998-07-04  Jim Meyering  <meyering@ascend.com>
100962
100963         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100964         to prove that this macro can be used in packages without regex.c.
100965
100966 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100967
100968         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100969         is to be used.
100970
100971 1998-07-03  Jim Meyering  <meyering@ascend.com>
100972
100973         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100974
100975         * m4/gettext.m4: New file -- from gettext-0.10.35.
100976         * m4/lcmessage.m4: Likewise.
100977         * m4/progtest.m4: Likewise.
100978
100979         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100980         * m4/jm-macros.m4: Require the new macro.
100981
100982 1998-06-29  Jim Meyering  <meyering@ascend.com>
100983
100984         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100985         for the definition of NGROUPS (used in a system header included
100986         by sys/mount.h).
100987
100988 1998-06-28  Jim Meyering  <meyering@ascend.com>
100989
100990         * m4/ls-mntd-fs.m4: New file.
100991         * m4/fstypename.m4: New file.
100992
100993         * m4/jm-macros.m4: Require the new macro.
100994         * m4/jm-glibc-io.m4: New file.
100995
100996 1998-05-19  Jim Meyering  <meyering@ascend.com>
100997
100998         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100999         * m4/lchown.m4: New file.
101000
101001         * m4/Makefile.am.in: New file.
101002         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
101003
101004 1998-05-14  Jim Meyering  <meyering@ascend.com>
101005
101006         * m4/Makefile.am (EXTRA_DIST): Add them.
101007         * m4/jm-macros.m4: New file.
101008         * m4/utimbuf.m4: New file.
101009
101010 1998-05-12  Jim Meyering  <meyering@ascend.com>
101011
101012         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
101013
101014 1998-05-11  Jim Meyering  <meyering@ascend.com>
101015
101016         * m4/isc-posix.m4: New file.
101017
101018 1998-05-10  Jim Meyering  <meyering@ascend.com>
101019
101020         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
101021
101022 1998-05-09  Jim Meyering  <meyering@ascend.com>
101023
101024         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
101025         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
101026         with automake.
101027
101028         * m4/ssize_t.m4: New file.
101029         * m4/mktime.m4: Remove file -- the new automake has this now.
101030
101031 1998-04-26  Jim Meyering  <meyering@ascend.com>
101032
101033         * m4/assert.m4: New file.
101034         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
101035
101036 1998-04-05  Jim Meyering  <meyering@ascend.com>
101037
101038         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
101039         (jm_PREREQ): Use it here.
101040
101041 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
101042
101043         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
101044         in acconfig.h.
101045
101046 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
101047
101048         * m4/prereq.m4: New file.
101049         * m4/error.m4: New file.
101050         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
101051
101052 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
101053
101054         * m4/getline.m4: Don't set am_cv_func_working_getline before the
101055         cache-check for the same variable -- that defeated the purpose of
101056         the test; the test program was never run.  This was a problem only
101057         on systems with losing getline functions -- HP-UX 10.20 is one.
101058         Reported by Bjorn Helgaas.
101059
101060 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
101061
101062         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
101063
101064 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
101065
101066         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
101067
101068         * m4/const.m4: New file.  Use an initializer in this declaration
101069         typedef int charset[2]; const charset x;
101070         Reported by Bob Glickstein.
101071
101072 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
101073
101074         * m4/chown.m4: Fix reversed types on -1 args to chown.
101075         From Kaveh Ghazi.
101076
101077 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101078
101079         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101080         Add lseek and memchr.
101081
101082         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101083         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101084         have a 20-character limit on names.
101085
101086 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101087
101088         * m4/inttypes_h.m4: New file.
101089         * m4/uintmax_t.m4: New file.
101090         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101091
101092
101093         -----
101094
101095         Local Variables:
101096         coding: utf-8
101097         End:
101098
101099         Copyright (C) 1997-2013 Free Software Foundation, Inc.
101100
101101         Copying and distribution of this file, with or without
101102         modification, are permitted provided the copyright notice
101103         and this notice are preserved.